Outils pour utilisateurs

Outils du site


issue95:latex

Table des matières

1

LaTeX (pronounced latèque) is an enhancement of the Tex document creation software. Tex is the creation of Donald Knuth who is a computer programmer. TeX was released in 1978 and later Tex was improved upon by Leslie Lamport in 1984. That is why it is called LaTeX. LaTeX has been around for a long time, and I call LaTeX the Great Grandma of desktop publishing. LaTeX is more structured than modern desktop publishing applications. There are many editor applications for creating LaTeX documents, and it can be easy to call LaTeX a word processing program. Nothing is further from the truth – LaTeX is a language and it is a language that has to be learned in order to be successful at creating documents. LaTeX has a steep learning curve, and some people claim that it is so much faster and easier to use a word processor. Except that: “Many people discover LaTeX after years of struggling with word processors and desktop publishing systems, and are amazed to find that TeX has been around for nearly 25 [+] years and they hadn’t heard of it. “It’s not a conspiracy, just a well-kept secret known only to a few million people”, as one anonymous user put it.” – Peter Flynn People who have had enough of the problems encountered with word processors, especially Microsoft Word, have found LaTeX to be much easier to use, and a more productive, stable method. At the same time that I am writing this, two researchers from Germany published a paper comparing Latex to Microsoft Word. Their findings favoured Microsoft Word for efficiency, but not only that: the two authors of the paper suggested that researchers at universities be prevented from using Latex. Many scholars weighed in on this strange conclusion and found the study to be flawed, if not manipulated, to favour Word.

LaTeX (prononciation létech) est une amélioration du logiciel de création de documents Tex. Tex fut créé par Donald Knuth, un programmeur. TeX est sorti en 1978 et, plus tard, en 1984, fut amélioré par Leslie Lamport. D'où son nom, LaTeX. LaTeX existe depuis très longtemps et je l'ai surnommé l'arrière grand-mère de la publication assistée par ordinateur. LaTeX est plus structuré que les applications modernes de l'édition informatisée. Il y a beaucoup d'éditeurs qui créent des documents LaTeX et il est souvent facile d'appeler LaTeX un programme de traitement de texte. Rien n'est moins vrai - LaTeX est un langage, un langage qu'il faut apprendre afin de réussir à créer des documents. La courbe d'apprentissage de LaTeX est raide et d'aucuns prétendent qu'il est beaucoup plus rapide et beaucoup plus facile d'utiliser un traitement de texte. Sauf que : « Beaucoup de gens découvrent LaTeX après avoir lutté des années durant avec des logiciels de traitement de texte et des systèmes de publication assistée par ordinateur. Ils sont étonnés d'apprendre que TeX existe depuis presque 25 [+] années et qu'ils n'en avaient jamais entendu parler. Comme l'a affirmé un utilisateur anonyme, “Ce n'est pas une conspiration, mais tout simplement un secret bien gardé, connu de seulement quelques millions de gens.” » - Peter Flynn

Les individus qui en ont assez des problèmes rencontrés avec des logiciels de traitement de texte, surtout avec Microsoft Word, trouvent LaTeX beaucoup plus facile à utiliser, plus productif et plus stable. Au moment où j'écrivais ceci, deux chercheurs allemands ont publié un article où ils comparaient LaTeX à Microsoft Word. Leurs résultats privilégiaient Microsoft Word comme étant plus efficace, mais ce n'était pas tout : les deux auteurs suggéraient que l'on empêche les universitaires d'utiliser LaTeX. En évaluant cette étrange conclusion, beaucoup de savants ont trouvé que l'étude était défectueuse, sinon manipulée, pour privilégier Word.

2

As you can imagine, there was a firestorm over this one; I thought that this was one of the best comments: I’ve shown people LaTeX documents of mine, the content of which they are completely ignorant, and they always remark how pretty it looks. I’ve never gotten a compliment like that about a Word document! – David Kotschessa, University of South Florida, Tampa. See this site if you want to read more about this debate: http://lemire.me/blog/archives/2015/01/14/knauff-and-nejasmic-recommend-banning-latex/#comments (the site has a link to the original article). Forty years ago when I was at university, I would have thought I had died and gone to heaven if I had LaTeX to write my papers with. Over the years, I have taken some stabs at LaTeX but it was after I completed a beamer slide project using LaTeX on my Raspberry Pi that I realised that LaTeX has a lot of power with very little overhead. Now I use LaTeX as often as I can, almost abandoning LibreOffice entirely. I have to admit that there are some things that are very easy to do in LibreOffice compared to LaTeX, but the end product from LaTeX is so much better. The Latex community is a good example of what the free software movement is all about. It has, in a way, made this article difficult to write as there is so much good help out there on the Internet.

