658

edits

Jump to navigation
Jump to search
~~=== Examples ===~~* frac~~Do not use the example environment to insert formulas, consider using ~~<pre>\def\frac#1#2{{~~Codeline|@verbatim~~\begingroup#1\endgroup\over#2}} ~~instead~~</pre>

→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 text~~will 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:

== Special inserts ==

Retrieved from "https://wiki.octave.org/Special:MobileDiff/5207"

- Not logged in
- Talk
- Contributions
- Create account
- Log in