ctex怎么恢复默认布局
时间: 2023-06-08 22:07:21 浏览: 254
恢复默认布局,可以通过以下几种方式实现:
1. 使用ctexart文档类,这种情况下默认布局已经是标准的中文文章布局,可以不进行任何操作。
2. 对于使用了ctexbook或ctexrep文档类的情况,可以在文档开头加入以下代码:
```
\usepackage{ctex}
\ctexset{
chapter = {
format = \zihao{-1} \bfseries\sffamily,
beforeskip = {10pt},
afterskip = {20pt},
fixskip = true,
},
section = {
format = \zihao{3} \bfseries\sffamily,
beforeskip = {5pt},
afterskip = {5pt},
fixskip = true,
},
subsection = {
format = \zihao{-3} \bfseries\sffamily,
beforeskip = {5pt},
afterskip = {5pt},
fixskip = true,
},
subsubsection = {
format = \zihao{-4} \bfseries\sffamily,
beforeskip = {5pt},
afterskip = {5pt},
fixskip = true,
},
}
```
3. 对于已经手工修改过页边距、行间距等参数的情况,可以使用以下代码恢复默认布局:
```
\usepackage{geometry}
\geometry{a4paper,scale=0.8}
\linespread{1.3}
```
阅读全文