### Re: [NTG-context] math signs in itemize


Am 26.09.2011 um 00:23 schrieb Aditya Mahajan:

On Mon, 26 Sep 2011, R. Ermers wrote:

My one and only math item -- $\frac1{40}$ -- does cause a problem though.
Apparently there is no math fallback.

Hard to say without an example.

Any suggestions?

Use text mode fractions! \frac{1}{40}.

This is still typeset in math mode. A alternative is to write the fraction as
“1/40”.

Wolfgang
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

On Mon, Sep 26, 2011 at 09:34:45AM +0200, Wolfgang Schuster wrote:
Any suggestions?

Use text mode fractions! \frac{1}{40}.

This is still typeset in math mode. A alternative is to write the fraction as
“1/40”.

¼÷10, 0.025.

\definetypeface [xits] [mm] [math] [xits] [default]

Alan
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


### Re: [NTG-context] math signs in itemize


Am 26.09.2011 um 10:49 schrieb Alan Braslau:

On Mon, Sep 26, 2011 at 09:34:45AM +0200, Wolfgang Schuster wrote:
Any suggestions?

Use text mode fractions! \frac{1}{40}.

This is still typeset in math mode. A alternative is to write the fraction
as “1/40”.

¼÷10, 0.025.

\definefontfeature[frac][frac=yes,script=latn]

\setupbodyfont[cambria]

\starttext
1/40 {\setff{frac}1/40} \m{\frac{1}{40}}
\stoptext

Wolfgang
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster:
\definefontfeature[frac][frac=yes,script=latn]

\setupbodyfont[cambria]

Is there a font in Standalone which can be used to demonstrate the
behavior?

\starttext
1/40 {\setff{frac}1/40} \m{\frac{1}{40}}

With {\setff{frac}1/40} the output is like ¼0. Using {40} also does
not help.

\stoptext

Thanks,

Paul

signature.asc
Description: This is a digitally signed message part
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


### Re: [NTG-context] math signs in itemize

On Mon, Sep 26, 2011 at 11:31:09AM +0200, Paul Menzel wrote:
Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster:
\definefontfeature[frac][frac=yes,script=latn]

\setupbodyfont[cambria]

Is there a font in Standalone which can be used to demonstrate the
behavior?

XITS, but you will get output as you describe below, which I know is
buggy since the font lacks generalised frac feature.

\starttext
1/40 {\setff{frac}1/40} \m{\frac{1}{40}}

With {\setff{frac}1/40} the output is like ¼0. Using {40} also does
not help.

Looks like frac here is a simple ligature of few predefined fractions.

Regards,
Khaled

--
Khaled Hosny
Egyptian
Arab

signature.asc
Description: Digital signature
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


### Re: [NTG-context] math signs in itemize

Thanks all, for your reactions.

I tried them all, but the process still stops at the \frac, which I changed now
into \frac{1}{40}, whatever I do.

The gentium font does not load properly; the file is typeset in Times instead.
I get these strange references to gentium instead.

Regards,

Robert

\*gentium10ptrmtf* (-20) .t\*gentium10ptrmtf* (-15) e\*gentium10ptrmtf* (-20)
l\*gentium10ptrmtf* (-15) eg\*gentium10ptrmtf* (-20) r\*gentium10ptrmtf* (-15)
aa\*gentium10ptrmtf* (-20) f.\*gentium10ptrmtf* (-15) n\*gentium10ptrmtf* (-20)
l/\*gentium10ptrmtf* (-15) b\*gentium10ptrmtf* (-20) i\*gentium10ptrmtf* (-15)
nnen\*gentium10ptrmtf* (-20) l\*gentium10ptrmtf* (-15) and\*gentium10ptrmtf*
(-20) /\*gentium10ptrmtf* (-15) 3\*gentium10ptrmtf* (-20) 7\*gentium10ptrmtf*
(-15) 3\*gentium10ptrmtf* (-20) 0\*gentium10ptrmtf* (-15) 6\*gentium10ptrmtf*
(-20) 4\*gentium10ptrmtf* (-15) 9\*gentium10ptrmtf* (-20) /_J\*gentium10ptrmtf*
(-15) eugdzo\*gentium10ptrmtf* (-20) r\*gentium10ptrmtf* (-15)
g\*gentium10ptrmtf* (-20) _\*gentium10ptrmtf* (-15) gedoog\*gentium10ptrmtf*
(-20) t

another snipped related to Gentium:

