From 33aafecc7e9e3224e0283fe8be098ede39f48f61 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Fri, 18 Jul 2025 23:26:56 +0900 Subject: 53821: add missing manpage name in cross reference and many small improvements. See comments in zman.yo for the usage of new yodl macros for cross reference. --- Doc/zman.yo | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'Doc/zman.yo') diff --git a/Doc/zman.yo b/Doc/zman.yo index 5050edb8b..486ea9ca9 100644 --- a/Doc/zman.yo +++ b/Doc/zman.yo @@ -97,10 +97,51 @@ def(comment)(1)(\ COMMENT(--- cross-references ---) def(manref)(2)(\ - NOTRANS(\fI)ARG1+NOTRANS(\fP)(ARG2)\ + bf(ARG1)(ARG2)\ ) def(zmanref)(1)(manref(ARG1)(1)) -def(noderef)(1)(the section `ARG1') +def(noderef)(1)(bf(UPPERCASE(NOTRANS(ARG1))(0))) +COMMENT( nmref(node)(manpage) + Refer to 'node' (texi) or 'manpage' (man). +) +def(nmref)(2)(noderef(ARG2)) +COMMENT( sectref(sectname)(manpage) + Refer to 'section' in 'manpage' (man), or a node (texi). + There should be a node (or anchor) with the name 'sectname'. + 'manpage' can be "above", "below" or "". +) +def(sectref)(2)(\ + IFEMPTY(ARG2)(\ + the section noderef(ARG1)\ + )(\ + IFSTREQUAL(ARG2)(above)(\ + noderef(ARG1) above\ + )(\ + IFSTREQUAL(ARG2)(below)(\ + noderef(ARG1) below\ + )(\ + noderef(ARG1) in zmanref(ARG2)\ + )\ + )\ + )\ +) +COMMENT( subref(subsectname)(manpage) ) +def(subref)(2)(\ + IFEMPTY(ARG2)(\ + the subsection bf(ARG1)\ + )(\ + IFSTREQUAL(ARG2)(above)(\ + bf(ARG1) above\ + )(\ + IFSTREQUAL(ARG2)(below)(\ + bf(ARG1) below\ + )(\ + bf(ARG1) in zmanref(ARG2)\ + )\ + )\ + )\ +) +def(anchor)(1)() COMMENT(--- lists ---) -- cgit v1.2.3-70-g09d2