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.

I'm trying to format a picture so that it fills the text width however it always errors and fills the whole page.

\includegraphics[width=\textwidth]{circle}

is the line I'm currently using also this is probably relevent

\documentclass[twocolumn,reprint,nofootinbib]{revtex4-1}

\usepackage{graphicx}

Also this is the error I'm getting:

Overfull \hbox (264.0pt too wide) in paragraph
share|improve this question
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  texenthusiast Mar 18 '13 at 0:29
    
@JonathanWebb Overfull \hbox (264.0pt too wide) is not an error. It is a warning. Also, please always provide a minimal working example (MWE) –  hpesoj626 Mar 18 '13 at 0:35
2  
If you want that the image fills the column width, use \columnwidth and not \textwidth that encompasses the two columns. See tex.stackexchange.com/a/16956/4427 for more information –  egreg Mar 18 '13 at 0:35

1 Answer 1

up vote 2 down vote accepted

You want to fill the column, not the page; so the correct parameter to use is \columnwidth

\includegraphics[width=\columnwidth]{circle}

See http://tex.stackexchange.com/a/16956/4427 for more information.

share|improve this answer

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.