diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-03 21:13:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-03 21:13:15 +0000 |
commit | 211e3ca1747f97247169e8d6d83cfc2cfc14d7a6 (patch) | |
tree | fe7f3d67a09ab629c1d3e458e612dbafcd9620f4 /Master/texmf-dist/tex/latex | |
parent | 352352708da1be2f1a53871d9735f5cab852dee8 (diff) |
exesheet (3feb24)
git-svn-id: svn://tug.org/texlive/trunk@69688 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/exesheet/exesheet.cls | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/exesheet/exesheet.sty | 44 |
2 files changed, 26 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/exesheet/exesheet.cls b/Master/texmf-dist/tex/latex/exesheet/exesheet.cls index b1c9dd1534d..3bf4aea5292 100644 --- a/Master/texmf-dist/tex/latex/exesheet/exesheet.cls +++ b/Master/texmf-dist/tex/latex/exesheet/exesheet.cls @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2020-2023 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2020-2024 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesClass{exesheet} -[2023/12/30 v2.5 .dtx Typesetting exercise or exam sheets] +[2024/02/03 v2.6 .dtx Typesetting exercise or exam sheets] \RequirePackage{kvoptions} \DeclareBoolOption[true]{exetoc} diff --git a/Master/texmf-dist/tex/latex/exesheet/exesheet.sty b/Master/texmf-dist/tex/latex/exesheet/exesheet.sty index 8296808d106..461a4a4471f 100644 --- a/Master/texmf-dist/tex/latex/exesheet/exesheet.sty +++ b/Master/texmf-dist/tex/latex/exesheet/exesheet.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2020-2023 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2020-2024 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{exesheet} -[2023/12/30 v2.5 .dtx Typesetting exercise or exam sheets] +[2024/02/03 v2.6 .dtx Typesetting exercise or exam sheets] \@ifclassloaded{exesheet}{}{ \RequirePackage{kvoptions} @@ -344,9 +344,13 @@ \mbox{}\vspace{-1.667\baselineskip}\begin{tablitem}}{ \end{tablitem}} -\newenvironment{colsenum}[2][]{% +\newenvironment{colsenum*}[2][]{% + \ifexesheet@multicol \else + \PackageError{exesheet}{The environments colsenum and colsenum* + \MessageBreak need the multicol package}{ + Add \string\usepackage{multicol}\space in the preamble.} + \fi \setlength{\multicolsep}{2ex} - \raggedcolumns % default is \flushcolumns \begin{multicols}{#2} % #2 = number of columns \begin{enumerate}[#1] % #1 = options of enumerate }{ @@ -354,32 +358,32 @@ \end{multicols} } -\newenvironment{colsenum*}[2][]{% - \setlength{\multicolsep}{2ex} - \begin{multicols}{#2} % #2 = number of columns - \begin{enumerate}[#1] % #1 = options of enumerate +\newenvironment{colsenum}[2][]{% + \raggedcolumns % default is \flushcolumns + \begin{colsenum*}[#1]{#2} }{ - \end{enumerate} - \end{multicols} + \end{colsenum*} } -\newenvironment{colsitem}[2][]{% +\newenvironment{colsitem*}[2][]{% + \ifexesheet@multicol \else + \PackageError{exesheet}{The environments colsitem and colsitem* + \MessageBreak need the multicol package}{ + Add \string\usepackage{multicol}\space in the preamble.} + \fi \setlength{\multicolsep}{2ex} - \raggedcolumns - \begin{multicols}{#2} - \begin{itemize}[#1] + \begin{multicols}{#2} % #2 = number of columns + \begin{itemize}[#1] % #1 = options of itemize }{ \end{itemize} \end{multicols} } -\newenvironment{colsitem*}[2][]{% - \setlength{\multicolsep}{2ex} - \begin{multicols}{#2} - \begin{itemize}[#1] +\newenvironment{colsitem}[2][]{% + \raggedcolumns % default is \flushcolumns + \begin{colsitem*}[#1]{#2} }{ - \end{itemize} - \end{multicols} + \end{colsitem*} } \newboolean{exesheet@questions}\setboolean{exesheet@questions}{true} |