简体   繁体   English

乳胶中文本的垂直对齐

[英]vertical alignment of text in latex

I am trying to create a title page and I want to include some list like this:我正在尝试创建一个标题页,我想包括一些这样的列表:

\begin{document}
 \centering
    {\Large \textbf{Entity 1:} \quad Some entity 1 \protect\\ 
    \textbf{Entity 2:} \quad Some entity 2 \protect\\ 
    \textbf{Slightly longer entity:} \quad Some slightly longer entity \protect\\
    \textbf{The last entity:} \quad Some entity 3 \par}
\end{document}

However this produces entire lines center-aligned .然而,这会产生整条线 center-aligned Whereas I aim to make it look like titles right-aligned and text left-aligned .而我的目标是让它看起来像titles right-aligned 和 text left-aligned I could not figure out how to do it.我不知道该怎么做。 Any help is appreciated.任何帮助表示赞赏。

Use a tabular :使用tabular

\documentclass{article}

\begin{document}
 \centering\Large
 \begin{tabular}{rl}
    \textbf{Entity 1:} & Some entity 1\\
    \textbf{Entity 2:} & Some entity 2 \\
    \textbf{Slightly longer entity:} & Some slightly longer entity\\
    \textbf{The last entity:} & Some entity 3\\
 \end{tabular}
 
\end{document}

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM