texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] inline plots


From: Bill Eaton
Subject: Re: [Texmacs-dev] inline plots
Date: Mon, 20 May 2013 07:13:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5


I gave my function a try, but what I get is the PostScript text (and not the image) printed on the screen. And I think this is because you need to intercept the ps_out command that gets sent to Octave/Texcmacs. You need to make sure you can control what comes back from Octave to Texmacs.

--Bill


On 05/17/2013 07:04 PM, David E. Miller wrote:
Bill:

Try putting your code in an .m file and then start a TeXmacs Octave session. Load the .m file using the Octave session command line. You may have to change the active directory to where your .m file and EPS file are located on you system.

Then try your code on some EPS file of interest.

If you can get this to work, then it may merely be a matter of finding the best way to load this file automatically when the Octave plugin code is executed when the session is started. This should be the easier part. Getting the code right for the EPS file to insert inline is the harder part.

David Miller

On 5/17/2013 5:40 PM, Bill Eaton wrote:
It should be easy to do the same thing in Octave. The ps_out function in
Octave could be:
      function ps_out(fname)
         disp( [char(2); 'ps:';  fileread(fname) ; char(5)] )
      endfunction

I'm dying to test this out and add more sophisticated error checking,
but I don't know how to hack the appropriate file to look for the ps_out
function. I think it would be in tmrepl.m. If someone can suggest the
appropriate lines to modify, I would greatly appreciate and be happy to
report my findings.


_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev




reply via email to

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