Comme vous pouvez l'imaginer, cela a suscité une polémique ; je trouvais ce commentaire l'un des meilleurs : « Quand je montre des documents LaTeX que j'ai créés à des gens qui n'ont aucune idée du contenu, ils les trouvent toujours vraiment jolis. Je n'ai jamais eu de tels compliments à propos d'un document Word ! » - David Kotschessa, University of South Florida, Tampa.

Allez voir ce site, qui a un lien vers l'article original, si vous voulez savoir davantage sur le débat : http://lemire.me/blog/archives/2015/01/14/knauff-and-nejasmic-recommend-banning-latex/#comments

Il y a quarante ans, quand je faisais encore des études universitaires, j'aurais cru que j'étais mort et au paradis si j'avais pu écrire mes dissertations avec LaTeX. Au cours des ans, j'ai fait des essais avec LaTeX, mais ce n'est qu'après avoir terminé un projet de diapos sur vidéoprojecteur utilisant LaTeX sur mon Raspberry Pi que je me suis rendu compte de la grande puissance de LaTeX, sans grands coûts. Actuellement, j'utilise LaTeX aussi souvent que possible en abandonnant LibreOffice presque complètement. Je dois avouer qu'il y a des trucs qui sont beaucoup plus faciles à faire dans LibreOffice que dans LaTeX, mais le produit final de LaTeX reste nettement meilleur.

La communauté LaTeX est un bon exemple du mouvement FOSS. En un sens, elle a rendu cet article difficile à faire, car il y a tant d'aide valable sur le Net.

3

Why Bother to Learn Latex? • There is no Meta-data in a Latex file. In some work environments, that can be critical. • I have seen many testimonials in favour of LaTeX by students who, after years of using MS Word, switched to LaTeX to write their thesis at university. • Forget Powerpoint; the Beamer class of document in LaTeX creates excellent slides. Save as a PDF document and present it anywhere. I have seen enough Powerpoint presentations get messed up by the presenter not really knowing how to use the application. • Latex can be run on very limited hardware. You can run Latex on an old XP laptop with 500 megs of RAM or on a Raspberry Pi computer. • It is a new skill, probably much more valuable to a young person’s life than top scores playing computer games. Give a young person a “LaTeX challenge” to improve their knowledge and get them off of the joystick for a change. • It is so cool that we can create all kinds of fancy stuff with an ASCII file. Getting Started Anyone who has done coding in HTML will be able to pick up on LaTeX much easier than someone who has not, or has created HTML only in a WYSIWYG editor. The best method to install would be to go to the Ubuntu Software Centre and install TeX Live. If you want to be on the cutting edge of Tex, you could install TeX Live from the Tex Users Group. Either way will give you the files required. The instructions are here: https://help.ubuntu.com/community/LaTeX.

Pourquoi faire l'effort d'apprendre LaTeX ?

• Il n'y a pas de méta-données dans un fichier LaTeX. Cela peut être critique dans certains environnements de travail. • J'ai vu de nombreux témoignages favorables à LaTeX venant d'étudiants qui, après des années de MS Word, ont changé pour LaTeX afin d'écrire leur thèse à l'université. • Oubliez Powerpoint : la classe de documents « Beamer » (vidéoprojecteur) dans LaTeX crée d'excellentes diapositives. Sauvegardez-le en format PDF et présentez-le n'importe où. J'ai vu assez de présentations Powerpoint bâclées parce que le présentateur ne savait pas vraiment utiliser l'application. • On peut exécuter LaTeX sur du matériel très limité, par exemple sur un vieux portable sous XP avec 500 Mo de RAM ou sur un ordinateur Raspberry Pi. • C'est une nouvelle compétence qui sera sans doute beaucoup plus utile dans la vie d'une jeune personne que les meilleurs scores aux jeux vidéo. Présentez un « défi LaTeX » à un adolescent pour qu'il apprenne des choses et abandonne la manette pour changer. • C'est tellement chouette de pouvoir créer toutes sortes de choses magnifiques avec un fichier ASCII.

Commencer

Quiconque a fait du codage en HTML trouvera LaTeX beaucoup plus facile à apprendre que ceux qui n'en ont pas fait, ou qui ont créé de l'HTML uniquement dans un éditeur WYSIWYG.

