issue126:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue126:tutoriel1 [2017/10/29 18:18] – créée auntiee | issue126:tutoriel1 [2017/11/11 19:06] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | An excellent resource for all LaTeX users – that does not get the attention that it deserves – is the journal of the TeX Users Group TUGboat. You do not have to be a member of the TeX Users Group (TUG) to get it, but, if you want to read the latest edition that is hot off the press, you have to be a member of TUG. Back issues are a free download from the TUG website – https:// | + | **An excellent resource for all LaTeX users – that does not get the attention that it deserves – is the journal of the TeX Users Group TUGboat. You do not have to be a member of the TeX Users Group (TUG) to get it, but, if you want to read the latest edition that is hot off the press, you have to be a member of TUG. Back issues are a free download from the TUG website – https:// |
- | In life, there are things we do that we call a “best practice", | + | In life, there are things we do that we call a “best practice", |
- | What is the bad practice that many of us are guilty of? It is the practice of ending paragraphs with a | + | Une excellente ressource pour tous les utilisateurs de LaTeX - qui ne reçoit pas l' |
+ | |||
+ | Dans la vie, il y a des choses que nous faisons en les appelant des « best practices » (les meilleures façons de faire) et elles sont souvent faciles à identifier. Quand c'est une « best practice » de ne pas faire quelque chose, elle peut être difficile à identifier, surtout quand nous pouvons la faire aussi souvent sans risquer quoi que ce soit. Dans les commentaires éditoriaux de Barbara Beeton, dans le TUGboat 38:1, Barbara montre une mauvaise pratique dont beaucoup d' | ||
+ | |||
+ | **What is the bad practice that many of us are guilty of? It is the practice of ending paragraphs with a \\ | ||
There is good news and bad news; the good news is that this practice will not crash your document, but the bad news is, as Barbara Beeton stated “Prejudice against this practice is not just personal bias; the learners are being taught some things that could get them in trouble later on." | There is good news and bad news; the good news is that this practice will not crash your document, but the bad news is, as Barbara Beeton stated “Prejudice against this practice is not just personal bias; the learners are being taught some things that could get them in trouble later on." | ||
Ligne 10: | Ligne 14: | ||
There is absolutely no advantage to using \\ to end a paragraph, and in fact, a big disadvantage -- it doesn' | There is absolutely no advantage to using \\ to end a paragraph, and in fact, a big disadvantage -- it doesn' | ||
- | There are only two ways to end a paragraph in " | + | There are only two ways to end a paragraph in " |
- | Never try to end a paragraph with \\! | + | Quelle est donc cette mauvaise pratique dont beaucoup sont coupables ? C'est l' |
+ | |||
+ | Il y a une bonne et une mauvaise nouvelle ; la bonne est que cette façon de faire ne plante pas votre document, mais la mauvaise est, comme l' | ||
+ | |||
+ | Par une recherche approfondie, | ||
+ | |||
+ | Il n'y a que deux façons de terminer un paragraphe dans le mode de texte « de base » : une ligne vierge ou \par. Il y a quelques situations (peu nombreuses mais plutôt obscures) dans lesquelles \par ne devrait pas être utilisé. Mais cela met quelque chose de vraiment « visible » dans le fichier et, si vous envoyez un fichier avec une messagerie qui oublie ou fait disparaître les lignes vierges, alors \par est plus sûr. | ||
+ | |||
+ | **Never try to end a paragraph with \\! | ||
Frank Mittelbach says: | Frank Mittelbach says: | ||
Ligne 19: | Ligne 31: | ||
Now, we know what is a bad practice, and a good practice. It is clear that whenever we want to make a new paragraph, we should place a blank line in our document. Not only it is all we need, it makes our code much cleaner and neater. I have always preferred a blank line between paragraphs, and now I know it is the best practice to follow. | Now, we know what is a bad practice, and a good practice. It is clear that whenever we want to make a new paragraph, we should place a blank line in our document. Not only it is all we need, it makes our code much cleaner and neater. I have always preferred a blank line between paragraphs, and now I know it is the best practice to follow. | ||
- | LaTeX gives us the ability to place items on the page with far more accuracy than what is possible with any word processor. There are other commands that we may use for the control of space. | + | LaTeX gives us the ability to place items on the page with far more accuracy than what is possible with any word processor. There are other commands that we may use for the control of space.** |
- | The command | + | N' |
+ | |||
+ | Frank Mittelbach dit : | ||
+ | « Le faire est une erreur, car vous utilisez le résultat visuel d'une construction pour en produire une différente. Un paragraphe se termine logiquement par une ligne vide. https:// | ||
+ | |||
+ | Maintenant, nous savons ce qu'est une mauvaise pratique et une bonne pratique. C'est clair que chaque fois que nous voulons faire un nouveau paragraphe, nous devrions mettre une ligne vierge dans notre document. Elle est non seulement suffisante, mais elle rend le texte plus propre et plus soigné. J'ai toujours préféré une ligne vierge entre les paragraphes et, maintenant, je sais que c'est la bonne pratique à suivre. | ||
+ | |||
+ | LaTeX nous donne la possibilité de placer des éléments dans une page avec une précision bien meilleure qu' | ||
+ | |||
+ | **The command | ||
\newline | \newline | ||
will result in a new line in the paragraph, this line is not indented, making it more suited for an address label, or something you may want to list without the use of bullets or numbers. It does take longer to type this command, but I do not believe that I will require it that often. | will result in a new line in the paragraph, this line is not indented, making it more suited for an address label, or something you may want to list without the use of bullets or numbers. It does take longer to type this command, but I do not believe that I will require it that often. | ||
Ligne 32: | Ligne 53: | ||
\smallskip \medskip \bigskip and \vspace{< | \smallskip \medskip \bigskip and \vspace{< | ||
- | The command \vspace{5mm} will push the sentence, table or graphic that follows it 5 mm below the line that is above the command. Any units-of-measure can be used: metric, points, or inches. In a LaTeX document, you can use any combination of units of measure. You can use inches in one command, and then points or centimeters on the next command. Within LaTeX, we are not tied to a unit-of-measure like we are in a word processing document. This is what gives us incredible control with the placement of tables, graphics and text in the document. | + | The command \vspace{5mm} will push the sentence, table or graphic that follows it 5 mm below the line that is above the command. Any units-of-measure can be used: metric, points, or inches. In a LaTeX document, you can use any combination of units of measure. You can use inches in one command, and then points or centimeters on the next command. Within LaTeX, we are not tied to a unit-of-measure like we are in a word processing document. This is what gives us incredible control with the placement of tables, graphics and text in the document.** |
- | Horizontal space can be managed the same way with the \hspace command. The other commands are handy when you do not have to be too precise and just want some extra white space. | + | La commande |
+ | \newline | ||
+ | insère une nouvelle ligne dans le paragraphe ; cette ligne n'est pas indentée, la rendant plus adaptée pour une étiquette d' | ||
+ | |||
+ | La commande | ||
+ | /newpage | ||
+ | fait ce qu' | ||
+ | |||
+ | L' | ||
+ | \smallskip \medskip \bigskip et \vspace{< | ||
+ | |||
+ | La commande | ||
+ | \vspace{5mm} | ||
+ | espacera la phrase, le tableau ou le graphique qui suit de 5mm sous la ligne qui précède la commande. N' | ||
+ | |||
+ | **Horizontal space can be managed the same way with the \hspace command. The other commands are handy when you do not have to be too precise and just want some extra white space. | ||
There are more commands than these, but these are the main ones that give us incredible control over how our creations look. Use the double slash when necessary, but do not use it constantly. | There are more commands than these, but these are the main ones that give us incredible control over how our creations look. Use the double slash when necessary, but do not use it constantly. | ||
Ligne 41: | Ligne 77: | ||
- | Many thanks to Barbara Beeton, Editor of the TUGboat, for her assistance in the writing of this article. | + | Many thanks to Barbara Beeton, Editor of the TUGboat, for her assistance in the writing of this article.** |
+ | |||
+ | L' | ||
+ | \hspace | ||
+ | Les autres commandes sont pratiques quand vous n'avez pas à être trop précis et que vous voulez juste un peu plus de blanc. | ||
+ | |||
+ | D' | ||
+ | |||
+ | L'aide sur ce sujet se trouve sur Internet ici - https:// | ||
+ | |||
+ | Mille mercis à Barbara Beeton, éditrice de TUGboat, pour son aide dans l' |
issue126/tutoriel1.1509297531.txt.gz · Dernière modification : 2017/10/29 18:18 de auntiee