From 74754fa285f4e6481391a738eeeaa60bbeec1e23 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 22 Jul 2022 11:34:48 +0100 Subject: [PATCH] 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. --- mdwref.dtx | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) 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{""}{""}{"