Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\figurenote图注无法居中 #414

Open
Eddie-Tu opened this issue Feb 18, 2025 · 1 comment
Open

\figurenote图注无法居中 #414

Eddie-Tu opened this issue Feb 18, 2025 · 1 comment

Comments

@Eddie-Tu
Copy link

Eddie-Tu commented Feb 18, 2025

检查

  • [ ✅] 已经阅读《研究生学位论文撰写手册》或《中国科学技术大学本科毕业论文(设计)格式》
  • [ ✅] 已经将模板升级到了最新版
  • [ ✅] 已经阅读使用说明文档 ustcthesis.pdf
  • [ ✅ ] 已经阅读 常见问题

编译环境

  • 编译的系统:macOS 15.3
  • TeX 发行版:TeX Live 2019
  • 模板类型:master

问题描述

在使用《研究生学位论文撰写手册》提供的新 \figurenote 命令时,发现其默认格式无法使图注居中显示。虽然论文模板中对此没有明确要求,但图注居左对齐的排版效果较差,影响美观。

截图:
Image

修改建议:对 ustcthesis.cls\figurenote 定义作如下修改:

\newcommand\figurenote[1]{%
  \begingroup
    \par
    \setlength\parskip{6bp}%
    \ustc@figure@note@font
    \begin{center} % 添加 center 环境
      \parbox{\linewidth}{\centering #1\par} % 让文本居中
    \end{center}
  \endgroup
}
@zepinglee
Copy link
Member

我在 c9b2467 改进了图注的格式:图注不足一行则居中,超过一行则两端对齐。

myLFD pushed a commit to myLFD/papers that referenced this issue Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants