Re: [NTG-context] Font for enumeration

2006-12-29 Thread Taco Hoekwater
Rolf Marvin Bøe Lindgren wrote:
 consider the following setup:
 
 \startitemize[m]
 \item this
 \item that
 \item the other
 \stopitemize
 
 this should give enumeration using oldstyle numbers.  now, I have  
 created my own typescript file that sets everything to Sabon, except  
 the oldstyle numbers in question, which are set using computer  
 modern's oldstyle numbers.  what do I do to get the base font here?   
 I have set up my typescript file so that {\Var[osf] 123} are set  
 using the base fonts oldstyle numbers.

Untested, but should work:

   \def\varosfnumbers#1{{\Var[osf] #1}}

   \defineconversion[varosf][\varosfnumbers]

   \startitemize[varosf]
   \item this
   \item that
   \item the other
   \stopitemize

Best, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font for enumeration

2006-12-29 Thread Rolf Marvin Bøe Lindgren
On 29. des. 2006, at 10:39, Taco Hoekwater wrote:

 Untested, but should work:

\def\varosfnumbers#1{{\Var[osf] #1}}

\defineconversion[varosf][\varosfnumbers]

\startitemize[varosf]
\item this
\item that
\item the other
\stopitemize

alas, no:

--
systems : begin file rekruttering-i-oljesektoren at line 29
title   : - Rekruttering i ojesektoren
! Argument of \pp!doifinstringelse has an extra }.
inserted text
 \par
to be read again
}
\dolistitem ...ue {\@@localitemsymbol \itemlevel }
   }\resetunexpanded  
\headite...

\complexdoitemgroupitem ...norespaces \dolistitem
   \ifpackeditems  
\setupwhite...
to be read again
J
l.59 \item J
 obbanalyser: Her bør det muligens bygges opp noe.  Det er
--


any suggestions?

-- 
Rolf Lindgren
[EMAIL PROTECTED]


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font for enumeration

2006-12-29 Thread Taco Hoekwater
Rolf Marvin Bøe Lindgren wrote:
 On 29. des. 2006, at 10:39, Taco Hoekwater wrote:
 
 
Untested, but should work:

   \def\varosfnumbers#1{{\Var[osf] #1}}

   \defineconversion[varosf][\varosfnumbers]

   \startitemize[varosf]
   \item this
   \item that
   \item the other
   \stopitemize
 
 
 alas, no:

Can you try

   \unexpanded\def\varosfnumbers#1{{\Var[osf] #1}}

instead? (testing is hard for me because I do not have your font setup)

Best,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font for enumeration

2006-12-29 Thread Willi Egger
Hi Rolf,

Here I tested two situations and they work, though with a small adaptation:

I bought once the Lino-Type Palatino, which includes also oldstyle 
figures in one of the fonts. This font-collection works correctly also 
with Taco's definition

\def\varosfnumbers#1{{\Var[osf] #1}}

On the otherhand the LM-fonts did not reveal the required result, ending 
with a message concerning a non loadable tfm ...
Yet it works with the following adaptation of Taco's macro:

\usetypescript[modern][texnansi]
\setupbodyfont[modern,rm,12pt]

\def\varosfnumbers#1{{\os #1}}
\defineconversion[varosf][\varosfnumbers]

\starttext
\startitemize[varosf]
\item this
\item that
\item the other
\stopitemize
\stoptext

Kind regards

Willi


Rolf Marvin Bøe Lindgren wrote:
 On 29. des. 2006, at 10:39, Taco Hoekwater wrote:

   
 Untested, but should work:

\def\varosfnumbers#1{{\Var[osf] #1}}

\defineconversion[varosf][\varosfnumbers]

\startitemize[varosf]
\item this
\item that
\item the other
\stopitemize
 

 alas, no:

 --
 systems : begin file rekruttering-i-oljesektoren at line 29
 title   : - Rekruttering i ojesektoren
 ! Argument of \pp!doifinstringelse has an extra }.
 inserted text
  \par
 to be read again
 }
 \dolistitem ...ue {\@@localitemsymbol \itemlevel }
}\resetunexpanded  
 \headite...

 \complexdoitemgroupitem ...norespaces \dolistitem
\ifpackeditems  
 \setupwhite...
 to be read again
 J
 l.59 \item J
  obbanalyser: Her bør det muligens bygges opp noe.  Det er
 --


 any suggestions?

   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font for enumeration

2006-12-29 Thread Rolf Marvin Bøe Lindgren
On 29. des. 2006, at 3:44, Taco Hoekwater wrote:

 Rolf Marvin Bøe Lindgren wrote:
 On 29. des. 2006, at 10:39, Taco Hoekwater wrote:


 Untested, but should work:

   \def\varosfnumbers#1{{\Var[osf] #1}}

   \defineconversion[varosf][\varosfnumbers]

   \startitemize[varosf]
   \item this
   \item that
   \item the other
   \stopitemize


 alas, no:

 Can you try

\unexpanded\def\varosfnumbers#1{{\Var[osf] #1}}

success.  thanks!

-- 
Rolf Lindgren
[EMAIL PROTECTED]


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context