Pour l'installer, il vaut mieux aller à la Logithèque Ubuntu et installer TeX Live. Si vous voulez être à la pointe de TeX, vous pouvez installer TeX Live à partir du Tex Users Group. Vous obtiendrez les fichiers requis avec l'une ou l'autre méthode. Vous trouverez les instructions ici : http://doc.ubuntu-fr.org/latex [Ndt : l'adresse française.]

4

Selecting An Editor It is necessary to select a LaTeX text editor for creating LaTeX documents. There are lots to choose from within Synaptic or the Ubuntu Software Centre and recommending one is the stuff that flame wars can be made of. I prefer any editor that has pull-down menus listed in a logical way – the formating code required to create documents. Latex is a huge environment with lots of code out there. As we are learning, it is helpful to be able to see the code we need. It is also helpful to have a built-in viewer to display our document as it will be printed. There are three LaTeX editors that I have liked: LaTexila, TexMaker, and the text editor Geany with LaTeX extensions. LaTeXila would be a good choice to get your feet wet as it looks like many text editors that you have used before. TexMaker looks confusing and complicated, but after you get adjusted to the wide selection of buttons and menus, it is an easy program to use as well. Geany worked well on my Raspberry Pi. You may have to install “latexmk” to get LaTeXzila to run.

Choisir un éditeur

Il faut sélectionner un éditeur de texte LaTeX pour créer des documents LaTeX. Vous en trouverez beaucoup dans Synaptic ou la Logithèque Ubuntu, et je ne me hasarderais pas à en recommander un de peur de représailles.

Je préfère tout éditeur ayant des menus déroulants listés de façon logique - le code de formatage nécessaire pour créer des documents. LaTeX est un environnement énorme et des tonnes de code existent. Puisque nous sommes en train d'apprendre, c'est utile de pouvoir voir le code dont nous avons besoin. Une visionneuse intégrée qui affichera le document tel qu'il sera imprimé est aussi très utile.

Il y a trois éditeurs LaTeX qui m'ont plu : LaTeXila, TexMaker et l'éditeur de texte Geany avec des extensions LaTeX. LaTeXila serait un bon choix pour débuter, car il ressemble à beaucoup d'éditeurs de texte que vous avez déjà utilisés. TexMaker a l'air confus et compliqué, mais, une fois que vous serez habitué au grand choix de boutons et menus, il est facile à utiliser aussi. Geany fonctionnait bien sur mon Raspberry Pi. Vous devrez peut-être installer « latexmk » pour pouvoir exécuter LaTeXila.

5

After you have downloaded the software, I would recommend watching this video: 'Learn Latex in Five minutes' – now I have let the cat out of the bag! You can now see that there are lots of Latex HowTo videos on YouTube. Before you write your first LaTeX document, one initial bit of advice: always create a folder for the document that you are working on and keep all of the files related to the document in it. This will serve you well when you try more complex documents. Go get your feet wet, and we will come back to this next issue. At least now you are in on one of the world's well kept secrets. Encart auteur John Eddie Kerr is a Law Librarian at a county law library in Guelph, Ontario, Canada. Ubuntu powers his desktop at work and at home. He is a member of the Kitchener-Waterloo Linux Users Group and the WFTL- LUG.

Une fois les logiciels téléchargés, regardez cette vidéo : « Learn LaTeX in Five Minutes » https://www.youtube.com/watch?v=Y-kXtWdjtmw - ahhh, j'ai vendu la mèche ! Vous pouvez maintenant constater qu'il y a de nombreux tutoriels LaTeX sur YouTube.

Avant d'écrire votre premier document LaTeX, un petit conseil : créez toujours un dossier pour le document sur lequel vous travaillez et gardez-y tous les fichiers ayant un rapport avec ce document. Cela vous rendra un grand service quand vous essaierez des documents plus complexes. Allez-y, lancez-vous et, dans le prochain numéro, nous y reviendrons.

Au moins, maintenant, vous connaissez l'un des secrets les mieux gardés au monde.

Encart auteur

John Eddie Kerr est bibliothécaire en droit dans une bibliothèque de droit du comté de Guelph, Ontario au Canada. Son ordinateur de bureau, à la maison comme au travail, est sous Ubuntu. Il est membre du Groupe d'utilisateurs Linux de Kitchener-Waterloo et du WFTL-LUG.

issue95/latex.txt · Dernière modification : 2015/04/28 15:52 de andre_domenech