# Tag Info

18

If you modify the source to \pdfcompresslevel=0 \pdfobjcompresslevel=0 \documentclass{article} \begin{document} Hello, World! \end{document} And run it twice, you find exactly three lines change /CreationDate (D:20150222233514Z) /ModDate (D:20150222233514Z) /ID [<84943B8BBB033F5EF8FAE4B3E350E35C> <84943B8BBB033F5EF8FAE4B3E350E35C>] >> ...

10

You want % \iffalse % \begin{macrocode} %<*driver> \documentclass{ltxdoc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} \DocInput{file.dtx} \end{document} %</driver> % \end{macrocode} % \fi % \begin{macrocode} %<*class> \RequirePackage{ifpdf} \ifpdf\RequirePackage[ plainpages=false, % ...

7

It is not hyperref that sanitizes the argument. The main difference between \section and your command is that the \addcontentsline is issued for the first in vertical mode. And the definition of the ! depends on the mode: \french@sh@!@ ->\ifhmode \ifdim \lastskip >\z@ \unskip \penalty \@M \FBthinspace \else \FDP@thinspace \fi \fi \string ! The ...

6


6

This appears to be a feature of the pdf reader. Cutting out latex and all packages, the plain TeX aaa git@github.com:peeterjoot/mathematica.git bbb \bye renders as plain text in most of the pdf readers I have available (xpdf, windows 8 thing, firefox....) but adobe acrobat tries to be clever and shows it as a mailto link despite there being no link in ...

5

The problem is the same as in Slovak (and Czech) babel gives problems with cmidrule and cline: the czech option to babel makes the - character into a shorthand and this disrupts the working of the pages option. Quick fix: \shorthandoff{-}\includepdf[pages=1,3-5]{foobar.pdf}\shorthandon{-} Better fix: \documentclass{article} \usepackage[czech]{babel} ...

5

For a non-TeX solution: you can use the command line tool pdftk to splice up the original PDF and make a new PDF with just a subset of the pages from the original PDF. This will preserve the hyperlinks from the original PDF.

4

You can create a link to an embedded file using the JavaScript function exportDataObject. The following code creates a new command \embeddedfilelink{<file>}{<text>} that creates a link to an embedded file specified by its file name with the given link text. The code is taken from hypgotoe and modified to create a JavaScript action instead of a ...

4

You cannot use optional arguments for bookmarks, because LaTeX's implementation uses \futurelet, which is not expandable. Bookmarks strings are not typeset by TeX, only converted to a string. Since the macro with the optional argument does not have a following mandatory argument, there is no way detecting the optional argument using a macro-based approach. ...

3

The PDF produced by Numbers in combination with LaTeX generates a PDF that is rendered incorrectly by certain PDF-viewers like Preview.app and Skim (Adobe Acrobat seems to render it correctly).1 In order to fix this, you can use ghostscript to recode your PDF: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dNOPAUSE -dQUIET -dBATCH ...

3

Procedure for printing export of single image PDFs: convert/export it to svg inkscape -l reduce_temp.svg pato_scenario_1_dataloss06_output.pdf generate HiDPI images: 1200dpi - common home printer resolution, 4800 - won't see much difference inkscape --export-png=reduce_out_1200.png --export-dpi=1200 reduce_temp.svg inkscape ...

3

Also LaTeX solutions are available. \include, \includeonly The document can be divided at page boundaries into single files, e.g. chapters. These are then included via \include. Then \includeonly with the file names, which should be included. Example: \documentclass{book} \usepackage{hyperref} \includeonly{Summary} \begin{document} ...

2

Here is the output from your MWE on my system: PDF: PS: So this certainly looks fine here. \documentclass[11pt,tikz,border=5pt]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) circle(2); \end{tikzpicture} \end{document} Note: The slight unevenness in both cases is the result of conversion to PNG for upload here. Both ...

2

biblatex's natbib-like commands \citepalias and \citetalias (whose definitions can be found in blx-natbib.def) can be turned into hyperlinked versions just as easily as the other commands \makeatletter \DeclareCiteCommand{\citetalias} {\usebibmacro{prenote}} {\usebibmacro{citeindex}% \printtext[bibhyperref]{\@citealias{\thefield{entrykey}}}} ...

2

In the meantime, the maintainers of ps2pdf/ghostscript have explained in detail at bugs.ghostscript.com/show_bug.cgi?id=695806 (where the question was also posted) that ps2pdf could in principle be expanded to allow such a search, but that the solution would take a large amount of work and produce only little benefit to the end user. Therefore the ps2pdf ...

2

It seems, as stated by @scottkosty, to be related to the font, probably Computer Modern. So, just change it. In Lyx, go to Document > Settings... > Fonts and change it to something that suits you better, like TeX Gyre Bonum.

2

Here is a MATLAB script which uses Kurt's answer to split a PDF into two files, one colour and one grayscale. The original file is preserved. It does not handle double-sided printing. It is not bullet-proof and might need some debugging, but hopefully it will work out of the box. You will need: Ghostscript (version 9.05 and later) MATLAB function ...

1

You can compile your code with pdflatex, provided you enable the --enable-write18 switch via Execution Modes in the Optionsmenu: You also have to add pdf option to the document class. I took the opportunity to simplify your code , using the multido package. I took the liberty to slightly change the values of some coordinates which looked weird, so as to be ...

1

You could use something like this which does not produce errors when a file does not exist. On my machine, I get a four page document (files 1 and 4 exist; files 2 and 3 do not). \documentclass[twoside]{article} \usepackage{pdfpages} \includepdfset{pages=1, fitpaper=true} \usepackage{bookmark} \newcommand*\ifpdfexists[1]{% ...

1

It is not really an answer but there is something wrong in your pdf. I opened it in Illustrator to have a look at how your objects were created. As you can see below, the pdf circle [right] is a set of few splines (fine) while the ps circle [left] is a set of many small disjoint black dots (bad). If you used Tikz for both, my guess is that there is something ...

1

There are two issues at play here: Finding a font that has all the characters you need and places diacritics properly. Declaring the font properly. Finding a font As egreg pointed out, it's not clear from the question whether you actually want all these characters to show up in a monospaced font, or if you are simply using the verbatim environment so ...

1

The PDFExpress error message is about the Acrobat version, not the PDF version. This, of course, is misleading, but in fact means that PDFExpress wants PDF version 1.4, as 5 = 1 + 4. For a long time Acrobat and (Acrobat) Reader had followed a simple and deterministic rule for their version number: The Acrobat version is the sum of the major and minor part ...

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