* Re: [off-list, urgent] Index design [not found] <56BF0DB8-002B-4A7B-9B1C-052FD982B4A5@st.estfiles.de> @ 2006-07-26 7:40 ` Hans Hagen 2006-07-26 8:24 ` Steffen Wolfrum 2006-07-26 7:59 ` Hans Hagen 1 sibling, 1 reply; 7+ messages in thread From: Hans Hagen @ 2006-07-26 7:40 UTC (permalink / raw) Steffen Wolfrum wrote: > Hi Hans, > > sorry for contacting you off-list. But the publishing-house I am > working for at the moment needs to know the answer to my "Index > design" question today. > > They have a series of books with a given index (register of keywords) > designed as described below. > This design was set in the past with 3B2, and now is the question: is > it also possible to set it (in this strange way) with ConTeXt? > > > Please see my description below (hope gets it's clear): > > Is it possible, in an index, not to have single letters as separators > (here "a", "w") in a dedicated line, but instead only the first letter of > the first entry with "a" or "w" set bold? > > See this minimal example: > > \setupoutput[pdftex] > > \starttext > \chapter{First Chapter} > Some text...\index{word} > > \section {First Section} > Some text...\index{word} > Some text...\index{another entry} > Some text...\index{ansi} > Some text...\index{another entry} > > \page[yes] > \completeindex > > \stoptext > > > > Here I would like to have only the first letter of the index entries > "another" and "word" in the index to be set bold. since tex is programmable, things like this are doable; of course the question is "what tweaks are needed"; anyhow, it should not be a show-stopper Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design 2006-07-26 7:40 ` [off-list, urgent] Index design Hans Hagen @ 2006-07-26 8:24 ` Steffen Wolfrum 0 siblings, 0 replies; 7+ messages in thread From: Steffen Wolfrum @ 2006-07-26 8:24 UTC (permalink / raw) OK, but there seems to be no out-of-the box solution like "alternative=b". Is it at least that doable that someone could do it? I have no idea... Steffen Am 26.07.2006 um 09:40 schrieb Hans Hagen: > Steffen Wolfrum wrote: >> Hi Hans, >> >> sorry for contacting you off-list. But the publishing-house I am >> working for at the moment needs to know the answer to my "Index >> design" question today. >> >> They have a series of books with a given index (register of keywords) >> designed as described below. >> This design was set in the past with 3B2, and now is the question: is >> it also possible to set it (in this strange way) with ConTeXt? >> >> >> Please see my description below (hope gets it's clear): >> >> Is it possible, in an index, not to have single letters as separators >> (here "a", "w") in a dedicated line, but instead only the first >> letter of >> the first entry with "a" or "w" set bold? >> >> See this minimal example: >> >> \setupoutput[pdftex] >> >> \starttext >> \chapter{First Chapter} >> Some text...\index{word} >> >> \section {First Section} >> Some text...\index{word} >> Some text...\index{another entry} >> Some text...\index{ansi} >> Some text...\index{another entry} >> >> \page[yes] >> \completeindex >> >> \stoptext >> >> >> >> Here I would like to have only the first letter of the index entries >> "another" and "word" in the index to be set bold. > since tex is programmable, things like this are doable; of course > the question is "what tweaks are needed"; anyhow, it should not be > a show-stopper > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design [not found] <56BF0DB8-002B-4A7B-9B1C-052FD982B4A5@st.estfiles.de> 2006-07-26 7:40 ` [off-list, urgent] Index design Hans Hagen @ 2006-07-26 7:59 ` Hans Hagen 2006-07-26 9:15 ` Steffen Wolfrum 1 sibling, 1 reply; 7+ messages in thread From: Hans Hagen @ 2006-07-26 7:59 UTC (permalink / raw) Steffen Wolfrum wrote: > Hi Hans, > > sorry for contacting you off-list. But the publishing-house I am > working for at the moment needs to know the answer to my "Index > design" question today. > > They have a series of books with a given index (register of keywords) > designed as described below. > This design was set in the past with 3B2, and now is the question: is > it also possible to set it (in this strange way) with ConTeXt? > > > Please see my description below (hope gets it's clear): > > Is it possible, in an index, not to have single letters as separators > (here "a", "w") in a dedicated line, but instead only the first letter of > the first entry with "a" or "w" set bold? > > See this minimal example: > > \setupoutput[pdftex] > > \starttext > \chapter{First Chapter} > Some text...\index{word} > > \section {First Section} > Some text...\index{word} > Some text...\index{another entry} > Some text...\index{ansi} > Some text...\index{another entry} > > \page[yes] > \completeindex > > \stoptext > > > > Here I would like to have only the first letter of the index entries > "another" and "word" in the index to be set bold. > > Y inofficial hook; remind me when the time is there that you need it because it needs to be hooked in somewhere else \unprotect \def\dosetpageregisterentrya#1#2% {\edef\currententrylevel{1}% \global\let\c!entryb\relax \global\let\c!entryc\relax \gdef\c!entrya {\iffirstregisterentry\else\endgraf\fi % new \global\firstregisterpagetrue \hangindent1em\noindent\c!entryreference \dohandleregisterentry{\executeifdefined {\??id#1\c!deeptextcommand}\firstofoneargument{#2}}% \global\firstregisterentryfalse \global\firstsubentrytrue \global\firstsubsubentrytrue}} \def\HowUgly#1{\doHowUgly#1\relax} \def\doHowUgly#1#2\relax{\iffirstregisterentry{\bf#1}\else#1\fi#2} \setupregister[index][indicator=no,deeptextcommand=\HowUgly] \starttext \chapter{First Chapter} Some text...\index{word} \section {First Section} Some text...\index{word} Some text...\index{another entry} Some text...\index{ansi} Some text...\index{another entry} \page[yes] \completeindex \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design 2006-07-26 7:59 ` Hans Hagen @ 2006-07-26 9:15 ` Steffen Wolfrum 2006-07-26 14:46 ` Sanjoy Mahajan 2006-07-26 20:52 ` Hans Hagen 0 siblings, 2 replies; 7+ messages in thread From: Steffen Wolfrum @ 2006-07-26 9:15 UTC (permalink / raw) (Sorry for the strange conversation, but my e-mail appears with about 20 minutes delay on the list. And Hans is faster.) Am 26.07.2006 um 09:59 schrieb Hans Hagen: > > inofficial hook; remind me when the time is there that you need it > because it needs to be hooked in somewhere else ...well, if it's doable (looks great!) then it is needed Friday (this week) :( Steffen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design 2006-07-26 9:15 ` Steffen Wolfrum @ 2006-07-26 14:46 ` Sanjoy Mahajan 2006-07-26 15:29 ` Taco Hoekwater 2006-07-26 20:52 ` Hans Hagen 1 sibling, 1 reply; 7+ messages in thread From: Sanjoy Mahajan @ 2006-07-26 14:46 UTC (permalink / raw) > (Sorry for the strange conversation, but my e-mail appears with about > 20 minutes delay on the list. And Hans is faster.) I've noticed this too, after I found many examples where Hans or Taco would answer questions that I didn't even know people had! It seems that some emails (based on From: or destination address?) are delayed longer than others by the mailing list. Any ideas about what causes it? Would a few full headers showing what I mean help? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design 2006-07-26 14:46 ` Sanjoy Mahajan @ 2006-07-26 15:29 ` Taco Hoekwater 0 siblings, 0 replies; 7+ messages in thread From: Taco Hoekwater @ 2006-07-26 15:29 UTC (permalink / raw) Sanjoy Mahajan wrote: >>(Sorry for the strange conversation, but my e-mail appears with about >>20 minutes delay on the list. And Hans is faster.) > > I've noticed this too, after I found many examples where Hans or Taco > would answer questions that I didn't even know people had! It seems > that some emails (based on From: or destination address?) are delayed > longer than others by the mailing list. > > Any ideas about what causes it? Would a few full headers showing what It happens to me as well, and it is worse on moment when there is more spam. My guess is that because spam and virus filtering are often queue-based (as a resource control measure), more mail equals longer handling time. Cheers, taco ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [off-list, urgent] Index design 2006-07-26 9:15 ` Steffen Wolfrum 2006-07-26 14:46 ` Sanjoy Mahajan @ 2006-07-26 20:52 ` Hans Hagen 1 sibling, 0 replies; 7+ messages in thread From: Hans Hagen @ 2006-07-26 20:52 UTC (permalink / raw) Steffen Wolfrum wrote: > (Sorry for the strange conversation, but my e-mail appears with about > 20 minutes delay on the list. And Hans is faster.) > > > > Am 26.07.2006 um 09:59 schrieb Hans Hagen: > > >> inofficial hook; remind me when the time is there that you need it >> because it needs to be hooked in somewhere else >> > > > ...well, if it's doable (looks great!) then it is needed Friday (this > week) :( > > the deeptextcoman doption will be available in the next release Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-26 20:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <56BF0DB8-002B-4A7B-9B1C-052FD982B4A5@st.estfiles.de> 2006-07-26 7:40 ` [off-list, urgent] Index design Hans Hagen 2006-07-26 8:24 ` Steffen Wolfrum 2006-07-26 7:59 ` Hans Hagen 2006-07-26 9:15 ` Steffen Wolfrum 2006-07-26 14:46 ` Sanjoy Mahajan 2006-07-26 15:29 ` Taco Hoekwater 2006-07-26 20:52 ` Hans Hagen
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).