"title" and "frame" in PostScript output

4 views
Skip to first unread message

Qian Yun

unread,
Apr 15, 2024, 10:46:03 AM4/15/24
to fricas-devel
By default, there's no "title" in PostScript output.

Simply enable "Gdraws_drawFrame" in src/graph/Gdraws/Gfun.c
will give you "title" back, along with "frame" (thin lines)
around titleWindow and viewWindow.

That's a discrepancy with the xpm format.

Also the position of "title" in PS format is higher than the xpm format.

My point is, should we try to make the PS format and xpm format
look the same?

- Qian

Ralf Hemmecke

unread,
Apr 15, 2024, 1:27:02 PM4/15/24
to fricas...@googlegroups.com
> My point is, should we try to make the PS format and xpm format
> look the same?

In general, I would say yes. On the other hand what part of FriCAS is
using the xpm format? If it is only HyperDoc, then I don´t care as I do
not care much about HyperDoc at all. It is good as it is, but otherwise
ancient feeling that (in my opinion) rather drives people away than it
attracts new users.

Ralf

Waldek Hebisch

unread,
Apr 15, 2024, 3:10:19 PM4/15/24
to fricas...@googlegroups.com
It is better to present consitent interface. OTOH important use of
.ps is for inclusion inside text. In such case title and frame
may be undesirable. So I think we need a way to control inclusion
of title and frame.

--
Waldek Hebisch

Qian Yun

unread,
Apr 15, 2024, 7:34:29 PM4/15/24
to fricas...@googlegroups.com
It is definitely possible to control the inclusion, but that means
adding another global variable. Because it also affects the size of
BoundingBox.

Since this "title and frame" is not there for the past decades,
I think we can start freshly by choosing "title inside
viewWindow and no frame"?

- Qian

Waldek Hebisch

unread,
Apr 16, 2024, 11:12:34 AM4/16/24
to fricas...@googlegroups.com
On Tue, Apr 16, 2024 at 07:34:24AM +0800, Qian Yun wrote:
> It is definitely possible to control the inclusion, but that means
> adding another global variable. Because it also affects the size of
> BoundingBox.

I would not worry to much about global variable. I mean, there
are several of them already. And there is call structure passing
data between functions. I think that we can move most of global
data to function parameters. And we can add new field to
corresponding structures, so we can pass all data that is needed.

> Since this "title and frame" is not there for the past decades,
> I think we can start freshly by choosing "title inside
> viewWindow and no frame"?

I think that we should try to preserve/expose flexibility
that is there. Ideally various options could be used in
any combination (of course, so option combinations really
do not make sense, but we should exclude only ones that
are _really_ nonsense).

> On 4/16/24 03:10, Waldek Hebisch wrote:
> >
> > It is better to present consitent interface. OTOH important use of
> > .ps is for inclusion inside text. In such case title and frame
> > may be undesirable. So I think we need a way to control inclusion
> > of title and frame.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/b7b53ef1-fea2-450a-ad46-8d914fb6bd2d%40gmail.com.

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages