Choosing a font for our Math Book
Adam, Taco, Hans, et al, This file: %output=pdf \startcomponent section1 \project book \product chapter1 \section{Trinomials} \input knuth \placeformula[eq:1] \startformula f(x)=x^2+2x-3 \stopformula We, see in \in{Equation}[eq:1], the historical use of function notation. \stopcomponent %%% Local Variables: %%% mode: conTeXt-en %%% End: I have no font instructions in my environment file bookenv.tex. This component section1 compiles fine and gives me (checking in Acrobat Professional) a combination of latin modern and computer modern fonts. However, they hardly match in size. The computer modern font is much larger than the text in latin modern font. So, a couple of things. 1. If I wanted to try and see if this would compile with my Lucida fonts, what should I try. 2. Do you have a couple of suggestions for body font and math font that would look good together and can you provide me with the font instructions to include them in my document? I would be grateful. David
David Arnold wrote:
I have no font instructions in my environment file bookenv.tex. This component section1 compiles fine and gives me (checking in Acrobat Professional) a combination of latin modern and computer modern fonts. However, they hardly match in size. The computer modern font is much larger than the text in latin modern font.
not here; can you send me a minimal pdf file that shows the problem?
So, a couple of things.
1. If I wanted to try and see if this would compile with my Lucida fonts, what should I try.
\usetypescript[lucida][texnansi] \setupbodyfont[lucida] btw, \showfontstrip gives you a way to analyze ratios
2. Do you have a couple of suggestions for body font and math font that would look good together and can you provide me with the font instructions to include them in my document?
try: \usetypescript[palatino][texnansi] \setupbodyfont[palatino] Hans
Hans, On Nov 25, 2005, at 4:48 PM, Hans Hagen wrote:
\usetypescript[lucida][texnansi] \setupbodyfont[lucida]
This doesn't work on my system. However, the attached file does compile and gives me Lucida in Acrobat Professional. You'll note thought that all the math is commented out. What do you suggest? I tried this as well: \usetypescript[yandy-lucida][texnansi] \setupbodyfont[lucida] That just caused a font substitution. David 
David Arnold wrote:
Hans,
On Nov 25, 2005, at 4:48 PM, Hans Hagen wrote:
\usetypescript[lucida][texnansi]
\setupbodyfont[lucida]
This doesn't work on my system. However, the attached file does compile and gives me Lucida in Acrobat Professional. You'll note thought that all the math is commented out.
What do you suggest? I tried this as well:
\usetypescript[yandy-lucida][texnansi] \setupbodyfont[lucida]
are there typescripts tagged yandy-lucida then? Hans
Hans, Yep. bin $ locate yandy- /Users/darnold/tmp/lucida/texnansi-yandy-lucida-mpgraph.mp /Users/darnold/tmp/lucida/texnansi-yandy-lucida.log /Users/darnold/tmp/lucida/texnansi-yandy-lucida.pdf /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tex /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tmp /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tui /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tuo /usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/texnansi- yandy-lucida.bak /usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/texnansi- yandy-lucida.map On Nov 27, 2005, at 3:20 PM, Hans Hagen wrote:
David Arnold wrote:
Hans,
On Nov 25, 2005, at 4:48 PM, Hans Hagen wrote:
\usetypescript[lucida][texnansi]
\setupbodyfont[lucida]
This doesn't work on my system. However, the attached file does compile and gives me Lucida in Acrobat Professional. You'll note thought that all the math is commented out.
What do you suggest? I tried this as well:
\usetypescript[yandy-lucida][texnansi] \setupbodyfont[lucida]
are there typescripts tagged yandy-lucida then?
Hans _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
David
David Arnold wrote:
Hans,
Yep.
bin $ locate yandy- /Users/darnold/tmp/lucida/texnansi-yandy-lucida-mpgraph.mp /Users/darnold/tmp/lucida/texnansi-yandy-lucida.log /Users/darnold/tmp/lucida/texnansi-yandy-lucida.pdf /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tex /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tmp /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tui /Users/darnold/tmp/lucida/texnansi-yandy-lucida.tuo /usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/texnansi- yandy-lucida.bak /usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/texnansi- yandy-lucida.map
ah, i see; the problem is that the context predefined typescripts expect something bh-lucida since bh is the foundry and not yandy now, for all fonts that i buy/use, i add en entry to type-buy.tex, and the corresponding dat files says: # bh lucida --en=? --ve=bh --co=lucida --re --en=? --ve=bh --co=lucida --so=bh/lucida --ma --in --expert this means that you can run texfont as follows: texfont --encoding=texnansi --batch type-buy.dat which assumes that you have the fonts in the local tree (the place where you run this command) under bh/lucida Here i have a dedicated disk where i put my font files (the ones provided by the foundry) structured like: /myboughtfonts/bh/lucida/ the last one is flat, i.e. i always copy all font files to such a path (pfb, afm, whatever) i then run texfont in the /myboughtfonts path and (using the dat file) texfonts knows where to find the files. So, type-buy assumes some kind of source tree: h:\fonts\adobe\frutiger h:\fonts\adobe\myriad h:\fonts\adobe\palatino h:\fonts\adobe\symbol h:\fonts\adobe\utopia h:\fonts\agfa\bauhaus h:\fonts\bh\lucida h:\fonts\bitstream\cyberbit h:\fonts\itc\bauhaus h:\fonts\itc\kabel h:\fonts\itc\mendoza h:\fonts\itc\officina h:\fonts\itc\stone h:\fonts\linotype\industria h:\fonts\linotype\optima-nova h:\fonts\linotype\syntax h:\fonts\linotype\univers h:\fonts\linotype\zapfino h:\fonts\linotype\zapfino-extra h:\fonts\lucas\antiqua h:\fonts\lucas\sun h:\fonts\lucas\thesans h:\fonts\monotype\sabon which will be reflected in the names that en dup in the tex tree once you have it running, adding a new font is a matter of minutes Hans
Hans, \usetypescript[palatino][texnansi] \setupbodyfont[palatino] This one worked, and looks pretty good. In Acrobat Professional, fonts reported are: LMRoman10-Regual LMTypewriter10-Regular Pxsy Rpxr URWPalladioL-Ital URWPalladioL-Roma All Type 1. But this one: \definetypeface[iwona][ss][sans][iwona][default][encoding=texnansi] \definetypeface[iwona][mm][math][iwona][default][encoding=texnansi] \setupbodyfont[iwona][texnansi] Caused: (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) kpathsea: Running mktextfm texnansi-iwonar mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-iwonar This is METAFONT, Version 2.71828 (Web2C 7.5.5) kpathsea: Running mktexmf texnansi-iwonar ! I can't find file `texnansi-iwonar'. <*> ... mag:=1; nonstopmode; input texnansi-iwonar Please type another input file name ! Emergency stop. <*> ... mag:=1; nonstopmode; input texnansi-iwonar Transcript written on mfput.log. grep: texnansi-iwonar.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-iwonar' failed to make texnansi-iwonar.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*iwona12ptsstf*:=texnansi-iwonar at 12.0pt not loadable: Metric (TFM) f ile not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.39 \setupbodyfont[iwona] [texnansi] ? I'm gonna get that update to Context pretty soon. We'll see if that helps. David
participants (2)
-
David Arnold
-
Hans Hagen