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)

12
votes
3answers
2k views

How to get accented unicode characters that can be copy-pasted?

The aim is to generate the .pdf with accented characters (the .tex file has mixed macro and unicode input), in a way that the .pdf text can be copy-pasted. An example: \documentclass{article} ...
11
votes
2answers
1k views

It is possible to make fonts appear heavier (darker) in pdf output of Latex?

[Edited to include what I have learned from the answers.] I am using Latex in TeX Live on my Mac, through TeXLive. I compile .pdf files using Pdflatex. I use the default fonts. [These fonts are ...
22
votes
1answer
645 views

Can I write a document that is compilable with both latex and xetex?

I have just started to have a look at XeTeX and I am wondering whether to make the switch, however I am a bit scared... ...and I am basically wondering if I have to take the step fully or if I can ...
13
votes
3answers
937 views

Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code: \documentclass[a4paper]{article} \usepackage[pdf]{pstricks} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(0.7in,0.7in) ...
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 ...
7
votes
2answers
776 views

Is there a “ForwardPDF” tool available?

When I am working on a big document, I find the srcltx package to be extremely useful. However, I also really like the hyperref package. Is it possible to use both? In particular, is there a way to ...
22
votes
2answers
2k views

Ensure verbatim code block is copy/paste-able

After rendering a document containing this code block \begin{verbatim} if [ ! -d .git ]; then git init; fi # Initialises a new Git repository, if doesn't already exist. if [ ! -f README.md ]; ...
16
votes
3answers
2k views

Includegraphics maximum width

With \includegraphics I can give the width of the resulting image (which would be scaled). How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep ...
15
votes
2answers
607 views

Easily assign undefined ligatures with pdfLaTeX?

Ulrike Fischer showed how Linux Libertine's special ligatures are accessible. Even though she also pointed me at a chapter of the LaTeX Graphics Companion, I'm not really sure how to get these ...
12
votes
3answers
3k views

Using Asymptote with pdfLaTeX

I have recently started using LaTeX and have found it amazing. I now use LaTeX for all my documents :). However, now that I need to include some graphs and diagrams in my documents, I have found the ...
8
votes
1answer
488 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 ...
3
votes
0answers
131 views

How do the various LaTeX compilers (LaTeX, XeLaTeX, PDFLaTeX, ???) differ in terms of use(s), purpose(s), pros and cons? [duplicate]

How do the various LaTeX compilers (LaTeX, XeLaTeX, PDFLaTeX, ???, ConTeXt, fill-in-the-gap) differ? Is there an authoritive list of all currently available LaTeX-related compilers? Which are the ...
11
votes
2answers
349 views

Are itemize and EBGaramond compatible?

This MWE works: \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{luainputenc} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. ...
10
votes
1answer
1k views

Can't copy-paste from my PDF. Any idea why?

When using copy paste from the PDF generated from my Latex document, the text comes out garbled. What could be causing this? This is an example of the original text: At last, and taking the risk ...
9
votes
2answers
2k views

Eliminate/Edit PDF properties added by pdfLaTeX

Is there a way to change the properties that are added to PDF docs? For instance, when I go the Properties panel in Acrobat, I see: Application: LaTeX with hyperref package PDF Producer: ...
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 ...
6
votes
2answers
416 views

Extracting characters from the new libertine (with pdflatex)

The issue: I need to access e.g. libertine's delta glyph in pdflatex. This question notes that the \libertineGlyph command is no longer provided by the latest version of the libertine package. It ...
4
votes
1answer
367 views

Installing EBGaramond for pdfLaTeX

I made a foolish choice to play around with fonts a few days ago, and haven't escaped since. After getting very kind and useful help here yesterday, I decided to follow the advice given, and change to ...
4
votes
1answer
435 views

Pixelated font as on Texas Instruments calculators

For pedagogical reasons, I would like to build one environment to display something like the screen of one Texas Instruments calculator. What I'm looking for is a way to produce, via pdflatex, one ...
2
votes
1answer
773 views

Specifying CJK fonts for pdftex and CJK.sty

I'm compiling a Japanese TeX file written with CJK.sty, and using the IPA fonts. I used ttf2tfm to generate tfm files. Is there a way to tell pdftex that a set of tfm files correspond to one Unicode ...
16
votes
5answers
16k views

Unicode degree symbol ° in math formulas: \textdegree invalid in math mode

I'd like to be able to simply input a degree symbol as ° in my source code. German keyboards have a key for this, and it makes the source so much more readable. I'm using pdflatex from TeXLive 2012, ...
13
votes
2answers
799 views

Regular expressions with pdfTeX

How can one use \pdfmatch with regular expressions and where can one find a listing and description of all the available pdfTeX primitives and help on their use? Edit The latest issue of the pdfTeX ...
12
votes
1answer
940 views

File size difference between XeLaTeX and pdfLaTeX

When working with MacTeX 2010, I noticed that XeLaTeX generates files considerably smaller than pdfLaTeX on the same input. Even with the small example \documentclass[11pt]{article} \begin{document} ...
12
votes
2answers
3k views

Conflict between color, graphicx and libertine

Compiling the following with pdflatex (TeXLive 2009/Debian on Ubuntu 10.04 "Lucid Lynx") \documentclass{article} \usepackage{ifpdf} \ifpdf \usepackage[T1]{fontenc} \usepackage{libertine} % ...
11
votes
1answer
1k views

Determine height of the line you are in

Is there a way in PDFLaTeX to determine the height of the line you are in? Maybe something similar to PDFsavepos. In a normal line (i.e. no heading etc.), you might approximate the height by a fixed ...
10
votes
1answer
847 views

