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

标签 latex knitr sweave

这是我所拥有的:

\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}

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

最佳答案

只需添加一个换行符:

\documentclass{article}

\begin{document}

\title{This is\\ 
the document title}

\maketitle

\end{document}

关于latex - 如何在 knitr Sweave 文件的标题中手动添加换行符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16138625/

相关文章:

r - RStudio 中 R markdown 文档中的自动编号方程

latex - Gadfly 是否支持在绘图标题和标签中使用 LaTeX?

r - 如何使用 R 设置条件 LaTeX 代码?

R + ggplot + pdf 设备 + LaTeX : is it possible to embed fonts one time

R Markdown : plots within a loop going out of margin when typesetting to PDF

r - 使用 Sweave 和 R 进行单尾测试

text - LaTeX 调整目录项中的空间

latex - 如何将文档从Latex转换为Microsoft Word 2003?

r - 你如何改变xtable markdown中某些单元格的颜色?

r - 注释掉 Rmd 文件的一些 block /部分