Sjtuthesis: [bug] 封面“专业”一栏没有自动换行

Created on 26 May 2018  ·  7Comments  ·  Source: sjtug/SJTUThesis


问题描述:
screenshot from 2018-05-26 14-17-17

系统信息:

  • OS版本(带版本号): macOS/Windows/Linux: Linux
  • TeX 发行版(带版本号): TeX Live/MiKTeX/MacTeX:Tex Live
typbug

Most helpful comment

封面这里用的 \makebox 本身就不支持断行,改用其他方法断行后下划线的实现也比较麻烦。

这里可以试试 adjustbox 宏包,可以设定最大长度,自动缩放内容大小。我觉得效果应该比断行好,就是代码不好看。

\RequirePackage{adjustbox}
...
\underline{\makebox[180pt]{\begin{adjustbox}{max width=180pt}\sjtu@value@major\end{adjustbox}}}

screen shot 2018-05-26 at 16 21 43

All 7 comments

封面这里用的 \makebox 本身就不支持断行,改用其他方法断行后下划线的实现也比较麻烦。

这里可以试试 adjustbox 宏包,可以设定最大长度,自动缩放内容大小。我觉得效果应该比断行好,就是代码不好看。

\RequirePackage{adjustbox}
...
\underline{\makebox[180pt]{\begin{adjustbox}{max width=180pt}\sjtu@value@major\end{adjustbox}}}

screen shot 2018-05-26 at 16 21 43

我们怎么解决?加进 FAQ 还是改代码 0.0

我只是提一个临时的解决办法,不知道有没有更好的。

是不是可以加个判断,我修改一下,你们看看如何。待会提交一个pull request.

@bubifengyun

我们可以关闭这个 issue 了么?

我觉得可以了,你们意下如何

SGTM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shuoooo picture shuoooo  ·  9Comments

gaocegege picture gaocegege  ·  14Comments

jiewuza picture jiewuza  ·  7Comments

Erich-Chen picture Erich-Chen  ·  6Comments

yaojian95 picture yaojian95  ·  10Comments