由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - latex conditionals
相关主题
acm trans的latex template的cite问题, 急请教如何用beamer把slides做成handout以便打印?
请教:“.ps file does not exist!”怎么总是说reference找不到?
LaTeX Error: Environment ruledtabular undefined.为什么 \neq 会出错呢?
latex写信函(letters),无法做tablenewcommand参数重用?
latex如何将page number放到页面bottom center -发一个包子WinEdt编译的一个问题:如何看到DOS的编译warning
LaTeX book template 的章节名字问题关于miktex的安装-新手
关于report中header设置问题:关于natbib里面的author undefined (转载)
\subparagraph question如何添加超链接?
相关话题的讨论汇总
话题: pdfoutput话题: ifpdf话题: latex话题: tex
进入TeX版参与讨论
1 (共1页)
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!
S**I
发帖数: 15689
2
这个是用ifpdf package实现的,package的文档在这里:
http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/ifpdf.pdf

【在 i****d 的大作中提到】
: 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
: % ...

i****d
发帖数: 255
3
Thank you!

【在 S**I 的大作中提到】
: 这个是用ifpdf package实现的,package的文档在这里:
: http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/ifpdf.pdf

1 (共1页)
进入TeX版参与讨论
相关主题
如何添加超链接?latex如何将page number放到页面bottom center -发一个包子
Emacs : C-c C-c undefine 是怎么回事?LaTeX book template 的章节名字问题
bibtex help关于report中header设置问题:
怎样 undefine 一个 newcommand \subparagraph question
acm trans的latex template的cite问题, 急请教如何用beamer把slides做成handout以便打印?
请教:“.ps file does not exist!”怎么总是说reference找不到?
LaTeX Error: Environment ruledtabular undefined.为什么 \neq 会出错呢?
latex写信函(letters),无法做tablenewcommand参数重用?
相关话题的讨论汇总
话题: pdfoutput话题: ifpdf话题: latex话题: tex