2
votes
0answers
46 views

Can include text which conditionally appears depending on PDF viewer? [duplicate]

Can you have a message in a document which only appears when particular PDF viewers are used? I am using pdflatex to create a PDF document. I am including pdf image which, unfortunately, does not ...
15
votes
3answers
1k 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 ...
6
votes
2answers
126 views

ifx and pdflastypos

I'm not fully grasping how the \ifx command handles types. How should the following def's read to make the \ifx statement true when pdflastypos is at the zero coordinate? \def\nothingness{0} ...
9
votes
2answers
217 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 ...
12
votes
2answers
415 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 ...
3
votes
1answer
464 views

How can I place conditional statements in a LaTeX file dependant on how I'm processing it? [duplicate]

Possible Duplicate: Detect which TeX engine is used Conditional typesetting / build I'm currently writing a document in LaTeX (using the article documentclass for now, thinking about ...
8
votes
1answer
442 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
855 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?