pdfTeX is an extension of TeX which is capable of directly generating PDF output. Use this tag if the used engine – pdftex/pdflatex – is significant to your question.

learn more… | top users | synonyms (1)

9
votes
1answer
297 views

How to use hyph-utf8 correctly?

I'm using MiKTeX and pdfLaTeX and the package manager tells me that hyph-utf8 is installed and auto-download of packages is activated, too. But when I do \usepackage{hyph-utf8}, because I hope that ...
9
votes
4answers
2k views

knitr and biblatex

I'd like to create a PDF report with knitr with LaTeX-code in RStudio with biblatex for citations. However, the in-text-citations are always undefined and no bibliography is printed. The same ...
9
votes
2answers
1k views

LaTeX minimal installation in GNU/Linux distributions (e.g., in Ubuntu and using apt-get)

I am running LaTeX on a Linux VM. I am running a Xubuntu and have very little space to use. I managed to install some of the latex packages without documentation. Currently I am missing fullpage ...
9
votes
2answers
3k views

How to determine the true size of a font?

A colleague of mine is submitting a research proposal to one of the UK research councils, whose guidelines stipulate a minimum font-size of 10pt. My colleague, who is of course using LaTeX, uses the ...
9
votes
1answer
1k views

How to use shading in TikZ when rotating the picture?

I have the following problem: I want to draw a rectangle and around it, there should be some smooth fading to the background (white). I found the shading technique of tikz quite interesting. The ...
9
votes
1answer
144 views

Hyphenation does not work with acro and luatex, but with pdftex

I'm using luatex 0.70.1 together with acro 1.2 and I have the following MWE. \documentclass{minimal} \usepackage[ngerman]{babel} \usepackage{acro} \DeclareAcronym{DNA}{ short=DNA, ...
9
votes
1answer
1k views

Expansion in \numexpr…\relax versus \pdfstrcmp

The \numexpr...\relax construction in eTeX allows to evaluate numerical expressions, and it expands tokens fully as it goes. The \pdfstrcmp{...}{...} construction in pdfTeX lets us compare two lists ...
9
votes
1answer
652 views

File size savings

This is a question just out of curiosity; I hope someone familiar with the "under-the-hood" parts of TeXLive can answer my question. I have a LaTeX source file for a presentation using Beamer, which ...
9
votes
1answer
205 views

TeX Capabilities with Arbitrary Fonts

I am formatting 85,000 words of text in InDesign that include several (non-negotiable) .ttf and .otf fonts not canonical to LaTeX. I'd like to switch to a TeX-based format for the following ...
9
votes
3answers
1k views

Generating a separate pdf file of tables and figures from a latex file?

Is it possible to generate a pdf of figures and tables of a paper from latex itself? I saw Journals and Conferences asking for a separate file of tables and figures. In this question, questioner ...
9
votes
1answer
4k views

Creating colorful plot using latex terminal of gnuplot?

Most output terminals of gnuplot draw different lines in a plot in different colors. I'm trying to create a plot inside my pdf document using gnuplot's latex terminal and the lines are only ...
9
votes
1answer
8k views

LaTeX formulas in gnuplot plot legends?

I would like to have my gnuplot legends set in LaTeX math mode, because they often are described by a formula. I use wxMaxima to generate the plots, but I could switch to using gnuplot directly, if ...
9
votes
3answers
1k views

Replacing greek glyphs in math mode

I want to switch fonts, away from computer modern. I'm pretty sure that I will end up with a mixture of fonts. I can't provide a full list of required features, but Linux Libertine's feature set ...
9
votes
2answers
1k views

Embed all the fonts during compiling with pdflatex?

My paper has the font TimesNewRomanPS-BoldMT not embedded in itself, and therefore fails the IEEE submission check. I am able to embed it with Acrobat by printing the PDF. However, I find it changes ...
9
votes
2answers
2k views

Unicode characters in pdflatex output using hexcode without UTF-8 input

I want to use Unicode characters (for Korean language, i.e. Hangul: U+AC00 - U+D7A3; maybe also U+1100 - U+11FF) in the output of latex(/pdflatex) while the LaTeX source file should be coded in 7 bit ...
8
votes
3answers
923 views

Incompatibilities of cmap with fontenc/hyperref?

