From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Headers another way
Date: Tue, 8 Feb 2011 18:37:43 +0100 [thread overview]
Message-ID: <85D0A519-15A1-4480-8E67-64E4A37EBF97@gmail.com> (raw)
In-Reply-To: <op.vqlhkrye8lgizc@lk-2008-nbk>
[-- Attachment #1.1: Type: text/plain, Size: 1129 bytes --]
Am 08.02.2011 um 18:32 schrieb Procházka Lukáš:
> Hello,
>
> I'm trying to solve an interesting problem.
>
> (The document should be generated by Lua actually, but probably this is not of importance.)
>
> I'd need create various headers, but it's not known which command to be used a priori; only their "relative position" is known.
>
> The head creating command should be the same (= \HEAD) and the level should be determined by \PUSHHEAD + \POPHEAD commands.
>
> I'd need to solve something like this:
>
> ---
> \starttext
> \HEAD{...} % Should expand to \chapter
> \PUSHHEAD
> \HEAD{...} % Should expand to \section
> \PUSHHEAD
> \HEAD{...} % Should expand to \subsection
> \PUSHHEAD
> \HEAD{...} % Should expand to \subsubsection
> \PUSHHEAD
> \HEAD{...} % Should expand to \subsubsubsection
> \POPHEAD
>
> \HEAD{...} % Should expand to \subsubsection again
> \POPHEAD
> \POPHEAD
> \POPHEAD
> \stoptext
> ---
>
> Any idea how to solve this?
http://www.ntg.nl/pipermail/ntg-context/2010/052754.html
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1822 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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 prev parent reply other threads:[~2011-02-08 17:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 17:32 Procházka Lukáš
2011-02-08 17:37 ` Wolfgang Schuster [this message]
2011-02-09 16:25 ` Procházka Lukáš
2011-02-08 17:40 ` Hans Hagen
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=85D0A519-15A1-4480-8E67-64E4A37EBF97@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).