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

2015-12-02 Thread Maggyero
cing in math mode), and let me know what you think. Maggyero math_mode_fonts.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

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

2015-12-02 Thread Maggyero
cing in math mode), and let me know what you think. Maggyero math_mode_fonts.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

[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

[NTG-context] Changing font for math function

2015-05-16 Thread Maggyero
{affinity}$\par % kerning and ligatures of TEXT mode with math font \end{document} ConTeXt: \starttext affinity\par $\mathrm affinity$\par % kerning and ligatures of MATH mode with math font \stoptext Maggyero

[NTG-context] Changing font for math function

2015-05-15 Thread Maggyero
): \definemathfunction[arsinh]{Arsinh} $\arsinh x$ \definemathfunction[arsinh][op]{Arsinh} $\arsinh x$ or equivalently \definemathfunction[arsinh][limop]{Arsinh} $\arsinh x$. Maggyero ___ If your question is of interest

[NTG-context] 2 issues in phys-dim.mkiv

2015-05-15 Thread Maggyero
I've tried the unit interface today, and I've noticed two issues with the following example: \setupunits[alternative=text] \starttext $\unit{-4.6e-3 km s^-1}$ \stoptext 1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine) are converted to hyphens with the 'text' unit

[NTG-context] Changing font for math function

2015-05-13 Thread Maggyero
$ or equivalently \definemathfunction[arsinh][limop]{Arsinh} $\arsinh x$. Maggyero ___ 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

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
\backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \stopmyparagraphs \stoptext Maggyero ___ If your question

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
: \starttext \startformula \function{lim}_{x\to a} f(x)\quad \function[op]{lim}_{x\to a} f(x)\quad \function[limop]{lim}_{x\to a} f(x) \stopformula \stoptext — Third typo: \definemathcommand[arsinh][op]{\mathlabel{arsinh}} \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} Maggyero

[NTG-context] Compilation error with \ifnum

