1

I use the following code :

\usepackage{pdfpages}
...
\includepdf[pages=-]{article.pdf}

I also tried many pdfpages options such as fitpaper, templatesize, noautoscale, scale and so forth.

I also tried with other pdf files.

The result is always the same, I have the correct amount of page inserted in my final pdf but each of them and incredibly small.

enter image description here

  • Give "thumbnails" a new meaning. Did you try with some other pdf-file? Did you try to scale the pages (scale=10 or so)? – Ulrike Fischer Sep 2 '15 at 15:09
  • Yes I also tried scale=10 and also others pdf files with the same result. – HadiM Sep 2 '15 at 15:13
  • 1
    Other pdf files from the same source? What happens when you try an image from the mwe package with \includepdf{example-image}? Can you make a small but complete example and show the code and the log file? – Ulrike Fischer Sep 2 '15 at 15:19
  • I found the command which is responible for the small scaling : \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}. This is generated by pandoc and I also found an old bug submitted there github.com/jgm/pandoc-templates/issues/72 – HadiM Sep 2 '15 at 15:34
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Martin Schröder Sep 3 '15 at 13:22
3

This is actually a known pandoc issue : https://github.com/jgm/pandoc-templates/issues/72

To resolve it you need to use your own template. Use pandoc -D latex > template.tex to generate it. Then find the following line :

\setkeys{Gin}{width=\ScaleWidthIfNeeded,height=\ScaleHeightIfNeeded,keepaspectratio}%

and comment it.

Next, call pandoc with this argument : --template=template.tex

Works like a charm for me.

  • The only thing is that removing this line make all the figure to not automatically scale well according to page size... :-( – HadiM Sep 7 '15 at 12:56

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.