ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header to register
@ 2008-01-19 20:51 Henning Hraban Ramm
  2008-01-21  9:33 ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: Henning Hraban Ramm @ 2008-01-19 20:51 UTC (permalink / raw)
  To: ConTeXt ML

Ahoi!

For a songbook I need a alphabetically sorted TOC.
As easy workaround I tried to use an register/index.
But I'd like to get my headers into the index without typing \index  
all the time.
But with my following setup I get only garbage numbers instead of my  
titles:

\setuphead[Titel]
[style={\hw\tfa}, page=yes, number=no, textcommand=\TitelFrame]
\def\TitelFrame#1{\index{#1}%
	\framed[
		width=\textwidth,
		height=7.5mm,
		frame=off,
		align={right,high},
		after={}, before={}]%
	{\switchtobodyfont[12pt]\hw\tfa #1}%
}

My .tuo file contains lines like:

\listentry{Titel}{2}{}{nihil ita ut videtur}{2--0-1-0-0-0-0-0--1}{3}%
...
\registerpage{index}{,}{1}{\dowritetolist \@@koppeling {}{nihil ita  
ut videtur}\v!head }}\fi \executeifdefined {\??ko Titel\c! 
deeptextcommand }\firstofoneargument {nihil ita ut videtur}\endstrut } 
{2--0-1-0-0-0-0-0--1}%

The 5th instead of the 4th parameter of \listentry is printed in the  
index.

My fault or a bug?


Versions:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
ConTeXt  ver: 2008.01.17 11:52 MKII  fmt: 2008.1.17  int: english/ 
english



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-01-30 19:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-19 20:51 header to register Henning Hraban Ramm
2008-01-21  9:33 ` Wolfgang Schuster
2008-01-21 20:04   ` Henning Hraban Ramm
2008-01-22 10:30     ` Wolfgang Schuster
2008-01-22 10:31     ` Wolfgang Schuster
2008-01-23 21:04       ` Henning Hraban Ramm
2008-01-28  8:16         ` Wolfgang Schuster
2008-01-28 20:10           ` Henning Hraban Ramm
2008-01-29 10:51             ` Wolfgang Schuster
2008-01-29 14:31               ` Idris Samawi Hamid
2008-01-29 16:35                 ` Wolfgang Schuster
2008-01-29 17:48                   ` Idris Samawi Hamid
2008-01-29 20:01                     ` Henning Hraban Ramm
2008-01-29 20:09                       ` header to register (SOLVED) Henning Hraban Ramm
2008-01-30  8:43                   ` header to register Thomas A. Schmitz
2008-01-30 15:48                     ` Idris Samawi Hamid
2008-01-30 19:11                       ` Henning Hraban Ramm

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