Stud.IP Dokumentation
|
< Formating text | Overview | Smileys > Typesetting formulae with LaTeXHere you find help on the use of TeX in Stud.IP. Mathematical formulae in Stud.IPSome of you may have noticed that our computer keyboard does not have a sigma sign , an integral sign or similar symbols. However, because we occasionally need them in university operations, Stud.IP implemented TeX-Arithmetic (pronounced Tech) in order to be able to insert mathematical symbols and entire formulae. One generally writes:
and this then becomes, for example: This means that the bracketed terms Introduction to TeXIn principal one can write in TeX tags jus as one writes in other contexts. All formulae, which contain +, -, *, / and whole numbers and letters are written in TeX in the same manner in which one would have written them otherwise. In TeX the other symbols are merely designated by specific character sequences. The character sequence \sum thus results in a sigma sign. Example:
Similarly, the integral sign is signified by But, to begin with, here are a few syntax rules for TeX. For the sigma sign one wants to specifically state the variables across which the variables are summed (and how often) and for the integral sign the limits of the integration (or quantities). This is performed as follows:
The _ (underline) always shows the term which should be at the bottom (subscript) (as in the customary Stud.IP syntax as well) and the ^ sign does the same for superscript characters. And this applies for the sigma sign, integral sign but — and now things are getting cool — also for normal variable indices or powers. Example:
In other words this is a notation for everything. If the expressions which are to be subscripts or superscripts are more complicated than one character (and even the number 10 comprises more than one character) one has to write the entire expression in braces { and }, so that it will be considered to be a collective expression. In effect the expression in braces { and } has a character length of 1 for TeX. Now an example for such "complicated“ expressions: Example:
And now to fractions. In most cases a fraction is well written with the / (slash) character, such as 1/7 for example. But large fractions in particularly become confusing when written in this manner. In TeX fractions can be represented by writing the fraction line as \over. Everything in front of this is considered the numerator; everything behind it is interpreted as the denominator of the fraction. Example:
But this becomes problematical when something other than the fraction is to be written. In this case one writes the fraction in braces { and } and everything that is not contained in the braces is not part of the fraction. Example: false: correct: TeX can also depict compound fractions. To achieve this, one simply writes another fraction in braces in a fraction: Example:
Unfortunately, the same thing applies in TeX as in real life: one should avoid double fractions. In real life they become confusing and in TeX the characters gradually become too small. At least, a certain minimum size is never exceeded in TeX so that one can use an infinite number of braces. Example:
becomes It is not pretty, but it works. The fact that an orderly formula in TeX is rather complicated is beyond dispute. But let’s say it like this: it is more difficult to read TeX code than to write it. Basically, one only has to understand the TeX principle and formulae nearly write themselves. Liste of TeX functionsArithmetical operators (signs)Special signsQuantitiesVectors and matricesThere are a number of matrices, which all begin with \matrix. The type of matrix is then written in braces (i.e., the type of brackets which should enclose it). Then all cells are written individually from left to right and from top to bottom. An & symbol indicates that a cell should be indented and a // shows that a cell shifts downwards. Links
| ||
|