3

I want to denote in a command the half of the width of a column in a two-column document.

When I want to do the same in a normal document I write 0.5\textwidth, but how do I do the same for the half of the width of the columnn?

1 Answer 1

4

The width of a column is \linewidth or \columnwidth. See for example

\documentclass[twocolumn]{article}

\usepackage{lipsum,graphicx}

\begin{document}
    \lipsum[1-4]

\includegraphics[width=0.5\columnwidth]{example-image-a}

\includegraphics[width=0.5\linewidth]{example-image-b}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .