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

英语标题如何换行 #52

Closed
chao-song opened this issue Apr 3, 2020 · 12 comments
Closed

英语标题如何换行 #52

chao-song opened this issue Apr 3, 2020 · 12 comments

Comments

@chao-song
Copy link

chao-song commented Apr 3, 2020

windows10系统,tex2019环境,graduate模式,编辑完zjuthesis后直接cmd运行latexmk,尝试了插入\, 增加{}等多种方案,均失败

@chao-song chao-song changed the title 英语标题如何换行? 英语标题如何换行?windows10系统,tex2019环境,编辑完zjuthesis后直接cmd运行latexmk,尝试了插入\\, 增加{}等多种方案,均失败 Apr 3, 2020
@chao-song chao-song changed the title 英语标题如何换行?windows10系统,tex2019环境,编辑完zjuthesis后直接cmd运行latexmk,尝试了插入\\, 增加{}等多种方案,均失败 英语标题如何换行 Apr 3, 2020
@TheNetAdmin
Copy link
Owner

贴一下你的代码和你预期的结果

@chao-song
Copy link
Author

chao-song commented Apr 4, 2020

贴一下你的代码和你预期的结果

\documentclass[
StudentName = 姓名1,
StudentID = 12345678,
AdvisorName = 姓名2,
Grade = 2000, % only the year, no '级'
Major = 专业,
Department = 学系,
Title = 中文题目,
SubmitDate = 递交日期,
MajorFormat = physics,
Degree = graduate, % 'undergraduate' or 'graduate'
Type = thesis, % 'thesis' or 'design'
Period = final, % 'proposal' or 'final'
BlindReview = false, % 'false' or 'true'
Language = chinese, % 'chinese' or 'english'
% Below only for 'graduate'
GradLevel = doctor, % 'master' or 'doctor'
Topic = 主题,
ColaboratorName = 合作导师,
TitleEng = {{this is the english \ title of my thesis}}
]{./config/zjuthesis}

\newcommand{\inputundergraduate}
{
\ifthenelse{\equal{\Period}{final}}
{
% Final thesis
% Final part
\newcommand{\undergradcurrstage}{final}
\newrefsection

    \coverstyle
    \inputpage{final/cover}

    \prevstyle
    \inputpage{final/previous}
    \inputpage{final/toc}

    \bodystyle
    \cleardoublepage
    \ifthenelse{\equal{\Type}{design}}
        {\part{毕业设计}}
        {\part{毕业论文}}
    
    \inputbody{final/content}

    \poststyle
    \inputpage{final/post}

    % Proposal part
    \renewcommand{\undergradcurrstage}{proposal}
    \newrefsection

    \coverstyle
    \cleardoublepage
    \ifthenelse{\equal{\Type}{design}}
        {\part{毕业设计开题报告}}
        {\part{毕业论文开题报告}}

    \inputpage{proposal/cover}
    \inputpage{proposal/previous}
    
    \bodystyle
    \inputbody{proposal/content}

    \poststyle
    \inputpage{proposal/post}
}
{
    % Thesis proposal
    \newcommand{\undergradcurrstage}{proposal}

    \coverstyle
    \inputpage{proposal/cover}

    % 'proposal' previous part uses 'empty' page style,
    % as shown in cs undergrad template.
    \inputpage{proposal/previous}
    
    \prevstyle
    \inputpage{proposal/toc}

    \bodystyle
    \inputbody{proposal/content}
    
    \poststyle
    \inputpage{proposal/post}
}

}

\newcommand{\inputgraduate}
{
\coverstyle
\inputpage{cover}

\prevstyle
\inputpage{previous}
\inputpage{toc}

% Main contents
\bodystyle
\inputbody{content}

% Post part
\poststyle
\inputbody{post}

}

\begin{document}

\ifthenelse{\equal{\Degree}{undergraduate}}
{
\inputundergraduate{}
}
{
\inputgraduate{}
}
\end{document}

@TheNetAdmin
Copy link
Owner

你是要封面上分两行还是页眉分两行?

@chao-song
Copy link
Author

{{this is the english \ title of my thesis}}

我希望编译成pdf后英文题目能够分两行显示

@chao-song
Copy link
Author

封面上

@chao-song
Copy link
Author

你是要封面上分两行还是页眉分两行?
image

@chao-song
Copy link
Author

chao-song commented Apr 4, 2020

你是要封面上分两行还是页眉分两行?
image

如图,标题直接超出了页面,但是中文标题可以自动换行

@chao-song
Copy link
Author

你是要封面上分两行还是页眉分两行?
image

如图,标题直接超出了页面,但是中文标题可以自动换行

image
绕了很多方法,基本都会卡在这个错误上(cmd直接运行最新版本代码提供的latexmk)

@chao-song
Copy link
Author

你是要封面上分两行还是页眉分两行?
image

如图,标题直接超出了页面,但是中文标题可以自动换行

image
绕了很多方法,基本都会卡在这个错误上(cmd直接运行最新版本代码提供的latexmk)

终极解决方案:直接修改pdf文件,放弃使用该页面。

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Apr 4, 2020

额这个情况下,我的建议是直接修改封面对应的Tex 文件,手动输入题目并分成两行

@chao-song
Copy link
Author

额这个情况下,我的建议是直接修改封面对应的Tex 文件,手动输入题目并分成两行

谢谢,你应该是指修改page/中的covert_chn.tex吧?应该是可行的。不过作为小小的建议,希望以后的版本中,在zjuthesis.tex中输入英文标题时,能够支持标题换行。

@SonpKing
Copy link

同英文封面不能换行

Repository owner locked as resolved and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants