Aditya Mahajan
On Tue, 25 Jan 2011, Marco Pessotto wrote:
Hans Hagen
writes: - If you are adventurous you can add the following to cont-new.mkiv
\enablemode[*nofonts]
This will postpone font loading and will be default soon. This saves runtime when you use another font than latin modern. When no font is loaded before the first \starttext, modern will kick in. A side effect is that any text typeset before \starttext will not show up in the output. If you observe that, you need to setup a bodyfont explicitly beforehand. In practice there should be no problems. The delayed loading is somewhat tricky but has been tested for a while.
If felt adventurous and I found the following problem:
%%%% minimal example %%%% \usetypescript[libertine] \setupbodyfont[libertine,12pt]
\starttext \startitemize[1] \item one \item two \stopitemize \stoptext %%%% end %%%%
Can you test if
\setupbodyfont[libertine,12pt] \starttext $ABC \bullet \star$ \stoptext
also fails?
Yes. Full log here melmoth@universe:/tmp$ context --version MTXrun | main context file: /home/melmoth/usr/context/tex/texmf-context/tex/context/base/context.mkiv MTXrun | current version: 2011.01.25 13:17 melmoth@universe:/tmp$ cat prova.tex %%%% minimal example %%%% \usetypescript[libertine] \setupbodyfont[libertine,12pt] \starttext $ABC \bullet \star$ \stoptext %%%% end %%%% melmoth@universe:/tmp$ context prova.tex MTXrun | run 1: luatex --fmt="/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en" --lua="/home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3/formats/cont-en.lui" --backend=pdf "./prova.tex"This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (prova.tex jobcontrol > resuming randomizer with 0.71793062133618 ConTeXt ver: 2011.01.25 13:17 MKIV fmt: 2011.1.25 int: english/english system : cont-new.mkiv loaded (/home/melmoth/usr/context/tex/texmf-context/tex/context/base/cont-new.mkiv systems : beware: some patches loaded from cont-new.mkiv ) system : prova.top loaded (prova.top) fonts : latin modern fonts are not preloaded language : language en is active (/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/melmoth/usr/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/melmoth/usr/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} systems : begin file prova.tex at line 4 ! Math error: parameter \Umathquad\displaystyle is not set. l.5 $ABC \bullet \star$ ? ? Type <return> to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. ? H Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier. ? X mkiv lua stats : used config file - /home/melmoth/usr/context/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - /home/melmoth/usr/context/tex/texmf-cache/luatex-cache/context/161a8cd09bbec9213c251f73843e59e3 mkiv lua stats : input load time - 0.015 seconds mkiv lua stats : stored bytecode data - 265 modules, 56 tables, 321 chunks mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 412 mkiv lua stats : node memory usage - 1 hlist, 1 math, 1 glue, 5 noad, 5 math_char, 57 attribute, 18 glue_spec, 10 attribute_list, 1 temp, 1 local_par, 2 dir mkiv lua stats : node list callback tasks - 6 unique task lists, 2 instances (re)created, 1767 calls mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en::2 mkiv lua stats : callbacks - direct: 1782, indirect: 2932, total: 4714 mkiv lua stats : result saved in file - prova.pdf mkiv lua stats : loaded fonts - 1 files: fxlr.otf mkiv lua stats : fonts load time - 0.102 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.65.0-2010121316 mkiv lua stats : control sequences - 29324 of 165536 mkiv lua stats : current memory usage - 18 MB (ctx: 19 MB) mkiv lua stats : runtime - 14.364 seconds
Seems like a bug. If no math typescripts are defined, the fallback should have been loaded. (In any case, the libertine typescript should use either txfonts or perhaps xits as the default math fonts).
Aditya
Cheers -- Marco