多列中的文本未对齐

多列中的文本未对齐

我试图将页面的一部分分成三列,每列都有一个居中的标题和一个不同长度的描述。问题是描述底部的开头未对齐,我使用了 multicols 包,并在每列之间使用了 \columnbreak。我应该更改什么?

\begin{multicols}{3}
\begin{center}\textbf{Company 1}\end{center}
The company is based in XX, XX, the core business bla bla bla blaaaa bla bla. It is a public owned company where XXX XXX holds 100\% of the shares. Therefore its development is valuable for the municipality's growth strategy of the East area.
\columnbreak

\begin{center}\textbf{Company 2}\end{center}
The company is based in XXX, XXX, where produces bla bla blaaaaa blaaa, being one of the major worldwide producers of the latter one. It is part of the XXX Holding S.p.A. since XX. It directly provides XXX jobs, not to mention the indirect jobs and contractors \citep{blablabla}.
\columnbreak

\begin{center}\textbf{Material}\end{center}
The material exchanges in this synergy is the XXX XXX coming from the bla bla blaaaa blaaa. It is necessary in order to allow bla bla to be able to blaaaaa it, without this action, the blaaa would lose blaaa and the blaaaaa would get blaaa in it. It is reused in the xxx xxxx as raw material. Before this partnership the blaaa blaaaaa was collected and bla blaaa blaaa blaaaa.
\columnbreak

\end{multicols}

答案1

您可以使用paracol而不是multicol;该包的目的正是在独立的列中排版文本。

\documentclass{article}
\usepackage[a4paper]{geometry} % more generous line width
\usepackage{microtype}
\usepackage{paracol}

\usepackage{lipsum}

\begin{document}

\lipsum[3]

\begin{paracol}{3}
\sloppy
\begin{center}\textbf{Company 1}\end{center}
The company is based in XX, XX, the core business bla bla bla 
blaaaa bla bla. It is a public owned company where XXX XXX 
holds 100\% of the shares. Therefore its development is valuable 
for the municipality's growth strategy of the East area.
\switchcolumn

\begin{center}\textbf{Company 2}\end{center}
The company is based in XXX, XXX, where produces bla bla blaaaaa 
blaaa, being one of the major worldwide producers of the latter 
one. It is part of the XXX Holding S.p.A. since XX. It directly 
provides XXX jobs, not to mention the indirect jobs and contractors.
\switchcolumn

\begin{center}\textbf{Material}\end{center}
The material exchanges in this synergy is the XXX XXX coming from 
the bla bla blaaaa blaaa. It is necessary in order to allow bla 
bla to be able to blaaaaa it, without this action, the blaaa would 
lose blaaa and the blaaaaa would get blaaa in it. It is reused in 
the xxx xxxx as raw material. Before this partnership the blaaa 
blaaaaa was collected and bla blaaa blaaa blaaaa.
\end{paracol}

\lipsum[3]

\end{document}

在此处输入图片描述

答案2

最好包含完整的示例代码,从\documentclass{whatever}\end{document},因为您看到的效果可能是由不属于代码片段的包、定义等引起的。但是,我认为您需要\raggedcolumns

\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{3}
\raggedcolumns
\begin{center}\textbf{Company 1}\end{center}
The company is based in XX, XX, the core business bla bla bla blaaaa bla bla. It is a public owned company where XXX
 XXX holds 100\% of the shares. Therefore its development is valuable for the municipality's growth strategy of the
East area.
\columnbreak

\begin{center}\textbf{Company 2}\end{center}
The company is based in XXX, XXX, where produces bla bla blaaaaa blaaa, being one of the major worldwide producers of the latter one. It is part of the XXX Holding S.p.A. since XX. It directly provides XXX jobs, not to mention the indirect jobs and contractors \cite{blablabla}.
\columnbreak

\begin{center}\textbf{Material}\end{center}
The material exchanges in this synergy is the XXX XXX coming from the bla bla blaaaa blaaa. It is necessary in order to allow bla bla to be able to blaaaaa it, without this action, the blaaa would lose blaaa and the blaaaaa would get blaaa in it. It is reused in the xxx xxxx as raw material. Before this partnership the blaaa blaaaaa was collected and bla blaaa blaaa blaaaa.
\columnbreak

\end{multicols}
\end{document}

拉格德科尔斯

答案3

在这里使用multicols环境可能有点滥用。我建议使用三个并排的minipage环境。

在此处输入图片描述

\documentclass{article}

\usepackage{natbib}
\raggedbottom
\begin{document}
\noindent
\begin{minipage}[t]{0.31\textwidth}
\begin{center}\textbf{Company 1}\end{center}
The company is based in XX, XX, the core business bla bla bla blaaaa bla bla. It is a public owned company where XXX XXX holds 100\% of the shares. Therefore its development is valuable for the municipality's growth strategy of the East area.
\end{minipage}%
\hspace{\fill}
\begin{minipage}[t]{0.31\textwidth}
\begin{center}\textbf{Company 2}\end{center}
The company is based in XXX, XXX, where produces bla bla blaaaaa blaaa, being one of the major worldwide producers of the latter one. It is part of the XXX Holding S.p.A. since XX. It directly provides XXX jobs, not to mention the indirect jobs and contractors \citep{blablabla}.
\end{minipage}%
\hspace{\fill}
\begin{minipage}[t]{0.31\textwidth}
\begin{center}\textbf{Material}\end{center}
The material exchanges in this synergy is the XXX XXX coming from the bla bla blaaaa blaaa. It is necessary in order to allow bla bla to be able to blaaaaa it, without this action, the blaaa would lose blaaa and the blaaaaa would get blaaa in it. It is reused in the xxx xxxx as raw material. Before this partnership the blaaa blaaaaa was collected and bla blaaa blaaa blaaaa.
\end{minipage}
\end{document}

答案4

我建议使用tabularx– 更确切地说,它增加了tabularxltablex的功能。longtable

\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{natbib}
\usepackage{ltablex} %brings the functionalities if longtable to tabularx
\usepackage{makecell}
\raggedbottom

\begin{document}

{\setlength{\tabcolsep}{0.5\columnsep}
\renewcommand{\theadfont}{\normalsize\bfseries}
\begin{tabularx}{\textwidth}{@{}XXX@{}}
   \thead{Company 1}
 & \thead{Company 2}
 & \thead{Material}
 \medskip
 \endhead
The company is based in XX, XX, the core business bla bla bla blaaaa bla bla. It is a public owned company where XXX XXX holds 100\% of the shares. Therefore its development is valuable for the municipality's growth strategy of the East area.
&
The company is based in XXX, XXX, where produces bla bla blaaaaa blaaa, being one of the major worldwide producers of the latter one. It is part of the XXX Holding S.p.A. since XX. It directly provides XXX jobs, not to mention the indirect jobs and contractors \citep{blablabla}.
&
The material exchanges in this synergy is the XXX XXX coming from the bla bla blaaaa blaaa. It is necessary in order to allow bla bla to be able to blaaaaa it, without this action, the blaaa would lose blaaa and the blaaaaa would get blaaa in it. It is reused in the xxx xxxx as raw material. Before this partnership the blaaa blaaaaa was collected and bla blaaa blaaa blaaaa.
\end{tabularx}
}

\end{document} 

在此处输入图片描述

相关内容