summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/expl3/l3vers.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-06 23:20:13 +0000
committerKarl Berry <karl@freefriends.org>2009-09-06 23:20:13 +0000
commit2b8eb47b09b2d853b8243d0fb61b408edb3d04a7 (patch)
treed581f2afc11c2d53246c31da8a8a7de24c855b0c /Master/texmf-dist/source/latex/expl3/l3vers.dtx
parentd9919f44994077f178b0ebda415a1638f8acc0ec (diff)
expl3 1509 (5sep09)
git-svn-id: svn://tug.org/texlive/trunk@15163 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/expl3/l3vers.dtx')
-rw-r--r--Master/texmf-dist/source/latex/expl3/l3vers.dtx99
1 files changed, 27 insertions, 72 deletions
diff --git a/Master/texmf-dist/source/latex/expl3/l3vers.dtx b/Master/texmf-dist/source/latex/expl3/l3vers.dtx
index c61d07ce94c..9b00d45380b 100644
--- a/Master/texmf-dist/source/latex/expl3/l3vers.dtx
+++ b/Master/texmf-dist/source/latex/expl3/l3vers.dtx
@@ -35,7 +35,7 @@
\RequirePackage{l3names}
%</driver|package>
%\fi
-\GetIdInfo$Id: l3vers.dtx 1378 2009-06-01 19:15:56Z joseph $
+\GetIdInfo$Id: l3vers.dtx 1452 2009-08-08 14:09:32Z joseph $
{L3 Experimental LaTeX format version}
%\iffalse
%<*driver>
@@ -45,7 +45,7 @@
%\iffalse
\documentclass[full]{l3doc}
\begin{document}
-\DocInput{\filename.\filenameext}
+ \DocInput{l3vers.dtx}
\end{document}
%</driver>
% \fi
@@ -53,90 +53,45 @@
% \begin{documentation}
%
% \section{Version Identification}
-% Here we identify the date and version number of this release of
-% \LaTeX3, and set |\tex_everyjob:D| so that it is printed at the start of
-% every \LaTeX3 run.
+% Here we identify the date and version number of this release of
+% \LaTeX3, and set \cs{tex_everyjob:D} so that it is printed at the
+% start of every \LaTeX3 run. This is a very simple file.
%
-% \begin{variable}{\c_format_name|\c_format_date}
-% Name and date.
+% \begin{variable}{
+% \c_format_name|
+% \c_format_date
+%}
+% Name and date of the format.
% \end{variable}
%
-% \begin{variable}{\c_fmt_too_old}
-% Age in months past "\c_format_date" after which an error is called
-% during format generation.
-% \end{variable}
-%
-% \begin{function}{\chk_format_age:w}
-% Function that calculates the age of the format and calls an error if it
-% is too old.
-% \end{function}
-%
% \end{documentation}
%
% \begin{implementation}
%
-% \begin{macro}{\c_format_name}
-% \begin{macro}{\c_format_date}
+%\begin{macro}{\c_format_name}
+%\begin{macro}{\c_format_date}
+% Just the information required: remember to update it.
% \begin{macrocode}
%<*initex>
-\cs_set_nopar:Npn\c_format_name{Experimental~ LaTeX3}
-\cs_set_nopar:Npn\c_format_date{2009/06/01}
-%^^A\cs_set_nopar:Npx\c_format_version{--release--date--goes--here--}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\c_fmt_too_old}
-% \begin{macro}{\chk_format_age:w}
-% Check that the format being made is not too old. While in development
-% it should be a rather small number.
-% \begin{macrocode}
-\int_const:Nn \c_fmt_too_old{12}
-\cs_set_nopar:Npn\chk_format_age:w #1/#2/#3\q_stop{
-% \end{macrocode}
-% We just calculate the age of this file in months and give a warning
-% if deemed too old.
-% \begin{macrocode}
- \intexpr_compare:nNnT{(\tex_year:D-#1)*12+\tex_month:D-#2}>\c_fmt_too_old
- {\iow_term:x{^^J
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J
- !~~You~are~attempting~to~make~an~experimental~LaTeX3~format~from^^J
- !~~source~files~that~are~more~than~
- \intexpr_eval:n{\c_fmt_too_old}~months~old.^^J
- !^^J
- !~~If~you~enter~<return>~to~scroll~past~this~message~then~the~format^^J
- !~~will~be~built,~but~please~consider~obtaining~newer~source~files^^J
- !~~before~continuing~to~build~an~experimental~LaTeX3~format.^^J
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J
- }
- \tex_errhelp:D{
- To~avoid~this~error~message,~obtain~new~Experimental~LaTeX3~sources.}
- \tex_errmessage:D{
- Experimental~LaTeX3~source~files~are~more~than~
- \intexpr_eval:n{\c_fmt_too_old}~months~old!}
- }
-}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% Then we execute it.
-% \begin{macrocode}
-\exp_after:wN\chk_format_age:w\c_format_date\q_stop
-% \end{macrocode}
-% And since it's no longer needed we remove it again.
-% \begin{macrocode}
-\cs_gundefine:N \chk_format_age:w
+\tl_new:Nn \c_format_name { Experimental~LaTeX3 }
+\tl_new:Nn \c_format_date { 2009/08/08 }
% \end{macrocode}
+%\end{macro}
+%\end{macro}
%
% This startup banner may be further modified by the code in
-% |ltfinal.dtx| if a patch file is present.
+% \texttt{ltfinal.dtx} if a patch file is present.
% \begin{macrocode}
-\tex_everyjob:D{\iow_term:x{\c_format_name,~<\c_format_date>}}
-\iow_term:x{\c_format_name,~<\c_format_date>}
+\tex_everyjob:D {
+ \iow_term:x { \c_format_name , ~ < \c_format_date > }
+}
+\iow_term:x { \c_format_name , ~ < \c_format_date > }
%</initex>
% \end{macrocode}
%
% \end{implementation}
-% \PrintIndex
-%
-% \endinput
+%
+%\PrintIndex
+%
+%\endinput
+