zjuthesis icon indicating copy to clipboard operation
zjuthesis copied to clipboard

\signature如何添加信息

Open leisong-zju opened this issue 2 months ago • 14 comments

操作系统

Windows

TeX 套件

TeXLive 2021 或更新的版本

TeX Compiler

XeTeX

zjuthesis 版本号

v.10.0.1

MajorFormat

general

Degree

undergraduate

Type

design

Period

final

BlindReview

true

GradLevel

master

问题描述

\signature指令创建了签名的位置和时间,请问我应该在哪里编辑才能将信息填写进去? screenshot-1713753988997

编译日志

No response

代码

No response

截图

No response

其他信息

No response

leisong-zju avatar Apr 22 '24 02:04 leisong-zju

我上次好像回答过,你参考下这个看看https://github.com/TheNetAdmin/zjuthesis/discussions/97#discussioncomment-8625455 顺便反馈下效果

xfz329 avatar Apr 24 '24 14:04 xfz329

我觉得在顶层zjuthesis实现一些config,或者在各个特殊页面内实现一些config,可能会更方便一些,回头我有空看看怎么改。

TheNetAdmin avatar Apr 24 '24 17:04 TheNetAdmin

感谢 可以修改,但是会统一修改所有日期,使用可能不方便

leisong-zju avatar Apr 25 '24 02:04 leisong-zju

或者可以尝试修改下这个命令的参数个数,年月日均作为参数,我调整看一下。稍等下,本科模板我没太用过

xfz329 avatar Apr 25 '24 05:04 xfz329

我觉得在顶层zjuthesis实现一些config,或者在各个特殊页面内实现一些config,可能会更方便一些,回头我有空看看怎么改。 感觉现在同学们对模板的个性化定制需求确实蛮多的了

xfz329 avatar Apr 25 '24 05:04 xfz329

设置好了 修改config/command.tex,定义一个可修改年月日的签名命令\signaturewithdate如下

\newcommand{\signaturewithdate}[4]
{
    \begin{flushright}
        \bfseries \zihao{-4}
        #1 \underline{\multido{}{5}{\quad}} \\
        #2 年 #3 月 #4 日
    \end{flushright}
}

1714023702024

此后可在需要日期的位置使用此命令进行修改,如修改/page/undergraduate/job.tex

\cleardoublepage{}
\sectionnonum{本科生毕业论文(设计)任务书}

{
    \bfseries
    \noindent 一、题目:\\
    \noindent 二、指导教师对毕业论文(设计)的进度安排及任务要求:\\

    \vskip 50mm

    \noindent 起讫日期 20 \quad 年 \quad  月 \quad  日 \quad 至 \quad 20 \quad  年 \quad  月  \quad 日
    \begin{flushright}
        \bfseries \zihao{-4}
            指导教师(签名) \underline{\multido{}{5}{\quad}} 职称 \underline{\multido{}{5}{\quad}}
    \end{flushright}

    \noindent 三、系或研究所审核意见:\\

    \mbox{} \vfill
    \signaturewithdate{负责人(签名)}{2024}{4}{25}
}

最后的编译效果如下 image

xfz329 avatar Apr 25 '24 05:04 xfz329

@TheNetAdmin 如果觉得该功能可以保留,我可以提个pr

xfz329 avatar Apr 25 '24 05:04 xfz329

如无必要,可以不close issue。close后也不要重新开启。 最好保持open @zjuklay

xfz329 avatar Apr 25 '24 05:04 xfz329

好的感谢!!

leisong-zju avatar Apr 25 '24 05:04 leisong-zju

你在全面测试下,我没用过本科模板,只在这个页面测试下了

xfz329 avatar Apr 25 '24 05:04 xfz329

screenshot-1714025802939 都可以使用

leisong-zju avatar Apr 25 '24 06:04 leisong-zju

那就好的

xfz329 avatar Apr 25 '24 06:04 xfz329

@TheNetAdmin 如果觉得该功能可以保留,我可以提个pr

@xfz329 这个很好呀!提个pr之后ci test应该也会检查格式,即便有问题也会发现的

TheNetAdmin avatar Apr 25 '24 18:04 TheNetAdmin

https://github.com/TheNetAdmin/zjuthesis/pull/406

xfz329 avatar Apr 28 '24 05:04 xfz329