|
1 | 1 | --- |
2 | 2 | layout: "lesson" |
3 | | -lang: "en" |
4 | | -title: "More on: Formatting: fonts and spacing" |
5 | | -description: "This lesson shows how to suppress the paragraph indentation for a single paragraph." |
6 | | -toc-anchor-text: "More on: Formatting: fonts and spacing" |
| 3 | +lang: "zh" |
| 4 | +title: "更多内容:格式:字体和间距" |
| 5 | +description: "本课展示了如何抑制单个段落的缩进。" |
| 6 | +toc-anchor-text: "更多内容:格式:字体和间距" |
7 | 7 | --- |
8 | 8 |
|
9 | | -## Suppressing the indent for one paragraph |
| 9 | +## 抑制单个段落的缩进 |
10 | 10 |
|
11 | | - |
12 | | -If you want to suppress indentation for a single paragraph, you can use |
13 | | -`\noindent`. |
14 | | -This should be _very_ rarely used; most of the time, you should let LaTeX |
15 | | -handle this automatically. |
| 11 | +如果您想抑制单个段落的缩进,可以使用`\noindent`命令。 |
| 12 | +这种用法应该 _非常_ 少见;大多数时候,您应该让LaTeX自动处理这个问题。 |
16 | 13 |
|
17 | 14 | ```latex |
18 | | -\documentclass{article} |
19 | | -\usepackage[T1]{fontenc} |
| 15 | +% !TEX program=xelatex |
| 16 | +
|
| 17 | +% 临时patch,否则使用中文标点,TexLive.net会编译错误 |
| 18 | +\ExplSyntaxOn |
| 19 | +\clist_map_inline:nn { fp, int, dim, skip, muskip } |
| 20 | + { |
| 21 | + \cs_generate_variant:cn { #1_set:Nn } { NV } |
| 22 | + \cs_generate_variant:cn { #1_gset:Nn } { NV } |
| 23 | + } |
| 24 | +\ExplSyntaxOff |
| 25 | +
|
| 26 | +\documentclass[UTF8]{ctexart} |
| 27 | +\usepackage{xeCJK} |
20 | 28 | \begin{document} |
21 | | -One small paragraph, which we have filled out a little to make sure you can |
22 | | -see the effect here! |
| 29 | +一个小段落,我们稍微填充一些内容以确保您能在这里看到效果! |
23 | 30 |
|
24 | | -One small paragraph, which we have filled out a little to make sure you can |
25 | | -see the effect here! |
| 31 | +一个小段落,我们稍微填充一些内容以确保您能在这里看到效果! |
26 | 32 |
|
27 | | -\noindent One small paragraph, which we have filled out a little to make sure |
28 | | -you can see the effect here! |
| 33 | +\noindent 一个小段落,我们稍微填充一些内容以确保您能在这里看到效果! |
29 | 34 | \end{document} |
30 | 35 | ``` |
0 commit comments