[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, 21 Mar 2021 14:19:22 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0 |
Follow-up Comment #17, bug #59546 (project octave):
>> Can I somehow intercept what the latex_renderer tries to compile and try to
execute the respective commands manually?
No, sorry, as I said in comment #10, the patch is not currently debug
friendly. I will update the patch to add some useful terminal outputs. In the
mean time, can you try to reproduce the tool chain with the attached .tex
file. It should go (approximately) as follows (attached as tstwin.m):
## Create a temporary directory
d = tempname ();
mkdir (d)
copyfile ("./default.tex", d);
## Run latex toolchain
base_path = 'C:\Program Files\MiKTeX 2.9\miktex\bin\x64';
#base_path = '/usr/bin';
tex = fullfile (d, "default.tex");
dvi = fullfile (d, "default.dvi");
latex_binary = sprintf ('"%s"', fullfile (base_path, "latex"));
png = fullfile (d, "default.png");
png_binary = sprintf ('"%s"', fullfile (base_path, "dvipng"));
svg = fullfile (d, "default.svg");
svg_binary = sprintf ('"%s"', fullfile (base_path, "dvisvgm"));
unwind_protect
cmd = [latex_binary, " -interaction=nonstopmode -output-directory=", d, ...
" ", tex];
[status, msg] = system (cmd);
if (status)
error ("Running latex: %s", msg);
endif
cmd = [svg_binary, " -n -TS1 -o ", svg, " ", dvi];
[status, msg] = system (cmd);
if (status)
error ("Running dvisvg: %s", msg);
endif
cmd = [png_binary, " ", dvi, " -o ", png, " -bg Transparent -D 72"];
[status, msg] = system (cmd);
if (status)
error ("Running dvipng: %s", msg);
endif
unwind_protect_cleanup
rmdir (d)
end_unwind_protect
(file #51099, file #51100)
_______________________________________________________
Additional Item Attachment:
File name: tstwin.m Size:1 KB
<https://file.savannah.gnu.org/file/tstwin.m?file_id=51099>
File name: default.tex Size:0 KB
<https://file.savannah.gnu.org/file/default.tex?file_id=51100>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59546>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/14
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/14
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/14
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/15
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Leonardo, 2021/03/15
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/15
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/15
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/21
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Pantxo Diribarne, 2021/03/22
- [Octave-bug-tracker] [bug #59546] Missing latex interpreter, Markus Mützel, 2021/03/22