7

I have

\documentclass[twocolumn]{article}

\begin{document}
\rule{\textwidth}{1pt}
\end{document}

However, this line crosses the two columns. I just want the line cross the first column.

1 Answer 1

6

Use \linewidth for the width of the current environment (in this case, the current column). Use \textwidth for the width of the whole text block on the page.

You must log in to answer this question.

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