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

计算机博士模板封面题目无法换行 #220

Closed
5 of 19 tasks
wanghonglie opened this issue Feb 9, 2022 · 3 comments
Closed
5 of 19 tasks

计算机博士模板封面题目无法换行 #220

wanghonglie opened this issue Feb 9, 2022 · 3 comments
Labels
I need help I want to get help from developers

Comments

@wanghonglie
Copy link

所有如下信息都是必填项,包括截图和编译日志(有 LaTeX 经验的开发者可忽略此要求)。
缺失必要信息会导致本模板的开发者无法帮你定位问题。
任何缺失信息都有可能导致此问题被关闭且得不到任何解答。

系统信息

操作系统

  • Windows
  • MacOS
  • Linux/Docker
  • Overleaf

TeX套件

  • TeXLive 2021 或更新的版本
  • TeXLive 2020
  • TeXLive 2019 或更早的版本
  • MikTex

TeX Compiler

  • XeTeX
  • LuaTeX

zjuthesis

版本号:8.2.0

Degree:

  • graduate
    • master
    • doctor
  • undergraduate

Major:

  • general
  • cs
  • isee
  • math
  • physics

编译日志
overleaf没这个

遇到的问题

用了\titletwolines但是没有覆盖
代码

% 可以重现你遇到的问题的代码
% 可使用多个代码框,分别填写不同文件内的代码
% 注明代码所在文件 zjuthesis.tex

% Zhejiang University Graduation Thesis/Design Template
% Author     : Zixuan Wang
% Email      : zxwang42 [at] gmail.com
% Update     : https://github.com/TheNetAdmin/zjuthesis/releases
% Discussion : https://github.com/TheNetAdmin/zjuthesis/discussions
% Documents  : https://thenetadmin.github.io/zjuthesis

% If you have trouble using this template, please:
%   1. First go through the online documentations mentioned above, to see if 
%      there're already solutions.
%   2. Go through GitHub Issue list, to see if there're discussions on similar
%      problems
%   3. Open a GitHub Issue to discuss with developers
%   4. If you don't know how to use GitHub, you can send me an email

\documentclass[
    % Debugging Settings
    PrintFilePath   = false,            % print tex file path for each page
    % Layout Settings
    TwoSide         = true,             % set to false if don't need empty pages
    % Thesis Info
    StudentName     = 姓名,
    StudentID       = 学号,
    AdvisorName     = 指导教师,
    Grade           = 2014,            % only the year, no '级'
    Major           = 专业,
    Department      = 学院,
    SubmitDate      = 递交日期,
    MajorFormat     = cs,
    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'
    % Graduate Thesis Info
    GradLevel       = doctor,          % 'master' or 'doctor'
    Topic           = 研究方向,
    ColaboratorName = 合作导师,
    % Title
    Title           = 毕业论文/设计题目毕业论文/设计题目题目题目题目题目,
    TitleEng        = {{Graduation Thesis Title}}
]{zjuthesis}

%% Uncomment the following lines if you need multi line titles on cover pages
\titletwolines{毕业论文题目第一行}{毕业论文题目第二行}
\titleengtwolines{English Title Line One}{Englisht Title Line Two}

%% Uncomment the following lines if you need multi line department names on cover pages
% \departmenttwolines{学院名第一行}{学院名第二行}

\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}
        \inputbody{final/post}

        \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}

截图

image

其他信息

@wanghonglie wanghonglie added the I need help I want to get help from developers label Feb 9, 2022
@TheNetAdmin
Copy link
Owner

cs 博士论文模板的封面还没有支持多行标题,我这两天抽空实现一下

@wanghonglie
Copy link
Author

cs 博士论文模板的封面还没有支持多行标题,我这两天抽空实现一下

👌感谢~

@TheNetAdmin
Copy link
Owner

@wanghonglie v8.3.0 已经更新了计算机博士封面的多行标题

@TheNetAdmin TheNetAdmin changed the title 题目无法换行;用了\titletwolines但是没有覆盖 计算机博士模板封面题目无法换行 Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I need help I want to get help from developers
Projects
None yet
Development

No branches or pull requests

2 participants