
私は、時間的な性質を持つ「並列」テキストを作成しようとしています。たとえば、2 番目の著者が冒頭を書き、1 番目の著者が 2 番目のセクションを書き、4 番目の著者が 3 番目のセクションを書き、3 番目の著者が 4 番目のセクションを書き、4 番目の著者が 5 番目のセクションを書き、1 番目の著者が 6 番目のセクションを書き、などです。テキストは整列している必要はなく、読者がこれらのセクション間を順番に移動できるようにする必要があります。私はパラコールのドキュメントを調べ、問題を Google で検索しました。問題を誤って指定したり、リソースを見落としたりした場合はお詫びします。MWE を含めました。TIA。
\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{paracol}
\begin{document}
\centering Introduction \\
\raggedright
This is an introductory paragraph. \\
The document should be able to ``bounce'' back and forth between columns. For example, columns 2, 1, 4, 3, 2, 1, 4, 3, \dots
\begin{paracol}{4}
\textbf{This is the second paragraph and should align with the bottom of the first paragraph (second column).}
\switchcolumn*[1]
\textbf{This is the first paragraph.}
\blindtext
\switchcolumn*[0]
\textbf{This is the fourth paragraph and should align with the bottom of the third paragraph (fourth column).}
\blindtext
\switchcolumn*[3]
\textbf{This is the third paragraph and should align with the bottom of the second paragraph (first column).}
\blindtext
\switchcolumn*[2]
\end{paracol}
\end{document}
答え1
これは次のように行うことができますparacol
そしてあなたのコードはそのままでも非常に近いです。
コンパイル結果を見ると、段落は別々の列に交互に配置されていますが、指定された列ではなく、1 列右にジャンプするだけで、指定された列番号が実際にタイプセットされています。これは、意図された使用法であるためです\switchcolumn[i]*
(これは、LaTeX 構文ではおそらく珍しいことです)。
それに加えて、\switchcolumn
後ではなく前に来る必要があります (テキストはすぐにタイプセットされるため、前の\switchcolumn
指示に従ってタイプセットされます)。その後、テキストは正しい垂直/時間順序で来るか、必要に応じて段落を保存および並べ替えることができるマクロに (順序を示す引数とともに) 入力される必要があります。前者の方が当然はるかに簡単です。
\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{paracol}
\begin{document}
This is an introductory paragraph.
The document should be able to ``bounce'' back and forth between columns. For example, columns 2, 1, 4, 3, 2, 1, 4, 3, \dots
\begin{paracol}{4}
\switchcolumn[1]*
\textbf{This is the first paragraph.}
\blindtext
\switchcolumn[0]*
\textbf{This is the second paragraph and should align with the bottom of the first paragraph (second column).}
\switchcolumn[3]*
\textbf{This is the third paragraph and should align with the bottom of the second paragraph (first column).}
\blindtext
\switchcolumn[2]*
\textbf{This is the fourth paragraph and should align with the bottom of the third paragraph (fourth column).}
\blindtext
\end{paracol}
\end{document}