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.

  • 4
    Please post your code/design here. – Ahmed Musa Jun 16 '12 at 5:18
  • 2
    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
  • 1
    Perhaps the answers to this question can be also of interest for you. – Thorsten Donig Jun 16 '12 at 12:06

try this

\begin{tikzpicture}[remember picture, overlay]

        \draw[fill=green] (current page.north west) rectangle (current page.south east);

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.

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.