制表符中自动换行

制表符中自动换行

在此处输入图片描述

在表格单元格中插入内容时,有没有简单直接的解决办法,让内容自动换行,就像上面的段落一样?也就是说,我希望“cccc cc cc....”部分位于红框显示的位置。

例如,第一行末尾的“migrants”将自动分解为“mi-”和“grants”以适应此页面的自然宽度。

(代码)

\documentclass[12pt]{article}

\usepackage{tabularx}

\begin{document}

Kington Published 1 minute ago Europe is braced for three million migrants streaming out of Syria to flee a devastating new air and ground offensive by Russia and the Assad regime. Russian warships fired 26 cruise missiles yesterday from the Caspian Sea into Syria as President Assad’s ground troops launched an all-out assault on the rebels. The cruise missiles, the first to be used by Russia in a war, travelled 900 miles over Iranian and Iraqi airspace before hitting their targets in northern Syria. Both Brussels and Turkey have warned that President Putin’s deepening involvement in the four-and-a-half-year Syrian conflict will provoke a new exodus of refugees.\\

\begin{tabular}{ll}

aa & aaaaaaaaaaaaaaa\\
bb & bbbbbb bbbbbb bbbbbbbbbbb bbbbbbbbbbbbb bbbbbbbbbbbbbbb cccc cc cc cccc cc cc cc cc cccc ccccc ccc cccc\\

\end{tabular}


\end{document}

答案1

您已加载 tabularx 但尚未使用它:

在此处输入图片描述

\documentclass[12pt]{article}

\usepackage{tabularx}

\begin{document}

Kington Published 1 minute ago Europe is braced for three million migrants streaming out of Syria to flee a devastating new air and ground offensive by Russia and the Assad regime. Russian warships fired 26 cruise missiles yesterday from the Caspian Sea into Syria as President Assad’s ground troops launched an all-out assault on the rebels. The cruise missiles, the first to be used by Russia in a war, travelled 900 miles over Iranian and Iraqi airspace before hitting their targets in northern Syria. Both Brussels and Turkey have warned that President Putin’s deepening involvement in the four-and-a-half-year Syrian conflict will provoke a new exodus of refugees.\\

\begin{center}
\begin{tabularx}{\textwidth}{@{}lX@{}}

aa & aaaaaaaaaaaaaaa\\
bb & bbbbbb bbbbbb bbbbbbbbbbb bbbbbbbbbbbbb bbbbbbbbbbbbbbb cccc cc cc cccc cc cc cc cc cccc ccccc ccc cccc\\

\end{tabularx}
\end{center}

\end{document}

相关内容