Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Mathematica plugin with Graphics

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Mathematica plugin with Graphics


Chronological Thread 
  • From: Alvaro Tejero Cantero <address@hidden>
  • To: TeXmacs users <address@hidden>
  • Subject: Re: [TeXmacs] Mathematica plugin with Graphics
  • Date: Wed, 31 Oct 2012 15:43:50 +0000

A raster format gives you a guaranteed cap on filesize. AFAICT a very complex vector eps could make TeXmacs very unresponsive.


-á.


On 31 October 2012 15:24, Sam Liddicott <address@hidden> wrote:
If you are going to use PNG it had better be 300dpi at least. 
I think it would be better to use eps


On Wed, Oct 31, 2012 at 10:35 AM, Tian-Min Yan <address@hidden> wrote:
Hi all,

Now I know how to output PS/EPS graphics. According to the manual
section "Interfering TeXmacs with other programs", I simply put

    fputs("\2ps:", stdout);
    fflush(stdout);
    system("cat ~/tmp.eps");
    fputs("\5{}{}\n\n", stdout);

into the code (see the attachment), now the EPS figure shows up. Can we
adjust the size and the position of the figure within TeXmacs?

Besides, I am wondering if we can display a PNG file, since those
rasterized formats have significantly smaller size and the program runs
faster. We should be able to choose between different formats to meet
different purposes.

One more question, can anybody who is familiar with Mathematica figure
out why "Export["./tmp.eps", expr]" sometimes outputs figures in the
wrong position, as is shown in the attachment where the main part is not
at the center? In contrast, PNG file does not have this problem.

Best,
Tian-Min

On Tue, 2012-10-30 at 19:01 +0100, address@hidden
wrote:
> Hi Tian-Min,
>
> The plugin worked perfectly for graphics in old times when Mathematica
> produced pure postscript graphics (this was in versions <=5).
> If you are happy with the old-style Mathematica graphics, in your
> mathematica session simply evaluate : Get["Version5`Graphics`"]
> and then the plugin will recognize the ps graphics and show them in
> TeXmacs (but only for old -or unchanged- graphics functions, old options
> etc.)
>
> It would be nice to benefit from the new mathematica graphics, but that
> would require someone to volunteer for improving the plugin in that area.
>
> Best,
> Philippe
>
>
> Tian-Min Yan - address@hidden wrote:
> > Hi all,
> >
> > I am using Mathematica 8. The Mathematica plugin in TeXmacs works
> > perfectly with a single _expression_ if it does not contain graphical
> > elements. But if we use functions involving plots, the output is
> > problematic. Has anybody figured out the implementation of embedded
> > figures with the Mathematica plugin?
> >
> > Best,
> > Tian-Min
> >
> >
> >
> >
>







Archive powered by MHonArc 2.6.19.

Top of Page