summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/babel/babel.ins
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/babel/babel.ins')
-rw-r--r--Master/texmf-dist/source/latex/babel/babel.ins93
1 files changed, 51 insertions, 42 deletions
diff --git a/Master/texmf-dist/source/latex/babel/babel.ins b/Master/texmf-dist/source/latex/babel/babel.ins
index 1ddc7d9f07f..539ffba53e9 100644
--- a/Master/texmf-dist/source/latex/babel/babel.ins
+++ b/Master/texmf-dist/source/latex/babel/babel.ins
@@ -42,7 +42,7 @@
%%
%% You are not allowed to modify its contents.
%%
-\def\filedate{2013/04/10}
+\def\filedate{2013/10/10}
\def\batchfile{babel.ins}
\input docstrip.tex
@@ -61,6 +61,51 @@
\csname @@end\endcsname
\fi}
+% Modify docstrip. A pseudo-guard is defined to set variables:
+% <<name=value>>. These variables are used with <@name@>
+% Two further pseudo-guards define "block" variables: <<*name>> and
+% <</name>> delimite the lines to be retrived with <@name@>. Note
+% the verbatim guard is overriden, which it's not used here.
+
+\def\replaceVar#1<@#2{%
+ #1%
+ \ifx\endLine#2\else
+ \expandafter\replaceVarX\expandafter#2%
+ \fi}
+
+\def\replaceVarX#1@>{\csname #1Var\endcsname\replaceVar}
+
+\def\normalLine#1\endLine{%
+ \advance\codeLinesPassed\@ne
+ \maybeMsg{.}%
+ \edef\inLine{\replaceVar#1<@\endLine}%
+ \let\do\putline@do
+ \ifcollect
+ \xdef\varCollect{\varCollect^^J\inLine}%
+ \else
+ \activefiles
+ \fi}
+
+\newif\ifcollect
+
+\def\verbOption<#1#2>>#3{%
+ \ifx#1*%
+ \maybeMsg{<<*#2>>}%
+ \global\collecttrue
+ \gdef\varCollect##1{}%
+ \else\ifx#1/%
+ \global\collectfalse
+ \global\expandafter\let\csname #2Var\endcsname\varCollect
+ \else
+ \varOptionI#1#2>%
+ \fi\fi}
+
+\def\varOptionI#1=#2>{%
+ \maybeMsg{<<#1=#2>>}%
+ \expandafter\gdef\csname #1Var\endcsname{#2}}
+
+% Preambles
+
\declarepreamble\mainpreamble
This is a generated file.
@@ -96,44 +141,6 @@ and covered by LPPL is defined by the unpacking scripts (with
extension .ins) which are part of the distribution.
\endpreamble
-\declarepreamble\fdpreamble
-This is a generated file.
-
-Copyright 2012-2013 Javier Bezos and Johannes L. Braams.
-Copyright 1989-2008 Johannes L. Braams and any individual authors
-listed elsewhere in this file. All rights reserved.
-
-This file was generated from file(s) of the Babel system.
----------------------------------------------------------
-
-It 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 2003/12/01 or later.
-
-This work has the LPPL maintenance status "maintained".
-
-The Current Maintainer of this work is Javier Bezos.
-
-This file may only be distributed together with a copy of the Babel
-system. You may however distribute the Babel system without
-such generated files.
-
-The list of all files belonging to the Babel distribution is
-given in the file `manifest.bbl'. See also `legal.bbl for additional
-information.
-
-In particular, permission is granted to customize the declarations in
-this file to serve the needs of your installation.
-
-However, NO PERMISSION is granted to distribute a modified version
-of this file under its original name.
-
-\endpreamble
-
\declarepreamble\drvpreamble
This file was generated from file(s) of the Babel system.
@@ -169,6 +176,8 @@ This file is a style file for the MakeIndex program
\askforoverwritefalse
+\tracingmacros2
+
\generate{\file{babel.sty}{\from{babel.dtx}{package}}
\file{babel.def}{\from{babel.dtx}{core}}
\file{switch.def}{\from{babel.dtx}{kernel}}
@@ -176,9 +185,9 @@ This file is a style file for the MakeIndex program
\file{nil.ldf}{\from{babel.dtx}{nil}}
}
% Support for plain users
-\generate{\file{plain.def}{\from{bbplain.dtx}{code}}
- \file{bplain.tex}{\from{bbplain.dtx}{bplain}}
- \file{blplain.tex}{\from{bbplain.dtx}{blplain}}
+\generate{\file{plain.def}{\from{babel.dtx}{plain}}
+ \file{bplain.tex}{\from{babel.dtx}{bplain}}
+ \file{blplain.tex}{\from{babel.dtx}{blplain}}
}
% Support for Unicode-based engines
\generate{\file{xebabel.def}{\from{bbunicode.dtx}{xetex}}