summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/generic/iftex/README20
-rw-r--r--Master/texmf-dist/doc/generic/iftex/iftex.pdfbin0 -> 143101 bytes
-rw-r--r--Master/texmf-dist/doc/generic/iftex/iftex.tex80
3 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/iftex/README b/Master/texmf-dist/doc/generic/iftex/README
new file mode 100644
index 00000000000..124c99c6157
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/iftex/README
@@ -0,0 +1,20 @@
+_________________
+The iftex package
+v0.1
+
+This very simple package, for both Plain TeX and LaTeX,
+defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX boolean
+for testing whether PDFTeX, or XeTeX, or LuaTeX is being
+used for typesetting.
+
+Also provides the \RequirePDFTeX, \RequireXeTeX, and \RequireLuaTeX
+command which throws an error if PDFTeX, XeTeX and LuaTeX (respectively)
+is not the engine in use.
+
+
+______________
+Vafa Khalighi
+vafakh84@gmail.com
+
+Copyright 2010
+Distributed under the LaTeX Project Public License
diff --git a/Master/texmf-dist/doc/generic/iftex/iftex.pdf b/Master/texmf-dist/doc/generic/iftex/iftex.pdf
new file mode 100644
index 00000000000..261aa8181c1
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/iftex/iftex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/iftex/iftex.tex b/Master/texmf-dist/doc/generic/iftex/iftex.tex
new file mode 100644
index 00000000000..7914276f004
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/iftex/iftex.tex
@@ -0,0 +1,80 @@
+\documentclass{artikel3}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage[colorlinks=true,linkcolor=mybrown,urlcolor=mygreen]{hyperref}
+\usepackage{bidicode}
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+\definecolor{mybrown}{rgb}{.6,0,0}
+\definecolor{mygreen}{rgb}{0,.43,0}
+\definecolor{Orange}{rgb}{1,.4,.2}
+\newcommand\PDFTeX{PDF\TeX}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\LuaTeX{Lua\TeX}
+\title{The \textsf{iftex} Package\\ \href{http://bitbucket.org/vafa/iftex}{\texttt{http://bitbucket.org/vafa/iftex}}}
+\author{Vafa Khalighi\\ \href{mailto:vafakh84@gmail.com}{\texttt{vafakh84@gmail.com}}}
+\date{Version 0.1}
+\begin{document}
+\maketitle
+\tableofcontents
+\section{Introduction}
+This package provides a way to check if a document is being processed with \PDFTeX, or \XeTeX, or \LuaTeX.
+\section{Loading The Package}
+The package can be loaded in the usual way both in Plain \TeX\ and \LaTeX.
+\subsection{Loading The Package in Plain \TeX}
+\begin{BDef}
+\Lcs{input}\quad \Larg{iftex.sty}
+\end{BDef}
+\subsection{Loading The Package in \LaTeX}
+\begin{BDef}
+\Lcs{usepackage}\Largb{iftex}
+\end{BDef}
+\section{Defined Conditionals}
+\subsection{For \PDFTeX}
+\begin{BDef}
+\Lcs{ifPDFTeX}\\
+\qquad\Larga{material for \PDFTeX}\\
+\Lcs{else}\\
+\qquad\Larga{material not for \PDFTeX}\\
+\Lcs{fi}
+\end{BDef}
+\subsection{For \XeTeX}
+\begin{BDef}
+\Lcs{ifXeTeX}\\
+\qquad\Larga{material for \XeTeX}\\
+\Lcs{else}\\
+\qquad\Larga{material not for \XeTeX}\\
+\Lcs{fi}
+\end{BDef}
+\subsection{For \LuaTeX}
+\begin{BDef}
+\Lcs{ifLuaTeX}\\
+\qquad\Larga{material for \LuaTeX}\\
+\Lcs{else}\\
+\qquad\Larga{material not for \LuaTeX}\\
+\Lcs{fi}
+\end{BDef}
+\section{Defined Commands}
+\subsection{For \PDFTeX}
+\begin{BDef}
+\Lcs{RequirePDFTeX}
+\end{BDef}
+This command tests for \PDFTeX\ use and throws an error if a different engine is being used.
+\subsection{For \XeTeX}
+\begin{BDef}
+\Lcs{RequireXeTeX}
+\end{BDef}
+This command tests for \XeTeX\ use and throws an error if a different engine is being used.
+\subsection{For \LuaTeX}
+\begin{BDef}
+\Lcs{RequireLuaTeX}
+\end{BDef}
+This command tests for \LuaTeX\ use and throws an error if a different engine is being used.
+\end{document} \ No newline at end of file