Hello all,

I'm trying to teach myself to use the project structure. After a few
rounds of trial and error (...and stupid naming schemes...) I'm almost
there, but got stuck at my font setups.


If I do this as a single file, it works fine (Win7 and newest ConTeXt,
updated it this morning):

% FONT related setups
\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts

\starttypescript[Manuals]
    \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
    \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\starttext
\input knuth
\stoptext




However, if I make a really simple project structure and try to put
the above in an environment file, compiling fails. What am I missing
here?


proj-test.tex:

\startproject proj-test
\environment env-fonts-simplefonts
\product prd-test1
\stopproject


prd-test1.tex:

\startproduct prd-test1
\project proj-test
\input knuth
\stopproduct



env-fonts-simplefonts:


\startenvironment env-fonts-simplefonts
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts

\starttypescript[Manuals]
    \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
    \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]

% end of font setups


\stopenvironment



If I look at proj-test.log (the whole thing attached), I think the
problem is here:

loading         > ConTeXt User Module / Simplefonts
<+ 
C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fonts           > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts           > defining > unknown font LMMathRoman-Regular, loading aborted
fonts           > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--3]
fonts           > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts           > defining > unknown font LMMathRoman-Regular, loading aborted
fonts           > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--2]
fonts           > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts           > defining > unknown font LMMathRoman-Regular, loading aborted
fonts           > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--1]


But why? What is it I should do differently? ...I wouldn't even need
any math fonts...


Regards,

Mari

Attachment: prd-test1.log
Description: Binary data

Attachment: proj-test.log
Description: Binary data

Attachment: prd-test1.tex
Description: TeX document

Attachment: proj-test.tex
Description: TeX document

Attachment: env-fonts-simplefonts.tex
Description: TeX document

Attachment: test_simplefonts_Manuals.tex
Description: TeX document

Attachment: test_simplefonts_Manuals.log
Description: Binary data

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to