Tag Info

Hot answers tagged

52

Yes. Use \usepackage[ocgcolorlinks]{hyperref} This option must be given when loading hyperref. You cannot give it in \hypersetup. With this option hypreref will make the colorlinks as Optional Contents Groups (OCG) with /PrintState/OFF and /ViewState/ON. Your pdf reader needs to support OCG. Also, the default behaviour of hyperref is to draw a coloured ...


47

Vector Imagery If you can, save diagrams as a vector-based format such as PDF or EPS- these formats can be readily included in LaTeX documents and scale without appearing pixelized. Note that PDF should be used for input to pdflatex and EPS should be used with plain latex. Inkscape is an excellent, free, cross-platform program for creating and editing ...


25

Look, ma! No loops! :) Borrowed from the TeXbook, exercise 21.8 (p. 225). \documentclass{minimal} \usepackage[a4paper,margin=2mm]{geometry} \usepackage{graphicx} \sbox0{% \includegraphics{image}% \kern2mm \vrule width 0pt depth 2mm} \setlength{\parindent}{0pt} \begin{document} \null \cleaders\hbox to\textwidth{\leaders\copy0\hfill}\vfill ...


24

Kirk, suppose you have a tex document named mydoc.tex (this contains your book, whith twoside in the class), then create a second document named mydoc2up.tex like this: \documentclass{scrartcl} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,booklet,turn=false,landscape]{mydoc.pdf} \end{document} compile this and enjoy!


24

Based on the neccessary patches to make spotcolor, xcolor and tikz work together, I wrote a small package xspotcolor which combines and stitches spotcolor and xspotcolor together. At the moment it is sitting on the TEX-SX repository waiting to be tested, but hopefully it can go to CTAN soon. See this test file: \documentclass[a4paper]{article} ...


23

Update As Martin Schröder pointed out, the ocg-p package now supports print-only content out of the box: \documentclass{article} \usepackage{ocg-p} \begin{document} This text is always visible. \begin{ocg}[printocg=always]{Hard copy}{printonly}{0} This can only be seen if the document is printed. \end{ocg} This text is visible in both the soft and the ...


21

The tdclock package offers an easy way to insert the current date and time into a PDF document: \documentclass{article} \usepackage{tdclock} \begin{document} \initclock Date: \tddate \end{document} Mind the \initclock at the beginning of the document, then you'll be able to display the current time and date with the macros \tdclock, \tddate, \tdtime, ... ...


19

Perhaps the savetrees package can help with the manage costs portion of the question. Quoting directly from the README: The goal of the savetrees package is to pack as much text as possible onto each page of a LaTeX document. Admittedly, this makes the document far less attractive. Nevertheless, savetrees is a simple way to save paper when ...


18

Standard LaTeX documents without a color package should be black and white, not somehow grayscale. Check it with different viewers. How can the pdf text be made of more clear print? If this means, that the text looks fuzzy, ensure that bitmap fonts aren't used. For instance, LaTeX might switch to bitmap fonts, if you use T1 encoding but your font ...


17

This answer is to the question of how to dirty up an existing font, rather than using a pre-aged font. First, you need to get a few good inkblots such as and Then, you need code that underlays these blots below the text, while varying which blot to underlay, how large to draw the blot, and where relative to the letter to spill the ink. The coding is ...


17

First of all, note that if you don't want to use xcolor but are content with the original color package, then you can switch to spot colors just like normal colors, using the spotcolor color model. Try this modified example: \documentclass[a4paper]{article} \usepackage{spotcolor} \usepackage{color} \NewSpotColorSpace{PANTONE} \AddSpotColor{PANTONE} ...


15

Well, I finally got a chance to look over my font library for fonts that might fit your description as "defective" and "old". This may not be exactly what you are looking for, because these are particular fonts, rather than defects in a font which you, the user, specify. Nonetheless, here they are. The best example of general use has got to be Dominican, ...


15

I second the use of pgfpages instead of psnup. To make the slides more clearly delimited, I use a variation of the 4 on 1 style that puts a border around each frame. Here's a minimal working example: \documentclass[handout]{beamer} \mode<handout> { \usepackage{pgf} \usepackage{pgfpages} \pgfpagesdeclarelayout{4 on 1 boxed} { ...


15

Here's another way to save your toner ink in a very general/broad way. Using the eso-pic package you can place any code at page shipout either on top of (in the foreground) or behind (in the background) of the page. By placing a transparent white rectangle in the foreground, the text can be faded to a desired, but still legible, opacity. This is achieved by ...


14

Transparency effects are a relatively new feature for PDF (≥ 1.4) and many printers do not yet support it "out of the box" (basically, this requires a PostScript Level 3 RIP with additional PDF 1.4 extensions). So the printing system (printer driver) has to "flatten" transparency effects by rasterizing objects into ordinary CMYK objects before sending them ...


