On Wed, May 28, 2025 at 01:34:51AM +0200, Grégory Vanuxem wrote:
> Hello,
<snip>
> But today I opened the QUAT domain page in HyperDoc and in the source file
> the documentation of:
>
> rational? : % -> Boolean
> ++ rational?(q) returns {\it true} if all the imaginary
> ++ parts of \spad{q} are zero and the real part can be
> ++ converted into a rational number, and {\it false}
> ++ otherwise.
>
> I do not see any formatting difference for \it{} or \sapd{} in HyperDoc,
> it is like simple text. Is it intentional or are my settings wrong
> somewhere?
If you look at chapter 3.8 in FriCAS book you will notice that
in default configuration FriCAS uses just 3 fonts: roman, bold
and italic. In the QUAT page I see bold for types, italic for
inactive links at the bottom, for 'rational?' and
'Quaternion(R)' in top bar, for "labels" and single letter 'q'
in the main part and roman for the rest.
If that agrees with what you see than I think you see things
"like implemented". I suspect that '\spad' uses TtFont
which in default configuration is the same as text font.
Also, 'false' and 'true' probably are automatically put inside
implictit '\spad' so '\it' have no effect on it.
By changing .Xdefaults you can try to use more fonts/colors.
Note: IIUC modern systems are problematic, one apparently needs
to put settings in a file and do something like:
xrdb -load $HOME/.Xresources
(assuming that you put setting in ~/.Xresources).
--
Waldek Hebisch