2

I'm trying to include some graphics into my report, and I can't find the normal width which can take an image to respect the margin-left and the margin-right of a page.

Here is the code that I've tried :

\begin{figure}[H]
\hfill{}\includegraphics[scale=0.8]{images/seq_auth}\hfill{}
\caption{abc}
\label{fg:seq_auth}
\end{figure}

But, the font of the text that is part of the graphic is too small to see when I've printed it. So, I thought that I maybe need to make it as wide as possible.

Any suggestions, please ?

2
  • \includegraphics[width=\linewidth]{images/seq_auth} only. Remove both \hfill{} and use \centering inside the figure environment.
    – Sigur
    Jan 24, 2014 at 18:08
  • See this related question.
    – Fran
    Jan 24, 2014 at 18:31

1 Answer 1

5
\documentclass{report}
\usepackage{lipsum} % dummy text
\usepackage{graphicx}
\begin{document} 

\lipsum*[1]
\begin{figure}[h]\centering
\includegraphics[width=\linewidth]{images/seq_auth}
\caption{abc}
\label{fg:seq_auth}
\end{figure}
\lipsum*[2]
\end{document}

enter image description here

1
  • Or even \includegraphics[width=0.8\linewidth]{...} or such.
    – vonbrand
    Jan 24, 2014 at 18:20

You must log in to answer this question.

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