The following code doesn't compile (with pdflatex) \documentclass{article} \usepackage{cmap} \usepackage[T1]{fontenc} \usepackage[pdfa=true]{hyperref} \begin{document} Hello. \end{document} ...
8
votes
4answers
3k views

Included png appears too big in PDF

I'm a beginner with LaTex and writing an article in it (letter-sized). WinEDT and MikTeX (versions seen in the log). I have a PNG chart (obtained from R/ggplot2) which is 471 x 335 pixels and which ...
8
votes
1answer
1k views

How can I test if a document is being compiled by XeLaTeX?

Is there a way to programatically test whether the current document is being compiled by (pdf)LaTeX or XeLaTeX?
8
votes
3answers
167 views

How to include a second file only if environment variable is set?

I have a LaTeX document which exists in two versions, a short version and the long version. The long version has an additional chapter inserted in the middle of the document. What I want to do, is if ...
8
votes
3answers
133 views

Trouble using \oldstylenums with decimal points and hyphens

I am using Computer Modern font (default) with \oldstylenums command to typeset numbers in oldstyle format. However I am having trouble using it with non-numeric characters such as decimal points and ...
8
votes
2answers
175 views

Selectively disable dash ligatures in LuaLaTeX

With pdfLaTeX, I can print two hyphens using -{}-. This does not seem to work in LuaLaTeX. Indeed, the following snippet \documentclass{minimal} \begin{document} en dash -- two dashes -{}- ...
8
votes
2answers
349 views

Interactive surface plot with pgfplots

I know that it is possible to embed three-dimensional files into PDFs with \LaTeX which can then actively be interacted with by the reader (see here for example). I have a surface plot I made with ...
8
votes
2answers
198 views

Three emdashes bound together

In many bibliography styles repeating authors are indicated with three emdashes, forming a single line. This works well with some fonts, while for others it leaves gaps: ...
8
votes
2answers
1k views

Invert Background and Text Colours across Whole Document with pdflatex

When using pdflatex is there a simple way to invert the colors to give white text on a black background across the whole document? I'd like the colours to be inverted whilst I write and edit the ...
8
votes
2answers
81 views

Check if fontseries exists

I want to check if the actual font used has a special fontseries installed, for example: %check for semibold \ifx\fontseries{sb} % doesnt work \def\textsb#1{\fontseries{sb}\selectfont #1} \else ...
8
votes
2answers
602 views

How to Generate Random Variables then Use in Calculations in pdflatex

I'm basically trying to create multiple versions of a worksheet, each with different values for the variables in each question. To do this I'm defining random variables, then each time I compile the ...
8
votes
4answers
579 views

Include source code of pdf picture directly into LaTeX file

Suppose you have a (PDF)LaTeX file where you include pdf pictures via \includegraphics. Now, if you want to share the LaTeX file with another person, you always have to send not only the LaTeX file ...
8
votes
2answers
2k views

Uppercase Smallcaps with LaTeX (not XeLaTeX)?

In XeLaTeX there is an UppercaseSmallCaps font option (as mentioned in this question for example) that will cause upper-case letters to be rendered in small-caps and lower-case letters to remain. ...
8
votes
2answers
507 views

referencing main subequation

In the following example i labeled each subeqnation. \begin{subequations} \begin{gather} R_0 = 0 \label{subeqn:ini-cond-r} \\ N_0 = 0 \label{subeqn:ini-cond-n} \end{gather} ...
8
votes
1answer
11k views

epstopdf warning: “Shell escape feature is not enabled.”

I'm having a bit of trouble trying to include .eps files in a LaTeX document compiled with pdfLaTeX. I've been told that I should use the epstopdf package to convert .eps files to .pdf on the fly. ...
8
votes
1answer
1k views

Why is there no pdffrag package?

The psfrag package has been around for more than a decade* and is easy to use: \usepackage{graphicx}% http://ctan.org/pkg/graphicx \usepackage{psfrag}% http://ctan.org/pkg/psfrag ... ...
8
votes
2answers
127 views

Defining the minimal amount of space around an operator

How do I define the minimal (and possibly maximal) amount of horizontal space around an operator? Something similar to wrapping the operator with \,s. Here's a picture: And a minimal example ...
8
votes
1answer
192 views

