i****d 发帖数: 255 | 1 I just got a tex file from others but can not understand the following:
% ...
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi
% ...
\ifpdf
% ...
\fi
Let the tex file with this header be tt.tex. If i simply run latex tt.tex,
how can I know the \pdfoutput is defined or not?
And a general question is where i can find the explanation of all these
conditional words?
Thank you! |
|
T*********r 发帖数: 11175 | 2 你既然用pdflatex能用那就行了
没必要折腾这些
如果是submit到arxiv之类,只要在文件前面写上
\pdfoutput=1
这样系统就认识了
mac下的texshop也是如此,会强制使用pdflatex的
我写beamer之类都是这样的 |
|
i********w 发帖数: 2223 | 3 thanks
你既然用pdflatex能用那就行了
没必要折腾这些
如果是submit到arxiv之类,只要在文件前面写上
\pdfoutput=1
这样系统就认识了
mac下的texshop也是如此,会强制使用pdflatex的
我写beamer之类都是这样的 |
|
k******e 发帖数: 2 | 4 You can also write something like that:
\ifx\pdfoutput\undefined
% we are running LaTeX, not pdflatex
\usepackage{graphicx}
\else
% we are running pdflatex, so convert .eps files to .pdf
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\fi
换
操 |
|
A*r 发帖数: 22 | 5 google到一个做法
tex文件头加\pdfoutput=1 |
|