由买买提看人间百态

topics

全部话题 - 话题: pdfoutput
(共0页)
i****d
发帖数: 255
1
来自主题: TeX版 - latex conditionals
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
来自主题: Faculty版 - texify,pdftexify, hyperref
你既然用pdflatex能用那就行了
没必要折腾这些
如果是submit到arxiv之类,只要在文件前面写上
\pdfoutput=1
这样系统就认识了
mac下的texshop也是如此,会强制使用pdflatex的
我写beamer之类都是这样的
i********w
发帖数: 2223
3
来自主题: Faculty版 - texify,pdftexify, hyperref
thanks

你既然用pdflatex能用那就行了
没必要折腾这些
如果是submit到arxiv之类,只要在文件前面写上
\pdfoutput=1
这样系统就认识了
mac下的texshop也是如此,会强制使用pdflatex的
我写beamer之类都是这样的
k******e
发帖数: 2
4
来自主题: TeX版 - pdflatex下的图形一问
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
(共0页)