5

Here's my test case...

\documentclass[english,twocolumn]{article}
\usepackage{parcolumns}
\usepackage{babel}
\usepackage[pangram]{blindtext}
\begin{document}

\begin{parcolumns}{2}
\colchunk[1]{
\tiny
\Blindtext[3][8]
}
\colchunk[2]{
\tiny
\Blindtext[3][8]
}
\end{parcolumns}

\Blindtext[5][8]

\end{document}

Which produces the following...

enter image description here

So my question is, how can I fix the ugly large spacing in the parcolumns environment? It appears to be trying to match the line spacing of the rest of the document and ignoring the change in font size.

4

You can change the spacing between lines for the whole pacolumns environment issuing

\linespread{0.75}\selectfont

just after the environment has started.

Note however that it is not possible to have different spacing for different \colchunks.

MWE:

\documentclass[english,twocolumn]{article}
\usepackage{parcolumns}
\usepackage{babel}
\usepackage[pangram]{blindtext}
\begin{document}

\begin{parcolumns}{2}
\linespread{0.75}\selectfont
\colchunk[1]{
\tiny
\Blindtext[3][8]
}
\colchunk[2]{
\tiny
\Blindtext[3][8]
}
\end{parcolumns}

\Blindtext[5][8]

\end{document} 

Output:

enter image description here

If you want to place more \colchunks with different font sizes, you can issue \colplacechunks. Here is an example:

\documentclass[english,twocolumn]{article}
\usepackage{parcolumns}
\usepackage{babel}
\usepackage[pangram]{blindtext}
\begin{document}

\begin{parcolumns}{2}
\colchunk[1]{
\Blindtext[2]
}
\colchunk[2]{
\Blindtext[2]
}
\colplacechunks
\linespread{0.75}\selectfont
\colchunk[1]{
\tiny
\Blindtext[3][8]
}
\colchunk[2]{
\tiny
\Blindtext[3][8]
}
\end{parcolumns}

\Blindtext[5][8]

\end{document} 

Output:

enter image description here

| improve this answer | |
  • It would be better, I think, to declare \tiny after starting the parcolumns environment, and do away with the \linespread stuff. – jon Feb 5 '14 at 5:40
  • @jon I've tried it, but the result is ugly in that case, too. – karlkoeller Feb 5 '14 at 5:42
  • I see. I think the problem of ugliness is sort of endemic to the whole arrangement. I meant it more with respect to the point about 'ignoring the change in font size'. But I suppose you were thinking more about the 'ugly large spacing'. Regardless, the OP should note that there are two different solutions to the problem. (Not that this requires a separate answer.) – jon Feb 5 '14 at 6:05
  • Thanks karlkoeller, looks a lot better now! I was doing exactly that - attempting to change the font size multiple times within the \colchunk. As a workaround I'll use two parcolumns environments one after the other. It'd be nice if I could stack colchunks within the column. – jozxyqk Feb 6 '14 at 4:49
  • @jozxyqk What do you mean with "stack colchunks within the column? – karlkoeller Feb 6 '14 at 5:05
2

What's going wrong? When you use \colchunk, the text is collected inside a box (a \vbox) which is then unboxed and this is where the problem appears: when the box is unboxed, the value of \baselineskip is not the one corresponding to \tiny any more, because \tiny was issued inside the box, so it vanished when the box was closed.

Solution: add \tiny outside \colchunk.

\documentclass[english,twocolumn]{article}
\usepackage{parcolumns}
\usepackage{babel}
\usepackage[pangram]{blindtext}
\begin{document}

\begin{parcolumns}{2}
\tiny
\colchunk[1]{%
  \Blindtext[3][8]%
}
\colchunk[2]{%
  \Blindtext[3][8]%
}
\end{parcolumns}

\Blindtext[5][8]

\end{document}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.