Outils pour utilisateurs

Outils du site


issue174:latex

What we will be covering this time: “Gummi is a LaTeX editor based on GTK+. The basic features are: - Live preview pane for the compiled document, - BibTeX integration, - Helpers for tables and matrices, - Exporting to PDF, - Error checking, - Syntax highlighting, - Spell Checking, - Document statistics, - Persistent configuration.” You may ask, “Why another Latex tutorial when there are so many Youtube videos?” And my answer would be, after watching countless outdated videos that were badly planned and badly executed and gave me no answers, THIS tutorial was born. I am no expert, this is what I wish the tutorials actually taught me. When it comes to typesetting, LaTeX is the undisputed champ. Boika, Boika… It outweighs its opponents in the sheer number of options alone. At first, LaTeX is a bit confusing and difficult to use. Not to scare you, but I suggest looking here: http://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf Just to break the monotony, I want you to open your Ubuntu software centre and click on productivity. Now find ‘Gummi’ and install it. (don’t worry, it removes cleanly) Gummi is another LaTeX editor, a ‘simpler’ version of TeXstudio if you wish. I don’t want us to be tied to one editor, but learn about other editors too.

Ce dont nous allons parler cette fois-ci : « Gummi est un éditeur LaTeX basé sur GTK+. Les caractéristiques de base sont : - Un panneau de prévisualisation en direct pour le document compilé, - Intégration de BibTeX. - Aides pour les tableaux et les matrices. - Exportation au format PDF. - Vérification des erreurs. - Coloration syntaxique. - Vérification de l'orthographe. - Statistiques sur les documents. - Configuration persistante ».

Vous pouvez vous demander « Pourquoi un autre tutoriel Latex alors qu'il existe tant de vidéos Youtube ? ».

Et ma réponse serait : « après avoir regardé d'innombrables vidéos périmées qui étaient mal planifiées et mal exécutées et ne me donnaient aucune réponse, CE tutoriel est né. Je ne suis pas un expert ; c'est ce que j'aimerais que les tutoriels m'apprennent réellement ».

Quand il s'agit de composition, LaTeX est le champion incontesté. Boika, Boika… Il l'emporte sur ses adversaires rien que par le nombre d'options qu'il offre. Au début, LaTeX est un peu déroutant et difficile à utiliser. Je ne veux pas vous effrayer, mais je vous suggère de regarder ici : http://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf.

Rien que pour rompre la monotonie, je vous invite à ouvrir votre centre de logiciels d'Ubuntu et à cliquer sur Explorer. Maintenant, trouvez « Gummi » et installez-le. (Ne vous inquiétez pas, il s'enlève proprement) Gummi est un autre éditeur LaTeX, une version « simplifiée » de TeXstudio, pour ainsi dire. Je ne veux pas que nous soyons liés à un seul éditeur, mais que vous appreniez aussi à en connaître d'autres. Open Gummi You should see the window below. Initially, when I started this article it was Gummi v0.6.6, now we are on 0.8.0 and what I wanted to show you is not there any more. Delete and restart. Yes, life goes on and we are now on GTK3. Instead, let us take a quick tour around the interface. If you look above the standard preview pane, you will see more tabs. ‘Build log’, ‘Project’ and ‘bibliography’. Then at the bottom of the editor you will see ‘image’, ‘table’, ‘matrix’ and ‘bibliography’ again. This should bring home how important bibliography is in LaTeX. (see last issue) Again, it is mostly used by scholars, but people have been known to write books in LaTeX and it is a champ for creating PDFs. You may say, so what? I can print my document to PDF in my LibreOffice writer. Well, a PDF isn’t standard. The quality isn’t standard. It’s more of a blanket term, actually it’s a bit of a mess if you ask me. Here is a nice explanation: https://www.youtube.com/watch?v=K7oxZCgO1dY But that’s not all — as they say on the junk adverts. How about we make something useful, like a CV? Okay, that is waaay too ambitious for a Sunday morning 6 am. Let’s grab a basic one and dissect it. (work from the other end in) Head over to: http://www.latextemplates.com/ and grab a CV template. In case the one I grab is gone or replaced, grab any one, it does not matter, you can learn from them all, I bet you! I just grabbed the second one, as it was the shortest and simplest. You will notice that there is a .tex file and a .cls file. The latter contains all the formatting information.

Ouvrez Gummi

Vous devrez voir la fenêtre ci-dessous.

Initialement, quand j'ai commencé cet article, c'était Gummi v0.6.6 ; maintenant nous sommes en 0.8.0 et ce que je voulais vous montrer n'est plus là. On efface tout et on recommence. Oui, la vie continue et nous sommes maintenant sur GTK3. À la place, faisons un rapide tour de l'interface. Si vous regardez au-dessus du panneau d'aperçu standard, vous verrez d'autres onglets : « Log de construction », « Projet » et « Bibliographie ». Puis, au bas de l'éditeur, vous verrez « Image », « Tableau », « Matrice » et à nouveau « Bibliographie ». Ceci doit vous faire comprendre l'importance de la bibliographie dans LaTeX. (voir le dernier numéro) Encore une fois, il est surtout utilisé par les universitaires, mais on sait que des gens écrivent des livres en LaTeX et que c'est un champion de la création de PDF. Vous pouvez dire : et alors ? Je peux imprimer mon document en PDF dans LibreOffice Writer. Eh bien, un PDF n'est pas standard. La qualité n'est pas standard. C'est plus un terme général, en fait c'est un peu le bordel si vous voulez mon avis. Voici une bonne explication : https://www.youtube.com/watch?v=K7oxZCgO1dY

