TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have drawn an figure which almost takes 80% of width of the page. So I want it to give full width. If I try it manually, I get warning as overfull \hbox.

share|improve this question
Please post your code/design here. – Ahmed Musa Jun 16 '12 at 5:18
The problem is a tex' problem. You want to put a big box (picture) inside a smaller box (text). Tikz can help you with \begin{tikzpicture}[remember picture, overlay] . – Alain Matthes Jun 16 '12 at 6:04
Perhaps the answers to this question can be also of interest for you. – Thorsten Donig Jun 16 '12 at 12:06

Assuming that you have a figure drawn using tikz, you may use the full width by \resizebox provided by graphicx.



\resizebox{\textwidth}{!}{\input{figurefile.tex}}} %% assuming figurefile is a tikz code
\caption{caption goes here} \label{fig:myfigure}

This can also be done using adjustbox package by Martin Scharrer. Actually adjustbox offers more functionalities for things like these.

share|improve this answer
Thanks a lot :) – tikzlearner Jun 16 '12 at 13:12

try this

\begin{tikzpicture}[remember picture, overlay]

        \draw[fill=green] (current page.north west) rectangle (current page.south east);
share|improve this answer
Thanks a lot :) – tikzlearner Jun 16 '12 at 13:12

Your Answer


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.