Re: [NTG-context] customized itemize

2006-05-10 Thread Na Li
On  9 May 2006, Hans Hagen wrote:

Na Li wrote: 
  Is there a way of defining an itemize style without having to specify
  the same set of options to \startitemize every time?  Something like:
  
  \defineitemize[myitemize][s,packed][width=5em,stopper=:,style=bold]
  
 \defineitemgroup

That does the trick.  Thanks.

This is not in the manual.  I only found one example through Google.  So
I'll repeat it here

\defineitemgroup[mylist]
\setupitemgroup[mylist][each][s,packed]
\setupitemgroup[mylist][each][width=5em,stopper=:,style=bold]

Another question, if I do

\startitemize[n]
\item
  \startmylist
  \item
  \stopmylist
\stopitemize

The numbers, '1', '2', etc, from the outer list does not line up with 
the first line of the inner list.  How can that be fixed?  Also how to
prevent a page break between the number/bullet from the outer list and
the nested list?

Michael

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


[NTG-context] customized itemize

2006-05-09 Thread Na Li

I need use repeatedly a list like this, with the same set of words (five
or six of them), 'icon', 'coni', etc,

  \startitemize[width=3em,symstyle=bold]
\sym{icon} blah
\sym{coni} llla
  \stopitemize

How to define a customized list so I can do:

 \startmylist
   \item blah
   \item llla
 \stopmylist

to get the same result?

Thanks,

Michael

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


Re: [NTG-context] customized itemize

2006-05-09 Thread Na Li
On  9 May 2006, Aditya Mahajan wrote:

On Tue, 9 May 2006, Na Li wrote: 
  I need use repeatedly a list like this, with the same set of words (five
  or six of them), 'icon', 'coni', etc,
  
  \startitemize[width=3em,symstyle=bold]
  \sym{icon} blah
  \sym{coni} llla
  \stopitemize
  
  How to define a customized list so I can do:
  
  \startmylist
  \item blah
  \item llla
  \stopmylist
  
  to get the same result?
  
 
 Does http://wiki.contextgarden.net/User-Defined_Enumerations help?

Thanks! This works fine:

\defineconversion[s][icon,coni]
\startitemize[s,packed][width=5em,stopper=:,style=bold]
\item blah
\item lla
\stopitemize 

Is there a way of defining an itemize style without having to specify
the same set of options to \startitemize every time?  Something like:

\defineitemize[myitemize][s,packed][width=5em,stopper=:,style=bold]

Michael 

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


[NTG-context] Re: font distribution for Bitstream Vera

2003-10-24 Thread Na Li
On 14 Oct 2003, Henning Hraban Ramm stated:

  Ahoi!
  
  There's now a ConTeXt distribution of Bitstream Vera freeware font at my
  site: http://www.ramm.ch/fiee/texnique/?menu=0-1-4lang=en
  
  (Source of the font is gnome.org, redistribution is allowed, so I packed
  it.)
  
  Vera is similar to Verdana and Lucida; it contains Sans (4), Serif (2) and
  Mono (4).
  

I'm having problem with the fonts.  I unzipped the file in texmf.local and
then with the file:

\usetypescriptfile  [type-bitstream-vera]
\usetypescript  [tiee][bitstream-vera]
\setupbodyfont  [bitstream-vera, ss, 12pt]

\starttext

This is roman, {\bf bold}, {\it italic}, {\bi bold-italic}, 
{\tfa bigger} and {\tfx smaller}.

$$E = m c^2$$

\stoptext

I got,

...
pdftex : needs map file: original-context-symbol.map
pdftex : needs map file: pl0-ams-cmr.map
pdftex : needs map file: original-vogel-symbol.map
fonts  : [tiee] [bitstream-vera] []
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/user/type-bitstream-vera.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-pre.tex)
bodyfont   : unknown variant bitstream-vera
(./testfont.tuo) (./testfont.tuo) (./testfont.tuo) (./testfont.tuo)
(./testfont.tuo) (./testfont.tuo) (./testfont.tuo) (./testfont.tuo)
(./testfont.tuo) (./testfont.tuo) (./testfont.tuo) (./testfont.tuo)
(./testfont.tuo) (./testfont.tuo)
systems: begin file testfont at line 50
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/updmap/pdftex.map}]
systems: end file testfont at line 81
 ){/usr/local/teTeX/share/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTe
X/share/texmf.tetex/fonts/type1/bluesky/cm/cmr9.pfb/usr/local/teTeX/share/tex
mf.tetex/fonts/type1/bluesky/cm/cmr12.pfb{/usr/local/teTeX/share/texmf.tetex/d
vips/tetex/aae443f0.enc}/usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky
/cm/cmmi12.pfb/usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmss1
0.pfb/usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmssi12.pfb/
usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmssbx10.pfb/usr/loc
al/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmss12.pfb
Output written on testfont.pdf (1 page, 24854 bytes).

What else do I need to do to set up the fonts correctly?

Thanks,

Michael

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context