From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
"Michal Kvasnička" <prgosek@gmail.com>
Subject: [NTG-context] Re: Transition from ConTeXt mark II to mark IV
Date: Fri, 6 Dec 2024 16:41:09 +0100 [thread overview]
Message-ID: <d344262d-cf0c-a855-b7ec-20a3e876e0c0@gmail.com> (raw)
In-Reply-To: <CALs_GZV3Dw0hyOCwrDnqMFS4iBn8c1R5A-fC8AnhSR8OXemmgQ@mail.gmail.com>
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-12-06 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 12:56 [NTG-context] " Michal Kvasnička
2024-12-06 13:19 ` [NTG-context] " Hans Hagen via ntg-context
2024-12-06 14:58 ` Michal Kvasnička
2024-12-06 15:41 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d344262d-cf0c-a855-b7ec-20a3e876e0c0@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=prgosek@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).