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

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

[Octave-bug-tracker] [bug #35914] \omega sometimes interpreted as \o{}me


From: Burkart Lingner
Subject: [Octave-bug-tracker] [bug #35914] \omega sometimes interpreted as \o{}mega
Date: Tue, 20 Mar 2012 18:06:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

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

                 Summary: \omega sometimes interpreted as \o{}mega
                 Project: GNU Octave
            Submitted by: burkart
            Submitted on: Tue 20 Mar 2012 06:06:14 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:

Some TeX character sequences are a little tricky to decode thanks to MATLAB's
own way of doing TeX. Among those sequences is "\omega" whose subset "\o" is
also a sequence recognized by MATLAB. So if a string contains "\omega", does
that mean "(w)" or "(o)mega"?

It turns out that Octave is less consistent regarding that decision. While
MATLAB tries to match the longest known sequence, what Octave does depends on
what comes after the sequence. Example:


axes
title('\omega foo \omegabar \omega\alpha')


This yields "(w) foo (w)bar (w)(a)" in MATLAB but "(w) foo (o)megabar (w)(a)"
in Octave. In other words, if the character after the longest possible
sequence is a space or a backslash, the longest sequence is assumed to be
present. However, if the character after the longest possible sequence is a
letter, the shorter sequence is assumed to be present.

Other relevant cases:

* \o
** \omega
** \otimes
** \oplus
** \oslash
* \in
** \int
** \infty
* \subset
** \subseteq
* \supset
** \supseteq




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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