![在標題中取得新行](https://rvso.com/image/309855/%E5%9C%A8%E6%A8%99%E9%A1%8C%E4%B8%AD%E5%8F%96%E5%BE%97%E6%96%B0%E8%A1%8C.png)
如何使該文件的標題分解並居中對齊? \ 不起作用。
\documentclass[25pt, a0paper, portrait, margin=10mm, innermargin=15mm,
blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]{tikzposter}
\usetheme{Simple}
\title{This is a very long title that I would like to break up and center-justify}
\begin{document}
\maketitle
\end{document}
答案1
用一個\parbox
\documentclass[25pt, a0paper, portrait, margin=10mm, innermargin=15mm,
blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]{tikzposter}
\usetheme{Simple}
\title{\parbox{\linewidth}{\centering This is a very long title that I would like to break up and center-justify}}
\begin{document}
\maketitle
\end{document}
答案2
打破界限,\\
就足夠了。為了很好地打破它,您可能需要指定一些垂直空間,\\[1ex]
。為了使其居中對齊,我建議不要修改命令\title
,而是找到一個更適合您需求的主題,或者直接放棄在環境\maketitle
中創建自己的佈局center
。
答案3
您可以使用 \linebreak 指令。您可以選擇新增一個數字 (0-4),即~\linebreak[3]。數字越大,命令越堅決。