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

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

[Octave-bug-tracker] [bug #35920] Ampersand and tilde in TeX string: MAT


From: Burkart Lingner
Subject: [Octave-bug-tracker] [bug #35920] Ampersand and tilde in TeX string: MATLAB incompatibility
Date: Tue, 20 Mar 2012 20:35:32 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

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

                 Summary: Ampersand and tilde in TeX string: MATLAB
incompatibility
                 Project: GNU Octave
            Submitted by: burkart
            Submitted on: Tue 20 Mar 2012 08:35:31 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:

MATLAB interprets plain ampersands and tildes in TeX strings as printable
characters whereas Octave expects them to be escaped as "\&" and "\~",
respectively.

Using either of them un-escaped in Octave causes weird output.

Plain ampersands and the character following them are replaced with a space in
Octave only. Example:


axes
title('abc&def&\gammahi')


This yields "abc ef hi". Notice how the second ampersand doesn't mask the next
byte (i.e. the backslash) but rather the next character sequence (i.e.
"\gamma").

Plain tildes in Octave make the following three characters superimposed on
each other. Example:


axes
title('abc~defghi')





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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