Closed embray closed 3 years ago
I see now that SetGAPDocTextTheme
just manipulates the existing record in GAPDocTextTheme
in-place, rather than create a new record, if I understand correctly. That's probably responsible for the mess I made by doing that, but this is confusing.
You are not using a record with valid components as an argument (these must be either a string or a list of two strings, as documented).
Nevertheless, I have just commited a small fix (commit 836ea0e) which raises an error on your input.
[BTW: the default argument of SetGAPDocTextTheme
(if none is given) is in GAPDoc2TextProcs.OtherThemes.default
.]
Right, I think what's not obvious is that the actual value of GAPDocTextTheme
is not a valid input to SetGAPDocTextTheme
(which you might try to use if you wanted to save/restore the existing theme, which it turns out is more easily done by just setting GAPDocTextTheme
directly).
[BTW: the default argument of SetGAPDocTextTheme (if none is given) is in GAPDoc2TextProcs.OtherThemes.default.]
Thanks, that works too (at least for restoring the default).
Observed behavior
This is with