mdwref.dtx: Add a useful output-formatting hook.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 2 Aug 2019 11:27:47 +0000 (12:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 2 Aug 2019 11:27:47 +0000 (12:27 +0100)
commite0464890d25b3299ff008d946e49d3fcf657694b
treea581ab94a4e2a3a6fdf2257436f26f4389c705fd
parent9d809eaca2b424a34222f8912d58d476720ffa24
mdwref.dtx: Add a useful output-formatting hook.

Rather than have `\xref@@' produce the output directly, because it's
very hairy and hard to replace, have it call a new macro,
`\formatxfref', to actually put the pieces together.  This can be
overridden comfortably, even by novices.

Have the default `\formatxref' notice that `hyperref' is available and
do use its fancier features to include the category name in the link.
mdwref.dtx