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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59546] Missing latex interpreter
Date: Sun, 21 Mar 2021 13:31:58 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.57

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

I believe Windows automatically tries to find executables with a set of file
extensions (PATHEXT) when trying to execute a file without specifying its
extension. On my system, that is:

>> getenv("PATHEXT")
ans = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC


Anyway, I opened Octave and tried the commands from comment #15 before running
anything else. I still see the same when trying to plot:

>> base_path = 'C:\Program Files\MiKTeX 2.9\miktex\bin\x64';
>> setenv ("OCTAVE_LATEX_BINARY", sprintf ('"%s"', fullfile (base_path,
"latex.exe")))
>> setenv ("OCTAVE_DVIPNG_BINARY", sprintf ('"%s"', fullfile (base_path,
"dvipng.exe")))
>> setenv ("OCTAVE_DVISVG_BINARY", sprintf ('"%s"', fullfile (base_path,
"dvisvgm.exe")))
>> sombrero ();
warning: latex_renderer: unable to compile "?"
warning: called from
    figure at line 96 column 7
    newplot at line 120 column 10
    surf at line 76 column 9
    sombrero at line 68 column 5

warning: latex_renderer: unusable latex tool-chain
warning: called from
    axes at line 107 column 8
    newplot at line 161 column 10
    surf at line 76 column 9
    sombrero at line 68 column 5


The three executables installed by MiKTeX:

C:\Program Files\MiKTeX 2.9\miktex\bin\x64>latex --version
MiKTeX-pdfTeX 4.6 (MiKTeX 21.3)
© 1982 D. E. Knuth, © 1996-2021 Hàn Thế Thành
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.8, 13-Jul-2019
compiled with curl version 7.72.0; using libcurl/7.72.0 Schannel
compiled with expat version 2.2.10; using expat_2.2.10
compiled with jpeg version 9.4
compiled with liblzma version 50020052; using 50020052
compiled with libpng version 1.6.37; using 1.6.37
compiled with libressl version LibreSSL 3.1.4; using LibreSSL 3.1.4
compiled with MiKTeX Application Framework version 4.1; using 4.1
compiled with MiKTeX Core version 4.5; using 4.5
compiled with MiKTeX Archive Extractor version 4.0; using 4.0
compiled with MiKTeX Package Manager version 4.2.1; using 4.2.1
compiled with uriparser version 0.9.4
compiled with xpdf version 4.02
compiled with zlib version 1.2.11; using 1.2.11

C:\Program Files\MiKTeX 2.9\miktex\bin\x64>dvipng --version
This is dvipng 1.16 Copyright 2002-2015, 2019 Jan-Ake Larsson
dvipng 1.16
MiKTeX 21.3
Compiled with Freetype 2.10.3
Using libft 2.10.3
Copyright (C) 2002-2015, 2019 Jan-Ake Larsson.
There is NO warranty.  You may redistribute this software
under the terms of the GNU Lesser General Public License
version 3, see the COPYING file in the dvipng distribution
or <http://www.gnu.org/licenses/>.

C:\Program Files\MiKTeX 2.9\miktex\bin\x64>dvisvgm --version
dvisvgm 2.11.1


Can I somehow intercept what the latex_renderer tries to compile and try to
execute the respective commands manually?


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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