latex中\begin{center}{\vskip#1pt\huge{\bf\zihao{2}#2}}\vskip#3pt{\zihao{3}#4}\vskip#5pt{\small\zihao{-5}#6}\end{center}是啥意思
时间: 2023-10-28 09:53:02 浏览: 49
这是一个用 LaTeX 编写的居中对齐的标题格式命令,具体含义如下:
- \begin{center} 和 \end{center} 是 LaTeX 中的居中对齐环境;
- {\vskip#1pt\huge{\bf\zihao{2}#2}} 表示设置标题的字体大小为二号加粗(\bf),并且垂直方向上向下移动 #1pt 的距离;
- \vskip#3pt 表示垂直方向上向下移动 #3pt 的距离;
- {\zihao{3}#4} 表示设置副标题的字体大小为三号,并输出副标题的内容;
- \vskip#5pt 表示垂直方向上向下移动 #5pt 的距离;
- {\small\zihao{-5}#6} 表示设置副标题下方内容的字体大小为小五号,并输出该内容。
其中,\zihao 是 ctex 宏包提供的字号命令,用于设置中文字符的字号。
相关问题
latex中\begin{center}{\vskip#1pt{\bf\large#2}}\vskip#3pt#4\vskip#5pt{\small#6}\end{center}是什么意思
这是一个 LaTeX 的代码段,用于生成一个居中的标题和一段正文内容,下面是每个参数的含义:
- #1: 表示标题上方的垂直距离(单位为 pt)
- #2: 表示标题的文本内容,加粗且字号为 large
- #3: 表示标题下方正文上方的垂直距离(单位为 pt)
- #4: 表示正文的文本内容
- #5: 表示正文下方的垂直距离(单位为 pt)
- #6: 表示小字号的文本内容,在正文下方
其中,\vskip 用于插入垂直距离。例如,\vskip10pt 表示插入一个距离为 10pt 的空白行。{\bf\large#2} 表示将标题加粗并设置为 large 字号。{\small#6} 表示将文本设置为小字号。
latex中#怎么输入
在LaTeX中,输入#字符需要使用转义字符\#。所以在LaTeX中输入#的方法是\#。\[1\]\[2\]
#### 引用[.reference_title]
- *1* *3* [Latex 特殊用途字符怎么打出来](https://blog.csdn.net/qq_23947237/article/details/115336996)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [LaTeX中保留字符 # $ % ^ & _ { } \ 的输入方法](https://blog.csdn.net/hnjzsyjyj/article/details/123444341)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)