\hbox(6.84+2.18)x203.05038, direction TLT
.\*gentium10ptrmtf* (-20) .
.\*gentium10ptrmtf* (-20) t
.\*gentium10ptrmtf* (-15) e
.\*gentium10ptrmtf* (-20) l
.\*gentium10ptrmtf* (-15) e
.etc.

...

)/prog2/context2/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-regular.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-italic.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-bold.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-regular.otf

Op 26 sep 2011, om 15:59 heeft Khaled Hosny het volgende geschreven:

On Mon, Sep 26, 2011 at 11:31:09AM +0200, Paul Menzel wrote:
Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster:
\definefontfeature[frac][frac=yes,script=latn]

\setupbodyfont[cambria]

Is there a font in Standalone which can be used to demonstrate the
behavior?

XITS, but you will get output as you describe below, which I know is
buggy since the font lacks generalised frac feature.

\starttext
1/40 {\setff{frac}1/40} \m{\frac{1}{40}}

With {\setff{frac}1/40} the output is like ¼0. Using {40} also does
not help.

Looks like frac here is a simple ligature of few predefined fractions.

Regards,
Khaled

--
Khaled Hosny
Egyptian
Arab
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

On Sat, Sep 24, 2011 at 11:29:32AM +0200, R. Ermers wrote:
Dear all,
After my update a few days ago I have run into the problem earlier described
under the subject new beta (Marco Pessotto). The file processed nicely
until then. I use gentium as the main font.

\definefont[gentium][Xserif][name:Gentium at 12pt]

Gentium currently does not have good support for math fonts.
Xits gives the best results for math, it appears at the moment.

Alan
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

Thanks Alan,

But I use very, very little math, only once or twice, as in  7$^{th}$, but I
could solve that otherwise.
My main problem occurs in itemization. Please have a look at this:

l.741 \item h
et type van de abc abc abc
?
! \textfont0 is undefined (character 8226).

Regards,

Robert

Op 25 sep 2011, om 12:17 heeft Alan Braslau het volgende geschreven:

On Sat, Sep 24, 2011 at 11:29:32AM +0200, R. Ermers wrote:
Dear all,
After my update a few days ago I have run into the problem earlier described
under the subject new beta (Marco Pessotto). The file processed nicely
until then. I use gentium as the main font.

\definefont[gentium][Xserif][name:Gentium at 12pt]

Gentium currently does not have good support for math fonts.
Xits gives the best results for math, it appears at the moment.

Alan
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize


Am 24.09.2011 um 11:29 schrieb R. Ermers:

Dear all,
After my update a few days ago I have run into the problem earlier described
under the subject new beta (Marco Pessotto). The file processed nicely
until then. I use gentium as the main font.

\definefont[gentium][Xserif][name:Gentium at 12pt]

What do you want to achieve with the line above because it doesn’t make any
sense.

When you want to change the main font to Gentium you can do this with
“\setupbodyfont[gentium]”.

\setupbodyfont[gentium]

\starttext

\startitemize
\startitem One \stopitem
\startitem Two \stopitem
\stopitemize

\stoptext

Wolfgang

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote:

But I use very, very little math, only once or twice, as in  7$^{th}$, but I
could solve that otherwise.

You may want to use 7\high{th}.

My main problem occurs in itemization. Please have a look at this:

l.741 \item h
et type van de abc abc abc
?
! \textfont0 is undefined (character 8226).

1. Are you using mkiv (or mkii)?
2. Would you provide a minimal example?

Alan
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

Thanks for all your replies!

I changed the superscript e into \high{e}. There is one other math item:
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

Thanks again for looking into this problem.

Regards,

Robert

+++

\enableregime[utf]
\setuppapersize[A4][A4]

\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment

%\setmainfont[Antykwa Poltawskiego]

\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk

\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm

\setupinitial
[state=start,
n=3,
distance=.15pc,
font=SerifBold,
]
\definefontfeature
[arabic]
[mode=node,language=dflt,script=arab,ccmp=yes,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]

\usemodule[t][simplefonts]
\setuplayout
[width=148mm,height=268mm\relax,
backspace=25mm,topspace=20mm,
footer=5mm,footerdistance=8mm,
%rightmargin=\zeropoint,
location=middle,marking=off]
\setupwhitespace[halfline]

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]

\setuplanguage[nl]
[leftquote=\upperleftsinglesixquote,
rightquote=\upperrightsingleninequote,
leftquotation=\leftguillemot,
rightquotation=\rightguillemot]
\mainlanguage[nl]
\hyphenation{lam-pet-stel}

