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 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 ?

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

1 Answer 1

up vote 5 down vote accepted
\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

share|improve this answer
    
Or even \includegraphics[width=0.8\linewidth]{...} or such. –  vonbrand Jan 24 at 18:20

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.