bugGNU Octave - Bugs: bug #35918, Inconsistent interpretation of...

 
 

bug #35918: Inconsistent interpretation of "\[" and "\]" in TeX strings

Submitter:  Burkart Lingner <burkart>
Submitted:  Tue 20 Mar 2012 08:01:43 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  1 - Later Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Nov 2013 01:38:27 AM UTC, comment #1: 

A TeX interpreter has been implemented for the FLTK toolkit and will be part of release 3.8.0. The behavior described in this bug report now works correctly. Closing report.

Mike Miller <mtmiller>
Group Member
Tue 20 Mar 2012 08:01:43 PM UTC, original submission:  

Whether "\[" and "\]" in a TeX string is displayed as "[" and "]" or as "\[" and "\]", respectively, depends on what else there is in the string. Example:


axes
title('\[\] x^2')
xlabel('\[\] \alpha')


yields "[] x²" and "[] (a)" whereas


axes
title('\[\] x2')
xlabel('\[\] alpha')


yields "\[\] x2" and "\[\] alpha". So whether square brackets with a backslash in front of them are interpreted as escaped square brackets depends on whether the rest of the string contains specific TeX code or not.

MATLAB expects square brackets to be un-escaped and prints a warning message if it encounters "\[" or "\]" in TeX strings.

Burkart Lingner <burkart>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by burkart (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-22 mtmiller StatusDuplicate Fixed
        Open/ClosedOpen Closed
        SummaryInconsistent interpretation of &quot;\\[&quot; and &quot;\\]&quot; in TeX strings Inconsistent interpretation of "\[" and "\]" in TeX strings
    2012-03-21 jordigh Priority5 - Normal 1 - Later
        Item GroupMatlab Compatibility Feature Request
        StatusNone Duplicate
        SummaryInconsistent interpretation of &quot;\\[&quot; and &quot;\\]&quot; in TeX strings Inconsistent interpretation of "\[" and "\]" in TeX strings
        Dependencies- Depends on bugs #35912

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code