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 Prochaine révision Les deux révisions suivantes | ||
3_composition:annexes:bibliographie:probleme_avec_le_style_unsrt [2018/05/24 10:32] joseph.wright |
3_composition:annexes:bibliographie:probleme_avec_le_style_unsrt [2018/12/04 00:01] jejust |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Table of contents rearranges "`unsrt`" ordering ====== |
- | section: Bibliographies and citations | + | |
- | subsection: Creating citations | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # Table of contents rearranges ''[`unsrt`](https://ctan.org/pkg/unsrt)'' ordering | ||
- | If you're using the [`unsrt`](https://ctan.org/pkg/unsrt) bibliography style, you're | + | If you're using the [[ctanpkg>bibtex|unsrt]] bibliography style, you're |
- | expecting that your bibliography will _not_ be sorted, but that | + | expecting that your bibliography will //not// be sorted, but that |
the entries will appear in the order that they first appeared in your | the entries will appear in the order that they first appeared in your | ||
document. | document. | ||
Ligne 14: | Ligne 9: | ||
However, if you're unfortunate enough to need a citation in a section | However, if you're unfortunate enough to need a citation in a section | ||
title, and you also have a table of contents, the citations that now | title, and you also have a table of contents, the citations that now | ||
- | appear in the table of contents will upset the ''natural'' ordering | + | appear in the table of contents will upset the "natural" ordering |
- | produced by the [`unsrt`](https://ctan.org/pkg/unsrt) style. Similarly, if you have | + | produced by the [[ctanpkg>bibtex|unsrt]] style. Similarly, if you have |
citations in captions, and have a list of figures (or tables). | citations in captions, and have a list of figures (or tables). | ||
- | There's a pretty simple ''manual'' method for dealing with the | + | There's a pretty simple "manual" method for dealing with the |
- | problem — when you have the document stable: | + | problem --- when you have the document stable: |
| | ||
- | 1. Delete the `aux` file, and any of `toc`, | + | 1. Delete the ''aux'' file, and any of ''toc'', |
- | `lof`, `lot` files. | + | ''lof'', ''lot'' files. |
2. Run LaTeX. | 2. Run LaTeX. | ||
3. Run BibTeX for the last time. | 3. Run BibTeX for the last time. | ||
Ligne 29: | Ligne 24: | ||
Which is indeed simple, but it's going to get tedious when you've | Which is indeed simple, but it's going to get tedious when you've | ||
- | found errors in your ''stable'' version, often enough. | + | found errors in your "stable" version, often enough. |
- | The package [`notoccite`](https://ctan.org/pkg/notoccite) avoids the kerfuffle, and suppresses | + | The package [[ctanpkg>notoccite|notoccite]] avoids the kerfuffle, and suppresses |
citations while in the table of contents, or lists of figures, tables | citations while in the table of contents, or lists of figures, tables | ||
(or other floating things: the code is quite general). | (or other floating things: the code is quite general). | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk>FAQ-bibtocorder|Table of contents rearranges "`unsrt`" ordering]] | ||
+ | |||
+ | {{htmlmetatags>metatag-keywords=(LaTeX,bibliographies) | ||
+ | metatag-og:title=(Table of contents rearranges "`unsrt`" ordering) | ||
+ | metatag-og:site_name=(FAQ LaTeX francophone) | ||
+ | }} | ||