texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] inline plots


From: David E. Miller
Subject: Re: [Texmacs-dev] inline plots
Date: Fri, 17 May 2013 22:04:52 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

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.




reply via email to

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