diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-05 23:21:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-05 23:21:09 +0000 |
commit | 9b5e953d3b9474631ef0f47d624224e3840f14d8 (patch) | |
tree | 7a8b54e34c21cc892b8f3d6980fbfcccfc14ae2b /Master/texmf-dist/doc/generic/iftex | |
parent | c7ab6260cbd5ecf7c748abf56df5d3a34ac8e70d (diff) |
new generic package iftex (5apr10)
git-svn-id: svn://tug.org/texlive/trunk@17720 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/iftex')
-rw-r--r-- | Master/texmf-dist/doc/generic/iftex/README | 20 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/iftex/iftex.pdf | bin | 0 -> 143101 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/iftex/iftex.tex | 80 |
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 Binary files differnew file mode 100644 index 00000000000..261aa8181c1 --- /dev/null +++ b/Master/texmf-dist/doc/generic/iftex/iftex.pdf 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 |