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)

10
votes
1answer
7k 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 ...
10
votes
1answer
350 views

Performance of LaTeX and other TeX derivatives

I need to generate thousands of pdf reports, based on some data. Right now I am using pdflatex for this. Are there differences in performance between pdflatex and other TeX derivatives? My content is ...
10
votes
2answers
13k views

TeXLive 2011: pdfLaTeX does not convert eps to pdf for eps files in subdirectories

As from 2010, TexLive has been converting .eps files directly to pdf file if the compilation is done with PDFLaTeX. Thus a file named coilsans.eps will be automatically be converted to a file named ...
10
votes
2answers
713 views

Do XeTeX and LuaTeX always use Unicode?

I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
10
votes
2answers
410 views

Generate large document by pdfTeX, then break result into many PDF files while preserving links

This is the PDF file of a book I wrote: http://www.abstractmath.org/Handbook/handbook.pdf It takes a long time to download because it is a big file. I generated it using pdfLaTeX. Is there a way to ...
10
votes
1answer
7k views

Switching color and grayscale mode for \includegraphics

Suppose I have a document that includes a lot of colorful PDFs. Now I'd like to easily switch between "color" version and "greyscale version". I'm aware of \DeclareGraphicsRule, but I think this needs ...
10
votes
2answers
4k 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 ...
10
votes
1answer
214 views

better reference for apparently undocumented latex command line options?

I've gradually blundered upon a number of useful pdflatex command line options from questions in this forum, but not all of these are documented (specifically the useful -file-line-error parameter). ...
10
votes
1answer
149 views

Is there any compiler-dependent font loadable for pdflatex but not for latex-dvips-ps2pdf?

I want to make sure that I can load the same fonts for each input file either for diagrams and text contents. It is related to my statement below, Even though PSTricks cannot work with pdflatex ...
10
votes
1answer
41k views

LaTeX Error: Cannot determine size of graphic in title.png (no BoundingBox)

I seem to be getting a strange error after updating MiKTeX 2.9. I am using pdfLaTeX and TeXmaker with the graphicx package to include .png images. When I try to compile, I get the error LaTeX Error: ...
10
votes
0answers
65 views

Why does compiling TikZ with latex-dvips-ps2pdf produce a much much bigger PDF than with pdflatex? [duplicate]

The following MWE simulates the problem. Compile it with pdflatex -shell-escape. \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{common.tex} ...
9
votes
3answers
1k 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} ...
9
votes
2answers
3k views

How do I get rid of particular pdftex warning message?

Here is a minimal example that showcases my problem: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} ...
9
votes
1answer
1k views

Package tgpagella and text figures

Is there a way that text figures (old style numerals) can be set as default for text when loading the package tgpagella? I get them if I use the .otf files under XeLaTeX, but I'd like to get them when ...
9
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?
9
votes
3answers
265 views

Using \input|texlua… to emulate \directlua in pdfTeX

When --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a ...
9
votes
2answers
222 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 -{}- ...
9
votes
2answers
151 views

How to use \pdfcolorstack?

Consider this code: \chardef\Color=\pdfcolorstackinit page direct{0 g} \pdfcolorstack \Color push {1 0 0 rg 1 0 0 RG} red \pdfcolorstack \Color pop {} black \hrule height 1pt width 50pt \bye I try ...
9
votes
3answers
8k views

How to make images appear at their actual size?

Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have ...
9
votes
2answers
311 views

How can some eastern European diacritics be correctly displayed with the Alegreya font and pdftex?

I would like to use the Alegreya font in a document that features several diacritic symbols from eastern European languages. Whith xelatex everything works fine, but I would like to use pdftex, and ...
9
votes
2answers
8k views

Beamer theme, remove navigation bar from one slide

I'm using beamer and the theme Copenhagen. I would like to remove the navigation menu (the list of section mames shown at the top of each slide) from the first (first page) and from the summary ...
9
votes
3answers
149 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 ...
9
votes
3answers
3k views

