ヘッダー内のテキストのフォームのようなLatex配置

ヘッダー内のテキストのフォームのようなLatex配置

###### YYYY での調査

タイトル--------: 何とか何とか。

発言者----: ……………………………………….

部屋------: ズーム

このようなものを LaTeX で作成するにはどうすればよいでしょうか? (: の前の文字列 "----" を省略したいのですが、: は揃える必要があります)

答え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}

関連情報