[NTG-context] Font Question

Adam Lindsay atl at comp.lancs.ac.uk
Thu Dec 8 00:45:20 CET 2005


Hi Aditya.

There are a few issues I think I understand here:

Aditya Mahajan wrote:
> I want to use palatino text with euler math in my document. This is how 
> I proceed.
> 
> 1. I downloaded latest mswincontext environment from pragma website.
> 2. To test if palatino works correctly, I tested the simple document.
> 
> %---------
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,11pt]
> \starttext
> This is a test .
> \stoptext
> %---------------
> 
> Everything works fine, and the text is in pallatino (the urw clone). 
> However, when I look at fonts included in the document, Latin Modern is 
> also there. I am just curious as how LM got into the document, and can I 
> get rid of it.

You'll find that the page number is latin modern. You can expunge that 
by saying:
\setupbodyfont[palatino,11pt] % instead of \switchtobodyfont

(setupbodyfont is document-wide)

> 3. I am not sure on how to include euler. I looked at Euler in ConTeXt 
> (using Euler math font) by Adam Lindsay. I already have eulervm vf and 
> tfm directories in $TEXMF/fonts/tfm/public/eulervm and 
> $TEXMF/fonts/vf/public/eulervm
> 
> There is a math-eul.tex at $TEXMFLOCAL/tex/context/base. The My Way by 
> Adam says that I also need type-eul.tex, but I do not know where to get 
> it from. I tried

Okay. Time to dust off the web pages and insert disclaimers. That's an 
old article. Euler support got (improved and) included into the ConTeXt 
core.

Current usage looks something like:

\definetypeface [pal] [rm] [serif] [palatino]
                    [default] [encoding=texnansi]
\definetypeface [pal] [tt] [mono]  [modern]
                    [default] [encoding=texnansi,rscale=1.1]
\definetypeface [pal] [mm] [math]  [euler]
                    [euler]   [rscale=1.03]

\loadmapfile[original-ams-euler] % This needs to be added!

\setupbodyfont [pal,11pt]
\starttext
This is a test $a \neq \frac{b}{c}$.
\stoptext

> %-----------------
> \usetypescript[palatino][texnansi]
> \switchtobodyfont[palatino,11pt]
> 
> \usetypescriptfile[type-eul]
> \usetypescript[eul]
> \switchtobodyfont[eul]
> 
> \starttext
> This is a test  and $a = b$.
> \stoptext
> %---------------------
> I do not get any errors while compiling, but the math is not euler. The 
> output is same if I comment the three lines containing eul. The log is 
> at the end of the email.
> 
> I do not really understand how fonts in Context work. Can someone please 
> explain what is going wrong and how can I get pallatino+euler working.

Lengthy explanations aren't on offer tonight, sorry.
I hope this sets you in the right direction, though.

adam

