16
votes
3answers
2k views

Includegraphics maximum width

With \includegraphics I can give the width of the resulting image (which would be scaled). How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep ...
3
votes
1answer
941 views

How to deal with PDF figures

I can insert JPEG figures in publications, but when it comes the time to include PDF figures (I prefer them for graphics because of its vectorial nature) I cannot scale them properly. I am using ...
4
votes
4answers
893 views

Matlab to pdflatex with text properties

I know that this might be more a detail rather than a serious problem but I've already Googled it like crazy and I can't find the solution. Is it possible to achieve a MATLAB plot in pdflatex with ...
15
votes
2answers
1k views

High precision \includegraphics for LaTeX

\includegraphics produces boxes whose witdth and height are about 0.5pt off: \usepackage{graphicx} ... \setbox0\hbox{\includegraphics[width=\textwidth,height=\textheight]{mypic}} \showthe\textheight ...
4
votes
2answers
8k views

Including a PDF page in latex with pdfpages without scaling

I am writing a document in LaTeX and I'm trying to include a frontpage in PDF (aptly called "Frontpage.pdf") the document, to be compiled with Pdflatex. I tried to include it with the pdfpages ...
5
votes
1answer
11k views

PNG: importing it with latex | pdflatex | xelatex

I never understood how (pdf)latex determines the size of imported bitmaps, but many years ago I experimentally elaborated simple rule that allowed me to get same output by running either latex or ...
5
votes
1answer
2k views

pdflatex: fit-page-to-contents or scale-contents-to-fit-page

I have a problem which can be solved one of two ways: Typeset a given chunk of TeX in an "infinitely wide" space, then scale the result so that its width is the width of the page. Typeset a given ...