From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3607 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: idea: titles in tocs, menues, headers and footers Date: Tue, 19 Dec 2000 12:34:14 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001219123414.0174c3e0@pop.wxs.nl> References: <00121822152101.01990@bilbo> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394336 18566 80.91.224.250 (23 Oct 2002 17:32:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:32:16 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Uwe Koloska" In-Reply-To: <00121822152101.01990@bilbo> Xref: main.gmane.org gmane.comp.tex.context:3607 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3607 At 10:15 PM 12/18/00 +0100, Uwe Koloska wrote: >Hello happy contextuals, glad that you're happy >while making a document to an interactive one, I thougt about titles. One >of the main advantages (between many, many others ;-)) of (La/Con)TeX(t) is >the easy way to table of contents, menues and living page titles (1). But >these have different requirements: > >1. titles should be verbose and explanatory and so are often long >2. toc lines should be like titles but not too long >3. page titles must fit into one line >4. menu entries have to be short For this we often set [maxwidth=...] in menus or lists. >So the ConTeXt way of discarding some part of the title with \nomarking is >in my eyes not suited for page titles and menu entries. > >What about different (configurable) levels of title names? Maybe with a >fixed structure like: > \title[short="Menues",middle="Menues explained"]{How to make interactive > menues"} >or with configurable levels > \newtitlelevel{veryshort,long} > >And then when you place your toc (or lof, lot) you can give the level that >should be used for it. > >What do you think about this feature? Or is there an easy way to achieve >this with the present commands? \unexpanded\def\titles% {\doquintuplegroupempty\dotitles} \def\dotitles#1#2#3#4#5% {\ifcase\titlelevel\or #1\or#2\or#3\or#4\or#5\else wrong level% \fi} \def\titlelevel{1} \starttext {\def\titlelevel{2}\placelist[section]} {\def\titlelevel{3}\placelist[section]} \section{\titles{one}{first}{dit is de eerste}} \section{\titles{two}{second}{en dit de tweede}} \section{\titles{three}{third}{vooruit, een derde}} \stoptext I can think of cooking this into the head mechanism [a similar mechanism is present in references, where one can have more that just a simple ref]. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------