Tag Info

Hot answers tagged

27

That's due to the different idea that pdf and LaTeX have of what's a point: A LaTeX point is 1/72.27 inch - known in LaTeX as pt A pdf point is exactly 1/72 inch - known in LaTeX as bp (big point) Thus the ration between the two is 1.00375 - which is also the ratio 12/11.955. In fact the 11.955 are rounded from ...


10

pdfTeX, LuaTeX \pdflastximageages, see the answer of Symbol 1. Remarks: \pdfximage cannot be used in DVI mode. LuaTeX The number of pages can also be retrieved via the epdf Lua library: \documentclass{article} \newcommand*{\pdfnumberofpages}[1]{% \directlua{% local doc = epdf.open("\luatexluaescapestring{#1}") local pages if (doc) then ...


9

You can use the navigator package. Nav­i­ga­tor im­ple­ments PDF fea­tures for all for­mats (with some lim­i­ta­tions in ConTEXt) with PDFTEX, LuaTEX and X∃TEX (i.e. xd­vipdfmx). Fea­tures in­clude: Cus­tomiz­able out­lines (i.e. book­marks); An­chors; Links and ac­tions (e.g. JavaScript or user-de­fined PDF ac­tions); File em­bed­ding (not ...


7

The option is now called \pdfminorversion (since pdfTeX 1.30.0 2005-08-01). It is documented in the pdfTeX manual: ▶ \pdfminorversion (integer) This primitive sets the PDF version of the generated file and the latest allowed PDF version of included PDFs. E.g., \pdfminorversion=3 tells pdfTeX to set the PDF version to 1.3 and allows only included ...


6

Quotes should be used in a Windows command window to protect the spaces: for %f in ("C:\path\to\image\folder with spaces\*.eps") do epstopdf "%f" Inside a .bat file, the percent needs to be doubled.


5

The problem is with the code to generate the PDF bookmark. You need to use \texorpdfstring: \documentclass{article} \usepackage{fontspec} \usepackage{hyperref} \author{Me} \title{Lorem ipsum} \date{This day} \begin{document} \maketitle \section{Lorem ipsum \texorpdfstring{\MakeUppercase dolor}{dolor}} Lorem ipsum dolor sit amet, consectetur ...


5

After \tracingmacros1 with option pages=last-1, it seems like pdfpages uses a feature of pdf(la)tex to get the number. \documentclass{minimal} \begin{document} \pdfximage{test-29.pdf} \the\pdflastximagepages\ pages \end{document}


4

The error message is ./thesis.tex:186: Undefined control sequence. \@calc@post@scan ...st@scan \else \def \calc@next {\calc@error #1}\fi \fi \f... l.186 \mainmatter so the undefined command is \calc@next as I guessed in initial comment, the \edef usage is incorrect and \setcounter is not safe in that ...


3

Try Okular, it worked great for me in the past.


2

Here is a revised version of the script above. The basics are unchanged, but it now handles paths and such in a sane manner, automatically copies the new over the old IFF the new file is smaller then the original (and not 0). It also gives some info on space savings. For some unknown reason, running it again can give even smaller output, but usually not ...



Only top voted, non community-wiki answers of a minimum length are eligible