[NTG-context] Reconciling unicode-math with LaTeX2e mathematics

2015-11-30 Thread Maggyero
Is there a plan to have in ConTeXt the same kind of math behavior that Will
Robertson implemented in the last version of his unicode-math LaTeX package
(\mathrm, \mathit, \mathbf, \symrm, \symit, \symbf, etc.)? Because ConTeXt
currently has the same math/text spacing issues in math mode that the old
unicode-math package had.

Will Roberston's talk (20 July 2015):

https://www.youtube.com/watch?v=FW9Cwh9sj5w
___
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] Command definitions in ma-cb-en.tex

2015-11-30 Thread Aditya Mahajan

On Sun, 29 Nov 2015, Jan U. Hasecke wrote:


Hi all,

this is a stupid question, I fear: In "ConTeXt Mark IV an excursion" in
appendix A I see many command definitions. I browsed the sources of this
document but could not find the point where these list is defined.

I know that in setup-en.pdf there is an even longer list, but I could
not find the source of this document.

Can anyone shed some light on this mechanism?


This is implemented using XML interface. See, for example, cont-en.xml in 
$TEXMF/texmf-context/tex/context/base/interface


The schema is documented at http://wiki.contextgarden.net/Interface.rnc

The XML to TEX mappings are defined in x-set-11.mkiv. The basic usage is

\usemodule[int-load] % synonym to x-set-11
\loadsetups[] % name of xml file

\starttext

\showsetup{command-name}

\stoptext

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] Reconciling unicode-math with LaTeX2e mathematics

2015-11-30 Thread Hans Hagen

On 11/30/2015 6:20 PM, Maggyero wrote:

Is there a plan to have in ConTeXt the same kind of math behavior that
Will Robertson implemented in the last version of his unicode-math LaTeX
package (\mathrm, \mathit, \mathbf, \symrm, \symit, \symbf, etc.)?
Because ConTeXt currently has the same math/text spacing issues in math
mode that the old unicode-math package had.


you need to be more explicit about the problems you encounter (minimal 
examples for instance)


the (unicode) math implementation of context has been around for many 
years now and the basic approach is unlikely to change


of course is something is wrong we fix it (given that it fits within the 
unicode / opentype possibilities)


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
___

Re: [NTG-context] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Sytse Knypstra

Thank you, Wolfgang,

I changed 'special' into another word and replaced 'incrementnumber=yes' 
by 'incrementnumber=list'.

But the result does still not reach my second goal:
my exercise numbers are still 1 and 1 instead of having chapter number 
prefixes (1.1 and 2.1).


Sytse

Sytse Knypstra 
30. November 2015 um 13:06
Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter 
number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

Please use a different name because \special is a existing TeX command 
(but not used by ConTeXt MkIV).

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]

Use only "incrementnumber=list".

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
___

[NTG-context] \rm for greek letters in math mode

2015-11-30 Thread Kate F
I see the third \delta here as italic, where I would have expected it
to be in roman, as for the "d" example below. Likewise for all greek
letters, I think.

Why is that? How can I have these in roman?

\starttext
\delta $\delta {\rm \delta}$\crlf
d $d {\rm d}$
\stoptext

Thanks,

-- 
Kate
___
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] meaning of error message?

2015-11-30 Thread Wolfgang Schuster

Alan Bowen 
29. November 2015 um 14:49
Hi, Wolfgang—

at line 34, I have \Query
which is defined:
\definehighlight[Query][color=magenta,style=bold]

There also instances of \emph (\definehighlight[emph][style=italic]) 
at lines 41 and 58.
You have create a minimal example (or provide your source offlist) 
because I wasn’t able to reproduce the error with your code snippet.


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] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Wolfgang Schuster

Sytse Knypstra 
30. November 2015 um 13:06
Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter 
number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

Please use a different name because \special is a existing TeX command 
(but not used by ConTeXt MkIV).

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]

Use only "incrementnumber=list".

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
___

[NTG-context] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Sytse Knypstra

Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]


\setuplist[special][]

\definecombinedlist[content][chapter,section,special]



\defineenumeration[exercise]

[
text={},
way=bychapter,

prefix=chapter,

] 


\starttext

\placecontent

\chapter{First chapter}

\section{First section}

\special{Exercises}

\startexercise

This is my first exercise

\stopexercise

\chapter{Second chapter}

\special{Remaining exercises}

\startexercise

   Second exercise

\stopexercise

\stoptext

%%%

___
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] natural tables and columndistance/spaceinbetween

2015-11-30 Thread Wolfgang Schuster

Alan BRASLAU 
26. November 2015 um 02:44
In natural tables
http://wiki.contextgarden.net/TABLE

the parameters
columndistance=dimension,
and
spaceinbetween=dimension,
will set the gaps between columns and rows, respectively.

Is there some way of specifying row gaps for specific rows?
For example, say that I only want a gap after the first row.
I tried:

\bTABLE
\bTR [spaceinbetween=.25em]
\bTD 1 \eTD
\bTD 2 \eTD
\eTR
\bTR
\bTD A \eTD
\bTD B \eTD
\eTR
\bTR
\bTD a \eTD
\bTD b \eTD
\eTR
\eTABLE

Alternately, I tried
\setupTABLE [r][1][spaceinbetween=.25em]

but these do not work.


One might think about trying

\bTR [bottomframe=on,framecolor=white,rulethickness=.25em]
...
\eTR

but this presents several problems:
1) When using background=color, the background color gives a hairline
overflow beyond the rule, at least using the pdf viewers that I have on
my computer.
2) there appears to be some interference between setting rulethickness
and columndistance, so that spaces between columns disappear when
putting a thick bottomframe. Of course, one could kludge a column
separation using a rightframe, but this is not satisfactory.
3) The use of a white rule when one really wants to leave some space is
not very satisfying.

Does anyone have any suggestions?
You can use the boffset key to set a different offset value for the 
bottom of the cell.


The correct the position of the frame at the bottom you can use metapost 
to draw

the frame as background graphic.

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
___