14

I use the following preamble, making use of the package handoutWithNotes: % \documentclass{beamer} % \usepackage{beamerthemeclassic} % \documentclass[handout]{beamer} % \mode<presentation> % { % \usetheme{classic} % } % Leaving the lines above commented and uncommenting the following % produces slides four to a page, with or without space for ...


13

There is a (not well documented) key in hyperref.sty, called pdfduplex. It can take one of three values according to ISO PDF specificaiton, section 12.1: Simplex, DuplexFlipShortEdge and DuplexFlipLongEdge. Try this: \documentclass{article} \usepackage{lipsum} \usepackage{hyperref} \hypersetup{pdfduplex=DuplexFlipLongEdge} \begin{document} \lipsum ...


12

Computer Modern is a modern font, which means that the widths of different kinds of strokes in glyphs differ greatly. The horizontal stroke of e is very thin compared to others and as such may pose a challenge if the printing quality is not sufficient. I've seen the effect you describe (along with parts of c and o disappearing) when printed on an inkjet ...


12

Disclaimer: I know next to nothing about colour management, but find the subject interesting. I'm confused by some of the stuff below. Maybe someone with more knowledge can shed some light... By googling, I found two advices on this issue. Update: Based on michal-h21s suggestion that pdftex supports adding a color profile to an embedded image, I could work ...


11

Just pointing you to a package, but dateiliste may be suitable: The command \printFileList has an optional sectioning argument that specifies what type of document block you would like the file list to appear in, e.g. \printFileList[\section]. It also has some parameters that you can set: \fileListName - title ("List of Files") \fileListPreamble ...


11

I'm not sure this works for windows, but on my linux-pc there is a programm called pdfbook, which does exactly, what you need. The manpage says: "pdfbook is part of the "PDFjam" package of tools, whose homepage is at http://www.warwick.ac.uk/go/pdfjam." Some years ago I used it and it worked well.


11

If you have your A3 document finished, compile it to a PDF and include it into a new A4 document which uses pdfpages to include the A3 page twice with first the right, then the left half clipped away. pdfpages will take care of removing all borders etc. \documentclass[a4paper]{article} \usepackage{geometry} \usepackage{pdfpages} \begin{document} ...


10

One package that I'll do a shout out for is Ipe. You should think of Ipe as the next generation of xfig: great for line drawings, and by far the best killer feature: WYSIWYG latex. Ipe 7 has many of the modern vector graphics features (gradients, shading, transparency) etc that inkscape has, and is perfect for quick and dirty drawings. it also has an ...


10

As you said, printers print content on paper larger than the final trim size, and then they cut it to the right size. When they print content that touch the edge of the paper (typically, if there is a background color), then the content must be larger than the indented paper size in order to ensure that you won't get white borders when the content is cut. ...


10

You have to go the other way round and specify the normal A5 paper dimensions (148mm × 210mm) in the options for the document class. You then can use the »crop« package to specify a paper format that adds the mentioned 3.15mm to all margins. Take a look at this approach. \documentclass[ paper=a5 ]{scrbook} \usepackage[T1]{fontenc} \usepackage[ cross, ...


10

I usually provide registration forms for our workshops in pdf format and also latex code to fill in data: Let us first have a sample Registration form (paper size-letterpaper): First page (form-0): Second page (form-1): Now the code: \documentclass[letterpaper]{article}% ensure identical page size \usepackage[charter]{mathdesign} ...


10

In most cases, you don't need to take care of binding correction, printer marks or imposition. If the printer need that, they usually ask. About the pdf files: A good way of taking care of the issues that affect pdfs directly, in the printing industry, is using the PDF/X1-a standard. You would also need all your images to use the CMYK color model, at least. ...


10

There are many ways for detecting "color" in PDF pages. Without the knowledge of the exact method of the printer, guessing and experimenting remain. It would help to have a PDF file for analyzing, whose pages are correctly classified by the printer as black and colored pages. If you want to experiment (and spend some money), a guess with experiment ...


9

You can use the caption=<caption text> option for lstlisting: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \colorlet{light-gray}{gray!20} \begin{document} \begin{lstlisting}[frame=single, backgroundcolor=\color{light-gray}, basicstyle=\footnotesize\ttfamily, language=Java, numbers=left, numberstyle=\tiny\color{black},caption= ...


9

The pdfpages package provides exactly this functionality. Assume that you have a document that has been created in LaTeX on A6-sized paper (the example below creates a 29-page document, mya6doc.pdf say): \documentclass{book} \usepackage[english]{babel}% \usepackage[a6paper]{geometry}% http://ctan.org/pkg/geometry \usepackage{lipsum}% ...



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