Linux Libertine and pdfTeX: glyph `a' undefined

I have little doubt, usually, in the Linux Libertine font with LaTeX / pdflatex, but a couple of weeks ago, the following happened to me: I have the file with the following test.tex ...
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 ...
8
votes
1answer
212 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 ...
7
votes
1answer
312 views

How do I know which ligatures are used in my document?

In order to know which ligatures I might consider disabling, I would like to know which ones are actually used in my document. (Which ligatures are provided by a font is a more general question; I ...
7
votes
1answer
1k views

Errors using pdfx package to generate PDF/A

I need to submit my thesis in PDF/A format. I am using LyX, but I don't think that is relevant for my question. I get this error message when running pdfx package: ! pdfTeX error (ext5): cannot ...
7
votes
1answer
336 views

Use case for pdfTeX's \quitvmode

While reading one of Lev's answers, I encountered a pdfTeX primitive \quitvmode that I have never noticed before. The pdfTeX manual states that this causes TeX to leave (internal) vertical mode and ...
6
votes
1answer
639 views

Properly sort index containing utf8 characters?

If my input file is utf8 encoded, how to I create an index where the entries are properly sorted? Minimal example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{makeidx} \makeindex ...
6
votes
2answers
483 views

How to determine the run time of a loop?

pdfTeX, provides two macros that can be used to determine the time elapsed from a run start. The first one determines the elapsed time in "scaled seconds", that means seconds divided by 65536. ...
5
votes
1answer
507 views

How to run LaTeX and lilypond-book in one command?

I was wondering if there was any command which would let me create a PDF from a LyTeX source in one step. Currently, I am first executing lilypond-book: lilypond-book --latex-program=pdflatex --pdf ...
5
votes
1answer
3k views

pdflatex, latexmk, synctex: Adding an option to pdflatex causes synctex to fail

The user "Mike" kindly helped me on Latex, Emacs: automatically open TeX Help buffer on error and close it after correction of the error? to create the following function which makes error detection ...
2
votes
1answer
1k views

Recover TeX file back from compiled PDF [duplicate]

Possible Duplicate: How to convert PDF to (La)TeX? Has anyone written a piece of code that (at least) tries to reconstruct (standard) LaTeX from a compiled PDF file? I mean, identifying ...
1
vote
1answer
2k views

Including pdf_tex images from inkscape

I am trying to use pdftex to lay out a document including images made in inkscape. From inkscape I can output the images as pdfs with accompanying pdf_tex files and put these in a figure environment. ...
0
votes
1answer
61 views

PDFLatex tables are covering up text

I have a series of images that I'm displaying using a table environment. However, pdflatex places my table over the references portion of my paper. I've tried [htb!] options for the table, and it ...
12
votes
1answer
337 views

Hyphens at end of line disappear upon pasting, even if they were present in the input

When I paste text from pdflatex output, there are two things about hyphens that I would like to change: Hyphens paste as "hyphen-minus" (U+002D, "-"), but I would prefer the newer Unicode character ...
12
votes
2answers
456 views

How to tell when to use pdflatex, latex, and xelatex for any given tex file?

I'm writing an automatic compiling pipeline that should be able to compile any given tex file into a pdf. The diversity of the input tex files mainly shows up in what format of figures they use and ...
12
votes
1answer
14k views

Including GIF image in pdflatex document

I'm trying to include GIF image in my LaTeX document. To my understanding this is possible. I'm using pdflatex and I get the following message: ERROR: LaTeX Error: Unknown graphics extension: .gif. ...
12
votes
3answers
894 views

Hyperref: Scandinavian characters (æø) don't work in \url, hyperlink is wrong

Background A while ago it became possible to use the letters æ, ø and å in URLs, and some websites, like the encyclopaedia Store Norske Leksikon, has made use of this. Recently, a question was ...
10
votes
3answers
272 views

Compile all tex files within a folder at once

Is there a way to compile all tex files within a specific folder, from LINUX terminal, at once? I would like to do this using pdflatex or lualatex in a way to create a pdf file for each distinc ...
8
votes
3answers
907 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} ...
7
votes
1answer
133 views

page break in the middle of a \cite

With pdflatex all my citation are pdf hyperlinks to the respective entry in the bibliography. This causes a problem when occasionally Latex decides to do a page break in the middle of a citation so ...
7
votes
1answer
1k views

pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) has been already used, duplicate ignored

I've tried to make bilingual caption with package "ccaption" and compiled it with pdfLaTeX. It works fine but with a warning: pdfTeX warning (ext4): destination with the same identifier ...
7
votes
1answer
140 views

Is it possible to tell pdflatex to terminate after the first error?

In case of a syntax error, pdflatex usually (in \errorstopmode) gets interactive and asks you what to do. I know I can press: X to terminate S to enter \scrollmode (continue processing without ...
7
votes
1answer
811 views

Compiling CircuiTikZ with -shell-escape (pdflatex)

I'm trying to use both CircuiTikZ and pgfplots. In order not to overflow LaTeX memory, I use the TikZ externalize library with -shell-escape command in pdfLaTeX. It compiles the pgfplots nicely, but ...
6
votes
1answer
455 views

How to input kana with PDFLaTeX?

There are a lot of topics about how to use Japanese font, but, often the answer is: use XeLaTeX (or some other), or worse, it's just doesn't work at all. So, knowing that I'm working with PDFLaTeX ...
6
votes
2answers
378 views

How to add numerical (ala No Starch Press) listing notes without XeTeX?

I've been following the instructions and code available at: https://zuttobenkyou.wordpress.com/2010/12/05/latex-saner-source-code-listings-no-starch-press-style/ I would like to add notes (and style) ...