octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59546] Missing latex interpreter


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #59546] Missing latex interpreter
Date: Sun, 14 Mar 2021 11:42:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

Follow-up Comment #8, bug #59546 (project octave):

@Markus: Yes, the Qt5Svg module is required. I have no strong opinion on
whether it should be possible to build without it, but anyway, this can be
taken care last. 

You'll also need three binaries: latex, dvipng (for onscreen rendering), and
dvisvgm (for printing). If thos binaries are not on the path, you can provide
their location throught three environment variables: OCTAVE_LATEX_BINARY,
OCTAVE_DVIPNG_BINARY OCTAVE_DVISVG_BINARY.

I attached an updated version of the patch that fixes a few issues. For me,
with this patch (but also with the previous one), using the latex interpreter
is then as easy as

clf;
sombrero ();
xlabel ("$x$", "interpreter", "latex")
ylabel ("$y$", "interpreter", "latex")
zlabel ('$\frac{\sqrt{x^2+y^2}}{x^2+y^2}$', "interpreter", "latex");
print -dpdfcrop -svgconvert sombrero.pdf
print sombrero.png


This produces the following image (png and pdf attached).



(file #51059, file #51060, file #51061)
    _______________________________________________________

Additional Item Attachment:

File name: bug59546.patch                 Size:59 KB
    <https://file.savannah.gnu.org/file/bug59546.patch?file_id=51059>

File name: sombrero.pdf                   Size:247 KB
    <https://file.savannah.gnu.org/file/sombrero.pdf?file_id=51060>

File name: sombrero.png                   Size:135 KB
    <https://file.savannah.gnu.org/file/sombrero.png?file_id=51061>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59546>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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