bugGNU Octave - Bugs: bug #35912, Implement a TeX interpreter for...

 
 

bug #35912: Implement a TeX interpreter for Octave

Submitter:  Burkart Lingner <burkart>
Submitted:  Tue 20 Mar 2012 05:36:34 PM UTC
   
 
Category:  Plotting 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
   

Jump to the original submission

Sun 03 Apr 2016 03:20:08 AM UTC, comment #8: 

Greetings Jacinta, my assistant got access to a template IRS W-2 document using this http://goo.gl/Vzl9Zf

'

Yolando Lauderdale <yolando>
Fri 25 Mar 2016 01:47:58 PM UTC, comment #7: 

Jacinta: Please explain what you want. I am not aware of
any "fillable form documents." Octave is free. Just download
it.

Michael Godfrey <godfrey>
Group Member
Fri 25 Mar 2016 08:21:23 AM UTC, comment #6: 

Hey ideas , I was enlightened by the info - Does someone know where my company might acquire a fillable a form document to fill out ?

Jacinta Pauls <jacintapauls>
Tue 08 Oct 2013 05:14:30 AM UTC, comment #5: 

A TeX interpreter has been implemented for the FLTK toolkit and will be part of release 3.8.0.  Closing report.

Rik <rik5>
Group administrator
Wed 21 Mar 2012 06:50:27 PM UTC, comment #4: 

I know that Octave's development is driven by volunteers, I am thankful to those people who made Octave into what it is today, and I hope I didn't inadvertantly offend anybody. Furthermore I hope that my bug reports are not interpreted as me expecting other people to do my bidding but rather as a form of contribution to the project other than committing code.

Burkart Lingner <burkart>
Wed 21 Mar 2012 06:11:43 PM UTC, comment #3: 

Everyone fixing bugs here is doing so as an unpaid volunteer.

If you need fixes in a relatively short time, consider contributing the changes for the features you need, or hiring someone to provide support for your needs.

http://www.gnu.org/software/octave/support-expectations.html

John W. Eaton <jwe>
Group administrator
Wed 21 Mar 2012 05:01:08 PM UTC, comment #2: 

I wasn't aware that all TeX parsing takes place in gnuplot, so yes, I agree that these bugs should be reported with gnuplot instead. However, I do have a few remarks.

  • This bug (#35912) doesn't concern TeX. Can you please change the title back to "Wrong display of carets and underscores for

interpreter=='none'" (or something similar) and make one of the other, TeX-related bugs the TeX master bug?

  • While I generally do agree that bugs in the TeX parser should be fixed in the TeX parser itself, i.e. in gnuplot, I don't think this applies to all the bugs I submitted yesterday. Take for example bug #35920: gnuplot actually does the right thing here in expecting ampersands and tildes to be escaped as "\&" and "\~", respectively. This is compliant with standard TeX. Unfortunately MATLAB's TeX parser has some quirks that make it incompatible with standard TeX. Among those quirks is that it treats un-escaped ampersands and tildes as printable characters. Now while Octave probably aims to recreate MATLAB's brand of TeX, I believe gnuplot would rather implemenent standard TeX than MATLAB TeX since it is used not only as a plotting tool for Octave. Therefore I think Octave is responsible for transcribing MATLAB TeX to proper TeX in order to pass that to gnuplot.
    • You mentioned that you'd appreciate help in writing a (MATLAB) TeX interpreter for Octave. I actually did recently write a conversion routine from MATLAB TeX to regular TeX for the project matlab2tikz which you can find at https://github.com/nschloe/matlab2tikz. What it does is take a MATLAB-compatible TeX string as input and convert it to a string that can be compiled with (La)TeX. Assuming that gnuplot interprets proper TeX correctly, such an approach and some of matlab2tikz's code could be used in Octave as a MATLAB/regular TeX compatibility layer for graphics_toolkit 'gnuplot', too.
  • My understanding is that there is no TeX parser for graphics_toolkit 'fltk' in Octave right now (except for the one at http://octave.1599824.n4.nabble.com/TeX-interpreter-for-FLTK-backend-td3038693.html which wasn't incorporated into Octave). This means that Octave users must use graphics_toolkit 'gnuplot' to properly display TeX strings. If this output then deviates from that which you see in MATLAB, personally I would regard it as a MATLAB incompatiblity bug and not a feature request. Then again I don't follow Octave development closely enough to know how you handle cases like these.
Burkart Lingner <burkart>
Wed 21 Mar 2012 01:31:53 PM UTC, comment #1: 

Octave doesn't implement TeX at all; gnuplot does. I guess we could patch gnuplot, but these really are all gnuplot bugs and belong in a separate project. It is an outstanding project to implement a TeX interpret for Octave. If you have some way of making it happen, please help:

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

I'm renaming this bug to a feature request to implement TeX and marking all your other TeX bugs as duplicate of this one. I hope you agree.

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

Underscores and carets are displayed as "\_" and "\^", respectively, for interpreter=='none'. Additionally a spurious output appears. Example:


axes
text(0.05, 0.5, 'foo_bar^foo', 'interpreter', 'none')


This produces the output "foo\_bar\^foo" instead of "foo_bar^foo". The spurious output is


labels =
{
  [1,1] = foo\_bar^foo
}
labels =
{
  [1,1] = foo\_bar\^foo
}


The number of "labels" outputs depends on the number of carets and underscores in the text string. The spurious output re-appears when the figure changes, e.g. upon


title('foobar')


This bug is specific to graphics_toolkit 'gnuplot' and does not show for graphics_toolkit 'fltk'.

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

 

Carbon-Copy List
  • -email is unavailable- added by yolando (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by jacintapauls (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-08 rik5 CategoryPlotting with gnuplot Plotting
        StatusPostponed Fixed
        Open/ClosedOpen Closed
    2012-03-21 jordigh Dependencies- bugs #35920 is dependent
    2012-03-21 jordigh Dependencies- bugs #35918 is dependent
    2012-03-21 jordigh Dependencies- bugs #35916 is dependent
    2012-03-21 jordigh Dependencies- bugs #35914 is dependent
    2012-03-21 jordigh Dependencies- bugs #35913 is dependent
    2012-03-21 jordigh Priority5 - Normal 1 - Later
        Item GroupNone Feature Request
        StatusNone Postponed
        SummaryWrong display of carets and underscores for interpreter==\'none\' Implement a TeX interpreter for Octave

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code