
###### YYYY 研究
標題--------:關於bla bla。
揚聲器 - - : ………………………………………。
房間------:縮放
我們如何用乳膠製作這樣的東西? (我想在 : 之前省略字串“----”,但 : 要對齊)
答案1
您可以使用盒子:
\documentclass{article}
\newlength{\presentationtitles}
\setlength{\presentationtitles}{4em}
\begin{document}
\noindent\makebox[\presentationtitles][l]{Title}: On the blah blah
\noindent\makebox[\presentationtitles][l]{Speaker}: Random Randofsky
\noindent\makebox[\presentationtitles][l]{Room}: Zoom
\end{document}
使用以下方法可以獲得類似的結果tabular
:
\documentclass{article}
\begin{document}
\noindent
\begin{tabular}{@{} l @{ : } l }
Title & On the blah blah \\
Speaker & Random Randofsky \\
Room & Zoom
\end{tabular}
\end{document}