> 
> 
> %------------log----------------
> 
> This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) 
> (format=cont-en 2005.11.30)  7 DEC 2005 17:43
> entering extended mode
> \write18 enabled.
> **test.tex \emergencyend
> (./test.tex
> 
> ConTeXt  ver: 2005.11.30  fmt: 2005.11.30  int: english  mes: english
> 
> language        : language en is active
> <protectionstate 0>
> system          : cont-new loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> color           : palette rollover is available
> )
> system          : cont-old loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-old.tex
> loading         : Context Old Macros
> )
> system          : cont-fil loaded
> (e:\context\tex\texmf-local/tex/context/base/cont-fil.tex
> loading         : Context File Synonyms
> )
> system          : cont-sys loaded
> (e:\context\tex\texmf-local/tex/context/user/cont-sys.tex)
> bodyfont        : 12pt rm is loaded
> language        : patterns nl->texnansi:texnansi->1->2:2 
> nl->ec:ec->2->2:2 fr->
> texnansi:texnansi->3->2:2 fr->ec:ec->4->2:2 
> de->texnansi:texnansi->5->2:2 de->e
> c:ec->6->2:2 it->texnansi:texnansi->7->2:2 it->ec:ec->8->2:2 
> pt->texnansi:texna
> nsi->9->2:2 pt->ec:ec->10->2:2 hr->ec:ec->11->2:2 pl->pl0:pl0->12->2:2 
> pl->ec:e
> c->13->2:2 pl->qx:qx->14->2:2 cz->il2:il2->15->2:2 cz->ec:ec->16->2:2 
> sk->il2:i
> l2->17->2:2 sk->ec:ec->18->2:2 sl->il2:il2->19->2:2 sl->ec:ec->20->2:2 
> en->ec:e
> c->22->2:2 da->ec:ec->23->2:2 sv->ec:ec->24->2:2 af->ec:ec->25->2:2 
> no->ec:ec->
> 26->2:2 deo->ec:ec->27->2:2 uk->ec:ec->28->2:2 us->ec:ec->29->2:2 
> es->ec:ec->30
> ->2:2 ca->ec:ec->31->2:2 la->ec:ec->32->2:2 ro->ec:ec->33->2:2 
> tr->ec:ec->34->2
> :2 fi->ec:ec->36->2:2 hu->ec:ec->37->2:2 loaded
> specials        : tex,postscript,rokicki loaded
> \openout2 = `test.tui'.
> 
> system          : test.top loaded
> (./test.top
> specials        : loading definition file tpd
> (e:\context\tex\texmf-local/tex/context/base/spec-tpd.tex
> specials        : loading definition file fdf
> (e:\context\tex\texmf-local/tex/context/base/spec-fdf.tex)
> specials        : fdf loaded
> )
> specials        : fdf,tpd loaded
> )
> \openout0 = `test-mpgraph.mp'.
> 
> \openout0 = `mpgraph.mp'.
> 
>  (e:\context\tex\texmf-local/tex/context/base/type-exa.tex
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-exa.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-syn.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-enc.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-dis.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-siz.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-map.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-spe.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-akb.tex)
> (e:\context\tex\texmf-local/tex/context/base/type-buy.tex)) (./test.tuo)
> (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
> (./test.tuo)
> (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) 
> (./test.tuo)
> systems         : begin file test at line 8
> fonts           : resetting map file list
> fonts           : using map file: original-base
> fonts           : using map file: ec-public-lm
> fonts           : using map file: ec-base
> fonts           : using map file: original-ams-base
> fonts           : using map file: original-public-lm
> fonts           : using map file: texnansi-base
> fonts           : using map file: texnansi-urw-palatino
> fonts           : using map file: original-youngryu-px
> fonts           : using map file: texnansi-public-lm
> [1.1{e:\context\tex\texmf-local/fonts/map/pdftex/context/original-empty.map}{e: 
> 
> \context\tex\texmf-local/fonts/map/pdftex/context/original-base.map}{e:\context 
> 
> \tex\texmf-local/fonts/map/pdftex/context/ec-public-lm.map}{e:\context\tex\texm 
> 
> f-local/fonts/map/pdftex/context/ec-base.map}{e:\context\tex\texmf-local/fonts/ 
> 
> map/pdftex/context/original-ams-base.map}{e:\context\tex\texmf-local/fonts/map/ 
> 
> pdftex/context/original-public-lm.map}{e:\context\tex\texmf-local/fonts/map/pdf 
> 
> tex/context/texnansi-base.map}{e:\context\tex\texmf-fonts/fonts/map/pdftex/cont 
> 
> ext/texnansi-urw-palatino.map}{e:\context\tex\texmf-local/fonts/map/pdftex/cont 
> 
> ext/original-youngryu-px.map}{e:\context\tex\texmf-local/fonts/map/pdftex/conte 
> 
> xt/texnansi-public-lm.map}]
> systems         : end file test at line 10
>  )
> Here is how much of TeX's memory you used:
>  2006 strings out of 211042
>  39210 string characters out of 1373258
>  2535649 words of memory out of 4043974
>  38107 multiletter control sequences out of 10000+75000
>  160348 words of font info for 122 fonts, out of 1000000 for 2000
>  232 hyphenation exceptions out of 8191
>  45i,18n,61p,334b,632s stack positions out of 
> 10000i,500n,6000p,200000b,40000s
> PDF statistics:
>  16 PDF objects out of 300000
>  0 named destinations out of 131072
>  1 words of extra memory for PDF output out of 10000
> <e:\context\tex\texmf/fonts/type1/public/pxfonts/rpxr.pfb>{e:\context\tex\tex 
> 
> mf/fonts/enc/dvips/base/8r.enc}<e:\context\tex\texmf/fonts/type1/urw/palatino/u 
> 
> plri8a.pfb>{e:\context\tex\texmf/fonts/enc/dvips/base/texnansi.enc}<e:\context\ 
> 
> tex\texmf/fonts/type1/urw/palatino/uplr8a.pfb>{e:\context\tex\texmf/fonts/enc/d 
> 
> vips/lm/lm-ec.enc}<e:\context\tex\texmf/fonts/type1/public/lm/lmr12.pfb>
> Output written on test.pdf (1 page, 35542 bytes).
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl at comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



More information about the ntg-context mailing list