My document is mainly made up of justified text, but with sections made of two column & left flushed text (actually verses). Below is a MWE.
As in Flush a left-flushed box right, I want the text of the second column to be:
- left flushed, and
- that the longest line of this secund colum is also left-flushed and right-aligned ?
Here, a shema, where |
are the limits of text area:
|Some normally justi-|
|fied text. |
| |
|Foo Fus |
|Bar Roooh|<- the right end of the longest line matches the text-area limit
|Baz Da! |
As I want the solution to be generic, and as I don't necessary know the number of lines of the "two-columned" text (there could be a pagebreak
in it), I found the solution suggested in the thread (and in its duplicate) made of a tabular
+\hfill
not convinient.
Question: Is there a simple way to stretch the \columnsep
dimension used in the multicols
environment, as an \hfill
would do?
\documentclass{scrartcl}
\usepackage{multicol}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{multicols}{2}
\noindent
Foo foo foo\newline
Bar, barbar\newline
Bazbazbaz baz babaz
\noindent
Fusss fus,\newline
Roh\newline
Daaaa !
\end{multicols}
\noindent\lipsum[2]
\end{document}
varwidth
package might help.