hello all I'm typesetting a dictionary and I need to display the first entry of each page in every page header, as usual in any dictionary. Is it possible to do it automatically? where can I look for it? please give me a clue. Thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar _________________________________________________________________ Windows Live: Make it easier for your friends to see what you’re up to on Facebook. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...
Horacio Suarez wrote:
hello all
I'm typesetting a dictionary and I need to display the first entry of each page in every page header, as usual in any dictionary.
Is it possible to do it automatically? where can I look for it? please give me a clue. Thankyou in advance.
the magic word is 'marking' ----------------------------------------------------------------- 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 -----------------------------------------------------------------
hello all Hans, thankyou very much, I see you answer in gname, but I didnt received that mail yet. I made a marking from each entry in the dictionary and its works, but there is a problem because the entry printed is the second, not the first. magic words usually needs a magician! thankyou very much -------------------- Horacio Suarez From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Tue, 22 Dec 2009 17:51:22 +0000 Subject: [NTG-context] dictionary hello all I'm typesetting a dictionary and I need to display the first entry of each page in every page header, as usual in any dictionary. Is it possible to do it automatically? where can I look for it? please give me a clue. Thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar Windows Live: Make it easier for your friends to see what you’re up to on Facebook. _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...
On 23/12/2009 03:45, Horacio Suarez wrote: Hi Horacio,
Hans, thankyou very much, I see you answer in gname, but I didnt received that mail yet.
I made a marking from each entry in the dictionary and its works, but there is a problem because the entry printed is the second, not the first.
See the example at http://texshow.contextgarden.net/cmd/en/getmarking and use the correct option: [first] [last] [previous] [both] [all] [current] (I usually get it right after a couple of experiments ;-) HTH, Jelle
Am 2009-12-23 um 13:53 schrieb Jelle Huisman:
I made a marking from each entry in the dictionary and its works, but there is a problem because the entry printed is the second, not the first.
See the example at http://texshow.contextgarden.net/cmd/en/ getmarking and use the correct option: [first] [last] [previous] [both] [all] [current] (I usually get it right after a couple of experiments ;-)
I tried something similar for my addressbook, but it doesn't work: \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam][last]}] \def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}} (following lots of lines with \Name{Somebody}) There's no output besides "–" in the header. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Am 23.12.2009 um 22:08 schrieb Henning Hraban Ramm:
I tried something similar for my addressbook, but it doesn't work:
\definemarking[MNam]
\setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam][last]}]
\def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}}
\define[1]\Name{{\bf#1\expanded{\marking[MNam]{...}}} Since you haven't sent a complete example this is not tested. Wolfgang
Am 2009-12-23 um 22:20 schrieb Wolfgang Schuster:
I tried something similar for my addressbook, but it doesn't work:
\definemarking[MNam]
\setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam] [last]}]
\def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}}
\define[1]\Name{{\bf#1\expanded{\marking[MNam]{...}}}
Since you haven't sent a complete example this is not tested.
Sorry. It works in an minimal example, now I must find out, why it doesn't in my real case... One small error remains: I get "Aaaa– Bbbb" instead of "Aaaa–Bbbb" (a space before the second name). Where does it come from? Example (don't know how to generate random names...): \starttext \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]–\getmarking[MNam][last]}] \def\Name#1{\bf #1\expanded{\marking[MNam]{\FirstNCharacters{4}{#1}}}} \starttabulate \dorecurse{200}{\NC \Name{Eins \recurselevel} \NC Zwei \NC Drei \NC\NR \HL} \stoptabulate \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
hello all again. I don't know why but i'm not receiving this list mails. I'm reading the mails in gname. But, back to the dictionary, I use the example in texshow, as Jelle (thankyou very much) told me. "previous" is the right option when the entry is the first in that page, but "first" is the right option when the first lines in the page are part of a previous entry that starts in a previous page so, I dont know what to do. I hope I've explain myself, thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Wed, 23 Dec 2009 03:45:22 +0000 Subject: Re: [NTG-context] dictionary hello all Hans, thankyou very much, I see you answer in gname, but I didnt received that mail yet. I made a marking from each entry in the dictionary and its works, but there is a problem because the entry printed is the second, not the first. magic words usually needs a magician! thankyou very much -------------------- Horacio Suarez From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Tue, 22 Dec 2009 17:51:22 +0000 Subject: [NTG-context] dictionary hello all I'm typesetting a dictionary and I need to display the first entry of each page in every page header, as usual in any dictionary. Is it possible to do it automatically? where can I look for it? please give me a clue. Thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar Windows Live: Make it easier for your friends to see what you’re up to on Facebook. Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...
hello all I think I need that each entry paragraph keep toghether in the same page because if a paragraph break across two pages it confuses first an previous marking. I tried with \startframedtext...\stoptframedtext but doenst work well with marking (is this correct?) How can I keep a paragraph together in a page? I forget to say tham I'm using columns. Thankyou very much. -------------------- Horacio Suarez From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Wed, 23 Dec 2009 21:24:40 +0000 Subject: Re: [NTG-context] dictionary hello all again. I don't know why but i'm not receiving this list mails. I'm reading the mails in gname. But, back to the dictionary, I use the example in texshow, as Jelle (thankyou very much) told me. "previous" is the right option when the entry is the first in that page, but "first" is the right option when the first lines in the page are part of a previous entry that starts in a previous page so, I dont know what to do. I hope I've explain myself, thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Wed, 23 Dec 2009 03:45:22 +0000 Subject: Re: [NTG-context] dictionary hello all Hans, thankyou very much, I see you answer in gname, but I didnt received that mail yet. I made a marking from each entry in the dictionary and its works, but there is a problem because the entry printed is the second, not the first. magic words usually needs a magician! thankyou very much -------------------- Horacio Suarez From: horaciosuarez@hotmail.com To: ntg-context@ntg.nl Date: Tue, 22 Dec 2009 17:51:22 +0000 Subject: [NTG-context] dictionary hello all I'm typesetting a dictionary and I need to display the first entry of each page in every page header, as usual in any dictionary. Is it possible to do it automatically? where can I look for it? please give me a clue. Thankyou in advance. -------------------- Horacio Suarez Editorial Antropofagia www.eantropofagia.com.ar Windows Live: Make it easier for your friends to see what you’re up to on Facebook. Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. _________________________________________________________________ Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...
participants (5)
-
Hans Hagen
-
Henning Hraban Ramm
-
Horacio Suarez
-
Jelle Huisman
-
Wolfgang Schuster