issue167:tutoriel1
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 | ||
issue167:tutoriel1 [2021/04/01 11:29] – d52fr | issue167:tutoriel1 [2021/04/04 16:25] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
My uncle was a typesetter for a small town newspaper. Though it fascinated me, it did not seem very difficult or something I would ever want to do. It was weird to watch, all the backwards letters and infinite arranging. The only printing I ever did, was a small parody newsletter on a dot matrix printer for a few of my friends. Though it was received well, ribbons were extremely expensive, and my little printer would eat ribbons, to the extent where I would buy ink at a 100th of the price of a ribbon and “fill” it by wetting and winding the ribbon through. You could only do that once or twice before the ribbon would wear out. So printing was never my forte and, as such, it never bothered me. Fast forward to the year 2014 and I had to support a client who used Latex (poor souls thought Red Hat WAS linux!). Though even today, I still consider myself a beginner, I was dropped into the deep end and made lots of mistakes. I thought it may be good for others to learn from my mistakes. ** | My uncle was a typesetter for a small town newspaper. Though it fascinated me, it did not seem very difficult or something I would ever want to do. It was weird to watch, all the backwards letters and infinite arranging. The only printing I ever did, was a small parody newsletter on a dot matrix printer for a few of my friends. Though it was received well, ribbons were extremely expensive, and my little printer would eat ribbons, to the extent where I would buy ink at a 100th of the price of a ribbon and “fill” it by wetting and winding the ribbon through. You could only do that once or twice before the ribbon would wear out. So printing was never my forte and, as such, it never bothered me. Fast forward to the year 2014 and I had to support a client who used Latex (poor souls thought Red Hat WAS linux!). Though even today, I still consider myself a beginner, I was dropped into the deep end and made lots of mistakes. I thought it may be good for others to learn from my mistakes. ** | ||
+ | |||
+ | Site Web : https:// | ||
+ | |||
+ | Conditions préalables : Avoir la volonté d' | ||
+ | |||
+ | Public cible : Débutants | ||
+ | |||
+ | Mon oncle était typographe pour le journal d'une petite ville. Bien que cela me fascinait, cela ne me semblait pas très difficile et ce n' | ||
+ | |||
**There are a lot of Latex applications in Linux, simply type latex in the search bar of your software centre. | **There are a lot of Latex applications in Linux, simply type latex in the search bar of your software centre. | ||
Ligne 14: | Ligne 23: | ||
Like many programming IDEs, TeXstudio is laid out in 3 big panes. If you have used an IDE before, you will know that it is sort of like your file browser, with an output window at the bottom. However, you need to know certain “commands”, | Like many programming IDEs, TeXstudio is laid out in 3 big panes. If you have used an IDE before, you will know that it is sort of like your file browser, with an output window at the bottom. However, you need to know certain “commands”, | ||
+ | |||
+ | Il y a beaucoup d' | ||
+ | |||
+ | Je vais utiliser « TeXstudio » ; c'est comme un IDE pour Latex. Mais, comme le deuxième nom de Linux est le choix, utilisez celui qui vous fait plaisir. Je vous suggère d' | ||
+ | |||
+ | Commençons. Ouvrez TeXstudio et vous serez confronté à une interface vide. Ne vous inquiétez pas, je vais vous guider. | ||
+ | |||
+ | Comme de nombreux IDE de programmation, | ||
+ | |||
**The catch with TeXstudio is that you can’t type where you need to, until you press CTRL+N or click the “New” button. | **The catch with TeXstudio is that you can’t type where you need to, until you press CTRL+N or click the “New” button. | ||
Ligne 20: | Ligne 38: | ||
In the empty document, type \d and peruse the drop-down menu, to get an idea of how busy it can get. Feel free to type other letters after the “\” to peruse the drop-downs, and see why I thought this was an application for Sadists. Select: documentclass {keyvals} {class}. ** | In the empty document, type \d and peruse the drop-down menu, to get an idea of how busy it can get. Feel free to type other letters after the “\” to peruse the drop-downs, and see why I thought this was an application for Sadists. Select: documentclass {keyvals} {class}. ** | ||
+ | |||
+ | Le problème avec TeXstudio, c'est que vous ne pouvez pas taper là où il faut, tant que vous n'avez pas appuyé sur CTRL+N ou cliqué sur le bouton « Nouveau ». | ||
+ | |||
+ | Ouvrez un nouveau document vide avec la méthode ci-dessus. Je pensais faire une affiche pour un animal perdu (quelque chose de simple), mais je me rends compte que la plupart des gens voudront d' | ||
+ | |||
+ | Dans le document vide, tapez \d et parcourez le menu déroulant pour avoir une idée de l' | ||
+ | |||
**Now for some substitution, | **Now for some substitution, | ||
Ligne 28: | Ligne 53: | ||
The keys you need to get familiar with are F6 and F7. F6 will compile your document, F7 will display it in preview mode. F5 is the key you use if you have a wide monitor, as it includes F6 & F7.** | The keys you need to get familiar with are F6 and F7. F6 will compile your document, F7 will display it in preview mode. F5 is the key you use if you have a wide monitor, as it includes F6 & F7.** | ||
+ | |||
+ | Maintenant pour une substitution, | ||
+ | |||
+ | Passez à une nouvelle ligne. Cette partie est importante. Presque tous les documents Latex en ont besoin. Tapez \begin et appuyez sur la touche Entrée. L'IDE remplira le \end pour vous (voir ci-dessus). | ||
+ | |||
+ | Comme précédemment, | ||
+ | |||
+ | Les touches avec lesquelles vous devez vous familiariser sont F6 et F7. F6 compilera votre document, F7 l' | ||
+ | |||
**TeXstudio does not save your document automatically when you compile it. Save often. | **TeXstudio does not save your document automatically when you compile it. Save often. | ||
Ligne 41: | Ligne 75: | ||
A documentclass refers to a “class”, | A documentclass refers to a “class”, | ||
+ | |||
+ | TeXstudio ne sauvegarde pas automatiquement votre document lorsque vous le compilez. Sauvegardez-le souvent. | ||
+ | |||
+ | Bon, maintenant, je vais vous « redonner des leçons ». Votre « À savoir » officiel se trouve ici : http:// | ||
+ | |||
+ | Cependant, je le trouve laid, avec tous ces blocs, alors voici une version propre : | ||
+ | http:// | ||
+ | |||
+ | Téléchargez-le et gardez-le comme référence. | ||
+ | |||
+ | Maintenant, un mot rapide sur ce que nous avons fait. | ||
+ | |||
+ | Un documentclass fait référence à une « classe », une recette ou un plan. Imaginons que ce soit du pain. Nous pouvons avoir du pain blanc, du pain au blé entier, du pain de seigle. Mais ce sont tous des pains. Ils sont tous identiques, mais différents, | ||
+ | |||
**People have written books in Latex, so it is not for documents only. Let us look at adding your particulars to a document. | **People have written books in Latex, so it is not for documents only. Let us look at adding your particulars to a document. | ||
Ligne 51: | Ligne 99: | ||
\maketitle will now make a title in a large font, add your author and today’s date. Handy, no? ** | \maketitle will now make a title in a large font, add your author and today’s date. Handy, no? ** | ||
+ | |||
+ | Des gens ont écrit des livres en Latex ; il ne s'agit donc pas uniquement de documents. Voyons comment ajouter vos données personnelles à un document. | ||
+ | |||
+ | Ajoutez les lignes suivantes à votre document, compilez-le et prévisualisez-le : | ||
+ | |||
+ | Que s' | ||
+ | |||
+ | Parce que nous avons ajouté notre titre et notre auteur en dehors du corps du document, celui-ci a été enregistré, | ||
+ | |||
+ | \maketitle va maintenant créer un titre dans une grande police, ajouter votre auteur et la date du jour. Pratique, non ? | ||
+ | |||
**A quick word on layout, The reason we type it all out, one line after another, is for readability and for finding errors. The IDE will put red marks next to the line containing the error in the margin. That said, the following is just as valid: | **A quick word on layout, The reason we type it all out, one line after another, is for readability and for finding errors. The IDE will put red marks next to the line containing the error in the margin. That said, the following is just as valid: | ||
Ligne 59: | Ligne 118: | ||
We would love to hear from you.** | We would love to hear from you.** | ||
+ | |||
+ | Un petit mot sur la mise en page. Si nous tapons tout, une ligne après l' | ||
+ | |||
+ | De nombreuses institutions éducatives ont des guides sur l' | ||
+ | |||
+ | Avons-nous fait une erreur ? Vous connaissez une meilleure méthode ? Pourquoi ne pas nous en faire part à l' | ||
+ | |||
+ | Nous serons ravis de vous lire. | ||
+ | |||
**References: | **References: | ||
Ligne 67: | Ligne 135: | ||
http:// | http:// | ||
+ | |||
+ | Références: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | http:// | ||
issue167/tutoriel1.1617269381.txt.gz · Dernière modification : 2021/04/01 11:29 de d52fr