Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
3_composition:annexes:bibliographie:trier_des_noms_avec_prefixes [2018/05/24 10:40] joseph.wright |
3_composition:annexes:bibliographie:trier_des_noms_avec_prefixes [2018/12/04 00:03] (Version actuelle) jejust |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== BibTeX sorting and name prefixes ====== |
- | section: Bibliographies and citations | + | |
- | subsection: Creating bibliographies | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # BibTeX sorting and name prefixes | ||
BibTeX recognises a bewildering array of name prefixes (mostly | BibTeX recognises a bewildering array of name prefixes (mostly | ||
those deriving from European language names); it ignores the prefixes | those deriving from European language names); it ignores the prefixes | ||
- | when sorting the bibliography — you want ''Ludwig van Beethoven'' | + | when sorting the bibliography --- you want "Ludwig van Beethoven" |
- | sorted under ''Beethoven'', not under ''van''. (Lamport made a witty | + | sorted under "Beethoven", not under "van". (Lamport made a witty |
deliberate mistake with Beethoven's name, in the first edition of his | deliberate mistake with Beethoven's name, in the first edition of his | ||
LaTeX manual.) | LaTeX manual.) | ||
However, a recurring issue is the desire to quote Lord Rayleigh's | However, a recurring issue is the desire to quote Lord Rayleigh's | ||
- | publications (''Lord'' isn't an acceptable prefix), or names from | + | publications ("Lord" isn't an acceptable prefix), or names from |
languages that weren't considered when BibTeX was designed such as | languages that weren't considered when BibTeX was designed such as | ||
- | ''al-Wakil'' (transcribed from the Arabic). What's needed is a | + | "al-Wakil" (transcribed from the Arabic). What's needed is a |
- | separate ''sort key'', but BibTeX only allows such a thing in | + | separate "sort key", but BibTeX only allows such a thing in |
citations of items that have no author or editor. | citations of items that have no author or editor. | ||
The solution is to embed the sort key in the author's name, but to | The solution is to embed the sort key in the author's name, but to | ||
prevent it from being typeset. Patashnik recommends a command | prevent it from being typeset. Patashnik recommends a command | ||
- | `\noopsort` (no-output-sortkey), which is defined and used as | + | ''\noopsort'' (no-output-sortkey), which is defined and used as |
follows: | follows: | ||
- | ```latex | + | |
+ | <code latex> | ||
@PREAMBLE{ {\providecommand{\noopsort}[1]{}} } | @PREAMBLE{ {\providecommand{\noopsort}[1]{}} } | ||
... | ... | ||
Ligne 32: | Ligne 28: | ||
... | ... | ||
} | } | ||
- | ``` | + | </code> |
- | Note that this `\noopsort` applies to the last name in this kind of | + | Note that this ''\noopsort'' applies to the last name in this kind of |
construct, so an author with an Arabic name might be rendered: | construct, so an author with an Arabic name might be rendered: | ||
- | ```latex | + | |
+ | <code latex> | ||
... | ... | ||
AUTHOR = "Ali {\noopsort{Hadiidii}}{al-Hadiidii}", | AUTHOR = "Ali {\noopsort{Hadiidii}}{al-Hadiidii}", | ||
... | ... | ||
- | ``` | + | </code> |
A further use might deal with word order games, as in the famous | A further use might deal with word order games, as in the famous | ||
Vietnamese name: | Vietnamese name: | ||
- | ```latex | + | |
+ | <code latex> | ||
... | ... | ||
AUTHOR = "\noopsort{Thanh Han The}{Han The Thanh}", | AUTHOR = "\noopsort{Thanh Han The}{Han The Thanh}", | ||
... | ... | ||
- | ``` | + | </code> |
though that author seems well-acquainted with Western confusion about | though that author seems well-acquainted with Western confusion about | ||
the significance of the parts of his name (even to the extent of | the significance of the parts of his name (even to the extent of | ||
- | missing out the accentuation, as above…). | + | missing out the accentuation, as above...). |
+ | |||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk>FAQ-bibprefixsort|BibTeX sorting and name prefixes]] | ||
+ | {{htmlmetatags>metatag-keywords=(LaTeX,bibliographies) | ||
+ | metatag-og:title=(BibTeX sorting and name prefixes) | ||
+ | metatag-og:site_name=(FAQ LaTeX francophone) | ||
+ | }} | ||