Skip to content

为什么我的pdf目录标签前面都出现一个“-4”啊 #237

Answered by atxy-blip
bxdd asked this question in Q&A
Discussion options

You must be logged in to vote

忘了 \newcommand 不带保护,

\NewDocumentCommand{\chapterzihao}{}{\zihao{1}}
\NewDocumentCommand{\sectionzihao}{}{\zihao{-2}}
\NewDocumentCommand{\subsubzihao}{}{\zihao{4}}
\NewDocumentCommand{\parazihao}{}{\zihao{-4}}
\njusetformat{chapter}{\protect\chapterzihao\heiti\centering}
\njusetformat{section}{\sectionzihao\heiti}
\njusetformat{paragraph}{\parazihao\heiti}
\njusetformat{subsubsection}{\subsubzihao\heiti}
\njusetformat{chapterintoc}{\parazihao\heiti}
\njusetformat{toctitle}{\protect\chapterzihao\heiti\centering}

顺便建议用 markdown 代码块来呈现代码,而不是截图(

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@atxy-blip
Comment options

@bxdd
Comment options

@bxdd
Comment options

@atxy-blip
Comment options

Answer selected by bxdd
@bxdd
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@muzimuzhi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
trick precious experience
3 participants