context的一个常用设置

用了一段时间的context,这个我喜欢,很不错的东西. 但是头部的一个东西,每次都要找,虽然也可以通过tex系统进行设置,但是必要的学习与了解是不可以少的,所以放一份在这里,方便查看: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usemodule[zhfonts]%使用zhfonts模块,可以用中文 %%%%%%%%%%%%%% %%indenting %有于一些空白的设置,这里可以看出contex的优点,十分灵活 %%%%%%%%%%%%%% %we do not want paragraphs after itemize to be indented; %then we can say %如果不要itemize之后的段落进行缩进,可以这样设置 \setupindenting[medium, yes] \setupitemgroup[itemize][indentnext=no] %If we want paragraphs after section heads to be indented, %we can say %section之后的段落进行缩进 \setuphead[section][indentnext=yes] %If we want the paragraphs after all sectioning heads to be %indented, we can say \setupheads[indentnext=yes] %If we want paragraphs after formulas to be indented only if %we leave a blank space after them, we can say \setupformulas[indentnext=auto] %\setupwhitespace[big] %%%%%%%%%%%%% %%content %目录的格式的设置 %%%%%%%%%%%%% \def\ChapterNumber#1{\doiftext{#1}{第\;#1\;章\quad}} \setuplist [chapter] [alternative=a, before={\page[preference]\blank}, after=\blank, style=bold, width=fit, pagestyle=boldslanted, pagenumber=no, numbercommand=\ChapterNumber] \def\PageNumber#1{\color[darkgray]{#1}.} \setuplist [section] [alternative=d, style=small, pagecommand=\PageNumber, pagestyle=\itx] %%%%%%%%%%%%%% %章节的格式的设置 %%%%%%%%%%%%%% \setuphead [chapter] [style=\bfc,header=empty,footer=empty] \setuphead [section] [style=\bfa] \setuphead [title] [style=\bfb,header=empty,foote=empty] \setuphead [subsubject] [style=\bf] %%%%%%%%%%%%% %%bookmark %书签设置 %%%%%%%%%%%%% \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \placebookmarks[chapter,section,subsection][chapter,section,subsection] %%%%%%%%%%%%% %行距 %%%%%%%%%%%%% \setupinterlinespace[line=1.6\bodyfontsize] %%%%%%%%%%%%% %个人设置 %%%%%%%%%%%%% \def\waveline{$\sim$} \def\Tg{T$_g$} \def\Tf{T$_f$} \def\Tm{T$_m$} \def\em#1|{\color[red]{#1}} \def\point#1|{\item #1 \par} %#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@&%#@& \starttext
原文地址:https://www.cnblogs.com/fengidri/p/2757530.html