ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* dictionary
@ 2009-12-22 17:51 Horacio Suarez
  2009-12-22 18:01 ` dictionary Hans Hagen
  2009-12-23  3:45 ` dictionary Horacio Suarez
  0 siblings, 2 replies; 9+ messages in thread
From: Horacio Suarez @ 2009-12-22 17:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]


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/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

[-- Attachment #1.2: Type: text/html, Size: 858 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: dictionary
  2009-12-22 17:51 dictionary Horacio Suarez
@ 2009-12-22 18:01 ` Hans Hagen
  2009-12-23  3:45 ` dictionary Horacio Suarez
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-12-22 18:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: dictionary
  2009-12-22 17:51 dictionary Horacio Suarez
  2009-12-22 18:01 ` dictionary Hans Hagen
@ 2009-12-23  3:45 ` Horacio Suarez
  2009-12-23 12:53   ` dictionary Jelle Huisman
  2009-12-23 21:24   ` dictionary Horacio Suarez
  1 sibling, 2 replies; 9+ messages in thread
From: Horacio Suarez @ 2009-12-23  3:45 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]


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/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010

[-- Attachment #1.2: Type: text/html, Size: 1831 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: dictionary
  2009-12-23  3:45 ` dictionary Horacio Suarez
@ 2009-12-23 12:53   ` Jelle Huisman
  2009-12-23 21:08     ` dictionary Henning Hraban Ramm
  2009-12-23 21:24   ` dictionary Horacio Suarez
  1 sibling, 1 reply; 9+ messages in thread
From: Jelle Huisman @ 2009-12-23 12:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: dictionary
  2009-12-23 12:53   ` dictionary Jelle Huisman
@ 2009-12-23 21:08     ` Henning Hraban Ramm
  2009-12-23 21:20       ` dictionary Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2009-12-23 21:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: dictionary
  2009-12-23 21:08     ` dictionary Henning Hraban Ramm
@ 2009-12-23 21:20       ` Wolfgang Schuster
  2009-12-23 21:58         ` dictionary Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-12-23 21:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: dictionary
  2009-12-23  3:45 ` dictionary Horacio Suarez
  2009-12-23 12:53   ` dictionary Jelle Huisman
@ 2009-12-23 21:24   ` Horacio Suarez
  2009-12-25 20:39     ` dictionary Horacio Suarez
  1 sibling, 1 reply; 9+ messages in thread
From: Horacio Suarez @ 2009-12-23 21:24 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2123 bytes --]


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/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010

[-- Attachment #1.2: Type: text/html, Size: 3081 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: dictionary
  2009-12-23 21:20       ` dictionary Wolfgang Schuster
@ 2009-12-23 21:58         ` Henning Hraban Ramm
  0 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2009-12-23 21:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: dictionary
  2009-12-23 21:24   ` dictionary Horacio Suarez
@ 2009-12-25 20:39     ` Horacio Suarez
  0 siblings, 0 replies; 9+ messages in thread
From: Horacio Suarez @ 2009-12-25 20:39 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2811 bytes --]


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/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009

[-- Attachment #1.2: Type: text/html, Size: 4147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2009-12-25 20:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-22 17:51 dictionary Horacio Suarez
2009-12-22 18:01 ` dictionary Hans Hagen
2009-12-23  3:45 ` dictionary Horacio Suarez
2009-12-23 12:53   ` dictionary Jelle Huisman
2009-12-23 21:08     ` dictionary Henning Hraban Ramm
2009-12-23 21:20       ` dictionary Wolfgang Schuster
2009-12-23 21:58         ` dictionary Henning Hraban Ramm
2009-12-23 21:24   ` dictionary Horacio Suarez
2009-12-25 20:39     ` dictionary Horacio Suarez

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