如何在knitr RSweave文件的标题中手动添加换行符?

问题描述 投票:3回答:2

这是我所拥有的:

\documentclass{article}

\begin{document}

\title{This is the document title}

\maketitle

\end{document}

我想要这样的东西:

\documentclass{article}

\begin{document}

\title{This is 
the document title}

\maketitle

\end{document}

如何在文档标题中手动添加换行符?

latex knitr sweave
2个回答
3
投票

只需添加一个换行符:

\documentclass{article}

\begin{document}

\title{This is\\ 
the document title}

\maketitle

\end{document}

0
投票

\\不适用于\ title。请参阅以下带有说明的链接。

https://tex.stackexchange.com/questions/164877/line-break-inside-title

© www.soinside.com 2019 - 2024. All rights reserved.