section{ text } %分章节 subsection{ text } %子标题 par %分段 \ %分行
原文链接:
documentclass{ctexart}%ctexbook,ctexrep
title{zihao{3} LaTeX{}章节标题设置}
author{zihao{-4} WSS}
date{zihao{-4} today}
pagestyle{plain}%页眉为空,页脚为页码
%=================设置章节标题格式==================
ctexset{section={%format用于设置章节标题全局格式,作用域为标题和编号%字号为小三,字体为黑体,左对齐%+号表示在原有格式下附加格式命令format+ = zihao{-3} heiti raggedright,%name用于设置章节编号前后的词语%前、后词语用英文状态下,分开%如果没有前或后词语可以不填name = {,、},%number用于设置章节编号数字输出格式%输出section编号为中文number = chinese{section},%beforeskip用于设置章节标题前的垂直间距%ex为当前字号下字母x的高度%基础高度为1.0ex,可以伸展到1.2ex,也可以收缩到0.8exbeforeskip = 1.0ex plus 0.2ex minus .2ex,%afterskip用于设置章节标题后的垂直间距afterskip = 1.0ex plus 0.2ex minus .2ex,%aftername用于控制编号和标题之间的格式%hspace用于增加水平间距aftername = hspace{0pt}},subsection={format+ = zihao{4} kaishu raggedright,%仅输出subsection编号且为中文number = chinese{subsection},name = {(,)},beforeskip = 1.0ex plus 0.2ex minus .2ex,afterskip = 1.0ex plus 0.2ex minus .2ex,aftername = hspace{0pt}},subsubsection={%设置对齐方式为居中对齐format+ = zihao{-4} fangsong centering,%仅输出subsubsection编号,格式为阿拉伯数字,打字机字体number = ttfamilyarabic{subsubsection},name = {,.},beforeskip = 1.0ex plus 0.2ex minus .2ex,afterskip = 1.0ex plus 0.2ex minus .2ex,aftername = hspace{0pt}}
}begin{document}maketitle%测试手动设置章节标题格式section{引言}centering 你好,LaTeX{}!section{实验方法}section{实验结果}subsection{数据}subsection{图表}subsubsection{实验条件}subsubsection{实验过程}subsection{结果分析}section{结论}section{致谢}
end{document}
tableofcontents %正文区生成目录
本文发布于:2024-01-28 16:42:50,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17064313758815.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |