diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-19 00:47:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-19 00:47:57 +0000 |
commit | 3ecf59827473ef50811e6d2ca409aa7838d9f23d (patch) | |
tree | 6ea534ec7b28a99fc074adeaa789c3b5c1c86990 /Master/texmf-dist/tex/latex/mylatexformat | |
parent | 86870e98932b50e41ecf60cee38259e04f225732 (diff) |
mylatexformat 3.2 (18jan11)
git-svn-id: svn://tug.org/texlive/trunk@21118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mylatexformat')
-rw-r--r-- | Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx b/Master/texmf-dist/tex/latex/mylatexformat/mylatexformat.ltx index b5f90e565e8..a6706d7e980 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/14 v331 - Use mylatexformat.ltx to make a format based on the preamble of any LaTeX file +%% mylatexformat : 2011/01/18 v3.2 - 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/14 +%%% ^^a9 lppl 2010-2011 - F Chervet - 2011/01/18 v3.2 %%% _____________________________________________________________________ %%% %%% Use this file to make a format based on the preamble of any LaTeX @@ -202,14 +202,16 @@ %% Rem: it is NOT POSSIBLE to redefine \document, for the macro %% \document is changed or patched by some classes or packages %% (auxhook, etoolbox etc.) -\let\MYLATEX@ltx@begin \begin -\def\begin#1{% - \expandafter \ifx\csname#1\endcsname\document - \expandafter\expandafter\expandafter\endofdump - \expandafter\@gobble - \else \expandafter\MYLATEX@ltx@begin - \fi{#1}% -}% \begin +{ + \def\x #1{\gdef\begin ##1{\MYLATEX@StopAtdocument{##1}#1}%^^f9 + }\expandafter\x\expandafter{\begin{#1}}% +} +\def\MYLATEX@restore@begin{% + \long\def\MYLATEX@restore@begin##1\MYLATEX@StopAtdocument##2##3\@nil{% + \gdef\begin ####1{##1##3}% + }\expandafter\MYLATEX@restore@begin\begin{##1}\@nil + \global\let\MYLATEX@restore@begin \@undefined +}% \MYLATEX@restore@begin %% 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, @@ -230,8 +232,9 @@ \ifdefined\tiny\tiny\fi }}% \let\openout \etex@primitive@openout% just in case - normally not necessary - \let\begin \MYLATEX@ltx@begin - \let\MYLATEX@ltx@begin \@undefined + \MYLATEX@restore@begin +%% \let\begin \MYLATEX@ltx@begin +%% \let\MYLATEX@ltx@begin \@undefined \MYLATEX@cmap@hook \makeatother \everyjob\expandafter{\the\everyjob |