Why I shouldn't load pdftex option with hyperref?

According to @percusse in this post, I shouldn't load the pdftex option with the hyperref package. Why is it?
8
votes
1answer
670 views

Ligatures in figures and pdftex

In the following example, the 'ff' ligature in the figure labels (in 'differential') disappears when pdflatex is used, but the fault does not occur if latex-dvips-ps2pdf is used instead. Both lualatex ...
8
votes
2answers
1k views

“Reference does not exist” warning with \includeonly

I am in the process of writing my thesis and am using the \include command to separate the files. But when I use the \includeonly command to select on the current chapter which has references to ...
8
votes
2answers
158 views

Are \count1, …, \count9 useful?

To quote TeX by Topic, "whenever a \shipout occurs, TeX also writes the values of counters 0–9 to the dvi file and the terminal." Do any dvi viewers or converters (e.g., dvips) make use of ...
8
votes
9answers
3k views

For movie15-based 3D embeds, how to get u3d files?

The movie15 package (an interface to embed movies, sounds and 3D objects into PDF documents for use with LaTeX as well as pdfLaTeX) requires 3D files to be in u3d format for embedding into pdf. This ...
8
votes
1answer
1k views

pgfplots: reduce tick density

I am using matlab2tikz to produce plots in latex. The default tick settings produce very dense ticks, making the axes look ugly. I know that I can use something like /pgfplots/xtick={0, 1, ... 3} ...
8
votes
2answers
2k views

How do you suppress specific warnings generated by pdflatex?

A lot of the times I get warnings like "hbox overfull" when a specific part of my document is meant to be extra wide on purpose --> so I am purposefully violating the default width threshold. Or to ...
8
votes
1answer
177 views

Is there a way to color (only real) math in pdflatex?

I'd like to change the color of all math in my document. I understand that several packages and some engines provide support for changing the color of all math, and I understand that something like ...
8
votes
2answers
2k views

Example of Javascript form within pdflatex

Can someone please show me an example of how to include a simple Javascript form within a pdflatex document? Can someone please show me an example of accessing and modifying the PDF file's DOM from ...
8
votes
1answer
239 views

teTeX Distribution in Slackware

I have installed slackware 14. It has an in-built support for TeX. The distributions provided are teTeX and eTeX. Does it make a difference if I install TeXLive 2013? Secondly, I am not able to ...
8
votes
1answer
862 views

Hide image in PDF, reveal with mouseover

Is there a way to load a hidden image into a pdf output document that will show up when the user moves the cursor over a relevant piece of text? E.g., a pdf file generated by tex contains this ...
8
votes
1answer
218 views

How can I use -max-print-line in pdftex (TexLive)?

I know that Miktex has an option -max-print-line=n to change the width of the output. I wondered if something like that existed for pdftex from TexLive ? I'm on Gentoo. It is very annoying to have ...
8
votes
1answer
485 views

How do I configure fonts and package options for different engines?

I would like to be able to rely on the code in my document class to respond correctly to whether it is being rendered using pdfLaTeX or XeTeX engines. The editor I'm using (LyX) does this using ...
8
votes
1answer
805 views

pdf objext/destinations/memory limits

At the end of the log file of the compilation run of a larger document I get Output written on <\jobname>.pdf ( <a lot of> pages, <a lot of> bytes). PDF statistics: 14055 PDF ...
8
votes
1answer
491 views

\write18 pass % through to shell

This has sort of been touched on in some other postings, but for path reasons I would like to avoid using a shell script and just use ImageMagick's (IM) convert command line executable directly from a ...
8
votes
4answers
962 views

What possibilities are there of using OpenType fonts and margin kerning?

I really like the protrusion and margin kerning features of pdfTeX and LuaTeX. I also like to use other fonts than those available for TeX. What choices do I have when I want to use both? Also, what ...
8
votes
1answer
71 views

ISBN-13 in bibtex

What is the proper way to put an ISBN-13 number into a bibtex entry? What do I have to do to make it show up in the bibliography? I have the following book: Landmarks of Tomorrow: A Report on the ...
8
votes
2answers
588 views

How does “libertine-type1” work?

I am really struggling to understand how the packages libertine-type1 and biolinum-type1 work now that libertine-legacy is depreciated. According to the new libertine.sty all options when using ...