Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 16:47, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: I get errors when using \MC - see example below. The \NR before \stopmathcases is missing in all your examples. OK. Though I know it, it is hard to get used to, coming from LaTeX. But the spacing is wrong:

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Pablo Rodriguez
On 07/07/2015 05:41 PM, Arthur Reutenauer wrote: [...] That's because the word you're trying to hyphenate is Amsterdam-Buitenveldert, not Amsterdam. Compound words are by default hyphenated only at the hyphen in TeX. \setbreakpoints[compound] works in the following sample:

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Arthur Reutenauer
On Tue, Jul 07, 2015 at 03:29:11PM +, Meer, H. van der wrote: The \hyphenatedword works here too. But it does not work out when the word Amsterdam occurs in the text. See tthe two examples. In the first Amsterdam is not broken according to the \hyphenation{Am-ster-dam}-rule. In the second

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 04:46, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with

[NTG-context] Environments

2015-07-07 Thread Hans Aberg
ConTeXt does not seem to have LaTeX style environments. FYI, for the latter, I developed [1] a long time ago more advanced ones: The environments admit hooks, i.e., code executed before and after the local group. The name can be omitted in the closing, which works also when using one

Re: [NTG-context] Environments

2015-07-07 Thread luigi scarso
On Tue, Jul 7, 2015 at 10:49 AM, Hans Aberg haber...@telia.com wrote: ConTeXt does not seem to have LaTeX style environments. FYI, for the latter, I developed [1] a long time ago more advanced ones: The environments admit hooks, i.e., code executed before and after the local group. The name

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 20:17, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You can set the alignment for each column in a matrix with the align key. \definemathmatrix [aligned] [n=2, align={right,left}, distance=\spaceamount] \starttext \startformula J^j:

Re: [NTG-context] Math alignment

2015-07-07 Thread Wolfgang Schuster
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 20:53 On 7 Jul 2015, at 20:17, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: You can set the alignment for each column in a matrix with the align key. \definemathmatrix [aligned] [n=2, align={right,left},

Re: [NTG-context] Math alignment

2015-07-07 Thread Wolfgang Schuster
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 21:11 On 7 Jul 2015, at 20:17, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: You can set the alignment for each column in a matrix with the align key. FYI, the document amshelp.pdf says that AMS-LaTeX environments align, align*,

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 21:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You should google for mathalign.pdf which explains and shows examples for the matrix, cases etc. environments. To get the same result as your LaTeX example you can use the m key for \startalign.

Re: [NTG-context] Math alignment

2015-07-07 Thread Wolfgang Schuster
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 18:23 On 7 Jul 2015, at 16:47, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: I get errors when using \MC - see example below. The \NR before \stopmathcases is missing in all your examples. OK. Though I know it, it is hard to get

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 20:17, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You can set the alignment for each column in a matrix with the align key. FYI, the document amshelp.pdf says that AMS-LaTeX environments align, align*, and aligned, can have multiple alignments, and gives this

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 21:18, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: I have also put in an extra alignment to see what happens, monospace code alignment style. Changing ‘left’ to ‘right did not seem to have any effect here. Can you see the effect of the alignment?

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Meer, H. van der
Indeed, the combination Amsterdam-Buitenveldert is the culprit. The solution therefore is to use (it is ConTeXt afterall) Amsterdam|-|Buitenveldert, then the word Amsterdam doesn't even needs an exception. Thanks for the help. Hans van der Meer On 07 Jul 2015, at 18:00, Pablo Rodriguez

Re: [NTG-context] Math alignment

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 21:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You should google for mathalign.pdf which explains and shows examples for the matrix, cases etc. environments. It looks rather basic, except for last formula of section 9. The document amshelp.pdf, ch. 7, has

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Meer, H. van der
The \hyphenatedword works here too. But it does not work out when the word Amsterdam occurs in the text. See tthe two examples. In the first Amsterdam is not broken according to the \hyphenation{Am-ster-dam}-rule. In the second example the linebreak is forced by the explicit use of

Re: [NTG-context] Environments

2015-07-07 Thread Hans Aberg
On 7 Jul 2015, at 11:05, luigi scarso luigi.sca...@gmail.com wrote: For LaTeX style environments do you mean e.g. https://it.sharelatex.com/learn/Environments ? (just to be sure ) Yes, the \begin{foo} … \end{foo} syntax. Technically, an environment means that variables are stacked in a

[NTG-context] hyphenation exceptions?

2015-07-07 Thread dr. Hans van der Meer
Has something happened to hyphenation? The following does not work \language[nl] \startexceptions[nl] Am-ster-dam \stopexceptions Neither does \hyphenation{Am-ster-dam} Only in the context-source Am\-ster\-dam is working. How to load a series of hyphenation exceptions instead of explicitely

Re: [NTG-context] Environments

2015-07-07 Thread Manuel Blanco
Your code in the .sty is a little bit unconventional. In any case, the most common in LaTeX is to use etoolbox package. \usepackage{etoolbox} \newenvironment{env}{whatever goes here}{whatever goes here} \AtBeginEnvironment{env}{begin environment} \AtEndEnvironment{env}{end

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Pablo Rodriguez
On 07/07/2015 03:33 PM, dr. Hans van der Meer wrote: Has something happened to hyphenation? The following does not work \language[nl] \startexceptions[nl] Am-ster-dam \stopexceptions Neither does\hyphenation{Am-ster-dam} Hi Hans, using latest beta from 2015.07.01 21:40, both options

Re: [NTG-context] Math alignment

2015-07-07 Thread Wolfgang Schuster
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 10:30 On 7 Jul 2015, at 04:46, Wolfgang Schusterschuster.wolfg...@gmail.com wrote: The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems