As of May 31, 2023, we have updated our Code of Conduct.
23 votes

Add blank/empty page after every page automatically

I would use pdfpages to do this after the whole thesis is done, since you really have no need for a document with blank pages except to send to the printer, so it makes sense to keep the two documents ...
Alan Munn's user avatar
  • 210k
20 votes
Accepted

How to print in white text over black background

\documentclass[a4, 12pt]{report} \usepackage{xcolor} \usepackage{pagecolor} \usepackage{lipsum} \pagecolor{black} \color{white} \begin{document} \lipsum \lipsum \lipsum \end{document} This ...
SeRe's user avatar
  • 566
18 votes

Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print "as if" they were black?

Another option, using ocgx2 package: \usepackage{hyperref} \usepackage[ocgcolorlinks]{ocgx2}[2017/03/30] Similar to hyperref's ocgcolorlinks, but with additional support for dvipdfmx/xelatex dvips ...
AlexG's user avatar
  • 53.2k
17 votes
Accepted

Security Printing in pdflatex documents

I submit to you that this will not copy well. Elements used include: two colors (plus black) contrast of dark and light printing diffraction-grate-like patterns Here is the MWE. You can play with ...
Steven B. Segletes's user avatar
17 votes
Accepted

Add blank/empty page after every page automatically

A solution with package atbegshi. It hooks into \shipout, the internal command to ship out a page. The hook (\AtBeginShipout{...} adds an empty page before the actual page except for the first. \...
Heiko Oberdiek's user avatar
14 votes
Accepted

How to add print link action of specific pages?

This requires JavaScript and perhaps A-Reader. The buttons themselves are not printed. All engines. Basic example using print() method with parameters: No print dialog possible when specifying page ...
AlexG's user avatar
  • 53.2k
13 votes
Accepted

Recommended margin and binding offset

I will explain the preamble you should use if you want to follow the French canon des ateliers for B5 paper. The text width is a fraction of paperwidth – 3/4 for ordinary printing, 2/3 for neater ...
Bernard's user avatar
  • 269k
13 votes
Accepted

Tikz and ctable incompatibility, gives error when printing

Package ctable loads package transparent. Both package transparent and tikz implements transparency. This needs access to a page resource, a dictionary ExtGState for the transparent values. Unhappily, ...
Heiko Oberdiek's user avatar
11 votes
Accepted

How to invert a PDF using OCG/Layers?

This example produces two different versions of the readily typeset page box and places them on separate OCG layers. Both layers are added to the radio button group "reverse video" to ensure ...
AlexG's user avatar
  • 53.2k
11 votes

Overprinting spot colors

Both packages tikz and colorspace add an entry /ColorSpace to the page resources, from the generated PDF file: 11 0 obj % Page object << /Type /Page /Resources 10 0 R ... >> endobj ...
Heiko Oberdiek's user avatar
10 votes

Automatically converting pictures to black-and-white

Thanks to John Kormylo, I found a simple solution: just add these two lines at the Document preamble: \usepackage{xcolor} \selectcolormodel{gray} Note that this changes only the colors generated ...
Erel Segal-Halevi's user avatar
10 votes
Accepted

How can I place a 1 cm margin to a set pdf book (a6) to print

Let's create a bunch of random text: \documentclass{article} \usepackage[margin=15mm,paper=a6paper]{geometry} \usepackage{lipsum} \begin{document} \sloppy\lipsum[1-50] \end{document} We'll call this ...
Werner's user avatar
  • 589k
9 votes
Accepted

How to properly put two pages onto one using pdfjam?

To understand what's going on here , just add option --frame true (just for testing). E.g: pdfjam 2019-224.pdf --nup 2x1 --suffix 2up --landscape --frame true --outfile temp.pdf Now you see that the ...
Andreas Matthias's user avatar
9 votes
Accepted

Making Tikz shapes/surfaces that don't appear in the PDF

You can put the holes on a separate OCG layer, that is not printed: \documentclass[11pt,twoside,german]{article} \usepackage[T1]{fontenc} \usepackage[sfdefault,condensed,light]{roboto}...
DG''s user avatar
  • 21.1k
8 votes

Dashed line doesn't print (TikZ)

My job involves emailing a lot of PDFs to people to print out, so the "update your printer driver" solution doesn't really help me. But what I've founded is that while dotted or dashed lines refuse ...
Jonah's user avatar
  • 81
8 votes

Using Pantone/spot colors and TikZ together

I've just written a new package for spot colors. It's named colorspace and as its name suggests the goal is to provide tools related to PDF color spaces. Currently you can define spot colors (...
Javier Bezos's user avatar
  • 9,004
8 votes
Accepted

Providing alternate stroke styles for black and white printing in PDF

This can be done with PDF Layers (OCGs). In the following example, using Adobe Reader for viewing and printing, different versions of image files are seen in the viewer and on paper after printing: \...
AlexG's user avatar
  • 53.2k
7 votes
Accepted

Sphere shading in cmyk colours

Update Since version 3.1.3, pgf now supports CMYK (and grayscale) shadings. Instead of \usepackage{pgf-cmykshadings}, just use \usepackage[cmyk]{xcolor} before loading tikz. As you are aware, pgf ...
David Purton's user avatar
  • 25.4k
7 votes

color differences in professional printing

As far as I know, the only reliable way to obtain exactly what you want on printing is to use the PANTONE colorspace, to which you have access through the spotcolor package under pdflatex, or ...
Bernard's user avatar
  • 269k
7 votes
Accepted

Split A4 page in two, repeat header after half page height in ConteXt

The keyword that you are looking for is imposition or arranging. See the wiki or Section 3.6 of the reference manual. The basic macro for imposition is \setuparranging[...]. Note that you need to run ...
Aditya's user avatar
  • 61.9k
7 votes

Make a font "imperfect"

A note on the nature of these “imperfections”: we find a lot of pre-1923 books available online in scanned versions (such as on Google Books), read a lot of them on screen, get used to their ...
ShreevatsaR's user avatar
  • 44.3k
7 votes
Accepted

What is the LuaTex equivalent to `\pdfcatalog{/ViewerPreferences<</PrintScaling/None>>}`

Use braces like with \pdfcatalog: \pdfextension catalog{/ViewerPreferences<</PrintScaling/None>>}
Ulrike Fischer's user avatar
6 votes
Accepted

LaTeX created pdf is causing trouble while printing

I will assume for this answer that the complex figures are vector images that you have included with \includegraphics. I will further assume that these vector images have many drawn entities, for ...
James's user avatar
  • 4,527
6 votes

How to print in white text over black background

Let's assume you have the following 259 page document, littered with text and images: \documentclass{article} \usepackage{graphicx,lipsum} \newcounter{lipsumcntr} \begin{document} \loop\unless\...
Werner's user avatar
  • 589k
6 votes

color differences in professional printing

If you stick to pdftex or luatex (ie, not xetex), an alternative package is colorspace, which is simpler and more complete than spotcolor (caveat: I'm its author). It supports shades (ie, spot + ...
Javier Bezos's user avatar
  • 9,004
6 votes
Accepted

Making fillable forms in LaTeX using TextField and CheckBox

You can change the height of a textfield with the height option or by redefining \DefaultHeightofText. But the minimal height of the field will always be the height of the surrounding box. In a ...
Ulrike Fischer's user avatar
6 votes
Accepted

Large symbols in PDF cannot be fully printed

The original PDF uses PDF version 1.6: % file MIT14_126S16_bayesian.pdf MIT14_126S16_bayesian.pdf: PDF document, version 1.6 You can convert this PDF via ps2pdf (from PDF version 1.6 to version 1.4 ...
Paul Gaborit's user avatar
  • 69.7k
6 votes
Accepted

ConTeXt: Replace PDF Content During Printing

You can create layers which are only shown in the screen or print version of your document with the viewerlayer mechanism. Whether the content of the command appears in the printed output is ...
Wolfgang Schuster's user avatar

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