[latex3-commits] [git/LaTeX3-latex3-l3build] master: Added \SHOWFILE (maybe one day done by l3build adding the file to the log instead?) (3e11288)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Sep 28 11:45:04 CEST 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/3e11288bb8c070ce93893229f92992dbcf91596a

>---------------------------------------------------------------

commit 3e11288bb8c070ce93893229f92992dbcf91596a
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Sep 28 11:45:04 2018 +0200

    Added \SHOWFILE  (maybe one day done by l3build adding the file to the log instead?)


>---------------------------------------------------------------

3e11288bb8c070ce93893229f92992dbcf91596a
 l3build.dtx |   26 ++++++++++++++++++++++++++
 l3build.ins |    4 ++--
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/l3build.dtx b/l3build.dtx
index 368ef71..4f9c229 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -1824,6 +1824,32 @@
 %    \end{macrocode}
 % \end{macro}
 %
+%
+
+%  \begin{macro}{\SHOWFILE}
+%     Load a file (e.g.,| \jobname.toc|) into the .log file with the usual special
+%     characters rendered harmless. Use as |\SHOWFILE{\jobname.aux}|.
+%    \begin{macrocode}
+\begingroup       % within the scope of this groups each line needs to end in % !
+\catcode`\^^M\active %
+\gdef\SHOWFILE#1{%
+     \typeout{-------- #1 (start) ---------}% 
+\IfFileExists{#1}%
+  {\begingroup %
+     \catcode`\^^M\active %
+     \edef^^M{^\string^M^^J}%
+     \everyeof{\noexpand}%
+     \obeyspaces %
+     \@sanitize %
+     \message{\@@input #1 }%
+   \endgroup }%
+  {\message{Not found}}%
+     \typeout{-------- #1 (end) -----------}% 
+}%
+\endgroup
+%    \end{macrocode}
+%  \end{macro}
+%
 % To allow testing of possible changes, we allow extra code to be read
 % in before the test starts. The necessary code should be placed in a
 % file |regression-test.cfg|.
diff --git a/l3build.ins b/l3build.ins
index e943feb..483bab9 100644
--- a/l3build.ins
+++ b/l3build.ins
@@ -1,6 +1,6 @@
 \iffalse meta-comment
 
-File l3build.ins Copyright (C) 2014,2016 The LaTeX3 Project
+File l3build.ins Copyright (C) 2014-2018 The LaTeX3 Project
 
 It may be distributed and/or modified under the conditions of the
 LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -32,7 +32,7 @@ license information is placed in the derived files.
 
 \preamble
 
-Copyright (C) 2014-2016 The LaTeX3 Project
+Copyright (C) 2014-2018 The LaTeX3 Project
 
 It may be distributed and/or modified under the conditions of
 the LaTeX Project Public License (LPPL), either version 1.3c of





More information about the latex3-commits mailing list