Quantcast
Viewing all articles
Browse latest Browse all 2

Arithmetic overflow with pax?

I am heavily using pdfpages to concatenate a set of papers. One of the papers has a big table, rotated, using the sidewaystable environment. That paper, by itself, compiles perfectly, with the desired output.

Nevertheless, when importing the PDF, the main document complains with this error:

<use 04/sample.pdf, page 7> (./04/sample.pax)! Arithmetic overflow.\calc@next@digit ... \multiply \calc@numerator 10                                                  \calc@Acount \calc@numerat...l.45 ... Juan-Manuel Torres-Moreno}{04/sample.pdf}

In fact, with this error message I am not sure if the problem is with pdfpages itself, or with the pax package. But given that that page result in the final PDF is the one shown in the figure, I expect it to be a pdfpages problem.Image may be NSFW.
Clik here to view.
output of the seventh page from the imported PDF

EDIT:

Here a MWE. Note that it includes a PDF file. You can find it at http://eremita.di.uminho.pt/~ambs/sample.pdf. I found out it is a problem with 'pax' (if I comment it, it doesn't complain). And, finally, note that it will fail only the second time you compile it.

\documentclass{article}\usepackage{pdfpages}\usepackage{pax}\definecolor{linkcolor}{rgb}{0,0,.35}\usepackage{hyperref}\hypersetup{colorlinks=true,allcolors=linkcolor}\begin{document}\includepdf[fitpaper=true,pages=2-]{04/sample.pdf}\end{document}

Any hint? Suggestion? Workaround?


Viewing all articles
Browse latest Browse all 2

Trending Articles