From: George Jefferson on 7 Apr 2010 16:43 I've just created the basics for a matlab latex preprocessor. for example, \begin{verbatim} %%{ML- help %%}ML- \end{verbatim} inserts the output of calling help from matlab into a latex output file. At this point one can execute matlab commands by putting them one per line. This is very basic and the main goal is to simplify certain tasks such as graphic generation. I'll need a simple metal language to handle some of the issues that might be common. What is inserted in the latex file is exactly the output from the command that you would get if you executed it directly in matlab. Hence for use in latex one probably needs some way to parse the output and to use variables and stuff. One could, for example, do computations in matlab for something and then use them in latex. In any case I'm simply creating this to do graphics stuff but would like to get some ideas for adding things other people might want.
From: marik on 7 Apr 2010 17:11 On 7 dub, 22:43, "George Jefferson" <Geo...(a)Jefferson.com> wrote: > I've just created the basics for a matlab latex preprocessor. Something similar is done in SageTeX - you can call computer algebra system Sage from LaTeX file. Sage is free and huge computer algebra system which also allows to call matlab. http://www.ctan.org/tex-archive/help/Catalogue/entries/sagetex.html Robert Marik
From: George Jefferson on 7 Apr 2010 23:10 <marik(a)mendelu.cz> wrote in message news:bbd847ef-96eb-483a-8827-b84213790908(a)s9g2000yqa.googlegroups.com... > On 7 dub, 22:43, "George Jefferson" <Geo...(a)Jefferson.com> wrote: >> I've just created the basics for a matlab latex preprocessor. > > Something similar is done in SageTeX - you can call computer algebra > system Sage from LaTeX file. > > Sage is free and huge computer algebra system which also allows to > call matlab. > > http://www.ctan.org/tex-archive/help/Catalogue/entries/sagetex.html > > Robert Marik > Wow! Why didn't you respond earlier when I asked if something like this existed for matlab!!! ;) It does some of the things I wanted to be able to do for a very long time such as simple math and plots in latex. I guess I should still work on my code since there doesn't seem to be anything like this for matlab.
From: zugzwang on 8 Apr 2010 00:11 On Apr 7, 8:10 pm, "George Jefferson" <Geo...(a)Jefferson.com> wrote: > <ma...(a)mendelu.cz> wrote in message > > news:bbd847ef-96eb-483a-8827-b84213790908(a)s9g2000yqa.googlegroups.com... > > > On 7 dub, 22:43, "George Jefferson" <Geo...(a)Jefferson.com> wrote: > >> I've just created the basics for a matlab latex preprocessor. > > > Something similar is done in SageTeX - you can call computer algebra > > system Sage from LaTeX file. > > > Sage is free and huge computer algebra system which also allows to > > call matlab. > > >http://www.ctan.org/tex-archive/help/Catalogue/entries/sagetex.html > > > Robert Marik > > Wow! Why didn't you respond earlier when I asked if something like this > existed for matlab!!! ;) It does some of the things I wanted to be able to > do for a very long time such as simple math and plots in latex. > > I guess I should still work on my code since there doesn't seem to be > anything like this for matlab. Considering the math-graphical capabilities of PSTricks, PGF/Tikz, Asymptote, and Sage-Tex, the original poster may need to do much research to avoid increasing the redundancy.
From: George Jefferson on 8 Apr 2010 02:29
"zugzwang" <buyoninternt(a)bluebottle.com> wrote in message news:13629634-96cf-49fe-ae1f-0b0d7dbb976f(a)i37g2000yqn.googlegroups.com... > On Apr 7, 8:10 pm, "George Jefferson" <Geo...(a)Jefferson.com> wrote: >> <ma...(a)mendelu.cz> wrote in message >> >> news:bbd847ef-96eb-483a-8827-b84213790908(a)s9g2000yqa.googlegroups.com... >> >> > On 7 dub, 22:43, "George Jefferson" <Geo...(a)Jefferson.com> wrote: >> >> I've just created the basics for a matlab latex preprocessor. >> >> > Something similar is done in SageTeX - you can call computer algebra >> > system Sage from LaTeX file. >> >> > Sage is free and huge computer algebra system which also allows to >> > call matlab. >> >> >http://www.ctan.org/tex-archive/help/Catalogue/entries/sagetex.html >> >> > Robert Marik >> >> Wow! Why didn't you respond earlier when I asked if something like this >> existed for matlab!!! ;) It does some of the things I wanted to be able >> to >> do for a very long time such as simple math and plots in latex. >> >> I guess I should still work on my code since there doesn't seem to be >> anything like this for matlab. > > Considering the math-graphical capabilities of PSTricks, PGF/Tikz, > Asymptote, and Sage-Tex, the original poster may need to do much > research to avoid increasing the redundancy. All these are self contained packages or limited in there numerical computational efficiency. The common approach to using matlab graphics is export them and use include graphics. I'm simply writing a wrapper, which doesn't seeem to exist, to stream line this. It is not redundant unless all those packages you quote can do the exact same... even so, they may require greater complexity to use. I have downloaded sage but it runs ina virtual box and I do not think the sagetex can interface to it across the virtual machine(not sure as I haven't installed it yet). In any case there is no matlab package like sagetex as far as I know and it can't hurt to have one(even if it is somewhat redundant) because not everyone wants or should use sage or pstricks. I would prefer to use sagetex if it is better than matlab or even comparable. It does seem to be nicer in some regards but I also am not in the mood to learn a new language to use it at the moment as I have more important things to use. Main thing I'm worried about is using sagetex in windows but this may be ill-founded. But it's always best to have the option of using matlab if one needed since I'm sure it does have some better things in it than sage and vice versa. |