2015-05-05 Thread Maggyero
\mathcode`\:603A\relax} \endgroup \definemathcommand[xyz][nolop]{\newmcodes@ \kern\zeropoint\mfunction{fancy-function-name'*.:}} \starttext $\xyz$ \stoptext Error: tex errorerror on line 13 in file /Users/maggyero/Desktop/test.tex: ! Extended mathchar used as mathchar (4203026) to be read

[NTG-context] Invisible floor and ceil math delimiters

2015-05-05 Thread Maggyero
Dear members, Why the floor and ceil math delimiters don't display? Code: \starttext \startformula \Bigl\lfloor \frac{x}{y}\Bigr\rfloor \stopformula \startformula \Bigl\lceil \frac{x}{y}\Bigr\rceil \stopformula \stoptext Thank you in advance. Maggyero

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
? Maggyero ___ 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

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
of \newmcodes@? 2. What is the point of \definemathcommand? Maggyero ___ 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

[NTG-context] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-27 Thread Maggyero
Mr Hagen, is it the expected behaviour? \starttext The delimiters are correctly displayed: \startformula \left\lfloor \frac{x}{y}\right\rfloor \stopformula The delimiters vanish: \startformula \Bigl\lfloor \frac{x}{y}\Bigr\rfloor \stopformula \stoptext Maggyero

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-27 Thread Maggyero
`\-\relax \fi \mathcode`\-45\mathcode`\/47\mathcode`\:603A\relax} \endgroup so that the following code can compile in ConTeXt: \definemathcommand[xyz][nolop]{\newmcodes@ \kern\zeropoint\mfunction{fancy-function-name'*.:}} Maggyero

[NTG-context] ConTeXt equivalent of \newmcodes@

2015-04-26 Thread Maggyero
Dear list members, What is the ConTeXt equivalent of the LaTeX function \newmcodes@ defined in the AMSopn package (this function is used inside \DeclareMathOperator and \operatorname and has the effect of resetting text-mode punctuation characters such as *, -, /, :, and ’ in operator names)?

[NTG-context] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-25 Thread Maggyero
MWE: \starttext The delimiters are correctly displayed: \startformula \left\lfloor \frac{x}{y}\right\rfloor \stopformula The delimiters vanish: \startformula \Bigl\lfloor \frac{x}{y}\Bigr\rfloor \stopformula \stoptext Maggyero

[NTG-context] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-24 Thread Maggyero
, \Biggr). Do I use the right commands? Or could the developers fix that? Thank you in advance. Maggyero ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] Flushed right formula numbers in cases environment

2014-09-14 Thread Maggyero
I want to have the formula numbers of cases environment flushed on the right like for regular formulas (not the default numberdistance=2.5\emwidth). How can I do that? \starttext \startplaceformula \startformula \startcases \NC x = 1 \NR[+] \NC y = 1 \NR[+]

[NTG-context] Two issues with character alignment

2014-09-04 Thread Maggyero
I have found two issues with character alignment (see the following minimal example): one when \\ is used in a cell instead of \crlf, another one when \high or \low are used in a cell. Is it a bug? \starttext \setupTABLE[% aligncharacter=yes, alignmentcharacter=., align=middle]

[NTG-context] Subformula numbering problem

2014-08-18 Thread Maggyero
No. Wolfgang This used to work, how is it possible that it does not work anymore? \starttext \startsubformulas[eq:equation] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] \startformula c^2 = a^2 + b^2 \stopformula \stopsubformulas

[NTG-context] Subformula numbering problem

2014-08-15 Thread Maggyero
Is there a solution to the problem? ___ 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 :

[NTG-context] Subformula numbering problem

2014-08-13 Thread Maggyero
The second formula has NO NUMBER (example taken from the ConTeXt Garden's Math/Display page): \starttext \startsubformulas[eq:1] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] \startformula c^2 = a^2 + b^2 \stopformula \stopsubformulas Formula

[NTG-context] Height fitting with row spanning in a table

2014-07-15 Thread Maggyero
I have finally found a not perfect solution: setting manually the height of the bar cell shrinks the foo cell (setting height=fit for the foo cell does not work). \starttext \startTABLE \NC foo \NC[nr=2] \input knuth \NC \NR \NC[height=28ex] bar\NC

[NTG-context] Height fitting with row spanning in a table

2014-07-11 Thread Maggyero
How can I stretch the height of the foo cell to fit its content? \starttext \startTABLE \NC foo \NC[nr=2]\input knuth \NC \NR \NC bar \NC \NR \stopTABLE \stoptext ___ If your

[NTG-context] Height fitting cell contents while using row spanning in other columns of a table

2014-07-09 Thread Maggyero
How can I stretch the height of the x cell (in my example) to fit the x cell content? I have tried with extreme tables and natural tables but without success. \starttext With extreme tables (y cell content fitted by default):\crlf \startxtable \startxrow \startxcell[nr=2]\input knuth

[NTG-context] Character alignment in math mode

2014-06-25 Thread Maggyero
\let\Test\fontstylesuffix a bit different output Thank you Hans. The command \mathgreekitalic can only be used in math mode, when you want a italic alpha in text mode you need a font which has greek characters (e.g. Gentium). Okay Wolfgang, I thought Latin Modern also had greek characters,

[NTG-context] Character alignment in math mode

2014-06-24 Thread Maggyero
How can one use character alignment in math mode? (I am using the last stable ConTeXt version — 2014.05.21.) \starttext \setupTABLE[column][first][alignmentcharacter={,}, aligncharacter=yes, align=middle] Figures in text mode get aligned: \startTABLE \NC 0,0 \NC \NR \NC 0,00\NC

[NTG-context] Character alignment in math mode

2014-06-24 Thread Maggyero
why use math here? It was to avoid oldstyle figures that I use by default. But finally it's better to use oldstyle figures even in tables. Another question about fonts. Is there a way to define a conditional mathcommand based on the current alternative style? For instance, in the following

[NTG-context] Character alignment in math mode

2014-06-24 Thread Maggyero
You can access the current font alternative with the \fontalternative command Thanks Wolfgang, that was exactly the command I was looking for! A last question: how can one get italic greek in TEXT MODE? The following code displays upright greek. \starttext \mathgreekitalic \alpha \stoptext

[NTG-context] Two levels of itemization with the 'intext' option

2014-06-05 Thread Maggyero
Aditya finally gave me a great solution on Stack Exchange: One way to achieve this is to explicitly set the width of each symbol, and align the symbol to the right. Visually, this is give the output that you want. For example: \definesymbol[emdash][---] \setupitemize[1][packed,

[NTG-context] Two levels of itemization with the 'intext' option

2014-06-02 Thread Maggyero
Hello, How can I get the output given by the following code with the itemize environment? \starttext \quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto

[NTG-context] Italic small capitals with Latin Modern font

2014-05-23 Thread Maggyero
How can I use Latin Modern italic small capitals? I have seen on a previous thread that small caps are separated in an other file for Latin Modern font and that one should load it to use them in italic, but there was no example given to achieve that. Minimal example: \starttext \it \sc \input

[NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-22 Thread Maggyero
I have found how to get the conversion of numbers in references (the 'prefixconversion' key in '\setupreferencestructureprefix' command), but I still do not know how to change their style. I have tried the 'style' key and 'prefixstyle' key but without success. After checking in ConTeXt source, I

[NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-22 Thread Maggyero
Thank you Wolfgang, your hack is perfect. Hans, what do you think about adding a style and color key in \setupreferencestructureprefix to avoid having to use this defineprocessor hack? And by the way, the name \setupreferencestructureprefix does not sound really natural to me because we are

[NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-21 Thread Maggyero
I would like to change the style and conversion of reference numbers for the \in{myprefix}{mysuffix}[mylabel] command. Is there a \setupreference[numberstyle=, numberconversion=] command to do that? ___ If your

[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-14 Thread Maggyero
Try this: \setupheadertexts[{\convertnumber{Romannumerals}{\namedheadnumber{chapter}}\quad\getmarking[chapter]}] Thanks Wolfgang! ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Bug in s-pre-60.mkiv module

2014-05-14 Thread Maggyero
I have to use this hack to make section titles appear when I use section blocks (Hans, could you have a look at this bug of your s-pre-60.mkiv module when you have time please?): \usemodule[pre-60] \setupinteraction[state=start] \starttext \startfrontmatter \StartSteps % -- Hack

[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-09 Thread Maggyero
Hello, How can I achieve this chapter numbering? — page 1: I My chapter (header) - First My chapter (text) — page 2: II My chapter (header) -- II My chapter (text) That is to say having every chapter number in roman numeral except the first one but only in

[NTG-context] Empty heads after leading whitespace

2014-05-06 Thread Maggyero
after={\blank[0em]\blank[disable]}] Yes it also works, thank you Thangalin. So here is the final solution (I have added the 'nowhite' keyword in the second blank to kill whitespaces when they are active) to get real empty heads (sections here) in the document: \setupwhitespace[line]

[NTG-context] Empty heads after leading whitespace

2014-05-05 Thread Maggyero
Avoid vskip. Do you have a better solution? ___ 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

[NTG-context] Head titles and section blocks bug in s-pre-60.tex module

2014-05-05 Thread Maggyero
Hans, I think there is a bug in your s-pre-60.tex module regarding the step mechanism interacting with section blocks: the head titles disappear each time ConTeXt starts a new section block. I have found a way to solve this problem by putting \StartSteps\StopSteps (empty pair, and it works also

[NTG-context] Empty heads after leading whitespace

2014-05-04 Thread Maggyero
For those who are interested, I've finally solved my problem (the vertical space before a subsection which was not automatically swallowed at the top of a page when the page started with an empty section) by using the pair 'after={\vskip 0em\blank[disable]}' for sections: \setuphead [section]

[NTG-context] Empty heads after leading whitespace

2014-05-03 Thread Maggyero
A more explicit minimal example of the problem: \setupheadertexts[section] \setuphead[section][% placehead=empty, before=, after=] \setuphead[subsection][% placehead=yes, before={\blank[line]}, after={\blank[line]}] \starttext \showframe \section{My section}

[NTG-context] Empty heads after leading whitespace

2014-05-03 Thread Maggyero
Thanks Wolfgang. I could even have sections in the TOC with '\setuptexttexts[{\placerawheaddata[section]}]'. However, how can I start a new page at each new section? The 'page=yes' pair does no longer work with your solution 'placehead=hidden' (since the head is not placed I guess). I also tried

[NTG-context] Empty heads after leading whitespace

2014-05-01 Thread Maggyero
before=\empty, \empty is not even required. The problem with your solution (setting 'before=' i.e. empty) is that there is also no whitespace before a subsection which doesn't start on a new page. Any better ideas?

[NTG-context] Empty heads after leading whitespace

2014-04-30 Thread Maggyero
Hello, Here after is my problem: \setuphead[section][% placehead=empty, before=, after=] \setuphead[subsection][% placehead=yes, before={\blank[line]}, after={\blank[line]}] \setupheadertexts[section] \starttext \showframe \section{My section} \subsection{My subsection

[NTG-context] Paragraph itemizes

2014-04-29 Thread Maggyero
Hello, How do you setup your itemize environment to get a formatting in paragraph fashion, that is to say without margins at the second, third, etc. lines of each item, like this: 1. one one one one one one one one one one one one one one one one one one one one 2. two two two two two two two

[NTG-context] Paragraph itemizes

2014-04-29 Thread Maggyero
Use the “intext” keyword. This is exactly what I was looking for, thanks again Wolfgang! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Markings do not appear inside section block environments

2014-04-25 Thread Maggyero
\startbodymatter \marking[M]{Cool} Hello world! \stopbodymatter marks become nodes and these are bound to lines Thank you Hans. ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Markings do not appear inside section block environments

2014-04-23 Thread Maggyero
Is there a solution? \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext \startbodymatter Hello world! \stopbodymatter \stoptext ___ If your

[NTG-context] Getting the current chapter number in the TOC

2014-04-21 Thread Maggyero
Thank you Wolfgang, it works. ___ 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 :

[NTG-context] Markings do not appear inside section block environments

2014-04-21 Thread Maggyero
Hello, The following lines do display the markings: \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext Hello world! \stoptext but if I use a section block environment they do not: \definemarking[M] \marking[M]{Cool}

[NTG-context] Getting the current chapter number in the TOC

2014-04-17 Thread Maggyero
Hello, How can I get the following table of contents? Contents Chapter first MyTitle Chapter II MyTitle Chapter III MyTitle I have tried: \MyNumber{\doifelse{\currentsectioncountervalue}{1}{first}{#1}} setuplist[chapter][numbercommand=\MyNumber] but it does not work. Actually because

[NTG-context] Stoppers in captions also appear in references

2011-02-13 Thread maggyero
Hi, There is a problem with the references to figures (command \in[...]) when you put a stopper for the captions: the stopper also appears in the references. Here is a minimal example: \starttext \setupcaptions[numberstopper=\quad\emdash] \placefigure[][cow]{A cow}{\externalfigure[cow]}

[NTG-context] Controlling the space between the number and the title in heads

2011-02-13 Thread maggyero
Hi, How to control the space between the number and the title in heads? By default it seems there is a space of about 1 em. I want to change that space and set a normal space instead (a word space), since I've put a dot stopper after the numbers (\setupheads[stopper=.]). Example: 1.

[NTG-context] Two stopper bugs (tables of contents and head titles)

2011-02-13 Thread maggyero
Hi, I've noticed two bugs (I think) with stoppers: 1) Stoppers in table of contents When you set stopper=~ in \setuplist the stopper also appears for unnumbered heads of the table of contents (chapters, sections etc. that are in frontmatter and backmatter). 2) Stoppers in head titles When