diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx')
-rw-r--r-- | Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx b/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx index a6706d7e980..629824038d0 100644 --- a/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx +++ b/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% mylatexformat : 2011/01/18 v3.2 - Use mylatexformat.ltx to make a format based on the preamble of any LaTeX file +%% mylatexformat : 2011/01/19 v3.3 - Use mylatexformat.ltx to make a format based on the preamble of any LaTeX file %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -27,7 +27,7 @@ %%% mylatexformat.ltx %%% ^^^^^^^^^^^^^^^^^ %%% From an original idea by David Carlisle - mylatex.ltx 1994/09/27 -%%% ^^a9 lppl 2010-2011 - F Chervet - 2011/01/18 v3.2 +%%% ^^a9 lppl 2010-2011 - F Chervet - 2011/01/19 v3.3 %%% _____________________________________________________________________ %%% %%% Use this file to make a format based on the preamble of any LaTeX @@ -203,7 +203,7 @@ %% \document is changed or patched by some classes or packages %% (auxhook, etoolbox etc.) { - \def\x #1{\gdef\begin ##1{\MYLATEX@StopAtdocument{##1}#1}%^^f9 + \def\x #1{\gdef\begin ##1{\MYLATEX@StopAtdocument{##1}#1}% }\expandafter\x\expandafter{\begin{#1}}% } \def\MYLATEX@restore@begin{% @@ -211,7 +211,12 @@ \gdef\begin ####1{##1##3}% }\expandafter\MYLATEX@restore@begin\begin{##1}\@nil \global\let\MYLATEX@restore@begin \@undefined + \global\let\MYLATEX@StopAtdocument \@undefined }% \MYLATEX@restore@begin +\def\MYLATEX@StopAtdocument#1{% + \expandafter\ifx\csname#1\endcsname\document + \expandafter\endofdump\fi +}% \MYLATEX@StopAtdocument %% The version of \document to use on the initex run. %% Just preloads some fonts, puts back \document and \openout, %% sets up the banner to display the file list of files preloaded, @@ -233,8 +238,6 @@ }}% \let\openout \etex@primitive@openout% just in case - normally not necessary \MYLATEX@restore@begin -%% \let\begin \MYLATEX@ltx@begin -%% \let\MYLATEX@ltx@begin \@undefined \MYLATEX@cmap@hook \makeatother \everyjob\expandafter{\the\everyjob |