如何获取“两列”段落标题?

如何获取“两列”段落标题?

我是 LaTeX 新手,希望得到一些指导。

我怎样才能实现这样的段落标题?

关联的段落不会一直向左延伸,而是好像标题和段落位于不同的列中。

答案1

正如 LaRiFaRi 所建议的,尝试使用表格而不是段落来实现此目的。

以下代码应该为您提供所需的结果:

\documentclass{article}

\begin{document}

\renewcommand{\arraystretch}{1.6} % for the extra space between the rows

\begin{table}
\begin{tabular}{p{3cm} p{10cm}}

\textbf{Responsibilities \& Goals} & Head of Recruitment; 50+ employees/year to 6 different business divisions. Sales, ongoing IT projects, development of the IT business unit.\\
\textbf{Tasks Performed} & Established a new recruitment strategy. Managed and supervised several projects. Trained and re-created the IT business unit.\\
\textbf{Achievements} & Reversed trend of decreased amount of IT-recruits. Work by the new IT-team accounted for more than 50 \% of the company's revenue. Each team member generated 3 times the revenue of other employees.\\

\end{tabular}
\end{table}
\end{document}

p{3cm}当然,您可以通过为和定义不同的参数来改变表格的宽度p{10cm}

在此处输入图片描述

根据LaRiFari和Alan的建议,我将代码调整如下:

\documentclass{article}
\usepackage{longtable}
\usepackage{lipsum}


\begin{document}

\lipsum

\begin{longtable}[H]{p{0.25\textwidth} p{0.7\textwidth}}

\bfseries Responsibilities \& Goals & Head of Recruitment; 50+ employees/year to 6 different business divisions. Sales, ongoing IT projects, development of the IT business unit.\\[0.2cm]
\bfseries Tasks Performed & Established a new recruitment strategy. Managed and supervised several projects. Trained and re-created the IT business unit.\\[0.2cm]
\bfseries Achievements & Reversed trend of decreased amount of IT-recruits. Work by the new IT-team accounted for more than 50 \% of the company's revenue. Each team member generated 3 times the revenue of other employees.\\[0.2cm]

\end{longtable}
\end{document}

这为您提供了与文本宽度紧密对齐的输出,而不会弄乱文档中的其他表格。longtable 允许将表格分页到多个页面。

在此处输入图片描述

相关内容