issue180:latex
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue180:latex [2022/05/05 16:19] – auntiee | issue180:latex [2022/05/09 13:45] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
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 (“& | 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 (“& | ||
- | D'une façon ou d'une autre, juste avant de déménager de 1000 km, j'ai sauvegardé mon disque et réinstallé mon ordinateur portable. J' | + | 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' |
- | Lorsqu' | + | Lorsqu' |
+ | À 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: | ||
+ | \subsection{Without} | ||
+ | \[ | ||
+ | E = mc^2 | ||
+ | \] | ||
- | Let us build on what we already have, and add an alignment section (top right). | + | You need to be sure when to use brackets, braces, or parentheses. Mixing them will cause all kinds of havoc on your document. |
- | When you run this, you will notice | + | The last thing I want to touch on is \left & \right, this will position a number to that side of a symbol. ** |
+ | |||
+ | 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 | ||
\subsection{Without} | \subsection{Without} | ||
Ligne 23: | Ligne 34: | ||
\] | \] | ||
- | You need to be sure when to use brackets, braces, or parentheses. Mixing them will cause all kinds of havoc on your document. | + | 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. |
- | The last thing I want to touch on is \left & \right, | + | La dernière chose dont j' |
- | Quickly add this code in place of whatever there was in your \begin{equation} -section: | + | **Quickly add this code in place of whatever there was in your \begin{equation} -section: |
\begin{equation} | \begin{equation} | ||
Ligne 41: | 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.1651760371.txt.gz · Dernière modification : 2022/05/05 16:19 de auntiee