bugGNU Octave - Bugs: bug #67188, latex for interpreter not handled...

 
 

bug #67188: latex for interpreter not handled correctly while generating plot but PDF generated correctly while using example code

Submitter:  None
Submitted:  Tue 03 Jun 2025 04:51:12 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Bas Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.4.0
Release:  Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 09 Jun 2025 07:21:58 PM UTC, comment #3: 

Marking as "Need Info".  Simple example in comment #2 works for me.

Rik <rik5>
Group administrator
Tue 03 Jun 2025 05:50:16 PM UTC, comment #2: 

Maybe, you'll also need to set environment variables for `OCTAVE_LATEX_BINARY`, `OCTAVE_DVIPNG_BINARY`, and `OCTAVE_DVISVG_BINARY`?

In general, please avoid screenshots of text (like your ip.png). Just paste the text here.

Markus Mützel <mmuetzel>
Group administrator
Tue 03 Jun 2025 05:21:15 PM UTC, comment #1: 

Can you try a simpl(er) test?

setenv ("OCTAVE_LATEX_DEBUG_FLAG", "1")
plot(1:10)
text(2,8, "Text: $2^2$", "interpreter", "latex")


Did it work?
(Works for me.)

Dmitri.
--


Dmitri A. Sergatskov <dasergatskov>
Tue 03 Jun 2025 04:51:12 PM UTC, original submission:  

The attached screenshot shows what I describe here. I installed all the mentioned dependencies for LaTeX usage in octave on page 430 of the manual: latex, dvipng and dvisvgm. In the 2nd attachment I will show the exact setup on my Arch-system.

I used the example code from page 432 from the manual. The full code is visible on the screenshot in the 1st attachment. The plot which octave generates fails to output the LaTeX-code. However, the PDF is correctly generated, with the LaTeX-code. The PDF which was generated is on the center bottom of the screenshot. The PDF correctly getting generated proves that LaTeX is working on my system. Yet the plot in octave is incorrect while I copypasted the code from page 432 of the manual.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #57272:  bug.png added by None (273KiB - image/png)
file #57273:  ip.png added by None (99KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-06-09 rik5 StatusNone Need Info
    2025-06-03 None Attached File- Added bug.png, #57272
        Attached File- Added ip.png, #57273

    Back to the top

    Powered by Savane 3.15-26b0.
    Corresponding source code