
Estou tentando criar um texto "paralelo" de natureza temporal. Por exemplo, o segundo autor escreveu o início, o primeiro autor escreveu a segunda seção, o quarto autor escreveu a terceira seção, o terceiro autor escreveu a quarta seção, o quarto autor escreveu a quinta seção, o primeiro autor escreveu a sexta seção, etc... O texto não deve estar alinhado, mas deve permitir que o leitor se mova entre essas seções em ordem. Examinei a documentação do paracol e pesquisei o problema no Google. Peço desculpas se especifiquei incorretamente o problema ou ignorei um recurso. Eu incluí um 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}
Responder1
Você pode fazer isso comparacol
e seu código está muito próximo do jeito que está.
Se você observar a compilação, os parágrafos serão escalonados em colunas separadas, mas basta pular uma coluna para a direita, em vez de ir para a coluna especificada, e os números das colunas especificadas serão, na verdade, digitados. Isso ocorre porque o uso pretendido é \switchcolumn[i]*
(o que é indiscutivelmente incomum para a sintaxe LaTeX).
Além disso, \switchcolumn
precisa vir antes e não depois (o texto é composto imediatamente, portanto composto de acordo com a \switchcolumn
diretiva anterior). Depois disso, o texto precisa vir na ordem vertical/temporal correta ou ser inserido (junto com algum argumento para indicar a ordem) em algumas macros que podem armazenar e classificar os parágrafos conforme necessário. O primeiro é naturalmente muito mais fácil.
\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}