3

This is the code that I use to create a figure:

 \begin{figure}[H]
    \includegraphics[width=0.9\paperwidth]{img/Info.png}
    \caption{Info \label{overflow}}
\end{figure}

The problem is that the figure is too small (it's a table with a lot of information) and I would like to make it bigger and more readable, making it starting from the left margin of the page (now it starts align with paragraphs, closer to then center of the page).

Do I have to modify something in \includegraphics parameters? image

3
  • please extend your code snippet to complete small document. your image already should occupy 0.9\paperwidth. how big than you like to have? – Zarko Nov 20 '18 at 9:33
  • @Zarko I added a screenshot. As you can see, the figure goes from a point in the left, to the margin right. I would like to start it from margin left. – ScTALE Nov 20 '18 at 9:38
  • ah, you have table as image ... if your table is so huge, you should consider to rotate table- or redesign it (break long column headers into more lines).. also better is to include table code directly in document. – Zarko Nov 20 '18 at 10:04
2

mwe

This show how you can center the image when is wider that the text width:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
    \centering
    \makebox[0pt]{%
    \includegraphics[width=0.9\paperwidth]{example-image}}
    \caption{Info \label{overflow}}
\end{figure}
\end{document}
3

\includegraphics has no positional logic it is just positioned like a letter and you can adjust it in the same way \hspace*{-2cm}\includegraphics{...} will move it 2cm to the left.

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.