\definefloat[figureonder][figure]
\definefloat[edgefigure][figure]
\setupcaption[figure][location=right]
\setupcaption[figureonder][location=bottom]
\setupcaption[edgefigure][location=bottom]
\setupfloat[edgefigure]
[leftmargindistance=-\leftmargintotal,rightmargindistance=-\rightmargintotal,
default={outer,low},criterium=.67\textwidth,numbering=no]
\setupcaptions[width=max,align=middle,style=small,number=no]

\defineitemgroup[ongenummerd][levels=3]
\setupitemgroup[ongenummerd][1][5]
\setupitemgroup[ongenummerd][2][4]
\setupitemgroup[ongenummerd][2][3]
\defineitemgroup[genummerd][levels=3]
\setupitemgroup[genummerd][1][n]
\setupitemgroup[genummerd][2][a]
\setupitemgroup[genummerd][2][r]
\setuptolerance[horizontal,verytolerant] %hyphenation

\setuppagenumbering[state=start,alternative=doublesided,location=footer,style=bold]

[{\getmarking[subsectionnumber]\enskip\getmarking[subsection]}]
[]
[]
[{\getmarking[sectionnumber]\enskip\getmarking[section]}]%

\defineblankmethod[nobreak]{\penalty\plustenthousand}
\defineblankmethod[endgraf]{\endgraf}

\definepagebreak[chapter][yes,empty,right]
\setupinmargin[location=both,line=1,align=normal,stack=yes,style=small,color=red,distance=5mm]

\hyphenation{ver-ant-woor-de-lijk-heid}
\setupindenting[yes,medium,first]
\setupfloats[indentnext=no]
\setupnote[footnote][textstyle=,numbercommand=,margindistance=8mm,rule=off,before=,interaction=yes,align={normal,hyphenated}]

\setupinteraction[style=]

\define[2]\QuotationCommand
{
\setupindenting[no]
\switchtobodyfont[arial,10pt]
\textrule{#1}\blank \vfil\nobreak\penalty1\endgraf
\startcolumns#2\stopcolumns
\hspace \nobreak\penalty1000
\textrule
}

\usetypescriptfile[type-gentium]

\setupbodyfont[gentium,11pt]
\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]
\setupalign[hz,hanging]

