summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/codedoc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-28 23:28:23 +0000
committerKarl Berry <karl@freefriends.org>2009-06-28 23:28:23 +0000
commitd5242cde0fb66b617d01d91c3454eba83b407ea8 (patch)
tree3d051a45cc53da56af6829d5d3e49392131adb25 /Master/texmf-dist/tex/latex/codedoc
parentef4feae42c0764e5906fdb15333d89c630c7ba22 (diff)
codedoc update (27jun09)
git-svn-id: svn://tug.org/texlive/trunk@13984 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/codedoc')
-rw-r--r--Master/texmf-dist/tex/latex/codedoc/codedoc.cls21
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/codedoc/codedoc.cls b/Master/texmf-dist/tex/latex/codedoc/codedoc.cls
index 956226048ff..3bdbda4d194 100644
--- a/Master/texmf-dist/tex/latex/codedoc/codedoc.cls
+++ b/Master/texmf-dist/tex/latex/codedoc/codedoc.cls
@@ -3,8 +3,8 @@
% This is the CodeDoc class, produced by itself
% with the `produce' option on, from `CodeDoc-manual.tex'.
%
-% Date: 2009/04/01
-% Version: v.0.1
+% Date: 2009/06/27
+% Version: v.0.2
% Author: Paul Isambert
%
% The documentation can be found in `CodeDoc-manual.pdf'
@@ -25,7 +25,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{codedoc}[2009/04/01 v.0.1 Code and documentation in one file.]
+\ProvidesClass{codedoc}[2009/06/27 v.0.2 Code and documentation in one file.]
\makeatletter
\catcode`\^^?=13
@@ -498,7 +498,7 @@ to\cd@TabSize\fontdimen2\font{\hss}%
\def\code@cd@BoxStyle{\rmfamily\footnotesize}
\gdef\code@cd@LineNumberBox{%
\global\advance\code@cd@LineNumber1\relax%
- \def\@currentlabel{\code@cd@LineNumber}%
+ \def\@currentlabel{\the\code@cd@LineNumber}%
\hbox to\code@cd@boxwidth{%
\hss%
\code@cd@BoxStyle\relax%
@@ -1314,6 +1314,9 @@ to\cd@TabSize\fontdimen2\font{\hss}%
\def\cd@InvisibleString{invisible}
\def\cd@StoredEnvironments{example,verbatim,Verbatim,BVerbatim,LVerbatim,SaveVerbatim,VerbatimOut,Example,CenterExample,SideBySideExample,PCenterExample,PSideBySideExample,}
+\newif\ifcd@everyeof
+\cd@everyeoftrue
+
\begingroup
\catcode`\{=12 %
\catcode`\}=12 %
@@ -1362,6 +1365,16 @@ to\cd@TabSize\fontdimen2\font{\hss}%
\newcount\cd@InputDepth
\gdef\input@Produce{#1}<
+ \ifcd@everyeof
+ \cd@everyeoffalse
+ \ifx\everyeof\@undefined
+ \cd@CDWarning<%
+ You're not running on e-TeX; the \string\input\space of files might be problematic.%
+ ^^JAdd `{}' at the end of \string\input\space files if you ever get a `File ended...' message>
+ \else
+ \everyeof<{}>
+ \fi
+ \fi
\cd@Tracing<\string\input\space file #1>
\expandafter\let\csname cd@MasterSource\the\cd@InputDepth\endcsname\cd@CurrentSource
\edef\cd@CurrentSource<#1 (\string\input\space in \cd@CurrentSource)>