Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
composition:annexes:bibliographie:utiliser_bibtex [2018/12/03 23:03] – jejust | 3_composition:annexes:bibliographie:utiliser_bibtex [2021/10/18 07:43] (Version actuelle) – Suppression de la page reportée sur la page française. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Normal use of BibTeX from LaTeX ====== | ||
- | |||
- | |||
- | To create a bibliography for your document, you need to perform a | ||
- | sequence of steps, some of which seem a bit odd. If you choose to use | ||
- | BibTeX, the sequence is: | ||
- | |||
- | First: you need a BibTeX bibliography file (a '' | ||
- | file) --- see [[FAQ-buildbib|" | ||
- | |||
- | Second: you must write your LaTeX document to include a declaration | ||
- | of the " | ||
- | bibliography file mentioned above. | ||
- | file containing: | ||
- | |||
- | <code latex> | ||
- | \bibliographystyle{plain} | ||
- | ... | ||
- | Pooh is heroic~\cite{Milne: | ||
- | ... | ||
- | Alice struggles~\cite{Carroll: | ||
- | ... | ||
- | \bibliography{mybooks} | ||
- | </ | ||
- | Note: we have bibliography style [[ctanpkg> | ||
- | nearly the simplest of the lot: a sample text, showing the sorts of | ||
- | style choices available, can be found on Ken Turner' | ||
- | < | ||
- | |||
- | Third: you must process the file. | ||
- | |||
- | <code latex> | ||
- | latex myfile | ||
- | </ | ||
- | As LaTeX processes the file, the '' | ||
- | writes a note of the style to the '' | ||
- | '' | ||
- | '' | ||
- | of which '' | ||
- | |||
- | Note that, at this stage, LaTeX isn't " | ||
- | citations: at every '' | ||
- | undefined citation, and when the document finishes, there will be a | ||
- | further warning of undefined references. | ||
- | |||
- | Fourth: you must run BibTeX: | ||
- | |||
- | <code latex> | ||
- | bibtex myfile | ||
- | </ | ||
- | Don't try to tell BibTeX anything but the file name: say | ||
- | '' | ||
- | '' | ||
- | '' | ||
- | |||
- | BibTeX will scan the '' | ||
- | style it needs to use, and will " | ||
- | the citations; it will find which bibliography files it needs, and | ||
- | will run through them matching citations to entries in the | ||
- | bibliography; | ||
- | cited (if the bibliography style specifies that they should be | ||
- | sorted), and outputs the resulting details to a '' | ||
- | |||
- | Fifth: you run LaTeX again. | ||
- | (still) undefined, but when it gets to the '' | ||
- | it finds a '' | ||
- | '' | ||
- | citation. | ||
- | |||
- | Sixth: you run LaTeX yet again. | ||
- | the citations, in its '' | ||
- | done... until you change the file. | ||
- | |||
- | If, while editing, you change any of the citations, or add new ones, | ||
- | you need to go through the process above from steps 3 (first run of | ||
- | LaTeX) to 6, again, before the document is once again stable. | ||
- | These four mandatory runs of LaTeX make processing a document with | ||
- | a bibliography even more tiresome than the normal two runs required to | ||
- | resolve labels. | ||
- | |||
- | To summarise: processing to resolve citations requires: LaTeX; | ||
- | BibTeX; LaTeX; LaTeX. | ||
- | |||
- | |||
- | ----- | ||
- | |||
- | //Source:// [[faquk> | ||
- | |||
- | {{htmlmetatags> | ||
- | metatag-og: | ||
- | metatag-og: | ||
- | }} | ||