bugGNU Octave - Bugs: bug #35914, \omega sometimes interpreted as...

 
 

bug #35914: \omega sometimes interpreted as \o{}mega

Submitter:  Burkart Lingner <burkart>
Submitted:  Tue 20 Mar 2012 06:06:14 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:37:16 AM UTC, comment #2: 

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 07:04:39 PM UTC, comment #1: 

Octave doesn't interpret TeX at all. These are really all gnuplot bugs. We can't do much about them unless we start patching gnuplot, but our own efforts are in implementing TeX to begin with. It's an outstanding project. See this:

http://octave.org/wiki/index.php?title=GSoC_Project_Ideas#TeX.2FLaTeX_markup

I'm tempted to mark all of these TeX bugs as duplicate.


Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Tue 20 Mar 2012 06:06:14 PM UTC, original submission:  

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
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 (Posted a comment)
  • -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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-22 mtmiller StatusDuplicate Fixed
        Open/ClosedOpen Closed
        Summary\\omega sometimes interpreted as \\o{}mega \omega sometimes interpreted as \o{}mega
    2012-03-21 jordigh Item GroupMatlab Compatibility Feature Request
        Summary\\omega sometimes interpreted as \\o{}mega \omega sometimes interpreted as \o{}mega
    2012-03-21 jordigh StatusNone Duplicate
        Summary\\omega sometimes interpreted as \\o{}mega \omega sometimes interpreted as \o{}mega
        Dependencies- Depends on bugs #35912
    2012-03-21 jordigh Priority5 - Normal 1 - Later
    2012-03-20 jordigh Summary\\omega sometimes interpreted as \\o{}mega \omega sometimes interpreted as \o{}mega

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code