issue50:c_c
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 | ||
issue50:c_c [2011/06/26 22:59] – fredphil91 | issue50:c_c [2011/08/07 13:23] (Version actuelle) – fredphil91 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Before I begin this month' | + | **Before I begin this month' |
alias imgresize=' | alias imgresize=' | ||
Ligne 7: | Ligne 7: | ||
These aliases could be either pasted into your .bashrc file, or to a dedicated aliases file. The upper command resizes all the jpeg files to 640 x 480, and the second one adds a frame around all jpeg and png files. | These aliases could be either pasted into your .bashrc file, or to a dedicated aliases file. The upper command resizes all the jpeg files to 640 x 480, and the second one adds a frame around all jpeg and png files. | ||
- | Now, on to this month' | + | Now, on to this month' |
- | Document Preamble | + | Avant de commencer cet article, j' |
+ | |||
+ | alias imgresize=' | ||
+ | |||
+ | alias frameall=' | ||
+ | |||
+ | Vous pourriez coller ces alias soit dans votre fichier .bashrc soit dans un fichier dédié aux alias. La commande du dessus redimensionne tous les fichiers jpeg à 640x480 et l' | ||
+ | |||
+ | Et maintenant passons à l' | ||
+ | |||
+ | **Document Preamble | ||
The preamble is all the text included before the \begin{document} line in Latex. This includes document settings, headers, footers, package imports, and package settings. My typical math documents contain the following packages: | The preamble is all the text included before the \begin{document} line in Latex. This includes document settings, headers, footers, package imports, and package settings. My typical math documents contain the following packages: | ||
Ligne 17: | Ligne 27: | ||
amsfonts – offers special math formatting (math calligraphy (\mathcal{}), | amsfonts – offers special math formatting (math calligraphy (\mathcal{}), | ||
amssymb – offers the ability to display numbered equations, in-line math, etc. | amssymb – offers the ability to display numbered equations, in-line math, etc. | ||
- | hyperref (when using a table of contents) – Allows the creation of click-able links in TeX documents. | + | hyperref (when using a table of contents) – Allows the creation of click-able links in TeX documents.** |
- | Below is an actual preamble that I use for my Linear Algebra notes (the document section consists of only two include statements – and the references for utf8 and ngerman are because my lecture is in German). | + | Préambule du document |
+ | |||
+ | Le préambule c'est, en LaTeX, tout le texte saisi avant la ligne \begin{document}. Cela comprend les paramètres du document, les en-têtes, les pieds de pages, l' | ||
+ | |||
+ | tikz (pour les diagrammes/ | ||
+ | amsmath – propose des améliorations pour toutes les fonctions mathématiques de base ; | ||
+ | amsfonts – propose des formatages spéciaux pour les maths (calligraphie mathématique (\mathcal{}), | ||
+ | amssymb – propose la capacité d' | ||
+ | hyperref (lorsque vous utilisez une table des matières) – permet la création de liens cliquables dans les documents TeX. | ||
+ | |||
+ | **Below is an actual preamble that I use for my Linear Algebra notes (the document section consists of only two include statements – and the references for utf8 and ngerman are because my lecture is in German). | ||
TikZ is probably the most complicated package to use, so I will cover it first. The following is the code used to create graph A: | TikZ is probably the most complicated package to use, so I will cover it first. The following is the code used to create graph A: | ||
+ | |||
+ | \begin{tikzpicture}[node distance=2cm, | ||
+ | |||
+ | \node (1) {$\hat{1}$}; | ||
+ | |||
+ | \node (2) [right of = 1] {$\hat{2}$}; | ||
+ | |||
+ | \node (3) [below of = 2] {$\hat{3}$}; | ||
+ | |||
+ | \draw[decoration={markings, | ||
+ | |||
+ | \draw[decoration={markings, | ||
+ | |||
+ | \draw[decoration={markings, | ||
+ | |||
+ | \end{tikzpicture}** | ||
+ | |||
+ | Vous trouverez ci-dessous le véritable préambule que j' | ||
+ | |||
+ | TikZ est sans doute le paquet le plus compliqué à utiliser et je vais donc le traiter en premier. Ce qui suit est le code utilisé pour créer le graphique A : | ||
\begin{tikzpicture}[node distance=2cm, | \begin{tikzpicture}[node distance=2cm, | ||
Ligne 39: | Ligne 79: | ||
\end{tikzpicture} | \end{tikzpicture} | ||
- | Graph A | + | **Graph A |
This code creates 3 nodes (named 1, 2 and 3). The information in the braces (“{}”) is the label for the node (what is displayed), so leaving it blank results in an empty node. The next three lines “\draw” create the lines between nodes (using the node names – which is in the normal brackets), and labelled again by what’s within the braces. | This code creates 3 nodes (named 1, 2 and 3). The information in the braces (“{}”) is the label for the node (what is displayed), so leaving it blank results in an empty node. The next three lines “\draw” create the lines between nodes (using the node names – which is in the normal brackets), and labelled again by what’s within the braces. | ||
Ligne 56: | Ligne 96: | ||
\end{align*} | \end{align*} | ||
- | This results in the text shown below. | + | This results in the text shown below.** |
- | + | ||
- | The align* environment allows you to use tabbing characters (“& | + | Graphique A |
+ | |||
+ | Ce code-ci crée 3 noeuds (appelés 1, 2 et 3). L' | ||
+ | |||
+ | En utilisant les paquets mathématiques pour créer et aligner des équations : | ||
+ | |||
+ | \begin{align*} | ||
+ | |||
+ | (\mathbb{K}_1^1) & \alpha +(\beta + \gamma )= (\alpha + \beta)+\gamma \\ | ||
+ | |||
+ | (\mathbb{K}_1^2) & \alpha + 0 = 0 + \alpha = \alpha \\ | ||
+ | (\mathbb{K}_1^3) & \alpha \cdot -\alpha = -\alpha \cdot \alpha = 0 \\ | ||
+ | |||
+ | (\mathbb{K}_1^4) & \alpha + \beta = \beta + \alpha | ||
+ | |||
+ | \end{align*} | ||
+ | |||
+ | Le texte qui en résulte se trouve ci-dessous. | ||
+ | |||
+ | **The align* environment allows you to use tabbing characters (“& | ||
Other useful commands are things like: | Other useful commands are things like: | ||
Ligne 67: | Ligne 126: | ||
“\cup” (union symbol – set theory) | “\cup” (union symbol – set theory) | ||
“\cap” (intersection symbol – set theory) | “\cap” (intersection symbol – set theory) | ||
- | “\mathcal{}” (makes the letter in braces cursive – used by my professor when referring to a basis – a set of linearly independent vectors) | + | “\mathcal{}” (makes the letter in braces cursive – used by my professor when referring to a basis – a set of linearly independent vectors)** |
- | I hope you've found this article useful. I could have covered more examples, but regardless of how many I covered, it would still suit only a small number of use-cases. As such, you should view these as examples of what you can do with LaTeX. See the further reading section for a link to a useful manual. If you've any questions, or requests, email me at lswest34@gmail.com. Please put the words Full Circle Magazine, FCM, or C&C in the subject line, so I don't overlook it. | + | |
+ | L' | ||
+ | |||
+ | D' | ||
+ | |||
+ | « \forall » (pour tout - le symbole A à l' | ||
+ | « \exists » (il existe - un E renversé) ; | ||
+ | « \in » (un E courbé, utilisé lorsqu' | ||
+ | « \cup » (symbole d' | ||
+ | « \cap » (symbole d' | ||
+ | « \mathcal{} » (transforme la lettre entre les accolades en cursive – utilisé par mon professeur quand il désigne un ensemble de vecteurs qui sont indépendants linéairement, | ||
+ | |||
+ | **I hope you've found this article useful. I could have covered more examples, but regardless of how many I covered, it would still suit only a small number of use-cases. As such, you should view these as examples of what you can do with LaTeX. See the further reading section for a link to a useful manual. If you've any questions, or requests, email me at lswest34@gmail.com. Please put the words Full Circle Magazine, FCM, or C&C in the subject line, so I don't overlook it. | ||
Further Reading: | Further Reading: | ||
http:// | http:// | ||
- | http:// | + | http:// |
+ | J' | ||
+ | |||
+ | Pour aller plus loin : | ||
+ | http:// | ||
+ | http:// | ||
====== Pub Server Circle ====== | ====== Pub Server Circle ====== | ||
- | Server Circle is a new question and answer site run by techies. | + | **Server Circle is a new question and answer site run by techies. |
Users with any level of experience can ask technical questions for free about anything server related, and receive answers from trusted experts, who are rated by the community. | Users with any level of experience can ask technical questions for free about anything server related, and receive answers from trusted experts, who are rated by the community. | ||
With time you can earn reputation points, and even financial rewards, by contributing your answers to questions from other people. | With time you can earn reputation points, and even financial rewards, by contributing your answers to questions from other people. | ||
+ | |||
+ | http:// | ||
+ | |||
+ | Server Circle est un nouveau site de questions et réponses géré par des experts en technologie. | ||
+ | |||
+ | Les utilisateurs de tout niveau peuvent poser gratuitement des questions techniques en rapport avec les serveurs. Ils recevront des réponses de la part d' | ||
+ | |||
+ | À la longue, vous pouvez gagner des points de réputation, | ||
http:// | http:// | ||
+ | |||
+ | **NOTE: Server Circle is not affiliated with, nor endorsed by, Full Circle magazine.** | ||
+ | |||
+ | N.B. Server Circle n'est ni affilié avec, ni approuvé par, le magazine Full Circle. | ||
issue50/c_c.1309121979.txt.gz · Dernière modification : 2011/06/26 22:59 de fredphil91