To Waldek:
Does HyperDoc use the generated .xpm image from "draw" commands?
To Ralf:
This is my current progress. The ps image looks much better that
xpm image, I have not realized this before.
Some problems other than black-and-white 2D image:
1. Title not shown in .ps format.
2. Image size needs adjustment in *.tex. (Currently too big.
I guess a new tex package is required for auto resizing.)
3. "smooth" style image is not shown.
- Qian
diff --git a/src/doc/ugepsf.awk b/src/doc/ugepsf.awk
index e39ddde9..a53d6c9c 100644
--- a/src/doc/ugepsf.awk
+++ b/src/doc/ugepsf.awk
@@ -18,7 +18,7 @@
} else {
print "no-pics: " $0
}
- print $0 ": " view n ".VIEW/image.xpm"
- print "\tconvert $< $@"
+ print $0 ": " view n ".VIEW/
image.ps"
+ print "\tcp $< $@"
spadgraph=0
}
diff --git a/src/graph/view2D/write2d.c b/src/graph/view2D/write2d.c
index 05bbf62e..d9126b53 100644
--- a/src/graph/view2D/write2d.c
+++ b/src/graph/view2D/write2d.c
@@ -186,7 +186,7 @@ writeViewport(int thingsToWrite)
case Postscript:
/*** Create postscript output for viewport (in
fricas2D.ps) ***/
fricas_sprintf_to_buf2(PSfilename, "%s%s", viewDirName,
- "/fricas2D.ps");
+ "/
image.ps");
if (PSInit(viewport->viewWindow,viewport->titleWindow) ==
psError)
return (-1);
drawViewport(PSoption); /* write new script file in /tmp */
diff --git a/src/graph/view3D/write3d.c b/src/graph/view3D/write3d.c
index ac5a1210..990b0fb5 100644
--- a/src/graph/view3D/write3d.c
+++ b/src/graph/view3D/write3d.c
@@ -196,7 +196,7 @@ writeViewport (int thingsToWrite)
case Postscript:
/*** Create postscript output for viewport (in
fricas3D.ps) ***/
fricas_sprintf_to_buf2(PSfilename, "%s%s", viewDirName,
- "/fricas3D.ps");
+ "/
image.ps");
if (PSInit(viewport->viewWindow,viewport->titleWindow) ==
psError)
return(-1);
drawViewport(PSoption); /* write new script file in /tmp */
diff --git a/src/hyper/htinp.c b/src/hyper/htinp.c
index 5174ec69..f8014829 100644
--- a/src/hyper/htinp.c
+++ b/src/hyper/htinp.c
@@ -366,7 +366,7 @@ get_graph_output(char *command,char *pagename,int
com_type)
for (i = 0; i < n; i++) {
get_string_buf(spad_socket, buf, 1024);
}
- sprintf(buf, "(|processInteractive| '(|write| |%s| \"%s%d\"
\"image\") NIL)", "%",
+ sprintf(buf, "(|processInteractive| '(|write| |%s| \"%s%d\"
\"postscript\") NIL)", "%",
pagename, example_number);
send_lisp_command(buf);
send_lisp_command("(|setViewportProcess|)");