item bullet processing / font problem
Setting the main font to ipaexm for Japanese characters, causes the sample document below to fail being typest properly. The $\diamond$ symbol I specified as an item bullet does not get typeset and where is should be is blank. Though not shown in this example, the default set is also affected. When it should be a circular bullet a largish hypen - is displayed. Also parsing of the document text itself is affected with Context halting in the middle of the first item's text. I think all problems are due to the change in fort. Is there anyway I can specify a backup font or a fort to use for only the symbols, which I believe is in a math font? Any assistance it getting this working will be much appreciated. Thank you. ---- # 1 Sample Context Macro document that causes the errors: ---- \usemodule[simplefonts] \setmainfont[ipaexm] \definesymbol[5][$\diamond$] \starttext \startitemize[5,columns,unpacked,two,broad] \item 此の行にbulletを打つ。 \item One more column for good measure \stopitemize \stoptext --- end of sample Context macro doc. ---- #2 sample of the errors output by Context ---- system > cont-new.mkiv loaded ... system > beware: some patches loaded from cont-new.mkiv . . fonts > latin modern fonts are not preloaded languages > language en is active loading > ConTeXt User Module / Simplefonts fonts > typescripts > unknown: library 'loc' {/usr/local/texlive/2012/texmf-....../context/mkiv-base.map} fonts > defining > forced type otf of latinmodernmath-regular not found fonts > defining > font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fonts > defining > unknown font latinmodernmath-regular, loading aborted fonts > defining > unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--3] fonts > defining > forced type otf of latinmodernmath-regular not found fonts > defining > font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fonts > defining > unknown font latinmodernmath-regular, loading aborted fonts > defining > unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--2] . . fonts > math: unset for global bodyfont simplefonts:1 at 12pt fonts > math: unset for global bodyfont simplefonts:1 at 12pt ! Math error: parameter \Umathquad\displaystyle is not set. system > tex > error on line 8 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... . . ? OK, entering \nonstopmode... ! Math error: parameter \Umathquad\displaystyle is not set. system > tex > error on line 8 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... ! Math error: parameter \Umathquad\displaystyle is not set. system > tex > error on line 9 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... . . . ! Math error: parameter \Umathquad\displaystyle is not set. mtx-context | fatal error: return code: 1 ------------- end of sample error output
On Tue, 18 Jun 2013, hwitloc@gmail.com wrote:
Setting the main font to ipaexm for Japanese characters, causes the sample document below to fail being typest properly.
The $\diamond$ symbol I specified as an item bullet does not get typeset and where is should be is blank. Though not shown in this example, the default set is also affected. When it should be a circular bullet a largish hypen - is displayed.
Also parsing of the document text itself is affected with Context halting in the middle of the first item's text.
I think all problems are due to the change in fort. Is there anyway I can specify a backup font or a fort to use for only the symbols, which I believe is in a math font?
Any assistance it getting this working will be much appreciated.
Thank you.
---- # 1 Sample Context Macro document that causes the errors: ----
\usemodule[simplefonts] \setmainfont[ipaexm]
Add \setmathfont[modern] % or something else. Aditya
! Math error: parameter \Umathquad\displaystyle is not set.
Perhaps we need to add a FAQ on the wiki for this error (and maybe change the default symbolset to text symbols rather than math symbols) Aditya
On 6/18/2013 4:23 AM, Aditya Mahajan wrote:
Perhaps we need to add a FAQ on the wiki for this error (and maybe change the default symbolset to text symbols rather than math symbols)
A follow up on the lm / texgyre project will add the most relevant symbols to the text fonts (for this purpose; the reason to trigger this project was that it makes no sense in these times to get symbols from math fonts). 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 -----------------------------------------------------------------
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: -------------------------------- \usemodule[simplefonts] \setmainfont[ipaexm] \mainlanguage[ja] \setmathfont[modern] \definesymbol[5][$\diamond$] \starttext \startitemize[5,columns,unpacked,two,broad] \item 此の行にbulletを打つ。 \item One more column for good measure \item 此れは何処に置かれるでしょうか \stopitemize \stoptext ---------------------------------------------------------------- Regards
On 6/18/2013 1:38 PM, hwitloc@gmail.com wrote:
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing.
I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple:
the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion) 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 -----------------------------------------------------------------
Am 18.06.2013 um 23:41 schrieb Hans Hagen
On 6/18/2013 1:38 PM, hwitloc@gmail.com wrote:
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing.
I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple:
the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found
so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion)
The simplefonts module passes the \setmathfont argument to the \definetypeface command and the default setup should be similar to the following example. I already sent the example once but got no answer what’s the result from it. \definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default] \setupbodyfont[test] \starttext Text and $math$. \stoptext Wolfgang
The result of adding:
\definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default]
\setupbodyfont[test]
Make no difference whatsoever.
"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.
! Math error: parameter \Umathquad\displaystyle is not set.
system > tex > error on line 20 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ...
"
"
As pointed out an arument is not being passed through to a lower level and apparently in this case the argument is probably NULL or not valid.
However adding: "\setmathfont[modern] " did allow normal default symbols working.
Only problem now is a halting compile with error messages and inability to use $/diamond$ (and other symbols) as bullet shapes/characters.
Regards
Wolfgang Schuster
Am 18.06.2013 um 23:41 schrieb Hans Hagen
: On 6/18/2013 1:38 PM, hwitloc@gmail.com wrote:
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing.
I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple:
the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found
so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion)
The simplefonts module passes the \setmathfont argument to the \definetypeface command and the default setup should be similar to the following example. I already sent the example once but got no answer what’s the result from it.
\definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default]
\setupbodyfont[test]
\starttext Text and $math$. \stoptext
Wolfgang
Am 19.06.2013 um 01:10 schrieb hwitloc@gmail.com:
The result of adding:
\definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default]
\setupbodyfont[test]
Make no difference whatsoever.
"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.
! Math error: parameter \Umathquad\displaystyle is not set.
system > tex > error on line 20 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... " "
As pointed out an arument is not being passed through to a lower level and apparently in this case the argument is probably NULL or not valid.
However adding: "\setmathfont[modern] " did allow normal default symbols working.
Only problem now is a halting compile with error messages and inability to use $/diamond$ (and other symbols) as bullet shapes/characters.
I suggest to install either the context suite [1] or update your installation to texlive 2013 (mac users can use mactex 2013 [3]). [1] http://wiki.contextgarden.net/ConTeXt_Standalone [2] http://www.tug.org/texlive/ [3] http://tug.org/mactex/ Wolfgang
Hans Hagen
On 6/18/2013 1:38 PM, hwitloc@gmail.com wrote:
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing.
I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple:
the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found
so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion)
Hans
Good question. How should I go about finding the answer to this? Updated all TeXLive 2011 a week ago. mkiv says: contextunable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--2] And as you say "! Math error: parameter \Umathquad\displaystyle is not set. system > tex > error on line 19 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... " and "l.19 \item 此 の行にbulletを打つ。 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. ! Math error: parameter \Umathquad\displaystyle is not set. " The item text is getting properly placed and there is actually no problem there. The parsing is getting out of step, probably because of a missing parameter. I don't know if this is relevant but the below produces a null output. $ mtxrun --locate lmmath-regular.otf $ Ref: "(read: adapted to the latest> fashion)" Is there a way to ascertain version information about simplefonts if there are different ones floating around? Getting to your main question: How can I find out if simplefonts, the one here on this machine, defines a lm math font in the right way?
On 6/19/2013 1:23 AM, hwitloc@gmail.com wrote:
Hans Hagen
wrote: On 6/18/2013 1:38 PM, hwitloc@gmail.com wrote:
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing.
I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple:
the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found
so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion)
Hans
Good question. How should I go about finding the answer to this?
Updated all TeXLive 2011 a week ago.
that one is way too old for lm math as these fonts only showed up last year so, either update to - tex live 2013 or - use the context garden distribution 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 -----------------------------------------------------------------
Thank you Hans and Wolfgang for all your advice and assistance.
I will learn how to and update to a newer standalone version.
Regads
Hans Hagen
Good question. How should I go about finding the answer to this?
Updated all TeXLive 2011 a week ago.
that one is way too old for lm math as these fonts only showed up last year so, either update to
- tex live 2013
or
- use the context garden distribution
Hans
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
hwitloc@gmail.com
-
Wolfgang Schuster