TeX - LaTeX Asked by user12037364 on August 4, 2020
Please take a look at the following code and its output: The use of switchcolumn
before itemize
widens the column width (compared to the itemize1 sentence).
For some reasons, I need to keep on using this syntax and want to eliminate this difference. Is there any solution?
documentclass{article}
RequirePackage{paracol}
begin{document}
begin{paracol}{2}
begin{enumerate}
item {}
enumerate sentence
begin{itemize}
item {}
subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1
end{itemize}
switchcolumn
interfering text
switchcolumn
begin{itemize}
item {}
subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2
end{itemize}
end{enumerate}
end{paracol}
end{document}
Paracol keeps duplicates of counters, but not lengths. This is a Q&D solution. There are LOTS of lengths used by lists (leftmargin
, totalleftmargin
, rightmargin
) which might need duplkicate values.
documentclass{article}
RequirePackage{paracol}
newlength{savewidth}
begin{document}
begin{paracol}{2}
begin{enumerate}
item {}
enumerate sentence
begin{itemize}
item {}
subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1
end{itemize}
savewidth=linewidth
switchcolumn
interfering text
switchcolumn
linewidth=savewidth
begin{itemize}
item {}
subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2
end{itemize}
end{enumerate}
end{paracol}
end{document}
Answered by John Kormylo on August 4, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP