mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] source code of sessions


Chronological Thread 
  • From: "El.Douwen" <address@hidden>
  • To: * TeXmacs Liste <address@hidden>
  • Subject: [TeXmacs] source code of sessions
  • Date: Mon, 9 Jan 2012 06:42:02 +0100

hi all

> TeXmacs likes .ps and .eps files much better. Other formats are
> converted via a program called imagemagic, I think. (the terminal
> command is called "convert", I think)
>
> Good luck!
> -Adrian.

i am trying to obtain eps files but my geometry software is not performant
for eps
on the other hand, exporting in png (geogebra exports well to png) and
converting png to eps with an external software has no sense, i have learnt,
since png is bitmap and eps is vectorial
a way is to export to asymptote (ggb exports well to asymptote)
i have then 2 questions
- the image resulting from export ggb->asymptote has not the right dimensions
(it is A4 instead of being what i have choosen to fit exactly to my geometric
figure) . Can anyone explain me how to modify the source code in that purpose
?
- if i insert the image by inserting an asymptote session, the source code
appears. Can i hide it ?

do you think that it has sense, to do thought asymptote ?
my aim is just using formats that texmacs like, and being as light as
possible since i link to a lot of images in my document.

maybe i use ggb->eps for files that does not bug (indeed geometric files with
no fillings) and ggb->png for the other files
will there be a visual difference between the two categories of figures ?

otherwise i go on using only png files.

Sacha


--- code asymptote ----
/* File unicodetex not found. */

/* Geogebra to Asymptote conversion, documentation at
artofproblemsolving.com/Wiki, go to User:Azjps/geogebra */
import graph; size(3.05cm);
real labelscalefactor = 0.5; /* changes label-to-point distance */
pen dps = linewidth(0.7) + fontsize(10); defaultpen(dps); /* default pen
style */
pen dotstyle = black; /* point style */
real xmin = -0.04, xmax = 3.01, ymin = -0.47, ymax = 2.56; /* image
dimensions */
pen zzttqq = rgb(0.6,0.2,0);

draw((1.41,2.29)--(0.59,0.28)--(2.51,1.61)--cycle, zzttqq);
/* draw figures */
draw(circle((1.44,1.11), 1.18));
draw((1.41,2.29)--(0.59,0.28), zzttqq);
draw((0.59,0.28)--(2.51,1.61), zzttqq);
draw((2.51,1.61)--(1.41,2.29), zzttqq);
/* dots and labels */
dot((1.44,1.11),dotstyle);
label("$A$", (1.49,1.19), NE * labelscalefactor);
dot((2.27,0.27),dotstyle);
label("$B$", (2.33,0.35), NE * labelscalefactor);
dot((1.41,2.29),dotstyle);
label("$C$", (1.46,2.37), NE * labelscalefactor);
dot((0.59,0.28),dotstyle);
label("$D$", (0.64,0.37), NE * labelscalefactor);
dot((2.51,1.61),dotstyle);
label("$E$", (2.56,1.69), NE * labelscalefactor);
clip((xmin,ymin)--(xmin,ymax)--(xmax,ymax)--(xmax,ymin)--cycle);
/* end of picture */

---- messages goegebra forum -----


  • [TeXmacs] source code of sessions, El.Douwen, 01/09/2012

Archive powered by MHonArc 2.6.19.

Top of page