issue103:tutoriel_3
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
issue103:tutoriel_3 [2015/12/01 12:07] – créée auntiee | issue103:tutoriel_3 [2015/12/12 15:37] – erlevo | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | For this edition of the LaTeX segment, I will tell you a little bit about BibTeX and how it can help you. To help liven up a dry subject, I’ll compose an ultra-short paper, and I’ll include information about that great album by the Beatles: “Sgt. Pepper” – that you probably did not know about! But first... you need to know about a bibliographic software called Zotero. | + | **For this edition of the LaTeX segment, I will tell you a little bit about BibTeX and how it can help you. To help liven up a dry subject, I’ll compose an ultra-short paper, and I’ll include information about that great album by the Beatles: “Sgt. Pepper” – that you probably did not know about! But first... you need to know about a bibliographic software called Zotero. |
Zotero is a plug-in for Firefox. To describe it well, I will post a quote here from the Zotero website: | Zotero is a plug-in for Firefox. To describe it well, I will post a quote here from the Zotero website: | ||
Ligne 5: | Ligne 5: | ||
“Zotero is the only research tool that automatically senses content in your web browser, allowing you to add it to your personal library with a single click. Whether you're searching for a pre-print on arXiv.org, a journal article from JSTOR, a news story from the New York Times, or a book from your university library catalog, Zotero has you covered with support for thousands of sites.” | “Zotero is the only research tool that automatically senses content in your web browser, allowing you to add it to your personal library with a single click. Whether you're searching for a pre-print on arXiv.org, a journal article from JSTOR, a news story from the New York Times, or a book from your university library catalog, Zotero has you covered with support for thousands of sites.” | ||
- | And, just like LaTeX, there are thousands of YouTube videos on how to use Zotero. There are also very good videos on how to create citations and bibliographies. | + | And, just like LaTeX, there are thousands of YouTube videos on how to use Zotero. There are also very good videos on how to create citations and bibliographies.** |
- | What does Zotero do for you? Suppose you are conducting research for a term paper. You are searching online for journal articles. When you find one that is on point for your paper, you can click a tiny icon on your browser and all of the bibliographic information that you need is downloaded to your own database. You also have the URL for the article, and a copy of the article is downloaded to your computer. Zotero can download bibliographic data for any book you find in a library catalogue. Almost anything that you find on the Internet can be catalogued by Zotero, all with a click of a mouse. | + | Pour cet article de la rubrique LaTeX, je vais vous parler un peu de BibTex, qui peut vous aider. Pour faciliter l' |
+ | |||
+ | Zotero est un module additionnel de Firefox. Pour bien le décrire, je reprendrai ici un extrait du site Internet de Zotero : | ||
+ | |||
+ | « //Zotero est le seul outil de recherche qui détecte automatiquement le contenu de votre navigateur Internet, pour vous permettre de l' | ||
+ | |||
+ | Et, comme pour LaTeX, il y a des milliers de vidéos YouTube sur la prise en main de Zotero. Il y a aussi d' | ||
+ | |||
+ | **What does Zotero do for you? Suppose you are conducting research for a term paper. You are searching online for journal articles. When you find one that is on point for your paper, you can click a tiny icon on your browser and all of the bibliographic information that you need is downloaded to your own database. You also have the URL for the article, and a copy of the article is downloaded to your computer. Zotero can download bibliographic data for any book you find in a library catalogue. Almost anything that you find on the Internet can be catalogued by Zotero, all with a click of a mouse. | ||
It is these little icons that do all the magic for you: | It is these little icons that do all the magic for you: | ||
- | Z opens the Zotero database; the blue book icon downloads the bibliographic information – note that different icons appear for various types of media. | + | Z opens the Zotero database; the blue book icon downloads the bibliographic information – note that different icons appear for various types of media.** |
+ | |||
+ | Que vous apporte Zotero ? Supposez que vous fassiez une recherche pour une dissertation de fin de semestre. Vous recherchez en ligne des articles de revues. Quand vous en trouvez un qui est en lien avec votre travail, vous pouvez cliquer sur une petite icône de votre navigateur pour que toute l' | ||
+ | |||
+ | La magie vient de ces petites icônes qui travaillent pour vous : | ||
+ | |||
+ | « Z » ouvre la base de données de Zotero ; l' | ||
- | So where is the connection to LaTeX? And BibTeX? | + | **So where is the connection to LaTeX? And BibTeX? |
Zotero will export your data in many forms, one of them is the BibTeX format and it looks like this: | Zotero will export your data in many forms, one of them is the BibTeX format and it looks like this: | ||
Ligne 34: | Ligne 48: | ||
} | } | ||
- | Many LaTeX editors will create the appropriate template for the item you wish to record. Quite simple to use, inside the { } we just type in the information required. The most important field is the field on the first line. “ID” must be a unique identifier or “key”. So, for a book I would have written, the key could be “jek2015”. | + | Many LaTeX editors will create the appropriate template for the item you wish to record. Quite simple to use, inside the { } we just type in the information required. The most important field is the field on the first line. “ID” must be a unique identifier or “key”. So, for a book I would have written, the key could be “jek2015”.** |
- | It would be tedious to type in all of that information, | + | Bon ! Où est le rapport avec LaTeX ? Et BibTeX ? |
+ | |||
+ | Zotero exportera vous données sous de nombreuses formes, l'une d' | ||
+ | |||
+ | @Book{ID, | ||
+ | ALTauthor = {author}, | ||
+ | ALTeditor = {editor}, | ||
+ | title = {title}, | ||
+ | publisher = {publisher}, | ||
+ | year = {year}, | ||
+ | OPTkey = {key}, | ||
+ | OPTvolume = {volume}, | ||
+ | OPTnumber = {number}, | ||
+ | OPTseries = {series}, | ||
+ | OPTaddress = {address}, | ||
+ | OPTedition = {edition}, | ||
+ | OPTmonth = {month}, | ||
+ | OPTnote = {note}, | ||
+ | OPTannote = {annote}, | ||
+ | } | ||
+ | |||
+ | Beaucoup d' | ||
+ | |||
+ | **It would be tedious to type in all of that information, | ||
All that typing was done for you with a click of a mouse way back when you were searching the library online catalogue. To export the record, highlight the record (multiple records can be done by holding down the ctrl-key while you click on other records required for the bibliography). | All that typing was done for you with a click of a mouse way back when you were searching the library online catalogue. To export the record, highlight the record (multiple records can be done by holding down the ctrl-key while you click on other records required for the bibliography). | ||
Ligne 54: | Ligne 91: | ||
edition = {1st U.S. ed}, | edition = {1st U.S. ed}, | ||
- | Unfortunately, | + | Unfortunately, |
- | Now, sometimes we have to manually enter records, I find that for recording websites, Zotero does a great job but the BibTeX output can enter many excess '{ }' that have to be edited out. Just a warning. | + | La frappe de toutes ces informations serait fastidieuse, |
+ | |||
+ | Toute cette saisie a été faite à votre place, grâce à un clic de souris, pendant que vous cherchiez dans le catalogue de la bibliothèque en ligne. Pour exporter l' | ||
+ | |||
+ | Faites un clic droit et choisissez Exporter les éléments (Export Items), recherchez BibTeX dans la fenêtre suivante, puis cliquez sur OK. | ||
+ | |||
+ | Parfois vous pouvez vouloir ajuster les enregistrements. Si je change : | ||
+ | |||
+ | martin_little _1994 | ||
+ | |||
+ | en | ||
+ | |||
+ | gmartin94. | ||
+ | |||
+ | @book{gmartin94, | ||
+ | address = {Boston}, | ||
+ | edition = {1st U.S. ed}, | ||
+ | |||
+ | Malheureusement, | ||
+ | |||
+ | **Now, sometimes we have to manually enter records, I find that for recording websites, Zotero does a great job but the BibTeX output can enter many excess '{ }' that have to be edited out. Just a warning. | ||
Here is a record that I created, to record a conversation I had with one of the pioneers of FM rock, David Marsden of the Internet radio station https:// | Here is a record that I created, to record a conversation I had with one of the pioneers of FM rock, David Marsden of the Internet radio station https:// | ||
Ligne 72: | Ligne 129: | ||
} | } | ||
- | The annote field is a good place to enter any text that you want to quote in your paper. | + | The annote field is a good place to enter any text that you want to quote in your paper.** |
+ | Parfois, nous devons entrer manuellement des enregistrements ; je trouve que pour l' | ||
- | So how do we get this all to work? | + | Voici un enregistrement que j'ai créé, pour conserver une conversation que j'ai eue avec un pionnier du rock en FM, David Marsden de la station de radio Internet https:// |
+ | |||
+ | @misc{_interview_????, | ||
+ | |||
+ | title = {Interview : {David} {Marsden}}, | ||
+ | |||
+ | url = {https:// | ||
+ | |||
+ | publisher = {unpublished}, | ||
+ | |||
+ | annote = {Quand j'ai entendu Sargent Pepper, j'ai su que la musique rock devait passer sur la bande FM parce que les ondes moyennes ne pouvaient retransmettre le son qu' | ||
+ | |||
+ | } | ||
+ | |||
+ | Le champ annote est un bon endroit pour entrer du texte que vous voulez citer dans votre article. | ||
+ | |||
+ | **So how do we get this all to work? | ||
The bibliography file must end with the letters bib (Zotero does that for you), and must also be in the same directory as the file that your document is in. (Creating a directory for your LaTeX document is the first rule of LaTeX). | The bibliography file must end with the letters bib (Zotero does that for you), and must also be in the same directory as the file that your document is in. (Creating a directory for your LaTeX document is the first rule of LaTeX). | ||
Ligne 93: | Ligne 167: | ||
\bibliography{Pepper.bib}. | \bibliography{Pepper.bib}. | ||
- | The name of the file is case sensitive so make sure that you type the name of the file exactly. | + | The name of the file is case sensitive so make sure that you type the name of the file exactly.** |
- | There are many bibliography styles to choose from but I will just use the plain style in my ultra-short paper. Here are some sites that cover the bibliography style in more detail, with examples: http:// | + | Et comment faisons-nous fonctionner tout ça ? |
+ | |||
+ | Le fichier de bibliographie doit se terminer par les lettres bib (Zotero le fait pour vous) et doit aussi être dans le même répertoire que le fichier dans lequel se trouve votre document. (La création d'un répertoire pour votre document LaTeX est la première règle de LaTeX.) | ||
+ | |||
+ | Le fichier bibliographique dans ce projet s' | ||
+ | |||
+ | Dans le préambule, ajoutez la ligne : | ||
+ | |||
+ | \bibliographystyle{plain} | ||
+ | |||
+ | À la fin du document, juste avant / | ||
+ | |||
+ | \bibliography{le nom de votre fichier.bib} | ||
+ | |||
+ | ou dans ce cas : | ||
+ | |||
+ | \bibliography{Pepper.bib}. | ||
+ | |||
+ | Le nom de ce fichier est sensible à la casse ; assurez-vous de taper le nom avec précision. | ||
+ | |||
+ | **There are many bibliography styles to choose from but I will just use the plain style in my ultra-short paper. Here are some sites that cover the bibliography style in more detail, with examples: http:// | ||
Many colleges and universities have information regarding bibliographic styles, and also LaTeX templates for a thesis, on their websites; enquire at the institution you are attending. | Many colleges and universities have information regarding bibliographic styles, and also LaTeX templates for a thesis, on their websites; enquire at the institution you are attending. | ||
Ligne 102: | Ligne 196: | ||
The bibliography is created when you compile your document and it all will look something like this: | The bibliography is created when you compile your document and it all will look something like this: | ||
+ | Sometimes you may have to compile your document more than once to get the bibliography to compile, that can be normal.** | ||
+ | Il y a un grand choix de styles bibliographiques, | ||
- | Sometimes you may have to compile your document more than once to get the bibliography to compile, that can be normal. | + | Beaucoup d' |
- | This article has just scraped the surface of the bibliography component of LaTeX. There are other ways of approaching this, and there are many other options in the BibTex bag of tricks. There is a new format called BibLateX, and Zotero will export bibliographies in this format as well. However I must say that – thanks to the BibTex export feature that we have in Zotero, and that Zotero makes data harvesting from databases so easy – I am in favour of the BibTex file method which is creating a .bib file of your references that resides in the directory of the document you are creating. | + | Si vous voulez citer une source dans votre article, tapez \cite et votre éditeur LaTeX devrait vous lister les citations à insérer présentes dans votre fichier BibTeX : |
+ | La bibliographie est créée quand vous compilez votre document et l' | ||
+ | |||
+ | |||
+ | Parfois, vous devrez recompiler votre document pour que la bibliothèque soit compilée, ce qui peut être normal. | ||
+ | |||
+ | **This article has just scraped the surface of the bibliography component of LaTeX. There are other ways of approaching this, and there are many other options in the BibTex bag of tricks. There is a new format called BibLateX, and Zotero will export bibliographies in this format as well. However I must say that – thanks to the BibTex export feature that we have in Zotero, and that Zotero makes data harvesting from databases so easy – I am in favour of the BibTex file method which is creating a .bib file of your references that resides in the directory of the document you are creating. | ||
I wish I had LaTeX and BibTeX way back in the days when I was writing my papers at University, back in the days when FM stereo was about as high tech as it got. Today, with a little help from your friends (all those people who have created the free software), writing a class paper is so much easier. I am green with envy. | I wish I had LaTeX and BibTeX way back in the days when I was writing my papers at University, back in the days when FM stereo was about as high tech as it got. Today, with a little help from your friends (all those people who have created the free software), writing a class paper is so much easier. I am green with envy. | ||
Ligne 112: | Ligne 214: | ||
A shameless plug is in order. If you would like to hear what FM Rock radio was like in the early years when the DJ's could practise Free Form FM radio (that was before the suits discovered there was more advertising revenue to extract), I encourage you to explore David Marsden' | A shameless plug is in order. If you would like to hear what FM Rock radio was like in the early years when the DJ's could practise Free Form FM radio (that was before the suits discovered there was more advertising revenue to extract), I encourage you to explore David Marsden' | ||
- | By now I suppose the suspense is killing you, and you have to know the identity of the real Sgt. Pepper. He was a policeman who was on the security team when the Beatles visited Toronto. That morsel of information is on the last page of Sir George Martin' | + | By now I suppose the suspense is killing you, and you have to know the identity of the real Sgt. Pepper. He was a policeman who was on the security team when the Beatles visited Toronto. That morsel of information is on the last page of Sir George Martin' |
+ | |||
+ | Cet article n'a qu' | ||
+ | |||
+ | J' | ||
+ | |||
+ | Une publicité éhontée suit. Si vous avez envie d' | ||
+ | |||
+ | Au point où nous en sommes, je suppose que le suspense est intolérable et que vous voulez vraiment connaître l' |
issue103/tutoriel_3.txt · Dernière modification : 2015/12/12 16:39 de andre_domenech