Skip to content

Commit

Permalink
Try to correct erroneous atbegshi 'fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
egraff committed Apr 13, 2023
1 parent 75de4cc commit 96d844f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified test/proto_tl2021/test_crossref_frontpage_copyright.pdf
Binary file not shown.
Binary file modified test/proto_tl2021/test_frontpage_copyright.pdf
Binary file not shown.
7 changes: 6 additions & 1 deletion texmf-tds/tex/latex/uit-thesis/uit-thesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@
\AtBeginDocument{%
\ifult@has@lthooks
\ifcsname AtBeginShipoutOriginalShipout\endcsname
\global\let\ult@orig@shipout\AtBeginShipoutOriginalShipout
% 2023-04-13: not quite sure why this is the right thing to do, even in this case - but it seems to work,
% and using \AtBeginShipoutOriginalShipout does -not- work correctly, so...
\global\let\ult@orig@shipout\shipout% This will be the \shipout macro defined by the ltshipout package
\else
\global\let\ult@orig@shipout\shipout% This will be the \shipout macro defined by the ltshipout package
\fi
Expand Down Expand Up @@ -2550,6 +2552,9 @@
% Setup hook for first page
\AtBeginShipoutNext{%
\ifult@has@titlepage
\ifvoid\AtBeginShipoutBox
\ClassError{uit-thesis}{Unexpected empty first page}\@ehd
\fi
% First, shipout the title page
% Note: we have to restore \protect first, which was overridden in \AtBegShi@Output.
% Then, after shipout, we use LaTeX' \set@typeset@protect to change \protect the way
Expand Down

0 comments on commit 96d844f

Please sign in to comment.