typesetting issue with spadfunFrom

19 views
Skip to first unread message

Qian Yun

unread,
May 6, 2024, 8:29:51 AM5/6/24
to fricas-devel
In page 242 of book.pdf (from 1.3.10 release), the "write" under
item "viewWriteDefault" is not correctly colored: only a quote is
colored as red.

The definition from fricas.sty is:

\NewDocumentCommand{\spadfunFrom}{v v}{\spadfun`#1`}

Looks like the "`" is colored here. But this doesn't happen
for other \spadfunFrom elsewhere.

- Qian

Ralf Hemmecke

unread,
May 6, 2024, 4:29:51 PM5/6/24
to fricas...@googlegroups.com
I don't understand when I look on page 242 of
https://fricas.github.io/book.pdf, then I see a red "write".

I hope that \spadfunFrom can be turned into hyperlinks to
fricas.github.io/api when we use pdflatex.

Ralf

Waldek Hebisch

unread,
May 7, 2024, 5:23:27 PM5/7/24
to fricas...@googlegroups.com
Like Ralf I see correct coloring. I would rather suspect that you
see a glitch in .pdf viewer (IME sometimes .pdf viewers show different
thing than they should).

--
Waldek Hebisch

Qian Yun

unread,
May 7, 2024, 7:50:35 PM5/7/24
to fricas...@googlegroups.com
OK, there's 2 "write" on that page, the one under "viewWriteAvailable"
is wrong, the one under "viewWriteDefault" is right, but this one is
\spadfun, not \spadfunFrom.

Can you double check the one under "viewWriteAvailable"?

- Qian

Grégory Vanuxem

unread,
May 7, 2024, 8:47:18 PM5/7/24
to fricas...@googlegroups.com
See attachment.
From May, 4. Maybe too old.
Adobe Reader - Windows 11

--
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/712fc0d0-e279-48b5-8c47-16b2f1565d78%40gmail.com.
Capture-2024-05-08.png

Waldek Hebisch

unread,
May 7, 2024, 9:10:31 PM5/7/24
to fricas...@googlegroups.com
On Wed, May 08, 2024 at 07:50:29AM +0800, Qian Yun wrote:
> OK, there's 2 "write" on that page, the one under "viewWriteAvailable"
> is wrong, the one under "viewWriteDefault" is right, but this one is
> \spadfun, not \spadfunFrom.
>
> Can you double check the one under "viewWriteAvailable"?

I see, you are right, the one in "viewWriteAvailable" is wrong.
AFAICS '\spadfunFrom' does not work inside 'description' environment.
There are 3 other uses like this, in ug07.tex inside section
'Operations for Three-Dimensional Graphics'.

--
Waldek Hebisch

Ralf Hemmecke

unread,
May 8, 2024, 3:47:12 AM5/8/24
to fricas...@googlegroups.com
On 5/8/24 03:10, Waldek Hebisch wrote:
> I see, you are right, the one in "viewWriteAvailable" is wrong.
> AFAICS '\spadfunFrom' does not work inside 'description' environment.
> There are 3 other uses like this, in ug07.tex inside section
> 'Operations for Three-Dimensional Graphics'.

Yep. What have I done? The definition

\NewDocumentCommand{\spadfunFrom}{v v}{\spadfun`#1`}

looks perhaps wrong in connection to the definition of \spadfun.
I must study that in more detail.

Why, however, that problem is only visible inside the description
environment, sounds strange to me. It works inside enumerate or itemize.
It is also not connected to the special backquote character.
Why the description environment influences the behaviour is still a bit
unclear to me.

Anyway, with using pdflatex these definitions should anyway change in
order to produce hyperlinks.

Ralf

Waldek Hebisch

unread,
May 8, 2024, 7:49:41 AM5/8/24
to fricas...@googlegroups.com
On Wed, May 08, 2024 at 09:47:10AM +0200, Ralf Hemmecke wrote:
> On 5/8/24 03:10, Waldek Hebisch wrote:
> > I see, you are right, the one in "viewWriteAvailable" is wrong.
> > AFAICS '\spadfunFrom' does not work inside 'description' environment.
> > There are 3 other uses like this, in ug07.tex inside section
> > 'Operations for Three-Dimensional Graphics'.
>
> Yep. What have I done? The definition
>
> \NewDocumentCommand{\spadfunFrom}{v v}{\spadfun`#1`}
>
> looks perhaps wrong in connection to the definition of \spadfun.
> I must study that in more detail.

It is not clear to me why you do things the way you do. The
whole thing is _very_ complicated: there are awk script that
mangle .ht to .htex, than you import package for low-level
messing and than you still have several very low level LaTeX
macros.

> Why, however, that problem is only visible inside the description
> environment, sounds strange to me.

Well, apparently you want changed parsing. And probably 'description'
also want special parsing. No wonder that both clash.


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