ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* dejavu math fallback?
@ 2011-06-16  1:47 Reviczky, Adam
  2011-06-16  8:18 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Reviczky, Adam @ 2011-06-16  1:47 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Hi

Using math with dejavu as the bodyfont produces:
! Math error: parameter \Umathquad\displaystyle is not set.

minimal example:
---
\setupbodyfont[dejavu]
\starttext
$e = mc^2$
\stoptext
---

Installing the xits-math (https://github.com/khaledhosny/xits-math/) solves the problem.
Shouldn't there be a fallback to lmmath or similar?

Log using context without xits-math attached.

Adam

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xits.log --]
[-- Type: text/x-log; name="xits.log", Size: 11204 bytes --]

context export-example.tex

mtx-context     | run 1: luatex --fmt="/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en" --lua="/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui" --backend="pdf" "./export-example.tex"
This is LuaTeX, Version beta-0.71.0-2011061600 (rev 4301) 
 \write18 enabled.
(export-example.tex

ConTeXt  ver: 2011.06.16 00:34 MKIV  fmt: 2011.6.16  int: english/english

system          > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > export-example.top loaded
(export-example.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
backend         > export > enabling export to xml
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts           > defining > forced type otf of xits-math not found
fonts           > defining > font with asked name 'xits-math' is not found using lookup 'file'
fonts           > defining > unknown font xits-math, loading aborted
fonts           > defining > unable to define xits-math.otf as \*dejavu7ptmmmr33*
fonts           > defining > forced type otf of xits-math not found
fonts           > defining > font with asked name 'xits-math' is not found using lookup 'file'
fonts           > defining > unknown font xits-math, loading aborted
fonts           > defining > unable to define xits-math.otf as \*dejavu9ptmmmr22*
fonts           > defining > forced type otf of xits-math not found
fonts           > defining > font with asked name 'xits-math' is not found using lookup 'file'
fonts           > defining > unknown font xits-math, loading aborted
fonts           > defining > unable to define xits-math.otf as \*dejavu12ptmmmr11*
system          > begin file export-example.tex at line 16
structure       > sectioning > chapter @ level 2 : 0.1 -> Example
verbatims       > file export.tex does not exist
(/usr/share/texmf/tex/context/sample/zapf.tex)
floatblocks     > 1 placed
(/usr/share/texmf/tex/context/sample/zapf.tex) (/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* every­day ca­pac­ity to se­lect, edit, sin­gle out, struc­ture, high­light, group,

Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* hole, pick over, sort, in­te­grate, blend, in­spect, fil­ter, lump, skip, smooth,

Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--34
\*dejavu12ptrmtf* item­ize, re­view, dip into, flip through, browse, glance into, leaf through,
backend         > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 </usr/share/texmf/tex/context/sample/hacker.jpg>
pages           > flushing realpage 1, userpage 1, subpage 1
floatblocks     > 2 placed
(/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* every­day ca­pac­ity to se­lect, edit, sin­gle out, struc­ture, high­light, group,

Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* hole, pick over, sort, in­te­grate, blend, in­spect, fil­ter, lump, skip, smooth,

Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--40
\*dejavu12ptrmtf* item­ize, re­view, dip into, flip through, browse, glance into, leaf through,
(/usr/share/texmf/tex/context/sample/zapf.tex) </usr/share/texmf/tex/context/sample/cow.pdf>
pages           > flushing realpage 2, userpage 2
(/usr/share/texmf/tex/context/sample/ward.tex) (/usr/share/texmf/tex/context/sample/tufte.tex)
Overfull \hbox (2.0251pt too wide) in paragraph at lines 56--56
 \*dejavu12ptrmtf* av­er­age, ap­prox­i­mate, clus­ter, ag­gre­gate, out­line, sum­

Overfull \hbox (9.8708pt too wide) in paragraph at lines 56--56
 \*dejavu12ptrmtf* glance into, leaf through, skim, re­fine, enu­mer­ate, glean,
(/usr/share/texmf/tex/context/sample/knuth.tex
pages           > flushing realpage 3, userpage 3
)
! Math error: parameter \Umathquad\displaystyle is not set.

system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

52     \startparagraph \input zapf (Zapf) \stopparagraph
53     
54     \startdescription {Ward} \input ward \stopdescription
55     
56     \startdescription {Tufte} \input tufte \stopdescription
57     
58     \startparagraph \input knuth (Knuth) \stopparagraph
59     
60     \startformula
61     e = mc^2
62 >>  \stopformula
63     
64     \startparagraph
65     Okay, it's somewhat boring to always use the same formula, so how about
66     $\sqrt{4} = 2$ or traveling at \unit{120 km/h} instead of $\unit{110 km/h}$.
67     \stopparagraph
68     
69     \stopchapter
70     
71     \stoptext
72     


\stopdisplaymath ->\stopinnermath $$
                                    \par \afterdisplayspace \par \egroup 
\dostopformula ...eter \c!alternative \v!formula }
                                                  \dostoptagged \dostoptagge...
l.62 \stopformula
                 
? q
OK, entering \batchmode
system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathquad\crampeddisplaystyle is not set ...

system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathquad\crampeddisplaystyle is not set ...

system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathsup_shift_up\displaystyle is not set ...

system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathsup_bottom_min\displaystyle is not set ...

system          > tex > error on line 62 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathradical_vgap\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathfraction_rule\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathaxis\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathradical_kern\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\textstyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

system          > tex > error on line 66 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ...

pages           > flushing realpage 4, userpage 4
system          > end file export-example.tex at line 71

backend         > export > saving xml data in 'export-example.xml
backend         > export > adding css reference 'export-example.css
backend         > export > saving css image definitions in 'export-example-images.css
backend         > export > saving css template in 'export-example.template
mkiv lua stats  > used config file          - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats  > input load time           - 0.113 seconds
mkiv lua stats  > stored bytecode data      - 288 modules, 61 tables, 349 chunks
mkiv lua stats  > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 2 glue, 2 penalty, 16 attribute, 52 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 6 instances (re)created, 2778 calls
mkiv lua stats  > h-node processing time    - 0.128 seconds including kernel
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > callbacks                 - 3171 direct, 3144 indirect, 6315 total
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 20 lpath calls, 9 cached calls
mkiv lua stats  > structure elements        - 75 element chains identified
mkiv lua stats  > interactive elements      - 0 references, 2 destinations
mkiv lua stats  > result saved in file      - export-example.pdf
mkiv lua stats  > loaded fonts              - 2 files: dejavuserif-bold.ttf dejavuserif.ttf
mkiv lua stats  > fonts load time           - 0.215 seconds 
mkiv lua stats  > math processing time      - 11.353 seconds 
mkiv lua stats  > graphics processing time  - 0.016 seconds including tex, 2 processed images
mkiv lua stats  > xml exporting time        - 0.037 seconds, version 0.22
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.71.0-2011061600 (rev 4301)
mkiv lua stats  > control sequences         - 30516 of 165536
mkiv lua stats  > current memory usage      - 27 MB (ctx: 28 MB)
mkiv lua stats  > runtime                   - 13.081 seconds, 3 processed pages, 4 shipped pages, 0.306 pages/second
m
mtx-context     | fatal error: return code: 1%                                  

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dejavu math fallback?
  2011-06-16  1:47 dejavu math fallback? Reviczky, Adam
@ 2011-06-16  8:18 ` Hans Hagen
  2011-06-16  9:16   ` Reviczky, Adam
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-06-16  8:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Reviczky, Adam

On 16-6-2011 3:47, Reviczky, Adam wrote:
> Hi
>
> Using math with dejavu as the bodyfont produces:
> ! Math error: parameter \Umathquad\displaystyle is not set.
>
> minimal example:
> ---
> \setupbodyfont[dejavu]
> \starttext
> $e = mc^2$
> \stoptext
> ---
>
> Installing the xits-math (https://github.com/khaledhosny/xits-math/) solves the problem.
> Shouldn't there be a fallback to lmmath or similar?

xits is part of the minimals

\setupbodyfont[dejavu]

will load the predefined dejavu rm/ss/tt/mm combination and one can 
define another one if needed (just copy the 6 lines and replace the mm one)

making a complex fallback mechanism is not worth the trouble

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dejavu math fallback?
  2011-06-16  8:18 ` Hans Hagen
@ 2011-06-16  9:16   ` Reviczky, Adam
  2011-06-16  9:31     ` Cedric Mauclair
  0 siblings, 1 reply; 4+ messages in thread
From: Reviczky, Adam @ 2011-06-16  9:16 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

> xits is part of the minimals

It is certainly on contextgarden:
http://minimals.contextgarden.net/current/fonts/extra/xits/fonts/opentype/public/xits/

But I don't think it comes with the minimals.

I just did a fresh minimals setup and it gives me the same:
! Math error: parameter \Umathquad\displaystyle is not set.

along with lines like:
fonts           > defining > forced type otf of xits-math not found

I also can't find the otf files in the minimals setup (bin, tex).
I hope it's not just me ...

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dejavu math fallback?
  2011-06-16  9:16   ` Reviczky, Adam
@ 2011-06-16  9:31     ` Cedric Mauclair
  0 siblings, 0 replies; 4+ messages in thread
From: Cedric Mauclair @ 2011-06-16  9:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi list,

On Thu, Jun 16, 2011 at 11:16, Reviczky, Adam <adam.reviczky@kcl.ac.uk> wrote:
>> xits is part of the minimals
>
> It is certainly on contextgarden:
> http://minimals.contextgarden.net/current/fonts/extra/xits/fonts/opentype/public/xits/
>
> But I don't think it comes with the minimals.
>
> I just did a fresh minimals setup and it gives me the same:
> ! Math error: parameter \Umathquad\displaystyle is not set.
>
> along with lines like:
> fonts           > defining > forced type otf of xits-math not found
>
> I also can't find the otf files in the minimals setup (bin, tex).
> I hope it's not just me ...

It's not. Is there a simple/smart way to add these to the minimals, in
texmf-local maybe ?


-- Cédric

>
> Adam
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-16  9:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16  1:47 dejavu math fallback? Reviczky, Adam
2011-06-16  8:18 ` Hans Hagen
2011-06-16  9:16   ` Reviczky, Adam
2011-06-16  9:31     ` Cedric Mauclair

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).