xref a subheading within a node
Eli Zaretskii
eliz@gnu.org
Thu Oct 25 16:32:00 GMT 2012
> Date: Thu, 25 Oct 2012 14:13:01 +0100
> From: Phil Muldoon <pmuldoon@redhat.com>
>
>
> I want to cross reference a particular subheading in the MI node of
> the GDB patch I am writing. So in the node:
>
> @node GDB/MI Program Execution
> @section @sc{gdb/mi} Program Execution
>
> I want my @xref to point directly at the @subheading:
>
> @subheading The @code{-stack-list-frames} Command
> @findex -stack-list-frames
>
> But my @xref:
>
> @xref{GDB/MI Program Execution,, The -stack-list-frames Command}.
>
> While it works, in the PDF output only points to the beginning of the
> node:
>
> see Section 27.14 [The -stack-list-frames Command], page 384.
>
> This is a large section so I was hoping for more accuracy than that.
That's why we should convert each subheading into a node, btw.
Anyway, I think using @anchor near the subheading, and then changing
the cross-reference to point to that anchor will do what you want.
More information about the Gdb
mailing list