%PDF- %PDF-
Direktori : /usr/share/doc/info/html/ |
Current File : //usr/share/doc/info/html/Parts-of-an-Xref.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This manual is for Stand-alone GNU Info (version 6.8, 22 November 2020), a program for viewing documents in Info format (usually created from Texinfo source files). Copyright (C) 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License" in the Texinfo manual. This document is part of a collection distributed under the GNU Free Documentation License. If you want to distribute this document separately from the collection, you can do so by adding a copy of the license to the document, as described in section 6 of the license. --> <title>Parts of an Xref (Stand-alone GNU Info 6.8)</title> <meta name="description" content="Parts of an Xref (Stand-alone GNU Info 6.8)"> <meta name="keywords" content="Parts of an Xref (Stand-alone GNU Info 6.8)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2any"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link href="index.html" rel="start" title="Top"> <link href="Index.html" rel="index" title="Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="Xref-Commands.html" rel="up" title="Xref Commands"> <link href="Selecting-Xrefs.html" rel="next" title="Selecting Xrefs"> <style type="text/css"> <!-- a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} kbd {font-style: oblique} pre.display {font-family: inherit} pre.format {font-family: inherit} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} span:hover a.copiable-anchor {visibility: visible} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en"> <div class="section" id="Parts-of-an-Xref"> <div class="header"> <p> Next: <a href="Selecting-Xrefs.html" accesskey="n" rel="next">Selecting Xrefs</a>, Up: <a href="Xref-Commands.html" accesskey="u" rel="up">Selecting Cross-references</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="Parts-of-an-Xref-1"></span><h3 class="section">8.1 Parts of an Xref</h3> <p>Cross-references have two major parts: the first part is called the <em>label</em>; it is the name that you can use to refer to the cross reference, and the second is the <em>target</em>; it is the full name of the node that the cross-reference points to. </p> <p>The target is separated from the label by a colon ‘<samp>:</samp>’; first the label appears, and then the target. For example, in the sample menu cross-reference below, the single colon separates the label from the target. </p> <div class="example"> <pre class="example">* Foo Label: Foo Target. More information about Foo. </pre></div> <p>Note the ‘<samp>.</samp>’ which ends the name of the target. The ‘<samp>.</samp>’ is not part of the target; it serves only to let Info know where the target name ends. </p> <p>A shorthand way of specifying references allows two adjacent colons to stand for a target name which is the same as the label name: </p> <div class="example"> <pre class="example">* Foo Commands:: Commands pertaining to Foo. </pre></div> <p>In the above example, the name of the target is the same as the name of the label, in this case <code>Foo Commands</code>. </p> <p>You will normally see two types of cross-reference while viewing nodes: <em>menu</em> references, and <em>note</em> references. Menu references appear within a node’s menu; they begin with a ‘<samp>*</samp>’ at the beginning of a line, and continue with a label, a target, and a comment which describes what the contents of the node pointed to contains. </p> <p>Note references appear within the body of the node text; they begin with <code>*Note</code>, and continue with a label and a target. </p> <p>Like ‘<samp>Next</samp>’, ‘<samp>Prev</samp>’, and ‘<samp>Up</samp>’ pointers, cross-references can point to any valid node. They are used to refer you to a place where more detailed information can be found on a particular subject. Here is a cross-reference which points to a node within the Texinfo documentation: See <a data-manual="texinfo" href="../texinfo/xref.html#xref">Writing an Xref</a> in <cite>the Texinfo Manual</cite>, for more information on creating your own texinfo cross references. </p> </div> <hr> <div class="header"> <p> Next: <a href="Selecting-Xrefs.html">Selecting Xrefs</a>, Up: <a href="Xref-Commands.html">Selecting Cross-references</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div> </body> </html>