From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: Lowercasing section titles
Date: Wed, 15 Jun 2005 17:51:23 +0200 [thread overview]
Message-ID: <42B04E7B.6060208@elvenkind.com> (raw)
In-Reply-To: <1118848874.8830.2.camel@localhost.localdomain>
Stuart Jansen wrote:
> On Tue, 2005-06-14 at 23:05 +0200, Nikolai Weibull wrote:
>
>>I would like to lowercase section titles within the document while
>>retaining their casing in the table of contents. I’ve tried figuring
>>out how to use setuphead[section][textcommand=...] to do what I wish,
>>but failed. Anyone have any suggestions?
>
>
> No suggestion, but I'd be interested too. I've tried many different
> approaches. Most did nothing. A couple modified the text both on the
> page and in the TOC. One even corrupted the .tui file. All I can say is
> it isn't as easy as it sounds.
Does this help? It's ugly, but somewhat functional
% the unexpanded is because we do not want
% actual \lowercase commands in the contents list
\unexpanded\def\dodowncase{\lowercase}
% The redefinition of \dodowncase removes the \lowercase command locally
\def\myplacecontent{{\def\dodowncase{}\placecontent}}
\starttext
\myplacecontent
\section{\dodowncase{This is A SECtion}}
\subsection{\dodowncase{This is A sub-SECtion}}
\subsection{\dodowncase{Another Subsec}}
\stoptext
next prev parent reply other threads:[~2005-06-15 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-14 21:05 Nikolai Weibull
2005-06-15 15:21 ` Stuart Jansen
2005-06-15 15:51 ` Taco Hoekwater [this message]
2005-06-15 16:25 ` Stuart Jansen
2005-06-15 17:47 ` Nikolai Weibull
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=42B04E7B.6060208@elvenkind.com \
--to=taco@elvenkind.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).