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);}
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
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
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
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);}
participants (3)
-
Nikolai Weibull
-
Stuart Jansen
-
Taco Hoekwater