issue105:tutoriel3
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue105:tutoriel3 [2016/01/31 15:01] – créée andre_domenech | issue105:tutoriel3 [2016/02/04 15:11] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Valentine' | + | **Valentine' |
The advantage of creating your own card is that you can avoid going to the store and reading all kinds of cards that are a bit too mushy for your taste, and resorting to picking the best one from a bad lot that just is ¨not you¨. He/she would appreciate receiving something that you made the effort of making yourself. The card can also be used to create a card for any event or holiday. | The advantage of creating your own card is that you can avoid going to the store and reading all kinds of cards that are a bit too mushy for your taste, and resorting to picking the best one from a bad lot that just is ¨not you¨. He/she would appreciate receiving something that you made the effort of making yourself. The card can also be used to create a card for any event or holiday. | ||
Ligne 6: | Ligne 6: | ||
The preamble contains these commands to make things happen: | The preamble contains these commands to make things happen: | ||
+ | |||
+ | \usepackage{gcard} | ||
+ | \usepackage{calligra} | ||
+ | \usepackage{graphicx} | ||
+ | \usepackage{color}** | ||
+ | |||
+ | La Saint-Valentin arrive et il n'y a pas meilleur prétexte pour vous montrer un côté moins sérieux de LaTeX, tout en présentant quelques-unes des possibilités de formatage raffiné de police. | ||
+ | |||
+ | L' | ||
+ | |||
+ | La création de n' | ||
+ | |||
+ | La préambule contient ces commandes qui font avancer les choses : | ||
\usepackage{gcard} | \usepackage{gcard} | ||
Ligne 12: | Ligne 25: | ||
\usepackage{color} | \usepackage{color} | ||
- | The package gcard is what formats the page, calligra gives us the handwriting font, graphicx gives us pictures, and color lets us change the colour of the font. You may notice the two spellings of the word colour. In LaTeX we have to do as the Americans do and use their spelling of color for colour. I refuse to capitulate in the rest of the column. | + | **The package gcard is what formats the page, calligra gives us the handwriting font, graphicx gives us pictures, and color lets us change the colour of the font. You may notice the two spellings of the word colour. In LaTeX we have to do as the Americans do and use their spelling of color for colour. I refuse to capitulate in the rest of the column. |
Within the document, we need the {\calligra } command when we want the handwriting font to appear. To change the font colour to red and change the size of the font: | Within the document, we need the {\calligra } command when we want the handwriting font to appear. To change the font colour to red and change the size of the font: | ||
Ligne 18: | Ligne 31: | ||
{\LARGE \color{red} * } | {\LARGE \color{red} * } | ||
- | Here is something that can trip you up and causes errors. | + | Here is something that can trip you up and causes errors.** |
- | See the asterisk in the the code above? That is where your text goes, and it can be many paragraphs if you like. But that last “ } “ can get lost or deleted if you are not careful, especially when you add more text formatting code like: | + | C'est avec le paquet gcard que la page sera formatée, calligra nous fournit la police d' |
+ | |||
+ | À l' | ||
+ | |||
+ | {\LARGE \color{red} * } | ||
+ | |||
+ | Voici quelque chose qui peut vous désarçonner et qui cause des erreurs. | ||
+ | |||
+ | **See the asterisk in the the code above? That is where your text goes, and it can be many paragraphs if you like. But that last “ } “ can get lost or deleted if you are not careful, especially when you add more text formatting code like: | ||
{\calligra Happy ...} | {\calligra Happy ...} | ||
Ligne 35: | Ligne 56: | ||
You will have four small pages on one side of the paper. You will have to fold it to make your card. Depending on font sizes and what kind of card you are making, you may have to adjust things with centering or no centering on the page. | You will have four small pages on one side of the paper. You will have to fold it to make your card. Depending on font sizes and what kind of card you are making, you may have to adjust things with centering or no centering on the page. | ||
- | That is how to make a greeting card in LaTeX. | + | That is how to make a greeting card in LaTeX.** |
+ | |||
+ | Vous voyez l' | ||
+ | |||
+ | {\calligra Happy ...} | ||
+ | |||
+ | Quand nous rassemblons les deux, cela fait : | ||
+ | |||
+ | {\LARGE \color{red} | ||
+ | {\calligra Happy ...}} | ||
+ | |||
+ | Remarquez le double }} à la fin. Si vous les oubliez ou si un } est supprimé, votre document ne compilera pas comme il faut. | ||
+ | |||
+ | Vous pouvez voir mon fichier pour une carte de la Saint-Valentin ci-dessus. | ||
+ | |||
+ | Vous aurez quatre petites pages sur un seul coté de votre feuille. Il faut la plier pour créer votre carte. Selon la taille des polices et le genre de carte que vous fabriquez, il vous faudra ajuster des choses en les centrant, ou pas, sur la page. | ||
+ | |||
+ | C'est comme ça que vous faites une carte de vœux dans LaTeX. |
issue105/tutoriel3.1454248911.txt.gz · Dernière modification : 2016/01/31 15:01 de andre_domenech