issue180:latex
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue180:latex [2022/04/30 20:47] – créée d52fr | issue180:latex [2022/05/09 13:45] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Somehow, just before moving 1000km, I backed up my drive and reinstalled my laptop. I was using a pre-release of Voyager Linux and some things were just broken, even after the updates. Though the 12-part series was complete, I cannot find the rest up to the time of writing this. I acknowledge some of you would like to get to the rest of the series, so it will continue. Currently, I cannot go and rewrite the last four parts like I did with the blender series. I just do not have the time. Even my cycling has taken a back seat this year as I try to catch up with my new job. But there is good news, you will have to get to the end to read it, so what are you waiting for? Fire up your LaTeX editor and let’s start! | + | **Somehow, just before moving 1000km, I backed up my drive and reinstalled my laptop. I was using a pre-release of Voyager Linux and some things were just broken, even after the updates. Though the 12-part series was complete, I cannot find the rest up to the time of writing this. I acknowledge some of you would like to get to the rest of the series, so it will continue. Currently, I cannot go and rewrite the last four parts like I did with the blender series. I just do not have the time. Even my cycling has taken a back seat this year as I try to catch up with my new job. But there is good news, you will have to get to the end to read it, so what are you waiting for? Fire up your LaTeX editor and let’s start! |
+ | When it comes to typesetting, | ||
+ | By now you have settled on an editor, and I will not introduce another. What I will be touching on in this issue is alignment. We looked at basic mathematical placing last issue, but what if you need to do some chemical equations that span multiple lines? Yes, I know all of our readers are budding rocket scientists, just bear with me. Do you still remember how to span multiple lines? If not, quickly grab the last issue, I’ll wait. Right, now that we are on the same page, the trick is the ampersand (“& | ||
- | When it comes to typesetting, LaTeX is the undisputed champ. Boika, Boika... It outweighs its opponents in the sheer number of options alone. At first, LaTeX is a bit confusing, and difficult to use. Not to scare you, but I suggest looking here: http:// | + | D'une façon ou d'une autre, juste avant de déménager de 1 000 km, j'ai sauvegardé mon disque et réinstallé mon ordinateur portable. J' |
- | By now you have settled on an editor, and I will not introduce another. What I will be touching on in this issue is alignment. We looked at basic mathematical placing last issue, but what if you need to do some chemical equations that span multiple lines? Yes, I know all of our readers are budding rocket scientists, just bear with me. Do you still remember how to span multiple lines? If not, quickly grab the last issue, I’ll wait. Right, now that we are on the same page, the trick is the ampersand (“& | + | Lorsqu' |
- | Let us build on what we already have, and add an alignment section (top right). | + | À ce stade vous aurez choisi un éditeur et je ne vais pas en présenter d' |
+ | |||
+ | **Let us build on what we already have, and add an alignment section (top right). | ||
When you run this, you will notice that, even though I purposely misaligned the two lines in the code (look at the spaces too), they align perfectly in the output. This works with bigger symbols too, like the summation. Go on, try it out. Even if you just add another line, do it, you will remember it better. This will work with however many lines you give it. If you paid any attention to your output, you may have noticed that there are numbers next to your equations, so you can reference them later. What if we don’t want these? Add this bit of code and see what it does: | When you run this, you will notice that, even though I purposely misaligned the two lines in the code (look at the spaces too), they align perfectly in the output. This works with bigger symbols too, like the summation. Go on, try it out. Even if you just add another line, do it, you will remember it better. This will work with however many lines you give it. If you paid any attention to your output, you may have noticed that there are numbers next to your equations, so you can reference them later. What if we don’t want these? Add this bit of code and see what it does: | ||
Ligne 19: | Ligne 23: | ||
You need to be sure when to use brackets, braces, or parentheses. Mixing them will cause all kinds of havoc on your document. | You need to be sure when to use brackets, braces, or parentheses. Mixing them will cause all kinds of havoc on your document. | ||
- | The last thing I want to touch on is \left & \right, this will position a number to that side of a symbol. | + | The last thing I want to touch on is \left & \right, this will position a number to that side of a symbol. |
- | Quickly add this code in place of whatever there was in your \begin{equation} -section: | + | Construisons sur ce que nous avons déjà et ajoutons une section d' |
+ | |||
+ | Quand vous lancez ceci, vous remarquez que, même si j'ai désaligné deux lignes du code exprès (regardez les espaces aussi), elles sont parfaitement alignées dans la sortie. Cela fonctionne avec de plus grands symboles aussi, comme les sommes. Allez-y, essayez-le. Même si vous n' | ||
+ | |||
+ | \subsection{Without} | ||
+ | \[ | ||
+ | E = mc^2 | ||
+ | \] | ||
+ | |||
+ | Il faut que vous soyez certain de quand il faut utiliser des crochets, des accolades ou des parenthèses. Les mélanger créera toutes sortes de dysfonctionnements dans votre document. | ||
+ | |||
+ | La dernière chose dont j' | ||
+ | |||
+ | **Quickly add this code in place of whatever there was in your \begin{equation} -section: | ||
\begin{equation} | \begin{equation} | ||
Ligne 35: | Ligne 52: | ||
- | From the next issue onwards, Robert will be taking over the LaTex tutorials, and should I come across WHERE I stashed the rest of the series, I will send them to Ronnie so he can put it out there for you completionists. | + | From the next issue onwards, Robert will be taking over the LaTex tutorials, and should I come across WHERE I stashed the rest of the series, I will send them to Ronnie so he can put it out there for you completionists.** |
+ | |||
+ | Ajoutez ce code à la place de ce qu'il y avait dans votre section \begin{equation} : | ||
+ | |||
+ | \begin{equation} | ||
+ | z =\left .x^{2} | ||
+ | \right\rvert^{y}_{z} | ||
+ | \end{equation} | ||
+ | |||
+ | Maintenant regardez la sortie. Essayez de modifier quelque chose, comme enlever le \right. Que s' | ||
+ | |||
+ | Puisque aller dans plus de détails serait au-delà du territoire d'un débutant, je vous laisserai ici. Si vous avez un TDAH, vous pouvez maintenant courir à droite et à gauche. | ||
+ | |||
+ | Il y a une mention honorable ici, à savoir le paquet des algorithmes, | ||
+ | |||
+ | À partir du prochain numéro, Robert reprendra les tutoriels sur LaTeX et, si jamais je retrouve l' | ||
issue180/latex.1651344436.txt.gz · Dernière modification : 2022/04/30 20:47 de d52fr