texlive[69750] Master/texmf-dist: ucph-revy (8feb24)

commits+karl at tug.org commits+karl at tug.org
Thu Feb 8 22:41:06 CET 2024


Revision: 69750
          https://tug.org/svn/texlive?view=revision&revision=69750
Author:   karl
Date:     2024-02-08 22:41:05 +0100 (Thu, 08 Feb 2024)
Log Message:
-----------
ucph-revy (8feb24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ucph-revy/README.md
    trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-da-doc.pdf
    trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-da-man.pdf
    trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-en-doc.pdf
    trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-en-man.pdf
    trunk/Master/texmf-dist/source/latex/ucph-revy/ucph-revy.dtx
    trunk/Master/texmf-dist/tex/latex/ucph-revy/ucph-revy.cls

Modified: trunk/Master/texmf-dist/doc/latex/ucph-revy/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ucph-revy/README.md	2024-02-08 21:40:48 UTC (rev 69749)
+++ trunk/Master/texmf-dist/doc/latex/ucph-revy/README.md	2024-02-08 21:41:05 UTC (rev 69750)
@@ -1,6 +1,6 @@
 Package ucph-revy
 =================
-v1.0.0
+v1.0.1
 
 A class for typesetting scripts, containing both lyrics and prose, in
 the style used by the student revues (revy) at the Faculties of
@@ -63,7 +63,7 @@
 Contact the author
 ------------------
 
-As of 2023:
+As of 2024:
 
 [Kristoffer Levin Hansen](mailto:kristoffer at levinhansen.dk)
 

Modified: trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-da-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-da-man.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-en-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ucph-revy/ucph-revy-en-man.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/ucph-revy/ucph-revy.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ucph-revy/ucph-revy.dtx	2024-02-08 21:40:48 UTC (rev 69749)
+++ trunk/Master/texmf-dist/source/latex/ucph-revy/ucph-revy.dtx	2024-02-08 21:41:05 UTC (rev 69750)
@@ -2,7 +2,7 @@
 %
 % Copyright (C) 1995 Arne John Glenstrup
 %               2000 Uffe Friis Lichtenberg
-%               2023 Kristoffer Levin Hansen
+%               2024 Kristoffer Levin Hansen
 %
 % This file may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -20,7 +20,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
 %<class>\ProvidesClass{ucph-revy}
 %<*class>
-    [2023/05/23 v1.0.0 Initial publish]
+    [2024/02/07 v1.0.1 Fix occational divide by 0]
 %</class>
 %<*driver>
 \documentclass[a4paper]{ltxdoc}
@@ -96,6 +96,12 @@
 }
 \newenvironment{showcommand}{\quote}{\endquote}
 \usepackage{hyperref}
+
+% Multicol ToC:
+\usepackage{tocloft}
+\renewcommand\cfttocprehook{\begin{multicols}{2}}
+\renewcommand\cfttocposthook{\end{multicols}}
+
 \urlstyle{sf}
 %</driver>
 %<*class>
@@ -1010,9 +1016,11 @@
 % \end{macro}
 %   \begin{danish}
 %     Find ud af hvor højt et enkelt mærke skal være.
+%   \changes{v1.0.1}{2024/02/07}{Den må ikke dividere med 0}
 %   \end{danish}
 %   \begin{english}
 %     Find the height of a single tab.
+%   \changes{v1.0.1}{2024/02/07}{Don't let it divide by 0}
 %   \end{english}
 %    \begin{macrocode}
       \newdimen\tabheight
@@ -1020,7 +1028,7 @@
       \advance\tabheight by -1cm%
       \def\undertab##1\text##2\stop{
         \ifx\done##2%
-          \divide\tabheight by ##1%
+          \divide\tabheight by \ifnum0=##1 1 \else ##1\fi%
         \fi
       }
       \def\overtab##1\text##2\stop{}%
@@ -1030,14 +1038,16 @@
 %   \begin{danish}^^A
 %     De her definitioner indeholder forskellen på at vende
 %     registermærkningerne mod højre eller mod venstre.
+%   \changes{v1.0.1}{2024/02/07}{Juster mærkebredden}
 %   \end{danish}^^A
 %   \begin{english}^^A
 %     These definitions contain the differences
 %     between right and left facing thumb tabs.
+%   \changes{v1.0.1}{2024/02/07}{Adjust tab width}
 %   \end{english}
 %    \begin{macrocode}
-      \def\overtableft{-1cm}
-      \def\overtabright{1cm}
+      \def\overtableft{-.75cm}
+      \def\overtabright{.5cm}
       \def\undertabright{\overtabright}
       \def\undertableft{\overtableft - 1cm}
       \def\underangle{|-}
