latex怎么取消新页面首段缩进
时间: 2023-11-25 16:23:47 浏览: 51
可以使用\setlength{\parindent}{0pt}命令取消段首缩进。具体的代码如下:
\documentclass{article}
\setlength{\parindent}{0pt}
\begin{document}
这是一个段落的开头。
这是另一个段落的开头。
\end{document}
注意,这个命令只是针对新段落的首行有效,如果要取消所有缩进,可以使用全局的noindent命令:
\documentclass{article}
\setlength{\parindent}{0pt}
\begin{document}
这是一个段落的开头。
这是另一个段落的开头。
\noindent 这个段落将没有缩进。
\end{document}
相关问题
latex如何在每段的段首缩进
在 LaTeX 中,通常可以使用 \parindent 命令来设置段落的缩进。默认情况下,该命令的值为 0pt,也就是不进行缩进。如果要在每段的段首进行缩进,可以在文档的导言部分使用 \setlength 命令来设置缩进的值,例如:
```
\documentclass{article}
\setlength{\parindent}{2em} % 设置缩进为两个字符的宽度
\begin{document}
这是一段文字,会进行缩进。
这是另一段文字,同样会进行缩进。
\end{document}
```
在上面的例子中,我们将缩进设置为 2em 的宽度,即两个字符的宽度。这样,在每个段落的开头都会进行相应的缩进。
latex取消脚注首行缩进
要取消LaTeX中脚注的首行缩进,可以使用`\noindent`命令取消首行缩进,然后使用`\hangafter=1`和`\setlength{\hangindent}{2em}`命令设置从第一行之后开始悬挂缩进,其中`2em`是悬挂缩进的量。具体实现方法如下:
```latex
\documentclass{article}
\usepackage{lipsum} % 用于生成示例文本
\begin{document}
这是一个示例文本\footnote{\noindent \hangafter=1 \setlength{\hangindent}{2em} \lipsum[1]}。
\end{document}
```
上述代码中,`\lipsum`用于生成示例文本,`\noindent`命令取消首行缩进,`\hangafter=1`和`\setlength{\hangindent}{2em}`命令设置从第一行之后开始悬挂缩进,`2em`是悬挂缩进的量。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)