issue170:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue170:tutoriel1 [2021/06/26 10:04] – créée auntiee | issue170:tutoriel1 [2021/06/29 18:18] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | In our last issue, we looked at adding some basic images to a document. Just like in sections and subsections, | + | **In our last issue, we looked at adding some basic images to a document. Just like in sections and subsections, |
Let us start by adding that to our file from last time. Just below: \usepackage{graphicx} add another line: \usepackage{subcaption} | Let us start by adding that to our file from last time. Just below: \usepackage{graphicx} add another line: \usepackage{subcaption} | ||
Ligne 9: | Ligne 9: | ||
Change that first line to: | Change that first line to: | ||
- | \begin{subfigure}{0.25\textwidth} | + | \begin{subfigure}{0.25\textwidth}** |
+ | |||
+ | Dans le dernier numéro, nous avons examiné l' | ||
- | Build and view. | + | Commençons par l' |
+ | |||
+ | Puisque nous avons indiqué à l' | ||
+ | |||
+ | Maintenant, construisez et visualisez. Qu' | ||
+ | |||
+ | Changez cette première ligne en : | ||
+ | |||
+ | \begin{subfigure}{0, | ||
+ | |||
+ | |||
+ | **Build and view. | ||
Hey! Look at you, already going at it like a pro! (F5) | Hey! Look at you, already going at it like a pro! (F5) | ||
Ligne 24: | Ligne 37: | ||
You will notice I added the lipsum package and added my dummy text. Press F5 and your output should look like this: | You will notice I added the lipsum package and added my dummy text. Press F5 and your output should look like this: | ||
- | Now we can demonstrate figures that relate to the size of the text. | + | Now we can demonstrate figures that relate to the size of the text.** |
- | Now for your challenge: add a figure after the last /lipsum. | + | Compilez et regardez. |
+ | |||
+ | Hé ! Regardez-vous, | ||
+ | |||
+ | Encore une fois, vous devez vous rappeler que si vous n'avez pas de texte, l' | ||
+ | |||
+ | OK, avant de faire cela, je veux vous présenter un paquet appelé lipsum. Tout ce qu'il fait, c'est créer du texte factice lorem ipsum. Cela m' | ||
+ | |||
+ | Comme cela commence à faire beaucoup de code, effacez tout jusqu' | ||
+ | |||
+ | Ainsi, notre code ressemblera à celui montré sur la page précédente, | ||
+ | |||
+ | Vous remarquerez que j'ai ajouté le paquet lipsum et que j'ai ajouté mon texte factice. Appuyez sur F5 et votre résultat devrait ressembler à ceci : | ||
+ | Maintenant, nous pouvons parler des chiffres qui se rapportent à la taille du texte. | ||
+ | |||
+ | |||
+ | **Now for your challenge: add a figure after the last /lipsum. | ||
Did you manage? Great! If you didn’t, go back to the previous issue and redo the lesson, practise makes perfect! | Did you manage? Great! If you didn’t, go back to the previous issue and redo the lesson, practise makes perfect! | ||
Ligne 37: | Ligne 66: | ||
Does your line match mine? | Does your line match mine? | ||
+ | |||
+ | \includegraphics[width=\linewidth]{Figures/ | ||
+ | |||
+ | Maintenant, votre défi : ajoutez un chiffre après le dernier /lipsum. | ||
+ | |||
+ | Vous avez réussi ? Très bien ! Si vous n'y êtes pas parvenu, retournez au numéro précédent et refaites la leçon, c'est en forgeant qu'on devient forgeron ! | ||
+ | |||
+ | Maintenant, nous allons réduire la taille de notre image. Comment s'y prendre ? Le menu déroulant de TeXstudio vous donne ceci : \includegraphics[keyvals]{imagefile} | ||
+ | |||
+ | Votre attention doit se porter sur les valeurs clés « keyvals ». Effacez-les et tapez un « w ». La largeur (width) sera l'une des options proposées, choisissez-la. Pour que votre image s' | ||
+ | |||
+ | Maintenant compilez et regardez votre résultat. Voici le mien : | ||
+ | |||
+ | Votre ligne correspond-elle à la mienne ? | ||
\includegraphics[width=\linewidth]{Figures/ | \includegraphics[width=\linewidth]{Figures/ | ||
- | Well Done! At any time, hover your mouse over different words in that line, if you use TeXstudio, you should see a tooltip. In the case of the image file, you should see the image. As you can see, my image aligns perfectly with my column. Sometimes, you don’t need all that, or your space may be limited. You can specify the width and height as per issue 3 of our tutorial, last month. Try it now. This whole series is a hands-on affair. If you don’t do it, you will not remember it by the time the next issue hits your inbox. | + | |
+ | **Well Done! At any time, hover your mouse over different words in that line, if you use TeXstudio, you should see a tooltip. In the case of the image file, you should see the image. As you can see, my image aligns perfectly with my column. Sometimes, you don’t need all that, or your space may be limited. You can specify the width and height as per issue 3 of our tutorial, last month. Try it now. This whole series is a hands-on affair. If you don’t do it, you will not remember it by the time the next issue hits your inbox. | ||
No seriously, I want you to try, as there is nothing as good as understanding, | No seriously, I want you to try, as there is nothing as good as understanding, | ||
+ | |||
+ | \begin{figure*} | ||
+ | |||
+ | \includegraphics[width=\linewidth]{Figures/ | ||
+ | |||
+ | \end{figure*}** | ||
+ | |||
+ | Très bien ! À tout moment, passez votre souris sur différents mots de cette ligne, si vous utilisez TeXstudio, vous devriez voir une info-bulle. Dans le cas du fichier image, vous devriez voir l' | ||
+ | |||
+ | Non, sérieusement, | ||
\begin{figure*} | \begin{figure*} | ||
Ligne 50: | Ligne 104: | ||
\end{figure*} | \end{figure*} | ||
- | Baby steps, this is not the easiest thing to learn, but now you know a little more and every bit counts! Did you notice that I slipped something else into this tutorial, without explaining it (it is self-explanatory). See if you can find it. | + | |
+ | **Baby steps, this is not the easiest thing to learn, but now you know a little more and every bit counts! Did you notice that I slipped something else into this tutorial, without explaining it (it is self-explanatory). See if you can find it. | ||
So now you know something more about graphics and their placement. Next issue we will touch on other types of graphics before moving on. | So now you know something more about graphics and their placement. Next issue we will touch on other types of graphics before moving on. | ||
- | Did I make a mistake? Do you have any questions? E-mail us at: misc@fullcirclemagazine.org | + | Did I make a mistake? Do you have any questions? E-mail us at: misc@fullcirclemagazine.org** |
+ | |||
+ | Ce n'est pas la chose la plus facile à apprendre, mais, petit à petit, vous en savez un peu plus et chaque détail compte ! Avez-vous remarqué que j'ai glissé quelque chose d' | ||
+ | |||
+ | Vous en savez donc maintenant un peu plus sur les graphiques et leur placement. Dans le prochain numéro, nous aborderons d' | ||
+ | |||
+ | Ai-je fait une erreur ? Vous avez des questions ? Envoyez-nous un courriel à l' |
issue170/tutoriel1.1624694657.txt.gz · Dernière modification : 2021/06/26 10:04 de auntiee