@@ -1678,7 +1688,7 @@
 %     en makro, som tager 1 argument (et \meta{tal}), og sætter ordet
 %     `side' i det rigtige tal efter det. Så \verb|\pagessum{0}| giver
 %     "`0 sider"', mens \verb|\pagessum{1}| giver "`1 side"'. En ny
-%     makro, som hedder \verb|\pagessum|, men gør ngoet andet, kan
+%     makro, som hedder \verb|\pagessum|, men gør noget andet, kan
 %     defineres med \verb|\renewcommand|.
 %   \end{danish}
 %   \begin{english}
@@ -2115,15 +2125,18 @@
 %     list.
 %   \end{english}
 % \end{environment}
-% 
-% \begin{macro}{\revy at itemname}
+%
+% \begin{macro}{\revy at itemwithout,\revy at itemwith,\revy at itemname}
 %   \begin{danish}
 %     Fordi \texttt{revy at list} er afledt fra \texttt{list}--miljøet,
 %     så forventer det, at punkter på listen bliver kaldt med
 %     \verb|\item|. Vi, som brugere, forventer, at vi kan bruge vores
 %     egne navne for punkter på de her lister, og at de bliver sat i
-%     deres egen stil. Den her makro laver de definitioner, som er
-%     nødvendige, for at bruge de kommandoer.
+%     deres egen stil. \verb|\revy at itenmane| laver de definitioner,
+%     som er nødvendige, for at bruge de kommandoer, mens
+%     \verb|\revy at itenwith| og \verb|\revy at itemwithout| holder
+%     oversættelsen til en \verb|\item|--kommando.
+%     \changes{v1.0.1}{2024/02/07}{Fjernede unødvendige omdefinitioner.}
 %   \end{danish}
 %   \begin{english}
 %     As the \texttt{revy at list} environment is derived from the
@@ -2130,15 +2143,20 @@
 %     \texttt{list} environment, it expects entries in its list to
 %     ultimately be called with \verb|\item|. However, for the
 %     environments presented to the end user, we like to provide item
-%     commands that more closely match the intended use. This macro
-%     bundles the process of creating those commands.
+%     commands that more closely match the intended
+%     use. \verb|\revy at itemname| bundles the process of creating those
+%     commands, while \verb|\revy at itemwith| and
+%     \verb|\revy at itemwithout| hold the translation to an \verb|\item|
+%     command.
+%     \changes{v1.0.1}{2024/02/07}{Eliminated spurious redefinitions.}
 %   \end{english}
 %    \begin{macrocode}
+\def\revy at itemwithout#1{\item [{\bf #1} \hfill] }
+\def\revy at itemwith#1[#2]{\item [{\bf #1} (#2) \hfill] }
 \def\revy at itemname#1{%
-  \def\@itemwithout##1{\item [{\bf ##1} \hfill] }
-  \def\@itemwith##1[##2]{\item [{\bf ##1} (##2) \hfill] }
   \expandafter\def\csname #1\endcsname##1{%
-    \@ifnextchar [{\@itemwith{##1}}{\@itemwithout{##1}}%]
+    \@ifnextchar [ %]
+    {\revy at itemwith{##1}}{\revy at itemwithout{##1}}%
   }
 }
 %    \end{macrocode}
@@ -2145,13 +2163,13 @@
 %   \begin{danish}
 %     Argumentet er navnet på den kommando, som kommer til at sætte
 %     punkter på listen.
-%
+%     
 %     Se nogle eksempler på, hvordan den bruges, lige under her.
 %   \end{danish}
 %   \begin{english}
 %     The argument is the name of the macro that will be created for
 %     setting items on our lists.
-%
+%     
 %     Some examples of how these are used will follow.
 %   \end{english}
 % \end{macro}
@@ -3335,5 +3353,5 @@
 \endinput
 % Local Variables:
 % mode: doctex
-% TeX-master: t
+% TeX-master: "ucph-revy-da-doc.ins"
 % End:

Modified: trunk/Master/texmf-dist/tex/latex/ucph-revy/ucph-revy.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ucph-revy/ucph-revy.cls	2024-02-08 21:40:48 UTC (rev 69749)
+++ trunk/Master/texmf-dist/tex/latex/ucph-revy/ucph-revy.cls	2024-02-08 21:41:05 UTC (rev 69750)
@@ -22,7 +22,7 @@
 %% LaTeX version 2005/12/01 or later.
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesClass{ucph-revy}
-    [2023/05/23 v1.0.0 Initial publish]
+    [2024/02/07 v1.0.1 Fix occational divide by 0]
 \RequirePackage{xstring}
 \newif\if at thumbindex\@thumbindexfalse
 \DeclareOption{thumbindex}{\@thumbindextrue}
@@ -129,13 +129,13 @@
       \advance\tabheight by -1cm%
       \def\undertab##1\text##2\stop{
         \ifx\done##2%
-          \divide\tabheight by ##1%
+          \divide\tabheight by \ifnum0=##1 1 \else ##1\fi%
         \fi
       }
       \def\overtab##1\text##2\stop{}%
       \revy at tabs
-      \def\overtableft{-1cm}
-      \def\overtabright{1cm}
+      \def\overtableft{-.75cm}
+      \def\overtabright{.5cm}
       \def\undertabright{\overtabright}
       \def\undertableft{\overtableft - 1cm}
       \def\underangle{|-}
@@ -403,11 +403,12 @@
     }%
   }%
   {\end{list}\smallskip\hfil\rule{6cm}{0.1mm}\medskip\par}
+\def\revy at itemwithout#1{\item [{\bf #1} \hfill] }
+\def\revy at itemwith#1[#2]{\item [{\bf #1} (#2) \hfill] }
 \def\revy at itemname#1{%
-  \def\@itemwithout##1{\item [{\bf ##1} \hfill] }
-  \def\@itemwith##1[##2]{\item [{\bf ##1} (##2) \hfill] }
   \expandafter\def\csname #1\endcsname##1{%
-    \@ifnextchar [{\@itemwith{##1}}{\@itemwithout{##1}}%]
+    \@ifnextchar [ %]
+    {\revy at itemwith{##1}}{\revy at itemwithout{##1}}%
   }
 }
 \newenvironment{roles}{



More information about the tex-live-commits mailing list.