412
edits
| Line 195: | Line 195: | ||
<syntaxhighlight lang="latex"> | <syntaxhighlight lang="latex"> | ||
\newcommand\posWindRose{2.8} | \newcommand\posWindRose{2.8} | ||
\newcommand\ | \newcommand\externalRadius{3.55} | ||
\newcommand\graduateThick{0.3} | \newcommand\graduateThick{0.3} | ||
\newcommand\graduateInternaThick{0.45} | |||
\newcommand\arcRadius{\externalDiameter-\graduateThick/2} | \newcommand\arcRadius{\externalDiameter-\graduateThick/2} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
\ newcommand defines a macro type command, followed by the name of the macro that begins with the character "\". For many who are accustomed to XML, the compactness of the LaTeX code can give nausea, but it is a typical feature of the languages of the 70's and 80's when they were to be run on machines with little memory. But this essential feature of programming language is certainly a great tool to quickly build a document, thus increasing the author's productivity.<BR>Braces are the command that can be a value or an expression. Expressions can include other macro commands, as can be seen in the fourth row. Mathematical expressions in LaTeX can be very complex and include all the functions of a good scientific language. In the example I used only algebraic operations, but there are also transcendental, trigonometric, logarithmic functions etc. This allows inserting in place of the values, the expressions that generate them. | ''\newcommand'' defines a macro type command, followed by the name of the macro that begins with the character "\". For many who are accustomed to XML, the compactness of the LaTeX code can give nausea, but it is a typical feature of the languages of the 70's and 80's when they were to be run on machines with little memory. But this essential feature of programming language is certainly a great tool to quickly build a document, thus increasing the author's productivity.<BR>Braces are the command that can be a value or an expression. Expressions can include other macro commands, as can be seen in the fourth row. Mathematical expressions in LaTeX can be very complex and include all the functions of a good scientific language. In the example I used only algebraic operations, but there are also transcendental, trigonometric, logarithmic functions etc. This allows inserting in place of the values, the expressions that generate them. | ||
===Insert a colored arc=== | ===Insert a colored arc=== | ||
edits