From fd7822b7b58fdb58590f6082f6bc5b4665bb99b8 Mon Sep 17 00:00:00 2001 From: Raymond Toy Date: Sat, 5 Aug 2023 09:05:06 -0700 Subject: [PATCH] Fix #58: Fix xref formatting in pdf The html version had keywords, macros, and special vars printed in a fixed-width font as expected. However the pdf manual did not. Fix up the macros so the pdf manual also uses a fixed-width font. --- docs/cmu-user/cmu-user.texi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/cmu-user/cmu-user.texi b/docs/cmu-user/cmu-user.texi index 0baf0ae..0a2330c 100644 --- a/docs/cmu-user/cmu-user.texi +++ b/docs/cmu-user/cmu-user.texi @@ -142,19 +142,24 @@ Alien @code{\arg\} @end macro +@c Macro to generate a cross-ref to a macro (or other code). The +@c printed text should be rendered in ``code'' text, aka, a +@c fixed-width font. @macro macref {arg} -@ref{\arg\} +@ref{\arg\,,@code{\arg\}} @end macro -@c Macro to generate a cross-reference to a keyword. +@c Macro to generate a cross-reference to a keyword. The third arg is +@c for the printed manual and is also used for second (html), if it's +@c missing. @macro keyref {arg} -@xref{\arg\, @kwd{\arg\}} +@xref{\arg\,, @kwd{\arg\}} @end macro @c Macro to generate a cross-ref to a special variable. The variable @c 'var' is in the package 'ext', and the xref will show as '*var*'. @macro specvarref {pkg, var} -@xref{\pkg\:\var\, *\var\*} +@xref{\pkg\:\var\,, @code{*\var\*}} @end macro @c Link to CLHS issues. The link only needs to be the last part of -- GitLab