Summer of Code - Getting Started: Difference between revisions

Jump to navigation Jump to search
Line 142: Line 142:
:<pre>\alpha \approx \beta_0 + \gamma^\chi</pre>
:<pre>\alpha \approx \beta_0 + \gamma^\chi</pre>


Would be rendered as,
:Would be rendered as,


:&alpha; &asymp; &beta;<sub>0</sub> + &gamma;<sup>&chi;</sup>
:&alpha; &asymp; &beta;<sub>0</sub> + &gamma;<sup>&chi;</sup>


This is analogous to how special characters may be included in a wiki using html.
:This is analogous to how special characters may be included in a wiki using html.


:<pre>&amp;alpha; &amp;asymp; &amp;beta;<sub>0</sub> + &amp;gamma;<sup>&amp;chi;</sup></pre>
:<pre>&amp;alpha; &amp;asymp; &amp;beta;<sub>0</sub> + &amp;gamma;<sup>&amp;chi;</sup></pre>


The text object's extent for the rendered result needs to be calculated and the text placed the location specified by the text object's position property.  An itemized list of a text objects properties can be found [http://www.gnu.org/software/octave/doc/interpreter/Text-Properties.html here].
:The text object's {{Codeline|extent}} for the rendered result needs to be calculated and the text placed the location specified by the text object's {{Codeline|position}} property.  An itemized list of a text objects properties can be found [http://www.gnu.org/software/octave/doc/interpreter/Text-Properties.html here].


* On the other hand, the LaTeX formatting support is expected to provide full LaTeX capabilities. This will require to use an external LaTeX system to produce text graphics in some format (to be specified) that is then integrated into Octave plots.
* On the other hand, the LaTeX formatting support is expected to provide full LaTeX capabilities. This will require to use an external LaTeX system to produce text graphics in some format (to be specified) that is then integrated into Octave plots.


The matplotlib project [http://matplotlib.sourceforge.net/users/usetex.html has already done this in Python] and might be used as an example of how to do this in Octave.  Mediawiki has also also done [http://en.wikipedia.org/wiki/Wikipedia:Texvc something similar].
:The matplotlib project [http://matplotlib.sourceforge.net/users/usetex.html has already done this in Python] and might be used as an example of how to do this in Octave.  Mediawiki has also also done [http://en.wikipedia.org/wiki/Wikipedia:Texvc something similar].


== Interpreter ==
== Interpreter ==
364

edits

Navigation menu