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

如何修改目录行距? #4

Open
blabla-my opened this issue May 25, 2022 · 2 comments
Open

如何修改目录行距? #4

blabla-my opened this issue May 25, 2022 · 2 comments

Comments

@blabla-my
Copy link

blabla-my commented May 25, 2022

  1. 撰写规范中要求目录行距为20磅,模板里仍为默认的1.2倍行距。
  2. 撰写规范要求字体为黑体,模板里为宋体
@blabla-my
Copy link
Author

blabla-my commented May 25, 2022

将macro.tex中的以下代码(line 47)

\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{tocloft}
\titlecontents{section}[1em]{\zihao{-4}}{\contentslabel{1em}}{\hspace{-1em}}{\titlerule*[0.5pc]{$.$}\contentspage}
\titlecontents{subsection}[3em]{\zihao{-4}}{\contentslabel{2em}}{\hspace{-2em}}{\titlerule*[0.5pc]{$.$}\contentspage}
\titlecontents{subsubsection}[5em]{\zihao{-4}}{\contentslabel{3em}}{\hspace{-3em}}{\titlerule*[0.5pc]{$.$}\contentspage}
\renewcommand{\cfttoctitlefont}{\zihao{2}\heiti}
\renewcommand{\contentsname}{\hfill 目~录\hfill}   
\renewcommand{\cftaftertoctitle}{\hfill}

修改为:

\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{tocloft}
\titlecontents{section}[1em]{\zihao{-4}\hei}{\contentslabel{1em}}{\hspace{-1em}}{\titlerule*[0.5pc]{$.$}\contentspage\vspace{2.8pt}}
\titlecontents{subsection}[3em]{\zihao{-4}\hei}{\contentslabel{2em}}{\hspace{-2em}}{\titlerule*[0.5pc]{$.$}\contentspage\vspace{2.8pt}}
\titlecontents{subsubsection}[5em]{\zihao{-4}\hei}{\contentslabel{3em}}{\hspace{-3em}}{\titlerule*[0.5pc]{$.$}\contentspage\vspace{2.8pt}}
\renewcommand{\cfttoctitlefont}{\zihao{2}\hei}
\renewcommand{\contentsname}{\hfill 目~录\hfill}   
\renewcommand{\cftaftertoctitle}{\hfill}

@eurekayuan
Copy link
Owner

👍

@eurekayuan eurekayuan pinned this issue Jul 10, 2022
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