2

I want to make a two column document such as in the first column there is text and in the second column pictures with examples for the text. How can i do that?

  • 1
    you could utilize the multicolumn package for this – Rico Sep 14 '13 at 11:53
  • 6
    I would suggest one column with a large margin and \marginpar or \marginnote to place the graphics. – Ulrike Fischer Sep 14 '13 at 12:31
  • I have a problem with the second comment. When i use \includegraphics it doesn't fit the margin. Even when i use \textwidth. Is there something else i can do? – thodoris Sep 14 '13 at 16:06
  • @thodoris as ulrike said, use \marginpar{\includegraphics{...}} – David Carlisle Sep 14 '13 at 17:47
  • use \marginparwidth for the width of the images – David Carlisle Sep 14 '13 at 17:49
1

If you love the tufte-handout or tufte-book default style, these document classes are what you are looking for. It might be also a good option if you know how adapt this style to your own preferences, as in this "de-tufted" MWE. In other case, this has been already answered in the comments.

MWE

    \documentclass[nofonts,nols,justified]{tufte-handout} 
\usepackage{mwe} % for demo images
\usepackage{graphicx} 
\setcounter{secnumdepth}{3}
\setcaptionfont{\itshape\sffamily}
\usepackage{titlesec}
\titleformat{\section}
{\color{blue!80!black}\normalfont\Large\bfseries}
{\color{blue!60!black}\thesection.}{.5em}{}

\begin{document}
\section{Lore ipsum}
\lipsum*[2] (See figure \ref{a}).

\begin{marginfigure}
\includegraphics[width=\textwidth]{example-image-a}
\caption{Some clever caption\label{a}}
\end{marginfigure}
\lipsum[1]
\section{Na dui ligula (figure \ref{b})}
\begin{marginfigure}
\includegraphics[width=\textwidth]{example-image-b}
\caption{Some clever caption\label{b}}
\end{marginfigure}
See figure \ref{c}. \lipsum[3]
\begin{marginfigure}
\includegraphics[width=\textwidth]{example-image-16x10}
\caption{Some clever caption\label{c}}
\end{marginfigure}
\end{document}
0

This solution is based on paracol. It aligns the bottom of the figure to the insertion point. Centering would be trickier.

\documentclass{article} 
\usepackage{graphicx} 
\usepackage{paracol}
\usepackage{lipsum}% MWE only

\setcolumnwidth{0.6\textwidth}% last column uses what is left

\makeatletter
\newenvironment{insertfigure}{\switchcolumn[1]\null\vfill% align bottom to insertion point
\begin{minipage}{\columnwidth}% no floating
\def\@captype{figure}}{\end{minipage}\switchcolumn[0]*}
\makeatother

\begin{document}
\begin{paracol}{2}
\section{Lore ipsum}
\lipsum*[2] (See figure \ref{a}).
\begin{insertfigure}
\includegraphics[width=\textwidth]{example-image-a}
\caption{Some clever caption\label{a}}
\end{insertfigure}
\lipsum[1]
\section{Na dui ligula (figure \ref{b})}
\begin{insertfigure}
\includegraphics[width=\textwidth]{example-image-b}
\caption{Some clever caption\label{b}}
\end{insertfigure}
See figure \ref{c}. \lipsum[3]
\begin{insertfigure}
\includegraphics[width=\textwidth]{example-image-16x10}
\caption{Some clever caption\label{c}}
\end{insertfigure}
\end{paracol}
\end{document}

full page

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.