ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Lowercasing section titles
@ 2005-06-14 21:05 Nikolai Weibull
  2005-06-15 15:21 ` Stuart Jansen
  0 siblings, 1 reply; 5+ messages in thread
From: Nikolai Weibull @ 2005-06-14 21:05 UTC (permalink / raw)


Hi!

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?

Thanks,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lowercasing section titles
  2005-06-14 21:05 Lowercasing section titles Nikolai Weibull
@ 2005-06-15 15:21 ` Stuart Jansen
  2005-06-15 15:51   ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Stuart Jansen @ 2005-06-15 15:21 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 630 bytes --]

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.

-- 
Stuart Jansen <sjansen@gurulabs.com>
Guru Labs, L.C.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lowercasing section titles
  2005-06-15 15:21 ` Stuart Jansen
@ 2005-06-15 15:51   ` Taco Hoekwater
  2005-06-15 16:25     ` Stuart Jansen
  2005-06-15 17:47     ` Nikolai Weibull
  0 siblings, 2 replies; 5+ messages in thread
From: Taco Hoekwater @ 2005-06-15 15:51 UTC (permalink / raw)





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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lowercasing section titles
  2005-06-15 15:51   ` Taco Hoekwater
@ 2005-06-15 16:25     ` Stuart Jansen
  2005-06-15 17:47     ` Nikolai Weibull
  1 sibling, 0 replies; 5+ messages in thread
From: Stuart Jansen @ 2005-06-15 16:25 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 359 bytes --]

On Wed, 2005-06-15 at 17:51 +0200, Taco Hoekwater wrote:
> % the unexpanded is because we do not want
> % actual \lowercase commands in the contents list
> \unexpanded\def\dodowncase{\lowercase}

Cool, thanks. That's a trick I've seen a few times but still haven't
learned to use properly.

-- 
Stuart Jansen <sjansen@gurulabs.com>
Guru Labs, L.C.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lowercasing section titles
  2005-06-15 15:51   ` Taco Hoekwater
  2005-06-15 16:25     ` Stuart Jansen
@ 2005-06-15 17:47     ` Nikolai Weibull
  1 sibling, 0 replies; 5+ messages in thread
From: Nikolai Weibull @ 2005-06-15 17:47 UTC (permalink / raw)


Taco Hoekwater wrote:

> % the unexpanded is because we do not want
> % actual \lowercase commands in the contents list
> \unexpanded\def\dodowncase{\lowercase}

Ah, this works great.  It can even be placed inside a \setuphead as the
textcommand and it works.  Thanks,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-15 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-14 21:05 Lowercasing section titles Nikolai Weibull
2005-06-15 15:21 ` Stuart Jansen
2005-06-15 15:51   ` Taco Hoekwater
2005-06-15 16:25     ` Stuart Jansen
2005-06-15 17:47     ` Nikolai Weibull

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).