octave-maintainers
[Top][All Lists]
Advanced

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

Re: fltk printing [latex output]


From: Michael D Godfrey
Subject: Re: fltk printing [latex output]
Date: Sun, 08 Aug 2010 13:04:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1

On 08/08/2010 12:29 PM, Ben Abbott wrote:
The fltk backend now supports printing using the epslatex, pslatex, pdflatex devices (pdflatex is not yet documented, but it works the same as epslatex and pslatex).

There is one minor problem. The alignment of rotated text is not handled correctly. I thought it best to mention it ... and hope a latex fan would take a look at what needs to be done to the gl2ps.c code to fix it.

For example ...

	close all
	backend fltk
	plot (0:10)
	xlabel ("xlabel")
	ylabel ("ylabel")
	print -depslatexstandalone test

Then run latex of test.tex. In the resulting test.dvi (or test.ps or test.pdf depending upon your setup) the ylabel is rotated correctly, but is not aligned correctly.

PGF output is also available.

	print -dtikz test.pgf

Thus far I'm not yet able to get the PGF to work. However, I'm not confident I'm using the pgf file correctly.

Ben
Ben,
 
I gave this a try with:
1015 # Octave 3.3.52+, Sun Aug 08 08:25:52 2010 PDT <address@hidden>
 1016 plot(1:20)
 1017 xlabel(' x label ')
 1018 ylabel(' y label ')
 1019 title('title')
 1020 text(10,10,'centered')
 1021 text(10,15,' math $\omega\gamma$ end   ')
 1022 print -depslatexstandalone test
 1023 quit
========================================
With just a bit of post-processing this produced (using pdflatex test) the attached.
This looks GREAT to me.

Michael


Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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