\left and \right in equation across multiple lines [duplicate]

Possible Duplicate: Left/Right across multiline equation Could someone explain why I can't get the left and right commands to work correctly code: \documentclass{article} ...
9
votes
2answers
2k views

How to use downloaded fonts with pdfLaTeX on Ubuntu

I want to use the Fontin font in my pdfLatex document. What steps should I do for using a downloaded font Should I download the TTF or the OpenType version? Where should I store the font? Should ...
9
votes
2answers
567 views

Why is this loop so much faster under Windows?

In a recent question, Yiannis Lazarides was asking about benchmarking loops. Strangely his results were about 800 times faster than mine. I couldn't quite accept that my computer is that outdated (as ...
9
votes
2answers
518 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 ...
9
votes
2answers
525 views

Embedding a flv (or mp4) video using pdfTeX (plain TeX only)

I am attempting to find out how to embed a flv video in a pdf file created using plain TeX and pdfTeX. I was successful at manually (via Adobe Acrobat's menu: Tools->Multimedia->Video Tool) embedding ...
9
votes
4answers
700 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 ...
9
votes
2answers
2k views

Can't silence a pdftex “PDF inclusion: multiple PDFs with page group” error

I am having an issue with PDFs generatied in Inkscape. If multiple files generated in this way are included on a single page I get the following error: pdfTeX warning: pdflatex.exe (file ...
9
votes
2answers
316 views

Question on the syntax of the options of pdflatex, latex, etc.: difference between -shell-escape and --shell-escape?

What is the difference between pdflatex -shell-escape myFile.tex and pdflatex --shell-escape myFile.tex ?
9
votes
2answers
358 views

pdfTeX and JPEG2000

In Which graphics formats can be included in documents processed by latex or pdflatex?, the answers indicate that that pdfLaTeX understands JPEG2000. For me it doesn't work and the above link seems to ...
9
votes
2answers
374 views

Half of a document in pdfLaTeX, half in XeLaTeX

As far as I know, I cannot use microtype in XeLaTeX, and cannot use fontspec in pdfLaTeX. I am rendering Chinese symbols only on one page, and I need this line: \newfontfamily{\J}[Scale=0.85]{Osaka} ...
9
votes
1answer
900 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 ...
9
votes
1answer
322 views

“The Errors of TeX” with hyperlinks

I was reading the appendix to "The Errors of TeX" by Knuth (errorlog.tex, written with plain TeX) and I noticed that there is a PDF file errorlog.pdf with nice hyperlinks and I was wondering how that ...
9
votes
2answers
288 views

\ifpdf returns true when using LuaLaTeX

The ifpdf package is supposed to detect if pdfTeX is running: This package looks for pdfTeX in pdf mode and implements and sets the switch \ifpdf. (from the ifpdf documentation) However, when I ...
9
votes
2answers
82 views

Weird pdfLaTeX+babel+color bug, Missing = inserted for \ifnum

I let the MWE speak for itself. \documentclass{minimal} % remove babel and it works % remove one language and it works % reorder the languages and it works ...
9
votes
1answer
355 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
5answers
3k 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
3answers
2k 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
543 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 ...
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
538 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 ...
9
votes
1answer
3k views

Trouble using ffmpeg to encode a h264 video in a .mp4 container to use with media9

I can't get an ffmpeg encoded libx264 video in a .mp4 container to work with media9 and beamer. The pdf is created using pdfLaTeX. It seems to be some kind of ffmpeg issue since the following work ...
9
votes
1answer
157 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
678 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
250 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
1answer
9k 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
1answer
630 views

Is there a working solution to produce PDF/A-1b with MiKTeX?

I have read a lot of interesting questions and answers on PDF/A-1b production with LaTeX and pdfTeX. I still can't produce validating PDF/A-1b files. I used either: the standard up-to-date pdfx ...