\begin{tabular}{p{3cm} p{12cm}}
\textbf{Socialism in One Country}:& Bolshevik foreign policy transformed from expansion and advancement to internal consolidation and defence, from which emerged Stalin's Socialism in One Country\\
\textbf{Permanent Revolution}: & Foreign policy in inter-war based on survival of revolution, thus permanent world revolution. But this was not likely to happen\\
\textbf{Comintern}:& Created a network of \textbf{spies}, attempting to influence international labor organizations. Supported unsuccessful revolts in Hungary and Germany. Active in Britain and America too, and the Communist Party of the USA was created.\\
\textbf{Gregory Chicherin}:& First \textbf{Commissar for Foreign Affairs}. After Russo-Polish War, Treaty of Riga, he equally divided Belarus and Ukraine with Poland, and return Polish treasures. Thus Unpopular, but later established trade arrangements with Britain, France and Italy, who later diplomatically recognized Russia. This was short-lived wegen den Comintern's involvement im Britania. Was successful in Germany with rearmament program.\\
\end{tabular}
是否可以将第一列居中放置在右侧?我想要的是\begin{tabular}{r l}
,但我还想要\begin{tabular}{p{3cm} p{12cm}}
。这可能吗?
编辑 16/9/21是否也可以让表格跨越多个页面,这可以通过 来实现\begin{longtable}
。那么有没有一种解决方案可以涵盖这三个功能呢?
答案1
像这样吗?
\documentclass{article}
\usepackage[a4paper,margin=1in]{geometry} % set page parameters suitably
\usepackage{tabularx} % for 'tabularx' environment and 'X' column type
\begin{document}
\setlength\extrarowheight{3pt}
\noindent
\begin{tabularx}{\textwidth}{@{} >{\bfseries\raggedleft}p{2.75cm} X @{}}
Socialism in One Country
& Bolshevik foreign policy transformed from expansion and advancement to internal consolidation and defence, from which emerged Stalin's Socialism in One Country\\
Permanent Revolution
& Foreign policy in inter-war based on survival of revolution, thus permanent world revolution. But this was not likely to happen\\
Comintern
& Created a network of \textbf{spies}, attempting to influence international labor organizations. Supported unsuccessful revolts in Hungary and Germany. Active in Britain and America too, and the Communist Party of the USA was created.\\
Gregory Chicherin
& First \textbf{Commissar for Foreign Affairs}. After Russo-Polish War, Treaty of Riga, he equally divided Belarus and Ukraine with Poland, and return Polish treasures. Thus Unpopular, but later established trade arrangements with Britain, France and Italy, who later diplomatically recognized Russia. This was short-lived wegen den Comintern's involvement im Britania. Was successful in Germany with rearmament program.\\
\end{tabularx}
\end{document}
答案2
一个简单的解决方案与tblr
环境tabularray
包裹:
\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray}
\begin{document}
\noindent
\begin{tblr}{Q[r,3cm]Q[l,12cm]}
\textbf{Socialism in One Country}:& Bolshevik foreign policy transformed from expansion and advancement to internal consolidation and defence, from which emerged Stalin's Socialism in One Country\\
\textbf{Permanent Revolution}: & Foreign policy in inter-war based on survival of revolution, thus permanent world revolution. But this was not likely to happen\\
\textbf{Comintern}:& Created a network of \textbf{spies}, attempting to influence international labor organizations. Supported unsuccessful revolts in Hungary and Germany. Active in Britain and America too, and the Communist Party of the USA was created.\\
\textbf{Gregory Chicherin}:& First \textbf{Commissar for Foreign Affairs}. After Russo-Polish War, Treaty of Riga, he equally divided Belarus and Ukraine with Poland, and return Polish treasures. Thus Unpopular, but later established trade arrangements with Britain, France and Italy, who later diplomatically recognized Russia. This was short-lived wegen den Comintern's involvement im Britania. Was successful in Germany with rearmament program.\\
\end{tblr}
\end{document}
答案3
@LJR 答案的一个小变体:
- 第一列的文本为粗体
- 第二列使用
X
列类型,其中的文本是两端对齐的(X[j]
) - 表格恰好适合文本区域
\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray}
%--------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\noindent
\begin{tblr}{@{} Q[r,3cm,font=\bfseries]X[j] @{}}
Socialism in One Country:
& Bolshevik foreign policy transformed from expansion and advancement to internal consolidation and defence, from which emerged Stalin's Socialism in One Country\\
Permanent Revolution:
& Foreign policy in inter-war based on survival of revolution, thus permanent world revolution. But this was not likely to happen\\
Comintern:
& Created a network of \textbf{spies}, attempting to influence international labor organizations. Supported unsuccessful revolts in Hungary and Germany. Active in Britain and America too, and the Communist Party of the USA was created.\\
Gregory Chicherin:
& First \textbf{Commissar for Foreign Affairs}. After Russo-Polish War, Treaty of Riga, he equally divided Belarus and Ukraine with Poland, and return Polish treasures. Thus Unpopular, but later established trade arrangements with Britain, France and Italy, who later diplomatically recognized Russia. This was short-lived wegen den Comintern's involvement im Britannia. Was successful in Germany with rearmament program.
\end{tblr}
\end{document}
(红线表示文本区域边框)
笔记:在MWE中被视为tabularray
2021N版本。
答案4
对于我的问题的未来读者来说,为了允许使用长表格,这个包xltabular
对我来说很好用。只需替换tabularx
Mico 的答案中的所有内容,xltabular
我就可以拥有所有三个功能:左侧不规则、固定列宽和长表格