Difference between revisions of "Lucida - Old Content"
Jump to navigation
Jump to search
(link to third party module Lucida Bright) |
(B&H flavoured Lucida installation on GNU/Linux) |
||
Line 46: | Line 46: | ||
<texcode> | <texcode> | ||
\lucida{10pt} | \lucida{10pt} | ||
− | </texcode | + | </texcode> |
</li> | </li> | ||
</ol> | </ol> | ||
+ | |||
+ | == Installation of B&H-flavoured Lucida Bright fonts == | ||
+ | ''Renaud Aubin'' | ||
+ | |||
+ | Assumptions: | ||
+ | <ul> | ||
+ | <li> GNU/Linux,</li> | ||
+ | <li> your B&H Lucida Bright distro unpacks .afm and .pfb files in ./fonts/afm/bh/lucida and fonts/type1/bh/lucida</li> | ||
+ | </ul> | ||
+ | Procedure: | ||
+ | <ul> | ||
+ | <li>unpack your B&H distro to TEXMFLOCAL,</li> | ||
+ | <li>run <pre> texfont --ve=bh --co=lucida --so=auto --fo=$TEXMFLOCAL/fonts --ma --in --expert</pre></li> | ||
+ | <li>get the tfm files contained in the third party module [http://modules.contextgarden.net/lucidabright] and put them to $TEXMFLOCAL/fonts/tfm/bh/lucida </li> | ||
+ | <li>uncomment \usetypescriptfile[type-buy] in cont-sys.tex, | ||
+ | <li>give it a try with: | ||
+ | <texcode> | ||
+ | \startMPenvironment[global] % use lucida for metapost too | ||
+ | \usetypescript[lucida][texnansi] | ||
+ | \usetypescript[lucidabfm][texnansi] % for bold math | ||
+ | \usetypescript[lucidaboldmath][texnansi] % for bold math | ||
+ | \setupbodyfont[lucida,10pt] | ||
+ | \definebodyfont[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rm][bc=SerifBoldCaps sa 1, | ||
+ | bca=SerifBoldCaps sa a, | ||
+ | bcb=SerifBoldCaps sa b, | ||
+ | bcc=SerifBoldCaps sa c, | ||
+ | bcd=SerifBoldCaps sa d, | ||
+ | bcx=SerifBoldCaps sa x, | ||
+ | bcxx=SerifBoldCaps sa xx] % dunno if required from now | ||
+ | \stopMPenvironment | ||
+ | |||
+ | |||
+ | \starttext | ||
+ | \input knuth | ||
+ | |||
+ | \setupbodyfont[lucida,10pt,cg] | ||
+ | \input knuth | ||
+ | |||
+ | \setupbodyfont[lucida,10pt,hw] | ||
+ | \input knuth | ||
+ | |||
+ | \setupbodyfont[lucida,10pt,sans] | ||
+ | \input knuth | ||
+ | |||
+ | \setupbodyfont[lucida,10pt,mono] | ||
+ | \input knuth | ||
+ | \stoptext | ||
+ | </texcode> | ||
+ | </li> | ||
+ | </ul> |
Revision as of 01:38, 6 April 2008
Installation of YandY+TUG Lucida Bright fonts
according to Sytse Knypstra
- Install lucida fonts (unzip to e.g. texmf-local tree)
- Copy all lucida related .afm and .pfb files to d:\temp
- Open a MS-DOS window; go to directory d:\temp and run
texfont --fontroot=d:\context\usr\local\context\tex\texmf-local --ve=yandy --co=luc --ma --in --expert
- Copy files from third party modul [1] to d:\context\usr\local\context\tex\texmf-local\
- Move personal '\environment files' to d:\context\usr\local\context\tex\texmf-local\tex\context\user
- Copy the type-luc file to d:\context\usr\local\context\tex\texmf-local\tex\context\base
- Edit the file cont-sys.tex in d:\context\usr\local\context\tex\texmf-local\tex\context\user and add '\usetypescriptfile[type-luc] ' below the line \usetypescriptfile[type-buy]
- Run mktexlsr
- define a macro \lucida as follows:
\define[1]\lucida{ \usetypescript[luc][texnansi] \setupformulas[method=bold] \setupbodyfont[luc,#1] \enablemathcollection[lbr] \input math-lbr \usemathcollection[lbr] }
-
and use it in your document as follows:
\lucida{10pt}
Installation of B&H-flavoured Lucida Bright fonts
Renaud Aubin
Assumptions:
- GNU/Linux,
- your B&H Lucida Bright distro unpacks .afm and .pfb files in ./fonts/afm/bh/lucida and fonts/type1/bh/lucida
Procedure:
- unpack your B&H distro to TEXMFLOCAL,
- run
texfont --ve=bh --co=lucida --so=auto --fo=$TEXMFLOCAL/fonts --ma --in --expert
- get the tfm files contained in the third party module [2] and put them to $TEXMFLOCAL/fonts/tfm/bh/lucida
- uncomment \usetypescriptfile[type-buy] in cont-sys.tex,
- give it a try with:
\startMPenvironment[global] % use lucida for metapost too \usetypescript[lucida][texnansi] \usetypescript[lucidabfm][texnansi] % for bold math \usetypescript[lucidaboldmath][texnansi] % for bold math \setupbodyfont[lucida,10pt] \definebodyfont[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rm][bc=SerifBoldCaps sa 1, bca=SerifBoldCaps sa a, bcb=SerifBoldCaps sa b, bcc=SerifBoldCaps sa c, bcd=SerifBoldCaps sa d, bcx=SerifBoldCaps sa x, bcxx=SerifBoldCaps sa xx] % dunno if required from now \stopMPenvironment \starttext \input knuth \setupbodyfont[lucida,10pt,cg] \input knuth \setupbodyfont[lucida,10pt,hw] \input knuth \setupbodyfont[lucida,10pt,sans] \input knuth \setupbodyfont[lucida,10pt,mono] \input knuth \stoptext