bugGNU Octave - Bugs: bug #51751, tex parse error printed even...

 
 

bug #51751: tex parse error printed even though 'interpreter' set to 'none'

Submitter:  Marshall <marsian>
Submitted:  Mon 14 Aug 2017 04:39:39 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Marsian Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 15 Aug 2017 12:01:24 AM UTC, comment #2: 

Luckily, not so hard to fix.  See cset http://hg.savannah.gnu.org/hgweb/octave/rev/adf580507691.  Fixed, closing report.

Rik <rik5>
Group administrator
Mon 14 Aug 2017 08:05:07 PM UTC, comment #1: 

Confirmed.  It also affects the development version.  The problem seems to be that property/value pairs are processed in the order in which they appear.  In this case, the "string" property of the object is set first, which provokes an error, and then the "interpreter" property is set to "none".

This should be fixed so that the "string" property is set last, after any other properties which may affect its display such as "fontname", "fontsize", "interpreter", etc.

As a workaround, you can do that yourself.  This example shows how.


ht = title ("");
set (ht, "interpreter", "none", "string", "a_");




Rik <rik5>
Group administrator
Mon 14 Aug 2017 04:39:39 PM UTC, original submission:  

I am getting an error (status?) message printed when it shouldn't in the following:


filename = 'aFileWithEndUnderscore_';
figure
title(filename,'interpreter','none')


The console shows the following: 'TeX parse error: syntax error'. It doesn't show as an actual error that stops execution, but shouldn't be displayed when 'interpreter' is set to 'none', indicating that TeX parsing isn't wanted.

Marshall <marsian>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 marsian (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-15 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release4.2.1 dev
    2017-08-14 rik5 StatusNone Confirmed
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code