octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35918] Inconsistent interpretation of "\[" an


From: Burkart Lingner
Subject: [Octave-bug-tracker] [bug #35918] Inconsistent interpretation of "\[" and "\]" in TeX strings
Date: Tue, 20 Mar 2012 20:01:44 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

URL:
  <http://savannah.gnu.org/bugs/?35918>

                 Summary: Inconsistent interpretation of "\[" and "\]" in TeX
strings
                 Project: GNU Octave
            Submitted by: burkart
            Submitted on: Tue 20 Mar 2012 08:01:43 PM GMT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35918>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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