Git Product home page Git Product logo

Comments (6)

LiaoYujia avatar LiaoYujia commented on August 22, 2024

+1,遇到同样的问题,不太清楚如何编辑yanputhesis.cls文件使得标题部分的数字的字体为黑体。

from yet-another-latex-template-for-npu-thesis.

polossk avatar polossk commented on August 22, 2024

感谢反馈,会尽快测试并给出修正

from yet-another-latex-template-for-npu-thesis.

LiaoYujia avatar LiaoYujia commented on August 22, 2024

感谢反馈,会尽快测试并给出修正

想额外咨询作者关于修改子图序号字体的问题,写作指南中给的示例,子图的序号括号为宋体,字母a为新罗马,与您提供的子图使用方法中的字体不同。自己latex学得不多,也改了好久没改出来,目前是在yanputhesis.cls的 \captionsetup[subfigure]{labelformat=simple, aboveskip=0pt} %增加两条语句:

\DeclareCaptionFont{test}{\CJKfamily{song}} %
\captionsetup[subfigure]{labelfont=test,labelformat=simple, aboveskip=0pt} %

但是失效了,想咨询作者有没有好的修改方式呢?十分感谢您。

from yet-another-latex-template-for-npu-thesis.

polossk avatar polossk commented on August 22, 2024

感谢反馈,会尽快测试并给出修正

想额外咨询作者关于修改子图序号字体的问题,写作指南中给的示例,子图的序号括号为宋体,字母a为新罗马,与您提供的子图使用方法中的字体不同。自己latex学得不多,也改了好久没改出来,目前是在yanputhesis.cls的 \captionsetup[subfigure]{labelformat=simple, aboveskip=0pt} %增加两条语句:

\DeclareCaptionFont{test}{\CJKfamily{song}} % \captionsetup[subfigure]{labelfont=test,labelformat=simple, aboveskip=0pt} %

但是失效了,想咨询作者有没有好的修改方式呢?十分感谢您。

您的观察确实很细致,这个问题我们都没有注意到,统一使用英文小括号来标记了。

当然您这个问题也可以解决,参考 caption 包的文档(通过命令 texdoc caption 访问),内部给出了 \DeclareCaptionLabelFormat{name}{code using #1 and #2i} 命令来设置自定义编号格式。
如:

\DeclareCaptionLabelFormat{bf-parens}{(\textbf{#2})}
\captionsetup{labelformat=bf-parens,labelsep=quad}

会输出加粗版本的子标题编号(如图1(2))
所以我猜测应该写成

\DeclareCaptionLabelFormat{chs-parens}{(#2)}
\captionsetup[subtable]{labelformat=chs-parens, aboveskip=0pt}  %
\captionsetup[subfigure]{labelformat=chs-parens, aboveskip=0pt} %

就可以解决你的问题

from yet-another-latex-template-for-npu-thesis.

LiaoYujia avatar LiaoYujia commented on August 22, 2024

感谢反馈,会尽快测试并给出修正

想额外咨询作者关于修改子图序号字体的问题,写作指南中给的示例,子图的序号括号为宋体,字母a为新罗马,与您提供的子图使用方法中的字体不同。自己latex学得不多,也改了好久没改出来,目前是在yanputhesis.cls的 \captionsetup[subfigure]{labelformat=simple, aboveskip=0pt} %增加两条语句:
\DeclareCaptionFont{test}{\CJKfamily{song}} % \captionsetup[subfigure]{labelfont=test,labelformat=simple, aboveskip=0pt} %
但是失效了,想咨询作者有没有好的修改方式呢?十分感谢您。

您的观察确实很细致,这个问题我们都没有注意到,统一使用英文小括号来标记了。

当然您这个问题也可以解决,参考 caption 包的文档(通过命令 texdoc caption 访问),内部给出了 \DeclareCaptionLabelFormat{name}{code using #1 and #2i} 命令来设置自定义编号格式。 如:

\DeclareCaptionLabelFormat{bf-parens}{(\textbf{#2})}
\captionsetup{labelformat=bf-parens,labelsep=quad}

会输出加粗版本的子标题编号(如图1(2)) 所以我猜测应该写成

\DeclareCaptionLabelFormat{chs-parens}{(#2)}
\captionsetup[subtable]{labelformat=chs-parens, aboveskip=0pt}  %
\captionsetup[subfigure]{labelformat=chs-parens, aboveskip=0pt} %

就可以解决你的问题

感谢您的回复,我尝试了下,还是有不对。
目前变成了((a)),多了括号。
image
请问这样有没有解决办法呢?

半小时后修改评论:
需要修改 yanputhesis.cls中的
\renewcommand{\thesubfigure}{(\alph{subfigure})} % 子图编号格式

\renewcommand{\thesubfigure}{\alph{subfigure}} % 子图编号格式
就可以了。
image

感谢您的答复!

from yet-another-latex-template-for-npu-thesis.

polossk avatar polossk commented on August 22, 2024

RE: @LiaoYujia 我阅读了关于括号的部分,其中公式编号的括号明确注明了使用英文小括号,子图只能找到样例,我猜测可能得翻阅各个学会自己的格式要求(如果有的话),例如我还见过图表标题同时需要中英双语的。所以我个人建议应该没有硬性规定,只要保持全文风格统一即可。

如果您认同我上面的这个想法的话,我就不往模板中更新咯(手动偷懒狗头

from yet-another-latex-template-for-npu-thesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.