Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

After reading answers to this question, I decided to give ltxgrid a try. A simple experiment showed that using \twocolumngrid and \onecolumngrid do their job; however, the vertical space between one- and two-column fragments is way too small (see MWE below). From skimming through the ltxgrid manual I deduce that I am using it in a wrong way. Now what is the proper way? (For simplicity one may assume that there won't be any pages with both one and two columns, though this assumption may need to be dropped at some point, so more general answers are welcome.)

\documentclass{article}

\usepackage{ltxgrid}
\usepackage{lipsum}

\begin{document}
\lipsum[1-2]
\twocolumngrid
\lipsum[3-4]
\onecolumngrid
\lipsum[5]

\end{document}
share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would simply add some space like \addvspace{2\baselineskip}. The reason why you thinking you are using it wrongly is that the author recommends that you leave these decisions to the class as options or semantically named macros.

For example here is the definition of titlepage.

\renewenvironment{titlepage}{%
 \let\wastwocol@sw\twocolumn@sw
 \onecolumngrid
 \newpage
 \thispagestyle{titlepage}%
 \c@page\z@% article sets this to one not zero???
 }{%
 \wastwocol@sw{\twocolumngrid}{\newpage}%
 }%

Here is a MWE.

\documentclass{article}
\usepackage[latin]{babel}
\usepackage{ltxgrid}
%\usepackage{ltxutil}
\usepackage{lipsum}
\columnsep1.5em
\begin{document}
\lipsum[1-2]
\addvspace{2\baselineskip}
\twocolumngrid
\lipsum[3-4]
\begin{figure}[h]\centering\rule{3cm}{3cm}\end{figure}
\lipsum*[1-2]
\begin{figure}[t]\centering\rule{3cm}{3cm}\end{figure}
\lipsum*[3]
\end{document}

Note the floats.

share|improve this answer
    
@mbork Nice thing with this package which I am also trying to get to know it, is that the floats work! If you use it eventually post an image or two under your question. –  Yiannis Lazarides Mar 8 '12 at 15:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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