Dear all, I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way: \define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{ \doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{} } } But actually I would like to align the date to some fixed horizontal position. Something like this: 1. Title of chapter 1 (9.2.2010) .... 5 2. Title of another chapter (10.3.2010) .. 10 3. A very long title of a chapter (10.5.2010) .. 34 4. Title of fourth chap. (8.4.2010) ... 25 Another complication is that I would like the line to snap to a grid. I tried it with framed, but I'm not good enough in ConTeXt. Please, any idea? Thank you, best regards, Tomas
Am 29.09.2010 um 23:16 schrieb Tomas Bures:
Dear all,
I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way:
\define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{ \doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{} } }
But actually I would like to align the date to some fixed horizontal position. Something like this:
1. Title of chapter 1 (9.2.2010) .... 5 2. Title of another chapter (10.3.2010) .. 10 3. A very long title of a chapter (10.5.2010) .. 34 4. Title of fourth chap. (8.4.2010) … 25
Hi, isn't Wolfgangs posting http://archive.contextgarden.net/message/20100919.163604.e1f8cb40.en.html exactly what you search? You can adjust the table settings to achieve your needs. Greeting Andreas
Am 29.09.2010 um 23:16 schrieb Tomas Bures:
Dear all,
I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way:
\define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{ \doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{} } }
\define[1]\ChapterListTextCommand {\doifsomethingelse{\structurelistuservariable{date}} {#1\wordright{\structurelistuservariable{date}}} {#1}} Wolfgang
participants (3)
-
Andreas Harder
-
Tomas Bures
-
Wolfgang Schuster