Michal Kvasnička schrieb am 06.12.2024 um 15:58:
Hallo.
Many thanks for a fast reply.
Honestly, I'm not certain what isn't working. With my slides, it seems
that my macros are not loaded from my modules. With figures, I may not
know how to compile them.
Slides:
I created three modules many years ago: m-lect.tex, s-pre-mi.tex, and
s-pre-qq.tex. I load them in the slides to set the presentation style
and to produce several versions of the slides (slides, handouts,
teacher's notes, etc.). In these modules, I define \TitlePage macro.
In mark ii, texexec finds the macro. In mark iv, context doesn't. I
ran the slides with texexec --pdf --nomprun mic-slide01.tex; I tried
context --pdf --nomprun mic-slide01.tex. I included the modules and
one slide (not the figures included).
1. When you apply a custom section style with the command key, e.g.
\setuphead
[section]
[command=\MyTopic]
you have to use either the \protected prefix for \def or use \define
instead, this means you should use
\protected\def\MyTopic#1#2%
{...}
or
\define[2]\MyTopic
{...}
2. \color expects an argument.
You use \color at the begin of your title page
\def\StartTitlePage[#1]%
{\bgroup
...
\startalignment[right,broad]
\TitleFont\color[LightColor]\ss\bfc\setupinterlinespace[big]}
which doesn't work anymore, the correct method is to use
\startcolor[...] at the begin and \stopcolor at the end.
\def\StartTitlePage[#1]%
{\bgroup
...
\startalignment[right,broad]
\TitleFont\startcolor[LightColor]\ss\bfc\setupinterlinespace[big]}
\def\StopTitlePage
{\stopcolor
\stopalignment
...}
3. \setupinteraction fails when you pass \currentdate to the date key.
\setupinteraction[date=\currentdate]
4. Active characters for quotation marks.
To get proper quotation marks use direct input with the correct symbol
or use \quotation{...} which add the quotation marks set for the current
language.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________