Changes

Jump to navigation Jump to search

Help text

665 bytes added, 06:54, 10 November 2014
→‎Formatting: change subsections by what a user may want and not by existing evironments. Also explain how to add TeX mathematical formulas
== Formatting ==
 === Verbatim Formulas ===Use Do not use the example environment to insert formulas, consider using {{Codeline|@verbatim}} instead.  {{Code||<pre>@verbatim E[Z(i,k) ]IRL(k) = ------------ V(i)@end verbatim</pre>}} However, this to include literal textwill never print as a nice looking mathematical formula that TeX is known for. Special useful It is possible to insert have Tex formulas.but then they won't be displayed on HTML or Info (Octave help) so the following can be done:
{{Code||<pre>
@tex
\def\frac#1#2{{\begingroup#1\endgroup\over#2}}
$$ IRL(k) = \frac{E[Z(i,k)]}{V(i)} $$
@end tex
@ifnottex
@verbatim
E[Z(i,k) ]
V(i)
@end verbatim
@end ifnottex
</pre>}}
=== Plain-tex missing macros ===
When compared to LaTeX, plain TeX is missing some very useful macros for including mathematical notation. The following is a list of their definitions which can be added on a as needed basis:
=== Examples ===* fracDo not use the example environment to insert formulas, consider using <pre>\def\frac#1#2{{Codeline|@verbatim\begingroup#1\endgroup\over#2}} instead</pre>
== Special inserts ==

Navigation menu