From: Elias Oltmanns <eo@nebensachen.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Trouble with customising section heads
Date: Tue, 10 Aug 2010 17:02:34 +0200 [thread overview]
Message-ID: <87bp9a8q9h.fsf@denkblock.local> (raw)
Hi again,
sorry for bothering you so persistently, but I really did try to hard to
find a solution -- and failed:
In the attempt to customise my section headings by means of
\setuphead[section][...command=]
I followed the instructions at
http://wiki.contextgarden.net/Figures_in_Headings#Figures_in_Headings
. For the purposes of testing, I've installed a current minimals
distribution. As it turns out, neither MkII nor MkIV processes the
attached example as expected:
MkII The table of contents is incomplete, even though the wiki says it
shouldn't be;
MkIV \currentheadnumber seems to be 0 all the time.
There is a possibility, of course, that something is wrong with my setup
of ConTeXt. But I just did another
% ./first-setup.sh --context=current
Thanks in advance for any hint,
Elias
%%%%%%%%%%
\setuphead[section][textcommand=\Myhead,numbercommand=\Mynum]
\def\Myhead#1{%
Sect \currentheadnumber}
\def\Mynum#1{}
\starttext
\completecontent
\chapter{First chapter}
\section{First section}
Some text.
\chapter{Second chapter}
Introductory text.
\section{First section}
More text.
\section{Second section}
The end.
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2010-08-10 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 15:02 Elias Oltmanns [this message]
2010-08-10 17:23 ` Wolfgang Schuster
2010-08-10 22:00 ` Elias Oltmanns
2010-08-15 13:35 ` Elias Oltmanns
2010-08-17 7:29 ` Elias Oltmanns
2010-08-17 9:53 ` Elias Oltmanns
2010-08-17 10:28 ` Cedric Mauclair
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=87bp9a8q9h.fsf@denkblock.local \
--to=eo@nebensachen.de \
--cc=ntg-context@ntg.nl \
/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).