Skip to content

Commit

Permalink
Broken \uses detection
Browse files Browse the repository at this point in the history
  • Loading branch information
YaelDillies committed Dec 23, 2023
1 parent 249342d commit c91b655
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion blueprint/src/preamble/print.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
\declaretheorem[sibling=theorem]{example}

% Plastex commands
\newcommand{\uses}[1]{}
\newcommand{\proves}[1]{}
\newcommand{\lean}[1]{}
\newcommand{\leanok}{}

% Make sure that arguments of \uses are real labels, by using invisible refs:
% latex prints a warning if the label is not defined, but nothing is shown in the pdf file.
\ExplSyntaxOn
\NewDocumentCommand{\uses}{m}
{\clist_map_inline:nn{#1}{\vphantom{\ref{##1}}}%
\ignorespaces}
\ExplSyntaxOff

0 comments on commit c91b655

Please sign in to comment.