From c359016aa35ad35afb7a7012ed858c14db227cb5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 21 Sep 2019 21:51:43 +0000 Subject: filecontents (21sep19) git-svn-id: svn://tug.org/texlive/trunk@52142 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/filecontents/filecontents.sty | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/filecontents') diff --git a/Master/texmf-dist/tex/latex/filecontents/filecontents.sty b/Master/texmf-dist/tex/latex/filecontents/filecontents.sty index a8190ab6eca..b97b143e30d 100644 --- a/Master/texmf-dist/tex/latex/filecontents/filecontents.sty +++ b/Master/texmf-dist/tex/latex/filecontents/filecontents.sty @@ -8,8 +8,8 @@ %% %% This is a generated file. %% -%% Copyright (C) 2018 Scott Pakin -%% ------------------------------------------------------- +%% Copyright (C) 2011-2019 Scott Pakin +%% -------------------------------------------------------- %% %% This package may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3c of this @@ -23,13 +23,13 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{filecontents} - [2018/05/30 v1.4 Create an external file from within a LaTeX document] + [2019/09/20 v1.5 Create an external file from within a LaTeX document] \begingroup% \catcode`\*=11 % \catcode`\^^M\active% \catcode`\^^L\active\let^^L\relax% \catcode`\^^I\active% -\gdef\filec@ntents#1{% +\gdef\filec@ntents@old@kernel#1{% \openin\@inputcheck#1 % \ifeof\@inputcheck% \@latex@warning@no@line% @@ -90,10 +90,19 @@ \catcode`\^^M\active% \edef^^M##1^^M{% \noexpand\reserved@b##1\E\E\relax}}% -\endgroup% +\endgroup \def\fc@no@preamblecmds#1\do\filecontents#2\do\filec@ntents#3\relax{% \gdef\@preamblecmds{#1#3}} -\expandafter\fc@no@preamblecmds\@preamblecmds\relax +\@ifundefined{filec@ntents@opt}{% + \let\filec@ntents=\filec@ntents@old@kernel + \expandafter\fc@no@preamblecmds\@preamblecmds\relax +}{% + \PackageWarningNoLine{filecontents}{% + This package is obsolete. Disabling it and\MessageBreak + passing control to the filecontents environment\MessageBreak + defined by the LaTeX kernel% + }% +} \endinput %% %% End of file `filecontents.sty'. -- cgit v1.2.3