\setuplettrine[Nindent=0pt,Lines=2,Oversize=0,TextFont=\sc]
\setuplettrine[T][Findent=0.2em,Hang=.12,TextFont=\sc]
\setuplettrine[A][Slope=0.4em,Findent=0.2em,Hang=0.12]
\setuplettrine[V][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\setuplettrine[W][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\sethyphenatedurlnormal{:=?}
\sethyphenatedurlbefore{?}
\sethyphenatedurlafter {:=}
\setupbackground[frame=on]
\setupexternalfigures[directory={./../../MOP}]

\setupitemize[1][paragraph,atmargin][width=3mm,distance=5pt,itemalign=flushleft,indentnext=no]
\setupitems[align=right]
\starttext
\lettrine{E}{lk} mens wordt gevormd door zijn omgeving
\startitemize
\item het type van de
\item ideeën over
\item de koeien
\item overige factoren (zoals paarden)
\stopitemize

The text continues ... The text continues The text continues The text continues
\stoptext

Op 25 sep 2011, om 13:39 heeft Alan Braslau het volgende geschreven:

On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote:

But I use very, very little math, only once or twice, as in  7$^{th}$, but I
could solve that otherwise.

You may want to use 7\high{th}.

My main problem occurs in itemization. Please have a look at this:

l.741 \item h


### Re: [NTG-context] math signs in itemize


Am 25.09.2011 um 15:08 schrieb R. Ermers:

I changed the superscript e into \high{e}. There is one other math item:
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

1. The example runs without errors on my machine.
2. This example *isn’t* minimal.
3. There are a few unnecessary things in your code.

Wolfgang

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize


On Sun, 25 Sep 2011, Wolfgang Schuster wrote:

Am 25.09.2011 um 15:08 schrieb R. Ermers:

I changed the superscript e into \high{e}. There is one other math item:
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

1. The example runs without errors on my machine.
2. This example *isn’t* minimal.
3. There are a few unnecessary things in your code.

An alternative is to use

\definesymbol[1][\textbullet]

As an added benefit, it gives a better output when exporting to xhtml.

Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


### Re: [NTG-context] math signs in itemize


Am 25.09.2011 um 20:36 schrieb Aditya Mahajan:

On Sun, 25 Sep 2011, Wolfgang Schuster wrote:

Am 25.09.2011 um 15:08 schrieb R. Ermers:

I changed the superscript e into \high{e}. There is one other math item:
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

1. The example runs without errors on my machine.
2. This example *isn’t* minimal.
3. There are a few unnecessary things in your code.

An alternative is to use

\definesymbol[1][\textbullet]

As an added benefit, it gives a better output when exporting to xhtml.

You can get text symbols for itemize with “\setupsymbolset[text]”.

Wolfgang
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize

Thanks for all advices!

I solved the problem, at least partially.

I now use \usetypescriptfile[type-gentium]
For some reason I have to change the signs in the unnumbered lists.

My one and only math item -- $\frac1{40}$ -- does cause a problem though.
Apparently there is no math fallback.

Any suggestions?

Regards

Robert

Op 25 sep 2011, om 20:45 heeft Wolfgang Schuster het volgende geschreven:

\definesymbol[1][\textbullet]

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] math signs in itemize


On Mon, 26 Sep 2011, R. Ermers wrote:

My one and only math item -- $\frac1{40}$ -- does cause a problem though.
Apparently there is no math fallback.

Hard to say without an example.

Any suggestions?

Use text mode fractions! \frac{1}{40}.

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### [NTG-context] math signs in itemize

Dear all,
After my update a few days ago I have run into the problem earlier described
under the subject new beta (Marco Pessotto). The file processed nicely until
then. I use gentium as the main font.

\definefont[gentium][Xserif][name:Gentium at 12pt]
See more details underneath.

I am right before a deadline, so any help is welcome.

Kind regards,

Robert

Snippets from log file:

structuresectioning  subsection @ level 4 : 0.0.1.1 - Sociale vorming
! Math error: parameter \Umathquad\displaystyle is not set.

system   tex  error on line 741 in file asp87b.tex: Math error:
parameter \Umathquad\displaystyle is not set ...

\mathematics ...rmalstartimath #1\normalstopimath
\fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
\relax }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
\fi \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
\relax }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
\fi \fi
}
...
l.741 \item h
et type van de abc abc abc
?
! \textfont0 is undefined (character 8226).

system   tex  error on line 741 in file asp87b.tex: \textfont0 is
undefined (character 8226) ...

I use context version: 2011.05.18 18:04.

/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-italic.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-bold.otf/prog2/context2/tex/texmf-fonts/fonts/data/opentype/public/tex-gyre/texgyretermes-regular.otf
mkiv lua stats   used config file  -
selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   -
/prog2/context2/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   input load time   - 0.005 seconds
mkiv lua stats   stored bytecode data  - 285 modules, 60 tables, 345 chunks
mkiv lua stats   loaded tex modules- 4 requested, 4 found (*-newmat
t-annotation t-lettrine t-simplefonts), 0 missing
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 11 lists of 426
mkiv lua stats   node memory usage - 62 hlist, 2 vlist, 256 disc, 3
math, 369 glue, 134 kern, 26 penalty, 1 noad, 1 math_char, 1875 glyph, 877
attribute, 106 glue_spec, 183 attribute_list, 2 temp, 7 if_stack, 8 local_par,
3 dir, 2 late_lua
mkiv lua stats   node list callback tasks  - 6 unique task lists, 6 instances
(re)created, 4004 calls
mkiv lua stats   used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats   loaded patterns   - en::2 nl::1
mkiv lua stats   callbacks - 4337 direct, 5407 indirect, 9744
total
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 17 lpath
calls, 6 cached calls
mkiv lua stats   result saved in file  - asp87b.pdf
mkiv lua stats   loaded fonts  - 4 files: lmmono10-regular.otf
texgyretermes-bold.otf texgyretermes-italic.otf texgyretermes-regular.otf
mkiv lua stats   fonts load time   - 1.036 seconds
mkiv lua stats   math processing time  - 2.428 seconds
mkiv lua stats   graphics processing time  - 0.003 seconds including tex, 1
processed images
mkiv lua stats   luatex banner - this is luatex, version
beta-0.70.1-2011051908 (rev 4277)
mkiv lua stats   control sequences - 30844 of 165536
mkiv lua stats   current memory usage  - 33 MB (ctx: 34 MB)
mkiv lua stats   runtime   - 5.377 seconds, 3 processed pages,
3 shipped pages, 0.558 pages/second

___