issue167:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue167:tutoriel1 [2021/03/28 11:27] – créée auntiee | issue167:tutoriel1 [2021/04/04 16:25] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Website: https:// | + | **Website: https:// |
Prerequisites: | Prerequisites: | ||
Ligne 5: | Ligne 5: | ||
Target audience: N00bs | Target audience: N00bs | ||
- | 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. |
- | There are a lot of Latex applications in Linux, simply type latex in the search bar of your software centre. | + | 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. | ||
I am going to use “TeXstudio”; | I am going to use “TeXstudio”; | ||
Ligne 13: | Ligne 22: | ||
Let’s get started. Open TeXstudio and you will be presented with a blank interface. Don’t worry, I will take you through it. | Let’s get started. Open TeXstudio and you will be presented with a blank interface. Don’t worry, I will take you through it. | ||
- | 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”, |
- | The catch with TeXstudio is that you can’t type where you need to, until you press CTRL+N or click the “New” button. | + | 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. | ||
Open a new empty document with the above method. I was thinking of making a lost pet poster (something simple), but I realise most people will want to do some text work first. Also, the closest I have to a pet at the moment, is the roof rat in my ceiling that is eating me out of house and home. Apparently, he likes the rat poison I put out, as he eats it all in one go. If it makes him sick, he probably has better medical aid than me too, as he is always back for more. *Le Sigh... | Open a new empty document with the above method. I was thinking of making a lost pet poster (something simple), but I realise most people will want to do some text work first. Also, the closest I have to a pet at the moment, is the roof rat in my ceiling that is eating me out of house and home. Apparently, he likes the rat poison I put out, as he eats it all in one go. If it makes him sick, he probably has better medical aid than me too, as he is always back for more. *Le Sigh... | ||
- | 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}. |
- | Now for some substitution, | + | 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, | ||
Go to a new line. This part is important. Almost every Latex document needs this. Type \begin and hit enter. The IDE will fill in the \end for you (see above). | Go to a new line. This part is important. Almost every Latex document needs this. Type \begin and hit enter. The IDE will fill in the \end for you (see above). | ||
Ligne 27: | Ligne 52: | ||
Just like before, we are going to substitute the “*environment-name*” with our own. In our case, it will just be “document”. Within our document boundaries, we will nest our article (see below). | Just like before, we are going to substitute the “*environment-name*” with our own. In our case, it will just be “document”. Within our document boundaries, we will nest our article (see below). | ||
- | 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.** |
- | TeXstudio does not save your document automatically when you compile it. Save often. | + | 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. | ||
Okay, now to “redpill” you. Your official “need-to-know” is here: http:// | Okay, now to “redpill” you. Your official “need-to-know” is here: http:// | ||
Ligne 40: | Ligne 74: | ||
Now a quick word on what we did. | Now a quick word on what we did. | ||
- | A documentclass refers to a “class”, | + | A documentclass refers to a “class”, |
- | People have written books in Latex, so it is not for documents only. Let us look at adding your particulars to a document. | + | 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. | ||
Add the following lines to your document, compile it and preview it: | Add the following lines to your document, compile it and preview it: | ||
Ligne 50: | Ligne 98: | ||
Because we added our title and author outside our main body, it was recorded, but not printed. Be aware of the beginning and end. (Luckily for us, Latex has a built-in command to take care of the little things, but more on that after this). The best way I can describe using latex is that it is like cooking a meal. If you set out all your ingredients first, then do the measurements beforehand, the experience of using it will be much smoother. Let me demonstrate, | Because we added our title and author outside our main body, it was recorded, but not printed. Be aware of the beginning and end. (Luckily for us, Latex has a built-in command to take care of the little things, but more on that after this). The best way I can describe using latex is that it is like cooking a meal. If you set out all your ingredients first, then do the measurements beforehand, the experience of using it will be much smoother. Let me demonstrate, | ||
- | \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? ** |
- | 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: | + | 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: | ||
Lots of educational institutions have guides on using Latex. Why we are doing this, is because sometimes it is easier when there are pictures and sometimes we just need someone to whip out the crayons. A document by a professor, for a professor, is like eating dry dog biscuits for a beginner. | Lots of educational institutions have guides on using Latex. Why we are doing this, is because sometimes it is easier when there are pictures and sometimes we just need someone to whip out the crayons. A document by a professor, for a professor, is like eating dry dog biscuits for a beginner. | ||
Ligne 58: | Ligne 117: | ||
Did we make a mistake? Do you know a better way? Why not let us know at: misc@fullcirclemagazine.org | Did we make a mistake? Do you know a better way? Why not let us know at: misc@fullcirclemagazine.org | ||
- | 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: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | http:// | ||
- | References: | + | Références: |
https:// | https:// |
issue167/tutoriel1.1616923637.txt.gz · Dernière modification : 2021/03/28 11:27 de auntiee