Re: [NTG-context] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Hans Hagen

On 5/11/2015 12:50 AM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


On 5/10/2015 4:06 PM, Aditya Mahajan wrote:

$\left\langle x \right\rfloor$


they were not defined as pair (yet) ... done in next beta


As I said in the previous email,  \langle ... \rfloot are not typically
used together, so there is no need to add them as a fenced pair. I just
happened to use them together because I was testing whether other
delimiters are working or not.


one can pair anything fenced so also these (the main issue one doesn't 
pair but uses one only in which case tex has to be tricked)



(there is a special fences subsystem, also with some checking for
mismatch and so, needed for unattended processing as in mathml)


I did not know that these were enabled by default. I'll try to document
this behaviour because it can be quite surprising to someone coming from
plain tex or latex.


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] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Hans Hagen

On 5/10/2015 9:40 PM, Pablo Rodriguez wrote:

Hans,

many thanks for the explanation with \xmlsetup.

I have one more question for today concerning lpaths.

I have the following commands:

 \xmlsetsetup{\xmldocument}
 {span[@label]}
 {xml:logo}

 \xmlsetsetup{\xmldocument}
 {span[contains(@class,'tex\letterpercent-logo')]}
 {xml:tex:logo}

Is there no way to merge both in one? (The basic rule a|b doesn’t seem
to work here, altough I may be missing everything :-(.)


it all depends on what you want to do eventually

\xmlsetsetup{\xmldocument}
   {span[@label or contains(@class,'tex\letterpercent-logo')]}
   {xml:logo}

-
  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] Changing font for math function

2015-05-11 Thread Otared Kavian
Hi Aditya,

Thanks for your remark: indeed with the correct use of \underline, I get what 
was intended, but somehow before yesterday ConTeXt was more tolerant and for 
years it accepted my wrong definition of \liminf…
However, with the new features of \setupmathematics, the underlined word lim 
has two colors: for instance with the option
\setupmathematics [functioncolor=red]
the word lim is in red, but the underline is in black.

If I understand correctly, the option
\setupmathematics [functionstyle=\normalrm, functioncolor=red]
uses the normal roman font in math mode, that is math italic if for instance 
one is using LM roman as text font. Am I right?

A final question: assuming one needs somewhere a command named weak limit, that 
is \weaklim, I tried the following definition:
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
but I don’t get the word weaklim printed: what am I doing wrong?
Here is the example:

% begin weaklim.tex
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
\starttext

If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.

\stoptext
% end weaklim.tex 

Best regards: OK


 On 11 May 2015, at 04:47, Aditya Mahajan adit...@umich.edu wrote:
 
 On Sun, 10 May 2015, Otared Kavian wrote:
 
 Everything works fine, except that when one tries to modify, for instance 
 the definition of \liminf (in order to have it as an underlined lim), 
 ConTeXt reports an error.
 
 %\definemathcommand [liminf]  [limop] {\underline\mfunctionlabeltext{lim}}
 
 \underline{} takes an argument.
 
 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
 ___

___
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] Changing font for math function

2015-05-11 Thread Otared Kavian
Thanks Hans!
Out of curiosity I tried textcolor and textstyle as in
\setupmathematics [functionstyle=, functioncolor=darkred, 
textstyle=bold, textcolor=blue]
and discovered that these two work also… 
By the end of the week I’ll wikify these.

Thanks and best regards: OK


 On 11 May 2015, at 10:05, Hans Hagen pra...@wxs.nl wrote:
 
 On 5/11/2015 9:07 AM, Otared Kavian wrote:
 Hi Aditya,
 
 Thanks for your remark: indeed with the correct use of \underline, I get 
 what was intended, but somehow before yesterday ConTeXt was more tolerant 
 and for years it accepted my wrong definition of \liminf…
 However, with the new features of \setupmathematics, the underlined word lim 
 has two colors: for instance with the option
  \setupmathematics [functioncolor=red]
 the word lim is in red, but the underline is in black.
 
 you can set lots of colors so formulas can be real colorful
 
 If I understand correctly, the option
  \setupmathematics [functionstyle=\normalrm, functioncolor=red]
 uses the normal roman font in math mode, that is math italic if for instance 
 one is using LM roman as text font. Am I right?
 
 functionstyle=somedefinedtextstylealternative
 
 will box the stuff and uses the given fon, otherwise it will use whatever is 
 set and when nothing is set it will use mathupright (cf aditya's wish and 
 previous behaviour)
 
 A final question: assuming one needs somewhere a command named weak limit, 
 that is \weaklim, I tried the following definition:
  \definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
 but I don’t get the word weaklim printed: what am I doing wrong?
 Here is the example:
 
 % begin weaklim.tex
 \definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
 \starttext
 
 If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.
 
 \stoptext
 % end weaklim.tex
 
 it helps to define the label
 
 \setupmathlabeltext[en][weaklim=wlim]
 
 
 
 -
  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
 ___

