From: Mark Wooding Date: Fri, 22 Jul 2022 10:34:48 +0000 (+0100) Subject: mdwref.dtx: Rearrange the machinery for later extension. X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/commitdiff_plain/74754fa285f4e6481391a738eeeaa60bbeec1e23 mdwref.dtx: Rearrange the machinery for later extension. Rather than having `\xref$SUFFIX' just store a string, make it be a macro which actually does the typesetting. For simple strings, this indirects through `\formatxref' as before, but that's now a bit better factored. --- diff --git a/mdwref.dtx b/mdwref.dtx index fe386b0..d7d24e0 100644 --- a/mdwref.dtx +++ b/mdwref.dtx @@ -95,18 +95,6 @@ %\newcommand{\Xref}[1]{\xref[\toupper]{#1}} % \end{listing} % -% \DescribeMacro\formatxref -% The reference itself is typeset by calling -% \syntax{"\\formatxref{""}{""}{"