Re: [NTG-context] math signs in itemize

2011-09-26 Thread Wolfgang Schuster

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
___
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
___


Re: [NTG-context] math signs in itemize

2011-09-26 Thread 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.

How about:
\definetypeface [xits] [mm] [math] [xits] [default]

Alan
___
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
___

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Wolfgang Schuster

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
___
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
___


Re: [NTG-context] math signs in itemize

2011-09-26 Thread Paul Menzel
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
___
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
___

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Khaled Hosny
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
___
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
___

Re: [NTG-context] math signs in itemize

2011-09-26 Thread R. Ermers
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
 ___
 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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread Alan Braslau
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
___
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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread Wolfgang Schuster

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



___
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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
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]
\setupheader[text][location=text,state=high,strut=yes,after=\vskip-0.8em\thinrule]
\setupfootertexts[{\tfx \copyright R. Ermers}][][][{\tfx \copyright R. Ermers}]
\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,
header=12pt,headerdistance=15mm,
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]

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

\setuphead[part][placehead=no]
\defineblankmethod[nobreak]{\penalty\plustenthousand}
\defineblankmethod[endgraf]{\endgraf}
\setuphead[section][grid=line]

\setupheader[style=small]

\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]
\setupfootnotedefinition[location=left,distance=1em,headalign=flushleft]
\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
}

\definetypeface[braqqadocio][ss][Xsans][Braqqadocio]
\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

2011-09-25 Thread Wolfgang Schuster

Am 25.09.2011 um 15:08 schrieb R. Ermers:

 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.

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

___
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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread Aditya Mahajan

On Sun, 25 Sep 2011, Wolfgang Schuster wrote:



Am 25.09.2011 um 15:08 schrieb R. Ermers:


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.


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.

Aditya___
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
___

Re: [NTG-context] math signs in itemize

2011-09-25 Thread Wolfgang Schuster

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:
 
 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.
 
 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
___
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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
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]

___
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
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread 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}.

Aditya
___
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
___