issue188:latex
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue188:latex [2023/01/03 10:34] – créée auntiee | issue188:latex [2023/01/06 14:55] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | We have learned a lot about individual tools and techniques. It is time to practice some of those tools and techniques (and learn some new ones) to make things. This issue’s project is a small poster. It could be used to advertise a garage sale, or a lost pet, or announce a community meeting, or whatever you like. We will include an image, use different font sizes, and play with other settings. | + | **We have learned a lot about individual tools and techniques. It is time to practice some of those tools and techniques (and learn some new ones) to make things. This issue’s project is a small poster. It could be used to advertise a garage sale, or a lost pet, or announce a community meeting, or whatever you like. We will include an image, use different font sizes, and play with other settings. |
Remember what we are going to generate is a standard PDF file. It can be printed on your own printer or given to someone else to print. Instant print shops will often accept PDF files on USB sticks as input for their work. This is one way to get around Microsoft Word's domination of text files. | Remember what we are going to generate is a standard PDF file. It can be printed on your own printer or given to someone else to print. Instant print shops will often accept PDF files on USB sticks as input for their work. This is one way to get around Microsoft Word's domination of text files. | ||
Ligne 5: | Ligne 5: | ||
Of course, the first thing we need to do is design the poster. I suggest you do that with paper and pencil, without the use of a computer. Ideas seem to flow faster when there is a direct physical connection between hand and paper. Our poster is going to have the photo of our lost pet at the top, taking up about one-third of the page. There will be a large heading centred on the page, maybe above the photo, maybe below the photo. Then there will be some text describing the animal: name, color, collar, etc. | Of course, the first thing we need to do is design the poster. I suggest you do that with paper and pencil, without the use of a computer. Ideas seem to flow faster when there is a direct physical connection between hand and paper. Our poster is going to have the photo of our lost pet at the top, taking up about one-third of the page. There will be a large heading centred on the page, maybe above the photo, maybe below the photo. Then there will be some text describing the animal: name, color, collar, etc. | ||
- | Here is the code for the first attempt (shown right). | + | Here is the code for the first attempt (shown right).** |
+ | |||
+ | Nous avons beaucoup appris sur les différents outils et techniques. Il est temps de mettre en pratique certains d' | ||
+ | |||
+ | N' | ||
+ | |||
+ | Bien entendu, la première chose à faire est de concevoir l' | ||
+ | |||
+ | Voilà le code de la première tentative (à droite). | ||
+ | |||
+ | |||
+ | **And here is the result. | ||
- | And here is the result. | ||
The image is okay but the text is much too small. We need the title to be very large, and the rest of the text large enough to fill the page. For help in instances like this, I do not turn to CTAN. CTAN is wonderful if you want to know if there is a package that will do some task or if you need help to use a particular package. What we need to know is how to change font sizes. For task-oriented help, I start with The Not So Short Introduction to Latex by Oetiker, Partl, Hyna and Schlegl. | The image is okay but the text is much too small. We need the title to be very large, and the rest of the text large enough to fill the page. For help in instances like this, I do not turn to CTAN. CTAN is wonderful if you want to know if there is a package that will do some task or if you need help to use a particular package. What we need to know is how to change font sizes. For task-oriented help, I start with The Not So Short Introduction to Latex by Oetiker, Partl, Hyna and Schlegl. | ||
When I did a search for “font size”, I discovered there are a few ways to set the font size. The first way is to set the base font size in the documentclass instruction. However, only three sizes are available for documentclass - article: 10pt, 11pt and 12pt. Looking further, we come to Section 5.2: “LATEX chooses the appropriate font and font size based on the logical structure of the document (sections, footnotes, . . . ). In some cases, one might like to change fonts and sizes by hand.” This looks promising. Here is our poster text with the font size keyword Huge added (top right). | When I did a search for “font size”, I discovered there are a few ways to set the font size. The first way is to set the base font size in the documentclass instruction. However, only three sizes are available for documentclass - article: 10pt, 11pt and 12pt. Looking further, we come to Section 5.2: “LATEX chooses the appropriate font and font size based on the logical structure of the document (sections, footnotes, . . . ). In some cases, one might like to change fonts and sizes by hand.” This looks promising. Here is our poster text with the font size keyword Huge added (top right). | ||
- | We could also establish a “Huge” environment with \begin{document} \begin{Huge} and then add \end{Huge} before \end{document}. Both of these changes increase the size of the type to about 25pt. This is an improvement, | + | We could also establish a “Huge” environment with \begin{document} \begin{Huge} and then add \end{Huge} before \end{document}. Both of these changes increase the size of the type to about 25pt. This is an improvement, |
- | When I went online and asked about larger font sizes, some people suggested using the “beamer” document class install of “article”. Beamer is an old document class for producing slides for presentations, | + | Et voici le résultat. |
+ | |||
+ | L' | ||
+ | |||
+ | Lorsque j'ai effectué une recherche sur la « taille de la police », j'ai découvert qu'il existe plusieurs façons d'en définir la taille. La première consiste à définir la taille de la police de base dans l' | ||
+ | |||
+ | Nous pourrions également établir un environnement « Huge » avec \begin{document} \begin{Huge}, | ||
+ | |||
+ | |||
+ | **When I went online and asked about larger font sizes, some people suggested using the “beamer” document class install of “article”. Beamer is an old document class for producing slides for presentations, | ||
+ | |||
+ | \documentclass[a4paper, | ||
+ | \usepackage{fix-cm} | ||
+ | \begin{document} | ||
+ | \fontsize{60}{70}\selectfont Huge text | ||
+ | \end{document}** | ||
+ | |||
+ | Lorsque je me suis renseigné en ligne sur l' | ||
\documentclass[a4paper, | \documentclass[a4paper, | ||
Ligne 22: | Ligne 49: | ||
\end{document} | \end{document} | ||
- | When I tried the fontsize{48}{60} property without usepackage{fix-cm}, | + | |
+ | **When I tried the fontsize{48}{60} property without usepackage{fix-cm}, | ||
I tried several font size values in order to get the text to fill the page. The full code for the poster becomes (shown right). | I tried several font size values in order to get the text to fill the page. The full code for the poster becomes (shown right). | ||
- | Latex. In the meantime, experiment with making single page posters. One suggestion is to play with the setlength properties in the preamble to discover what they do – singly, and in combination with each other. | + | Latex. In the meantime, experiment with making single page posters. One suggestion is to play with the setlength properties in the preamble to discover what they do – singly, and in combination with each other.** |
+ | |||
+ | Lorsque j'ai essayé la propriété fontsize{48}{60} sans usepackage{fix-cm}, | ||
+ | |||
+ | J'ai essayé plusieurs valeurs de taille de police pour que le texte remplisse la page. Voici ce que devient Le code complet de l' | ||
+ | |||
+ | LaTeX. En attendant le prochain article, essayez de créer des affiches d'une seule page. Une suggestion est de jouer avec les propriétés setlength dans le préambule pour découvrir ce qu' |
issue188/latex.1672738456.txt.gz · Dernière modification : 2023/01/03 10:34 de auntiee