___
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] Changing font for math function

2015-05-11 Thread Hans Hagen

On 5/11/2015 9:07 AM, Otared Kavian wrote:

Hi Aditya,

Thanks for your remark: indeed with the correct use of \underline, I get what 
was intended, but somehow before yesterday ConTeXt was more tolerant and for 
years it accepted my wrong definition of \liminf…
However, with the new features of \setupmathematics, the underlined word lim 
has two colors: for instance with the option
\setupmathematics [functioncolor=red]
the word lim is in red, but the underline is in black.


you can set lots of colors so formulas can be real colorful


If I understand correctly, the option
\setupmathematics [functionstyle=\normalrm, functioncolor=red]
uses the normal roman font in math mode, that is math italic if for instance 
one is using LM roman as text font. Am I right?


functionstyle=somedefinedtextstylealternative

will box the stuff and uses the given fon, otherwise it will use 
whatever is set and when nothing is set it will use mathupright (cf 
aditya's wish and previous behaviour)



A final question: assuming one needs somewhere a command named weak limit, that 
is \weaklim, I tried the following definition:
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
but I don’t get the word weaklim printed: what am I doing wrong?
Here is the example:

% begin weaklim.tex
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
\starttext

If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.

\stoptext
% end weaklim.tex


it helps to define the label

\setupmathlabeltext[en][weaklim=wlim]



-
  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] Bleeding pictures as floats?

2015-05-11 Thread Wolfgang Schuster

 Am 06.05.2015 um 07:06 schrieb Henning Hraban Ramm te...@fiee.net:
 
 […]
 
 \definemeasure[Bleed][3mm]
 \definemeasure[maxWidth][\dimexpr \paperwidth + \measure{Bleed}\relax]
 \definemeasure[maxHeight][\dimexpr \paperheight + 2\measure{Bleed}\relax]
 \definemeasure[topOffset][\dimexpr \topspace + \measure{Bleed}\relax]

You don’t have to use \dimexpr because the measure macros already us it.

 […]
 
 \definefloat[bleedfigure][figure]
 \setupfloat[bleedfigure][
   outermargindistance=-2\measure{Bleed},
   %leftmargindistance=-2\measure{Bleed},
   %rightmargindistance=-2\measure{Bleed},
   maxwidth=\measure{maxWidth}
 ]

There is only a “outermargin”  key but not “outermargindistance”.

 […]
 
 With this (perhaps not minimal) example I get nearly what I want, but the 
 image starts with the paper and is centered (x/y -1,5mm/0mm) where I want it 
 to start on -3mm/-3mm on a left page, 0mm/-3mm on a right page. I thought my 
 definitions should do that…

The space before the image isn’t fixed when you use \setuplayout[grid=yes] 
because ConTeXt has to change it to ensure the text after the floats stays on 
the page.

%\setuplayout[grid=yes] % uncomment to see how the space before the images 
changes

\showframe

\starttext

\chapter{Test}

\placefigure[top]{Dummy}{\externalfigure[dummy]}

\input tufte

\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] external figure sizing

2015-05-11 Thread Csikos Bela
Peter Münster írta:
On Sat, May 09 2015, Csikos Bela wrote:

 \placefigure, \externalfigure and combinations. The images should be scaled 
 to the
 same size, eg to .25\textwith and .3\textheight so that the  aspect ratios 
 of the images
 are kept and the appropriate value is used for width or height.

What is the appropriate value?

