Skip to content

Commit

Permalink
add support for authors in amsart.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Jan 21, 2024
1 parent a457a92 commit 03c835b
Show file tree
Hide file tree
Showing 4 changed files with 1,545 additions and 3 deletions.
3 changes: 3 additions & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-18 Ulrike Fischer <[email protected]>
* latex-lab-firstaid.dtx: add support for \authors from amsart.

2024-01-18 Ulrike Fischer <[email protected]>
* latex-lab-title.dtx: make \@title and \@author robust to avoid errors
if they are not set.
Expand Down
16 changes: 13 additions & 3 deletions required/latex-lab/latex-lab-firstaid.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
%
% for those people who are interested or want to report an issue.
%
\def\ltlabfirstaiddate{2023-07-20}
\def\ltlabfirstaidversion{0.85a}
\def\ltlabfirstaiddate{2024-01-21}
\def\ltlabfirstaidversion{0.85b}
%<*driver>
\documentclass{l3doc}
\EnableCrossrefs
Expand Down Expand Up @@ -64,7 +64,17 @@
\ltlabfirstaiddate\space v\ltlabfirstaiddate\space
Temporary patches to external packages needed for the tagging project]
% \end{macrocode}

% \subsection{ams classes}
% The amsart and amsbook classes do not use \cs{@author} to store the author list
% but a command \cs{authors}. To be able to nevertheless use the authors in the
% xmp-metadata we map \cs{@author} to this new command.
%
% \begin{macrocode}
\AddToHook{class/amsart/after}
{\def\@author{\authors}}
\AddToHook{class/amsbook/after}
{\def\@author{\authors}}
% \end{macrocode}
% \subsection{blindtext}
% The blindtext package generates lists with nested \cs{loop} command.
% The inner loop introduces a group around the list which error when lists are tagged
Expand Down
30 changes: 30 additions & 0 deletions required/latex-lab/testfiles-firstaid/test-amsart-title.pvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation } \sys_gset_rand_seed:n{1000}
\ExplSyntaxOff
\DocumentMetadata{testphase={phase-III,title,firstaid},pdfstandard=a-4,pdfversion=2.0}
\input{regression-test}
\documentclass{amsart}

\title{Testing tagging amsart}
\author{Ulrike Fischer}
\author{Author B}

\begin{document}
\START\showoutput

\maketitle

\begin{abstract}
Articles in amsart can be easily tagged \cite{bibentry}

\end{abstract}

\section{A short history of the project}

bla

\begin{thebibliography}{99}

\bibitem{bibentry} study ...
\end{thebibliography}
\end{document}
Loading

0 comments on commit 03c835b

Please sign in to comment.