help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Differing fonts between Octave and other programs with the same font


From: Pantxo
Subject: Re: Differing fonts between Octave and other programs with the same fontname
Date: Sun, 1 Dec 2019 19:13:50 -0600 (CST)

BGreen wrote
> On a side note, how does one actually use math mode with $? If I call
> something like
> title('$Text (hello, 123) \alpha$')
> the $ are interpreted literally. The documentation mentions they can be
> used in Octave, so I thought to try them and see how it affected my
> problem, but I couldn't get them to work and the section of the
> documentation on the text interpreter property didn't explain beyond a
> passing mention.
> 
> - Brett Green
> 
> 
> 
> 
> Octave text.png (26K)
> <https://octave.1599824.n4.nabble.com/attachment/4694774/0/Octave%20text.png>

For the side note, Octave doesn't have a "latex" interpreter and thus does
not interpret "$" math environment. The only way to have LaTeX fonts and
math typesetting (in printout only) is to use pdflatex(standalone) or
epslatex formats, e.g.:

  title ('$Text (hello, 123) \alpha$', "interpreter", "latex"); # "latex" is
the same as "none"
  print -dpdflatexstandalone foo.tex
  system "pdflatex foo.tex"
  open foo.pdf

HTH,

Pantxo



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]