mlhetland / pseudo.sty

Straightforward pseudocode.
MIT License
13 stars 2 forks source link

Error in combination with `zref-clever` #23

Closed mgkurtz closed 1 year ago

mgkurtz commented 1 year ago

The following file produces a somewhat ironical error at \begin{document}:

\documentclass{minimal}

\usepackage{pseudo}
\usepackage{zref-clever}
\usepackage{tcolorbox}

\begin{document}

\end{document}
! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.7 \begin{document}

?                                                                                                                
Missing character: There is no b in font nullfont!                                                               
Missing character: There is no e in font nullfont!                                                               
Missing character: There is no g in font nullfont!                                                               
Missing character: There is no i in font nullfont!                                                               
Missing character: There is no n in font nullfont!                                                               
Missing character: There is no d in font nullfont!                                                               
Missing character: There is no o in font nullfont!                                                               
Missing character: There is no c in font nullfont!                                                               
Missing character: There is no u in font nullfont!                                                               
Missing character: There is no m in font nullfont!                                                               
Missing character: There is no e in font nullfont!                                                               
Missing character: There is no n in font nullfont!                                                                                                                                                                                 
Missing character: There is no t in font nullfont!                                                               

The error disappears, if I load zref-clever before pseudo, or if I do not load tcolorbox. I guess, this is somehow related to the \AtEndPreamble (which can by the way be replaced by an \AddToHook { begindocument / before }) at the end of pseudo.sty.

mlhetland commented 1 year ago

Thanks! I've created a new release with your PR. Should be available from CTAN mirrors in about 24 hours (unless there's a hangup somewhere).