I am trying to create a two column book class document in which the two columns are separated by a dotted vertical lines. The first column should be the main column used for all text, figures and equations. However, occasionally second column will be used for marginal notes. The second column may contain dotted lines with interline separation of 8mm. This is what I have made so far but it lacks several desired features.

    \vbox to \ht\mult@rightbox{\leaders\vbox{\kern2pt\hbox{.}\kern2pt}\vfill}}

    \begin{multicols}{2}[\chapter{My Chapter Number One. Long chapter title}]
        \section{Long section name. There is nothing I can think of to put here.}
            E = m \times c^2
            E = m \times c^2
\end{document} ```
  • Documentclass book already contains a marginpar area, which can be enlarged using geometry. You can write in it using \marginpar or \marginnote (you can't use \marginpar inside a float). I recommend the marginfix package to avoid overruns. Commented Jul 16, 2022 at 17:00
  • You might consider using paracol to create a two column layout and ignore (replace) the marginpar area. The separating line has been asked before. Commented Jul 16, 2022 at 17:06
  • How can I force LaTeX to write text on, say, leftmost column only?
    – Ali Baig
    Commented Jul 16, 2022 at 18:16
  • With paracol EVERYTHING goes into one column until you use \switchcolumn or \switchcolumn*. The columns do not have to be the same width either. Commented Jul 17, 2022 at 18:11


You must log in to answer this question.

Browse other questions tagged .