Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
Prochaine révision Les deux révisions suivantes
3_composition:texte:renvois:se_referer_aux_sections_par_leur_titre [2018/05/23 18:50]
joseph.wright
3_composition:texte:renvois:se_referer_aux_sections_par_leur_titre [2018/12/04 00:57]
jejust
Ligne 1: Ligne 1:
---- +====== ​Referring to things by their name ====== 
-ID: Q-nameref +
-revised: 2014-06-10 +
---- +
-Referring to things by their name+
  
 LaTeX'​s labelling mechanism is designed for the impersonal world of LaTeX'​s labelling mechanism is designed for the impersonal world of
 the academic publication,​ in which everything has a number: an the academic publication,​ in which everything has a number: an
-extension is necessary if we are to record the _name_ ​of things+extension is necessary if we are to record the //​name// ​of things
 we've labelled. ​ The two packages available extend the LaTeX we've labelled. ​ The two packages available extend the LaTeX
 sectioning commands to provide reference by the name of the section. sectioning commands to provide reference by the name of the section.
  
-The [`titleref`](https://​ctan.org/​pkg/​titlerefpackage is a simple extension which provides +The [[ctanpkg>​titleref|titleref]] package is a simple extension which provides 
-the command ​`\titleref`; it is a stand-alone package&​nbsp;&​mdash; ​don't use it +the command ​''​\titleref''​; it is a stand-alone package ​--- don't use it 
-in a document in which you also need to use [`hyperref`](https://​ctan.org/​pkg/​hyperref).+in a document in which you also need to use [[ctanpkg>​hyperref|hyperref]].
  
-The [`byname`](https://​ctan.org/​pkg/​byname) ​package is part of the [`smartref`](https://​ctan.org/​pkg/​smartrefbundle +The [[ctanpkg>​smartref|byname]package is part of the [[ctanpkg>​smartref|smartref]] bundle 
-and works well with [`smartref`](https://​ctan.org/​pkg/​smartref), and works (to an extent) with +and works well with [[ctanpkg>​smartref|smartref]], and works (to an extent) with 
-[`hyperref`](https://​ctan.org/​pkg/​hyperref), but the links it defines are not hyperlinks.+[[ctanpkg>​hyperref|hyperref]], but the links it defines are not hyperlinks.
  
-The [`memoir`](https://​ctan.org/​pkg/​memoirclass incorporates the functionality of +The [[ctanpkg>​memoir|memoir]] class incorporates the functionality of 
-[`titleref`](https://​ctan.org/​pkg/​titleref), but doesn'​t work with [`byname`](https://​ctan.org/​pkg/​byname) ​(though a +[[ctanpkg>​titleref|titleref]], but doesn'​t work with [[ctanpkg>​smartref|byname](though a 
-search of `comp.text.texon [groups.google.com] will +search of ''​comp.text.tex'' ​on [groups.google.com] will 
-find a patch to [`byname`](https://​ctan.org/​pkg/​byname) ​to remedy the problem).+find a patch to [[ctanpkg>​smartref|byname]to remedy the problem).
  
-The [`hyperref`](https://​ctan.org/​pkg/​hyperrefbundle includes a package [`nameref`](https://​ctan.org/​pkg/​nameref)+The [[ctanpkg>​hyperref|hyperref]] bundle includes a package [[ctanpkg>​nameref|nameref]]
-which will work standing alone (i.e., without [`hyperref`](https://​ctan.org/​pkg/​hyperref): of+which will work standing alone (i.e., without [[ctanpkg>​hyperref|hyperref]]: of
 course, in this mode its references are not hyperlinked). ​ If you load course, in this mode its references are not hyperlinked). ​ If you load
-[`hyperref`](https://​ctan.org/​pkg/​hyperrefitself, [`nameref`](https://​ctan.org/​pkg/​namerefis automatically loaded. +[[ctanpkg>​hyperref|hyperref]] itself, [[ctanpkg>​nameref|nameref]] is automatically loaded. 
-[`Memoir`](https://​ctan.org/​pkg/​Memoirrequires the [`memhfixc`](https://​ctan.org/​pkg/​memhfixcwhen running with +[[ctanpkg>​Memoir|Memoir]] requires the [[ctanpkg>​memhfixc|memhfixc]] when running with 
-[`hyperref`](https://​ctan.org/​pkg/​hyperref); following the sequence: +[[ctanpkg>​hyperref|hyperref]]; following the sequence: 
-```latex+ 
 +<​code ​latex>
 \documentclass[...]{memoir} \documentclass[...]{memoir}
 ... ...
 \usepackage[...]{hyperref} \usepackage[...]{hyperref}
 \usepackage{memhfixc} \usepackage{memhfixc}
-``` +</​code>​ 
-[`nameref`](https://​ctan.org/​pkg/​nameref) ​commands may be used in a [`memoir`](https://​ctan.org/​pkg/​memoir) ​document.+[[ctanpkg>​nameref|nameref]] commands may be used in a [[ctanpkg>​memoir|memoir]document.
  
-[`Zref`](https://​ctan.org/​pkg/​Zrefdefines a proposed replacement for all of the LaTeX+[[ctanpkg>​Zref|Zref]] defines a proposed replacement for all of the LaTeX
 reference mechanisms, and among other things provides reference mechanisms, and among other things provides
 name-referencing mechanisms: name-referencing mechanisms:
-```latex+ 
 +<​code ​latex>
 \usepackage[user,​titleref]{zref} \usepackage[user,​titleref]{zref}
 ... ...
 \section{hello}\zlabel{sec:​one} \section{hello}\zlabel{sec:​one}
 The section name is: \ztitleref{sec:​one}. The section name is: \ztitleref{sec:​one}.
-``` +</​code>​ 
-(One might hope that something of this sort would be the ''​way of the +(One might hope that something of this sort would be the 
-future''​, but things move slowly in the LaTeX world: don't hold+"way of the future", but things move slowly in the LaTeX world: don't hold
 your breath.) ​ your breath.) ​
  
-Each of [`titleref`](https://​ctan.org/​pkg/​titleref), [`byname`](https://​ctan.org/​pkg/​byname) ​and [`nameref`](https://​ctan.org/​pkg/​nameref)+Each of [[ctanpkg>​titleref|titleref]], [[ctanpkg>​smartref|byname]and [[ctanpkg>​nameref|nameref]]
 defines a reference command with the same name as the package: defines a reference command with the same name as the package:
-`\titleref``\bynameand `\nameref`. The [`nameref`](https://​ctan.org/​pkg/​nameref) +''​\titleref''​''​\byname'' ​and ''​\nameref''​. The [[ctanpkg>​nameref|nameref]] 
-package also defines a command ​`\byshortnameref`, which uses the +package also defines a command ​''​\byshortnameref''​, which uses the 
-optional ​''​short'' ​title argument to the chapter and section commands. +optional ​"short" ​title argument to the chapter and section commands. 
-(Although it comes from the same author, [`zref`](https://ctan.org/pkg/zref) _doesn'​t_+(Although it comes from the same author, [[ctanpkg>​zref|zref]//doesn'​t//
 define a short-name variant.) define a short-name variant.)
  
 +
 +-----
 +
 +//Source:// [[faquk>​FAQ-nameref|Referring to things by their name]]
 +
 +{{htmlmetatags>​metatag-keywords=(LaTeX,​formatting,​labels,​references)
 +metatag-og:​title=(Referring to things by their name)
 +metatag-og:​site_name=(FAQ LaTeX francophone)
 +}}
  
3_composition/texte/renvois/se_referer_aux_sections_par_leur_titre.txt · Dernière modification: 2021/11/30 00:08 par yannick.tanguy
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0