The calculated value which pairs with  or = to the other calculated value.
For example if  the height calculated for .25\textwidth is less than 
.3\textheight
then .25\textwidth else .3\textheight should be used for calculating the size of
the image.


 That is the smaller value from .25\textwith and .3\textheight is used
 for the image size.

The smaller value from .25\textwith and .3\textheight does only depend
on the layout, but not on the image.

Of course, but the layout determines how the images has to be scaled.

This is perhaps, what you need:  maxwidth=..., maxheight=...

Exactly, this is what I need. 

Thanks,

bcsikos
___
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] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Aditya Mahajan

On Mon, 11 May 2015, Hans Hagen wrote:


On 5/11/2015 12:50 AM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


On 5/10/2015 4:06 PM, Aditya Mahajan wrote:

$\left\langle x \right\rfloor$


they were not defined as pair (yet) ... done in next beta


As I said in the previous email,  \langle ... \rfloot are not typically
used together, so there is no need to add them as a fenced pair. I just
happened to use them together because I was testing whether other
delimiters are working or not.


one can pair anything fenced so also these (the main issue one doesn't 
pair but uses one only in which case tex has to be tricked)


OK.

Any hints about the missing \lfloor, \lceil with \big etc.?

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] Changing font for math function

2015-05-11 Thread Hans Hagen

On 5/11/2015 7:08 PM, Aditya Mahajan wrote:


\definealternativestyle [\v!sansnormal]  [\ss\tf]
%definealternativestyle [\v!sansbold][\ss\bf]
\definealternativestyle [\v!serifnormal] [\rm\tf]
\definealternativestyle [\v!serifbold]   [\rm\bf]



These appear to work. Note that sansbold is already defined font-pre.mkiv


that's why i commented it in the example above

-
  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] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Pablo Rodriguez
On 05/11/2015 09:25 AM, Hans Hagen wrote:
 On 5/10/2015 9:40 PM, Pablo Rodriguez wrote:
 [...]
 Is there no way to merge both in one? (The basic rule a|b doesn’t seem
 to work here, altough I may be missing everything :-(.)
 
 it all depends on what you want to do eventually
 
 \xmlsetsetup{\xmldocument}
 {span[@label or contains(@class,'tex\letterpercent-logo')]}
 {xml:logo}

Many thanks for your reply, Hans.

This is what I intended and everything is clear now.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Changing font for math function

2015-05-11 Thread Hans Hagen

On 5/11/2015 6:16 PM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


next beta: when one of the stylealternatives text mode else mathmode
(default nothing == mathupright)

\starttext

\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=roman,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$}

\stoptext


functionstyle=roman is affected by font switches \bf and \it. It should
not be affected.

\setupmathematics[functionstyle=roman]
{\it $\sin x$}

This is especially important because typically theorems, etc are typeset
in italic. It tried setting functionstyle=\normalrm but that turns
everything into italic.

Complete example:


\starttext
\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=serif,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\stoptext


we can add

\unprotect

\def\v!sansnormal {sansnormal}
%def\v!sansbold   {sansbold}
\def\v!serifnormal{serifnormal}
\def\v!serifbold  {serifbold}

\definealternativestyle [\v!sansnormal]  [\ss\tf]
%definealternativestyle [\v!sansbold][\ss\bf]
\definealternativestyle [\v!serifnormal] [\rm\tf]
\definealternativestyle [\v!serifbold]   [\rm\bf]

\protect

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]


-
  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] Changing font for math function

2015-05-11 Thread Aditya Mahajan

On Mon, 11 May 2015, Hans Hagen wrote:


On 5/11/2015 6:16 PM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


next beta: when one of the stylealternatives text mode else mathmode
(default nothing == mathupright)

\starttext

\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=roman,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$}

\stoptext


functionstyle=roman is affected by font switches \bf and \it. It should
not be affected.

\setupmathematics[functionstyle=roman]
{\it $\sin x$}

This is especially important because typically theorems, etc are typeset
in italic. It tried setting functionstyle=\normalrm but that turns
everything into italic.

Complete example:


\starttext
\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=serif,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\stoptext


we can add

\unprotect

