[latex3-commits] [git/LaTeX3-latex3-latex2e] clsguide-cleanup: New stub clsguide (8be298aa)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 11 10:35:32 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : clsguide-cleanup
Link       : https://github.com/latex3/latex2e/commit/8be298aaf8d964a4811db4e1df0491f893d37041

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

commit 8be298aaf8d964a4811db4e1df0491f893d37041
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jan 11 09:34:07 2023 +0000

    New stub clsguide


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

8be298aaf8d964a4811db4e1df0491f893d37041
 base/build.lua                          |  1 +
 base/doc/{ltnews18.tex => clsguide.tex} | 45 +++++++++++++++++++++------------
 base/manifest.txt                       |  1 +
 3 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/base/build.lua b/base/build.lua
index c359ea30..c9f5d4d7 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -98,6 +98,7 @@ typesetfiles   =
     "*.err",
     "lppl.tex",
     "cfgguide.tex",
+    "clsguide.tex",
     "clsguide-historic.tex",
     "cyrguide.tex",
     "encguide.tex",
diff --git a/base/doc/ltnews18.tex b/base/doc/clsguide.tex
similarity index 50%
copy from base/doc/ltnews18.tex
copy to base/doc/clsguide.tex
index 04491760..f910cbe4 100644
--- a/base/doc/ltnews18.tex
+++ b/base/doc/clsguide.tex
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 1993-2022
+% Copyright (C) 2023
 % The LaTeX Project and any individual authors listed elsewhere
 % in this file.
 %
@@ -26,25 +26,38 @@
 % extension .ins) which are part of the distribution.
 %
 % \fi
-% Filename: ltnews18.tex
-%
-% This is issue 18 of LaTeX News.
-
-\documentclass
-    [lw35fonts]    % uncomment this line to get Palatino
-     {ltnews}[2004/02/28]
-
-% \usepackage[T1]{fontenc}
-
-
-\publicationmonth{December}
-\publicationyear{2007}
-\publicationissue{18}
+% Filename: clsguide.tex
+
+\documentclass{ltxguide}
+
+\usepackage[T1]{fontenc}  % needed for \textbackslash in tt
+\usepackage{csquotes}
+
+\title{\LaTeX\ for package and class authors --- current version}
+\author{\copyright~Copyright 2023, \LaTeX\ Project Team.\\
+   All rights reserved.%
+   \footnote{This file may distributed and/or modified under the
+     conditions of the \LaTeX{} Project Public License, either version 1.3c
+     of this license or (at your option) any later version. See the source
+    \texttt{usrguide.tex} for full details.}%
+}
+
+\date{2022-07-05}
+
+\NewDocumentCommand\cs{m}{\texttt{\textbackslash\detokenize{#1}}}
+\NewDocumentCommand\marg{m}{\arg{#1}}
+\NewDocumentCommand\meta{m}{\ensuremath{\langle}\textit{#1}\ensuremath{\rangle}}
+\NewDocumentCommand\pkg{m}{\textsf{#1}}
+\NewDocumentCommand\text{m}{\ifmmode\mbox{#1}\else#1\fi}
+% Fix a 'feature'
+\makeatletter
+\renewcommand \verbatim at font {\normalfont \ttfamily}
+\makeatother
 
 \begin{document}
 
 \maketitle
 
-\noindent This news never existed.
+\tableofcontents
 
 \end{document}
diff --git a/base/manifest.txt b/base/manifest.txt
index f423c769..be4a38c3 100644
--- a/base/manifest.txt
+++ b/base/manifest.txt
@@ -27,6 +27,7 @@
 % sample2e.tex    --  Sample LaTeX input file.
 % small2e.tex     --  Small sample LaTeX input file.
 %
+% clsguide.tex   --  How to write class files.
 % clsguide-historic.tex    --  How to write class files with a focus on moving from 2.09.
 % cfgguide.tex    --  Guide to using `.cfg' files to configure LaTeX.
 % cyrguide.tex    --  Guide to using cyrillic languages in LaTeX.





More information about the latex3-commits mailing list.