sjtug / SJTUThesis

上海交通大学 LaTeX 论文模板 | Shanghai Jiao Tong University LaTeX Thesis Template
Apache License 2.0
3.29k stars 787 forks source link

图题想要实现“单行居中,多行左对齐” #784

Closed GodfatherPacino closed 2 years ago

GodfatherPacino commented 2 years ago

您好, 我的论文中因为图题caption比较长,很多图都出现了中英文图题多行的情况。 预答辩的时候,老师要求我,多行图题就跟正文一样左对齐,单行的时候居中。 目前的模板中,单行和多行都是默认居中。 我通过自己尝试将sjtuthesis.cls中修改为:\captionsetup{% format = plain, % format = hang, labelformat = simple, labelsep = enskip, % justification = centering, justification = raggedright, singlelinecheck = on, font = sjtu@caption@font } 但是目前是多行左对齐了,单行也左对齐了,singlelinecheck = on并没有发挥判断单行居中的作用。 试了好多了,头疼,求助。