texlive[71754] Master/texmf-dist: randexam (9jul24)
commits+karl at tug.org
commits+karl at tug.org
Tue Jul 9 22:04:54 CEST 2024
Revision: 71754
https://tug.org/svn/texlive?view=revision&revision=71754
Author: karl
Date: 2024-07-09 22:04:54 +0200 (Tue, 09 Jul 2024)
Log Message:
-----------
randexam (9jul24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/randexam/randexam-a-answer.pdf
trunk/Master/texmf-dist/doc/latex/randexam/randexam-a-blank.pdf
trunk/Master/texmf-dist/doc/latex/randexam/randexam-b-answer.pdf
trunk/Master/texmf-dist/doc/latex/randexam/randexam-b-blank.pdf
trunk/Master/texmf-dist/doc/latex/randexam/randexam.pdf
trunk/Master/texmf-dist/doc/latex/randexam/randexam.tex
trunk/Master/texmf-dist/tex/latex/randexam/randexam.cls
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam-a-answer.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam-a-blank.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam-b-answer.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam-b-blank.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/randexam/randexam.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/randexam/randexam.tex 2024-07-09 20:04:44 UTC (rev 71753)
+++ trunk/Master/texmf-dist/doc/latex/randexam/randexam.tex 2024-07-09 20:04:54 UTC (rev 71754)
@@ -3,7 +3,7 @@
\documentclass[12pt,plain,math=most]{randexam}
\geometry{b5paper,margin=2cm}
-\newcommand*{\myversion}{2024E}
+\newcommand*{\myversion}{2024F}
\newcommand*{\mydate}{\the\year-\mylpad\month-\mylpad\day}
\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
Modified: trunk/Master/texmf-dist/tex/latex/randexam/randexam.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/randexam/randexam.cls 2024-07-09 20:04:44 UTC (rev 71753)
+++ trunk/Master/texmf-dist/tex/latex/randexam/randexam.cls 2024-07-09 20:04:54 UTC (rev 71754)
@@ -6,7 +6,7 @@
% ----------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{randexam}[2024-02-18 v2024E Make an exam paper and its randomized variants]
+\ProvidesClass{randexam}[2024-07-09 v2024F Make an exam paper and its randomized variants]
%% Old LaTeX release could not recognize date format like 2022-11-01
%\@ifl at t@r\fmtversion{2022-11-01}{}{
@@ -786,7 +786,8 @@
\UseExamTemplate{examdata}{default}
}
-\preto{\@enddocumenthook}{\printquestions\rdxm at stop@random}
+%% this equals to \AddToHook{enddocument}[randexam]{...}
+\AtEndDocument{\printquestions\rdxm at stop@random}
\newcommand\ignorepars{\@ifnextchar\par{\expandafter\ignorepars\@gobble}{}}
@@ -1228,6 +1229,11 @@
\mbox{}\nobreak\hfill$\cdots\cdots$\solutionpointstext{#1}
\par\noindent\ignorespaces
}
+
+%% \eqno would cause extra space after a $$...$$ equation
+%% this bug was fixed in latex release 2023-06-01
+%% see https://github.com/latex3/latex2e/issues/1059
+%% \tag is used in a \[...\] equation hence no problem with it
\newcommand{\pointseqno}[1]{\eqno{\cdots\cdots\text{\solutionpointstext{#1}}}}
\newcommand{\pointstag}[1]{\tag*{$\cdots\cdots$\solutionpointstext{#1}}}
@@ -1374,6 +1380,9 @@
\RequirePackage{extarrows}
\newcommand{\e}{\mathrm{e}}
\newcommand{\R}{\mathbb{R}}
+ \newcommand{\jacobi}[2]{{\left(\frac{##1}{##2}\right)}}
+ \newcommand{\ii}{\mathrm{i}}
+ \newcommand{\Zi}{\mathbb{Z}[\ii]}
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\Corr}{\rho}
\DeclareMathOperator{\Cov}{Cov}
More information about the tex-live-commits
mailing list.