summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-04 23:26:58 +0000
committerKarl Berry <karl@freefriends.org>2011-11-04 23:26:58 +0000
commite1a9e5336dd1d75914042141d1dcf9d3825efc37 (patch)
treeebc4f7a558b64e4dddacb4ad989bfee70c578908
parent1267e56426be0702177637c1eadae17ffc9468f4 (diff)
new generic package ifetex (31oct11)
git-svn-id: svn://tug.org/texlive/trunk@24502 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/ifetex/README17
-rw-r--r--Master/texmf-dist/doc/latex/ifetex/ifetex.pdfbin0 -> 108678 bytes
-rw-r--r--Master/texmf-dist/source/latex/ifetex/ifetex.dtx151
-rw-r--r--Master/texmf-dist/source/latex/ifetex/ifetex.ins11
-rw-r--r--Master/texmf-dist/tex/latex/ifetex/ifetex.sty25
-rw-r--r--Master/texmf-dist/tex/plain/ifetex/ifetex.tex33
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/ifetex.tlpsrc0
10 files changed, 240 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/ifetex/README b/Master/texmf-dist/doc/latex/ifetex/README
new file mode 100644
index 00000000000..42dcf0e35c7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ifetex/README
@@ -0,0 +1,17 @@
+LaTeX package 'ifetex'
+~~~~~~~~~~~~~~~~~~~~~~
+Copyright (c) 2011 by Martin Scharrer <martin@scharrer.me>
+WWW: http://latex.scharrer.me/
+CTAN: http://www.ctan.org/pkg/ifetex
+Code repository: https://bitbucket.org/martin_scharrer/ifetex
+
+This small package provides the if-switch \ifetex which indicated whether
+e-TEX is available or not.
+
+The package can be loaded as LaTeX package using `\usepackage{ifetex}` or in
+plainTeX using `\input ifetex`. In both cases it aborts silently if the \ifetex macro
+is already defined.
+
+The package currently test if \eTeXversion is defined as a primitive and
+assumes e-TEX if so.
+
diff --git a/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf b/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf
new file mode 100644
index 00000000000..dde87336349
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/ifetex/ifetex.dtx b/Master/texmf-dist/source/latex/ifetex/ifetex.dtx
new file mode 100644
index 00000000000..dac7c1fe434
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifetex/ifetex.dtx
@@ -0,0 +1,151 @@
+% \iffalse meta-comment
+%<=*COPYRIGHT>
+%% Copyright (C) 2011 by Martin Scharrer <martin@scharrer.me>
+%% ---------------------------------------------------------------------------
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ifetex.dtx and ifetex.ins
+%% and the derived filebase ifetex.sty.
+%%
+%<=/COPYRIGHT>
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{ifetex.dtx}[%
+%<=*DATE>
+ 2011/10/31
+%<=/DATE>
+%<=*VERSION>
+ v1.0
+%<=/VERSION>
+ Conditional to test for e-TeX]
+\documentclass{ydoc}
+\GetFileInfo{ifetex.dtx}
+\usepackage{ifetex}[\filedate]
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\begin{document}
+ \DocInput{\jobname.dtx}
+ \PrintChanges
+ \PrintIndex
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{32}
+%
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+%
+% \changes{v1.0}{2011/10/31}{First version.}
+%
+% \DoNotIndex{\newcommand,\newenvironment}
+%
+% \GetFileInfo{ifetex.dtx}
+% \author{Martin Scharrer}
+% \email{martin@scharrer.me}
+% \ifdefined\repository
+% \repository{https://bitbucket.org/martin_scharrer/ifetex}
+% \fi
+%
+% \maketitle
+%
+% \providecommand\eTeX{$\epsilon$-\TeX}
+% \begin{abstract}\noindent
+% This small package provides the if-switch \Macro\ifetex which
+% indicated whether \eTeX\ is available or not.
+% \end{abstract}
+%
+% \section{Usage}
+% The package can be loaded as \LaTeX\ package using \Macro\usepackage{ifetex} or in plain\TeX\ using \Macro\input' ifetex'.
+% In both cases it aborts silently if the \Macro\ifetex macro is already defined.
+%
+% The package currently test if \Macro\eTeXversion is defined as a primitive and assumes \eTeX\ if so.
+%
+% \StopEventually{}
+% \section{Implementation}
+%
+% \subsection{\texttt{ifetex.sty}}
+% \iffalse
+%<*ifetex.sty>
+% \fi
+% \begin{macrocode}
+%<!COPYRIGHT>
+\ProvidesPackage{ifetex}[%
+%<!DATE>
+%<!VERSION>
+%<*DRIVER>
+ 2099/01/01 develop
+%</DRIVER>
+ ifetex]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\@@input ifetex
+% \end{macrocode}
+% \iffalse
+%</ifetex.sty>
+% \fi
+%
+% \subsection{\texttt{ifetex.tex}}
+% \iffalse
+%<*ifetex.tex>
+% \fi
+% \begin{macrocode}
+%<!COPYRIGHT>
+% \end{macrocode}
+%
+% Abort if \Macro{ifetex} is already defined.
+% \begin{macrocode}
+\expandafter\ifx\csname ifetex\endcsname\relax\else
+ \expandafter\endinput
+\fi
+% \end{macrocode}
+%
+% \begin{macro}{ifetex}
+% Checks if \Macro\eTeXversion is a primitive.
+% \begin{macrocode}
+\newif\ifetex
+\begingroup
+\edef\tempa{\meaning\eTeXversion}%
+\edef\tempb{\string\eTeXversion}%
+\ifx\tempa\tempb
+ \global\etextrue
+\else
+ \global\etexfalse
+\fi
+\endgroup
+% \end{macrocode}
+% \end{macro}
+% \iffalse
+%</ifetex.tex>
+% \fi
+%
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/ifetex/ifetex.ins b/Master/texmf-dist/source/latex/ifetex/ifetex.ins
new file mode 100644
index 00000000000..8b3e6d5038d
--- /dev/null
+++ b/Master/texmf-dist/source/latex/ifetex/ifetex.ins
@@ -0,0 +1,11 @@
+\input ydocstrip.tex
+\keepsilent
+\askforoverwritefalse
+
+\generate{%
+ \file{ifetex.sty}{\nopreamble\from{ifetex.dtx}{ifetex.sty}}%
+ \file{ifetex.tex}{\nopreamble\from{ifetex.dtx}{ifetex.tex}}%
+}
+\endbatchfile
+
+%% vim: ft=tex
diff --git a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
new file mode 100644
index 00000000000..67a87dff626
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
@@ -0,0 +1,25 @@
+%% Copyright (C) 2011 by Martin Scharrer <martin@scharrer.me>
+%% ---------------------------------------------------------------------------
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ifetex.dtx and ifetex.ins
+%% and the derived filebase ifetex.sty.
+%%
+\ProvidesPackage{ifetex}[%
+ 2011/10/31
+ v1.0
+ ifetex]
+\@@input ifetex
+\endinput
+%%
+%% End of file `ifetex.sty'.
diff --git a/Master/texmf-dist/tex/plain/ifetex/ifetex.tex b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
new file mode 100644
index 00000000000..0e671054763
--- /dev/null
+++ b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
@@ -0,0 +1,33 @@
+%% Copyright (C) 2011 by Martin Scharrer <martin@scharrer.me>
+%% ---------------------------------------------------------------------------
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ifetex.dtx and ifetex.ins
+%% and the derived filebase ifetex.sty.
+%%
+\expandafter\ifx\csname ifetex\endcsname\relax\else
+ \expandafter\endinput
+\fi
+\newif\ifetex
+\begingroup
+\edef\tempa{\meaning\eTeXversion}%
+\edef\tempb{\string\eTeXversion}%
+\ifx\tempa\tempb
+ \global\etextrue
+\else
+ \global\etexfalse
+\fi
+\endgroup
+\endinput
+%%
+%% End of file `ifetex.tex'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index c0726260d81..5a403c26f9c 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -195,7 +195,7 @@ my @TLP_working = qw(
hypdvips hyper hypernat hyperref hyperxmp hyph-utf8 hyphen-base
hyphenat hyphenex hyplain
ibygrk icsv idxlayout ieeepes
- ifmslide ifmtarg ifnextok ifoddpage ifplatform iftex ifxetex
+ ifetex ifmslide ifmtarg ifnextok ifoddpage ifplatform iftex ifxetex
ijmart ijqc
imac image-gallery imakeidx impatient impatient-fr
impnattypo import imtekda
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 5bc72f290e5..2b6ab85de75 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1932,6 +1932,7 @@ $standardmapdest = "fonts/map/dvips";
%specialmapdest = (
'adobemapping' => "fonts/cmap",
'arabxetex' => "fonts/misc/xetex/fontmapping",
+ 'ipaex' => "fonts/map/dvipdfmx",
'xepersian' => "fonts/misc/xetex/fontmapping",
'xetex-devanagari' => "fonts/misc/xetex/fontmapping",
'xetex-itrans' => "fonts/misc/xetex/fontmapping",
diff --git a/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc
index ceae3dc690e..d0478ed7117 100644
--- a/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc
@@ -16,6 +16,7 @@ depend epigram
depend fenixpar
depend fltpoint
depend fntproof
+depend ifetex
depend iftex
depend insbox
depend lecturer
diff --git a/Master/tlpkg/tlpsrc/ifetex.tlpsrc b/Master/tlpkg/tlpsrc/ifetex.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/ifetex.tlpsrc