octave in auctex latex emacs

View: New views
6 Messages — Rating Filter:   Alert me  

octave in auctex latex emacs

by feldmaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

i am writing my diploma. Therefore i am in need of
some examples with octave and gnuplot. It would be nice
if there is a possibility to insert the octave commands
directly into my diploma report, so that the plots
will be updated every time i change some variables.

Or maybe i can make it non-updateable with some latex parameters.
:-)

Is this possible ?

Regards Markus
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: octave in auctex latex emacs

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wednesday, April 15, 2009, at 11:40AM, "Markus Feldmann" <feldmann_markus@...> wrote:

>Hi All,
>
>i am writing my diploma. Therefore i am in need of
>some examples with octave and gnuplot. It would be nice
>if there is a possibility to insert the octave commands
>directly into my diploma report, so that the plots
>will be updated every time i change some variables.
>
>Or maybe i can make it non-updateable with some latex parameters.
>:-)
>
>Is this possible ?
>
>Regards Markus

I don' t know how to drive Octave from LaTeX, but there is an implementation for driving gnuplot from LaTeX.

http://www.texample.net/tikz/examples/tag/gnuplot/

If all you need to do is plot functions of a variable, that solution may work for you.

Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: octave in auctex latex emacs

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Apr 15, 2009 at 05:40:50PM +0200, Markus Feldmann wrote:

> Hi All,
>
> i am writing my diploma. Therefore i am in need of
> some examples with octave and gnuplot. It would be nice
> if there is a possibility to insert the octave commands
> directly into my diploma report, so that the plots
> will be updated every time i change some variables.
>
> Or maybe i can make it non-updateable with some latex parameters.
> :-)
>
> Is this possible ?

I would go the other way round:

1) Write your .m files which save the pictures into well-defined files.
2) Include these .m files into LaTeX (there are some syntax highlighter
for LaTeX available).

3) Create your .dvi or .pdf files via a Makefile that first calls the .m
files via Octave and LaTeX afterwards.

I don't think you want to re-create your figures every time you run
LaTeX.

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: octave in auctex latex emacs

by feldmaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas Weber schrieb:

> On Wed, Apr 15, 2009 at 05:40:50PM +0200, Markus Feldmann wrote:
>> Hi All,
>>
>> i am writing my diploma. Therefore i am in need of
>> some examples with octave and gnuplot. It would be nice
>> if there is a possibility to insert the octave commands
>> directly into my diploma report, so that the plots
>> will be updated every time i change some variables.
>>
>> Or maybe i can make it non-updateable with some latex parameters.
>> :-)
>>
>> Is this possible ?
>
> I would go the other way round:
>
> 1) Write your .m files which save the pictures into well-defined files.
> 2) Include these .m files into LaTeX (there are some syntax highlighter
> for LaTeX available).
>
> 3) Create your .dvi or .pdf files via a Makefile that first calls the .m
> files via Octave and LaTeX afterwards.
>
> I don't think you want to re-create your figures every time you run
> LaTeX.
>
> Thomas
Is there a octave or programming code highligthing in latex ?

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: octave in auctex latex emacs

by Ivan Sutoris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Apr 15, 2009 at 11:45 PM, Markus Feldmann
<feldmann_markus@...> wrote:
> Is there a octave or programming code highligthing in latex ?

Try listings package, it has support also for Matlab syntax:
http://www.ctan.org/tex-archive/help/Catalogue/entries/listings.html

Regards
Ivan Sutoris
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: octave in auctex latex emacs

by martin_helm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


feldmaus wrote:
Thomas Weber schrieb:
> On Wed, Apr 15, 2009 at 05:40:50PM +0200, Markus Feldmann wrote:
>> Hi All,
>>
>> i am writing my diploma. Therefore i am in need of
>> some examples with octave and gnuplot. It would be nice
>> if there is a possibility to insert the octave commands
>> directly into my diploma report, so that the plots
>> will be updated every time i change some variables.
>>
>> Or maybe i can make it non-updateable with some latex parameters.
>> :-)
>>
>> Is this possible ?
>
> I would go the other way round:
>
> 1) Write your .m files which save the pictures into well-defined files.
> 2) Include these .m files into LaTeX (there are some syntax highlighter
> for LaTeX available).
>
> 3) Create your .dvi or .pdf files via a Makefile that first calls the .m
> files via Octave and LaTeX afterwards.
>
> I don't think you want to re-create your figures every time you run
> LaTeX.
>
> Thomas
Is there a octave or programming code highligthing in latex ?

_______________________________________________
Help-octave mailing list
Help-octave@octave.org
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
There is a package named "highlight" which can convert source code into highlighted output for latex.
It is available in my linux distribution so I guess it is also included in other distributions and also for
Windows.

- mh