bugGNU Octave - Bugs: bug #33204, .tex file generated with...

 
 

bug #33204: .tex file generated with print('-depslatex') lacks $ for tex fomulas

Submitted by:  Simon Waid <chili>
Submitted on:  Mon 02 May 2011 01:01:02 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Simon WaidOpen/Closed: Closed
Release: 3.4.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Sep 2011 05:20:42 PM UTC, comment #3:

I ran all the plot demos and saw no regressions. I also took a look at the output for epslatex, pslatex, etc and verified the change produced the desired result.

The changeset has been pushed to the stable branch.

http://hg.savannah.gnu.org/hgweb/octave/rev/62e710cea7f1

I'm closing this report. If I missed a regression, it may be reopened.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 18 Sep 2011 04:51:47 PM UTC, comment #2:

I've made a first attempt at a changeset that preserves the current behavior for non-latex output and include's Simon's suggestion for gnuplot terminals which support LaTeX/TeX output.

I'll do some testing next.

(file #23990)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed 22 Jun 2011 09:37:34 AM UTC, comment #1:

I fixed this issue by myself. Would anyone please include this upstream?

in the file _go_draw_axes_ function do_tics_1

the following lines:

if (strcmp (scale, "log"))
fmt = "10^{%T}";
num_mtics = 10;
else

should read:

if (strcmp (scale, "log"))
fmt = "$10^{%T}$";
num_mtics = 10;
else

The difference is only two $.

Thank you!

Simon Waid <chili>
Mon 02 May 2011 01:01:02 PM UTC, original submission:

How to reproduce:

Export a plot whith numbers larger than 100 using:
print('-depslatex')

Look at the .tex file:
The code for the ticks partly looks like this:{\strut{}10^{1}}}%
Latex wont accept this since the $ for the formula is missing. You should get something like this: {\strut{}$10^{1}$}}%

Apparently when you use call instead of load gnuplot will ommit all $ in the latex export. This could be tha cause.

Simon Waid <chili>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23990:  changeset.patch added by bpabbott (6KiB - application/octet-stream - First changeset)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by chili (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 06 Jun 2013 05:21:11 AM UTCbpabbottStatusReady For Test=>Fixed
    Sun 18 Sep 2011 05:20:42 PM UTCbpabbottOpen/ClosedOpen=>Closed
    Sun 18 Sep 2011 04:51:47 PM UTCbpabbottAttached File-=>Added changeset.patch, #23990
      StatusNone=>Ready For Test
      Assigned toNone=>bpabbott
      Originator Name=>Simon Waid

    Back to the top


    Powered by Savane 3.1-cleanup1