ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font for enumeration
@ 2006-12-27 20:58 Rolf Marvin Bøe Lindgren
  2006-12-29  9:39 ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: Rolf Marvin Bøe Lindgren @ 2006-12-27 20:58 UTC (permalink / raw)


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.
-- 
Rolf Lindgren
roffe@extern.uio.no

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

* Re: Font for enumeration
  2006-12-27 20:58 Font for enumeration Rolf Marvin Bøe Lindgren
@ 2006-12-29  9:39 ` Taco Hoekwater
  2006-12-29 13:12   ` Rolf Marvin Bøe Lindgren
  0 siblings, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2006-12-29  9:39 UTC (permalink / raw)


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

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

* Re: Font for enumeration
  2006-12-29  9:39 ` Taco Hoekwater
@ 2006-12-29 13:12   ` Rolf Marvin Bøe Lindgren
  2006-12-29 14:44     ` Taco Hoekwater
  2006-12-29 18:01     ` Willi Egger
  0 siblings, 2 replies; 6+ messages in thread
From: Rolf Marvin Bøe Lindgren @ 2006-12-29 13:12 UTC (permalink / raw)


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
roffe@extern.uio.no

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

* Re: Font for enumeration
  2006-12-29 13:12   ` Rolf Marvin Bøe Lindgren
@ 2006-12-29 14:44     ` Taco Hoekwater
  2006-12-29 23:30       ` Rolf Marvin Bøe Lindgren
  2006-12-29 18:01     ` Willi Egger
  1 sibling, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2006-12-29 14:44 UTC (permalink / raw)


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

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

* Re: Font for enumeration
  2006-12-29 13:12   ` Rolf Marvin Bøe Lindgren
  2006-12-29 14:44     ` Taco Hoekwater
@ 2006-12-29 18:01     ` Willi Egger
  1 sibling, 0 replies; 6+ messages in thread
From: Willi Egger @ 2006-12-29 18:01 UTC (permalink / raw)


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?
>
>   

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

* Re: Font for enumeration
  2006-12-29 14:44     ` Taco Hoekwater
@ 2006-12-29 23:30       ` Rolf Marvin Bøe Lindgren
  0 siblings, 0 replies; 6+ messages in thread
From: Rolf Marvin Bøe Lindgren @ 2006-12-29 23:30 UTC (permalink / raw)


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
roffe@extern.uio.no

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

end of thread, other threads:[~2006-12-29 23:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-27 20:58 Font for enumeration Rolf Marvin Bøe Lindgren
2006-12-29  9:39 ` Taco Hoekwater
2006-12-29 13:12   ` Rolf Marvin Bøe Lindgren
2006-12-29 14:44     ` Taco Hoekwater
2006-12-29 23:30       ` Rolf Marvin Bøe Lindgren
2006-12-29 18:01     ` Willi Egger

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