Mais ce n'est pas tout… comme on le dit dans les publicités pour de la camelote. Et si on faisait quelque chose d'utile, comme un CV ? Ok, c'est beaucoup trop ambitieux pour un dimanche matin à 6 h. Prenons un CV de base et disséquons-le. (en commençant par l'autre bout) Allez sur : http://www.latextemplates.com/ et récupérez un modèle de CV. Si celui que j'ai choisi n'existe plus ou a été remplacé, prenez n'importe lequel, peu importe, tous vous apprendront quelque chose, je vous le parie ! J'ai pris le deuxième modèle, car il était le plus court et le plus simple. Vous remarquerez qu'il y a un fichier .tex et un fichier .cls. Ce dernier contient toutes les informations de formatage.

Something we have not discussed is the use of comments. The percent symbol will start a comment line. By this, I mean that everything after the ‘%’ will be treated as a comment. I know you will ‘get’ this on the first go: % % This template has been downloaded from: % http://www.LaTeXTemplates.com % This is simply for us, - the users - and will be ignored by the compiler. So any time you feel the need to add something you want to remember or bring attention to the person looking at your document code, add a %-symbol to the start of the line. Another thing to point out, is the hrule -horizontal ruler, the line across the page. \moveleft\hoffset\vbox{\hrule width\resume width height 1pt}\smallskip % Horizontal line after name; adjust line thickness by changing the '1pt' So why not go ahead and change some values on fonts and the like and see how it affects our document on the right? Play! We learn best when playing. Just pay attention to anything that you do not know … YET!

L'utilisation des commentaires est un aspect que nous n'avons pas abordé. Le symbole « pour cent » fait démarrer une ligne de commentaire. Je veux dire par là que tout ce qui suit le « % » sera traité comme un commentaire. Je sais que vous allez comprendre cela du premier coup :

% % Ce modèle a été téléchargé à partir de : % http://www.LaTeXTemplates.com %

Cela n'est que pour nous, les utilisateurs, et sera ignoré par le compilateur. Donc, chaque fois que vous ressentez le besoin d'ajouter quelque chose dont vous voulez vous souvenir ou qui attire l'attention de la personne qui regarde le code de votre document, ajoutez un symbole % au début de la ligne.

Une autre chose à souligner est la hrule - règle horizontale -, la ligne qui traverse la page. \moveleft\hoffset\vbox{\hrule width\resume width height 1pt}\smallskip % Ligne horizontale après le nom ; ajustez l'épaisseur de la ligne en modifiant le « 1pt ».

Alors pourquoi ne pas aller de l'avant et changer quelques valeurs sur les polices et autres pour voir comment cela affecte notre document à droite ? Jouez ! C'est en jouant que l'on apprend le mieux. Faites attention à tout ce que vous ne connaissez pas … POUR L'INSTANT !

Your mission, should you choose to accept it, is to use these two new items in your homework, namely adding them to your last project in some way. I won’t tell you how, that is for you to figure out, but it will not be difficult. If any of you want us to create a CV from scratch, let us know at the usual e-mail address. Next issue we will deal with mathematics. By that, I mean how to get them on the paper and how to space the symbols and equations. If your eyes gloss over at the mention of this, that is fine, still come read it as you may learn something that helps you in another area. As you can see, the editor does not make such a huge difference, if you prefer one or the other, that is fine too. Just join in the fun and one day when you write your book free of charge on free software, just send me an evaluation copy to read, I do so like reading.

Votre mission, si vous l'acceptez, est d'utiliser ces deux nouveaux éléments dans vos devoirs, à savoir les ajouter d'une manière ou d'une autre à votre dernier projet. Je ne vous dirai pas comment, c'est à vous de le découvrir, mais ce ne sera pas difficile.

Si l'un d'entre vous souhaite que nous créions un CV à partir de zéro, faites-le nous savoir à l'adresse électronique habituelle. Dans le prochain numéro, nous traiterons des mathématiques. J'entends par là comment les mettre sur le papier et comment espacer les symboles et les équations. Si vos yeux se voilent à l'évocation de ce sujet, ce n'est pas grave, venez quand même le lire car vous pourriez apprendre quelque chose qui vous aidera dans un autre domaine.

Comme vous pouvez le constater, l'éditeur ne fait pas une si grande différence, si vous préférez l'un ou l'autre, c'est aussi bien. Joignez-vous à nous et un jour, lorsque vous écrirez votre livre gratuitement sur un logiciel libre, envoyez-moi une copie d'évaluation pour que je la lise, j'aime tellement lire.

issue174/latex.txt · Dernière modification : 2021/11/02 16:33 de andre_domenech