This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: xref a subheading within a node
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 25 Oct 2012 18:31:55 +0200
- Subject: Re: xref a subheading within a node
- References: <50893ADD.6090302@redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.