\def\v!sansnormal {sansnormal}
%def\v!sansbold   {sansbold}
\def\v!serifnormal{serifnormal}
\def\v!serifbold  {serifbold}

\definealternativestyle [\v!sansnormal]  [\ss\tf]
%definealternativestyle [\v!sansbold][\ss\bf]
\definealternativestyle [\v!serifnormal] [\rm\tf]
\definealternativestyle [\v!serifbold]   [\rm\bf]

\protect


These appear to work. Note that sansbold is already defined font-pre.mkiv

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] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Aditya Mahajan

On Mon, 11 May 2015, Aditya Mahajan wrote:


On Mon, 11 May 2015, Aditya Mahajan wrote:


Any hints about the missing \lfloor, \lceil with \big etc.?


hm, still missing?


No. They work with the latest beta.


Other missing delimiters:

\lmoustache, \rmoustache, \llbracket, \rrbracket, \llangle, \rrangle, 
\lgroup,  \ulcorner, \urcorner, \llcorner, \lrcorner.


and

\lvert, \rvert, \lVert, \rVert.

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] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Hans Hagen

On 5/11/2015 5:34 PM, Aditya Mahajan wrote:

On Mon, 11 May 2015, Hans Hagen wrote:


On 5/11/2015 12:50 AM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


On 5/10/2015 4:06 PM, Aditya Mahajan wrote:

$\left\langle x \right\rfloor$


they were not defined as pair (yet) ... done in next beta


As I said in the previous email,  \langle ... \rfloot are not typically
used together, so there is no need to add them as a fenced pair. I just
happened to use them together because I was testing whether other
delimiters are working or not.


one can pair anything fenced so also these (the main issue one doesn't
pair but uses one only in which case tex has to be tricked)


OK.

Any hints about the missing \lfloor, \lceil with \big etc.?


hm, still missing?

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] Changing font for math function

2015-05-11 Thread Aditya Mahajan

On Sun, 10 May 2015, Hans Hagen wrote:

next beta: when one of the stylealternatives text mode else mathmode 
(default nothing == mathupright)


\starttext

\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$}

\setupmathematics[functionstyle=roman,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$}

\stoptext


functionstyle=roman is affected by font switches \bf and \it. It should 
not be affected.


\setupmathematics[functionstyle=roman]
{\it $\sin x$}

This is especially important because typically theorems, etc are typeset 
in italic. It tried setting functionstyle=\normalrm but that turns 
everything into italic.


Complete example:


\starttext
\setupmathematics[functionstyle=,functioncolor=darkred]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=sansbold,functioncolor=darkblue]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\setupmathematics[functionstyle=serif,functioncolor=darkgreen]

{\ss $\sin x$} {\bf $\sin x$} {\it $\sin x$}

\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] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Aditya Mahajan

On Mon, 11 May 2015, Hans Hagen wrote:


On 5/11/2015 5:34 PM, Aditya Mahajan wrote:

On Mon, 11 May 2015, Hans Hagen wrote:


On 5/11/2015 12:50 AM, Aditya Mahajan wrote:

On Sun, 10 May 2015, Hans Hagen wrote:


On 5/10/2015 4:06 PM, Aditya Mahajan wrote:

$\left\langle x \right\rfloor$


they were not defined as pair (yet) ... done in next beta


As I said in the previous email,  \langle ... \rfloot are not typically
used together, so there is no need to add them as a fenced pair. I just
happened to use them together because I was testing whether other
delimiters are working or not.


one can pair anything fenced so also these (the main issue one doesn't
pair but uses one only in which case tex has to be tricked)


OK.

Any hints about the missing \lfloor, \lceil with \big etc.?


hm, still missing?


No. They work with the latest beta.

Thanks for the bugfix.

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] \big\lfloor and \big\lceil do not work

2015-05-11 Thread Aditya Mahajan

On Mon, 11 May 2015, Aditya Mahajan wrote:


Any hints about the missing \lfloor, \lceil with \big etc.?


hm, still missing?


No. They work with the latest beta.


Other missing delimiters:

\lmoustache, \rmoustache, \llbracket, \rrbracket, \llangle, \rrangle, 
\lgroup,  \ulcorner, \urcorner, \llcorner, \lrcorner.


Hopefully, I have not missed anything.

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
___