Re: [NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Sorry for the noise. Adding

\usemodule[newcolumnsets]

makes the numbers go away.

/Mikael

On Wed, Dec 28, 2016 at 7:08 PM, Mikael P. Sundqvist  wrote:
> Hi!
>
> The example below gives strange numbers (4110) and (1410) in the pdf
> file, and the latter one kicks me out of the grid. Is this a bug?
>
> /Mikael (yes, I'm using a late standalone)
>
> %% start of example
> \setuplayout[
> grid=yes,
> ]
>
> \showgrid
>
> \definecolumnset[example][n=2]
>
> \starttext
>
> \startcolumnset[example]
> \dorecurse{2}{\input knuth \par}
> \placefigure[btlr]{Caption}{\blackrule[width=\textwidth,height=4cm]}
> \input knuth
> \stopcolumnset
> \stoptext
> %% end of example
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Hi!

The example below gives strange numbers (4110) and (1410) in the pdf
file, and the latter one kicks me out of the grid. Is this a bug?

/Mikael (yes, I'm using a late standalone)

%% start of example
\setuplayout[
grid=yes,
]

\showgrid

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]
\dorecurse{2}{\input knuth \par}
\placefigure[btlr]{Caption}{\blackrule[width=\textwidth,height=4cm]}
\input knuth
\stopcolumnset
\stoptext
%% end of example


ctx-listexample20.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] integral symbol

2016-12-28 Thread Hans Hagen

On 12/28/2016 6:14 PM, Alan Braslau wrote:

Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
b} is *much* more readable in running source code than \frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your example
below. An alternative syntax (that could co-exist) would be admitting
$\left\int ... \right.$, but I do not know what limitations there might
be with both the (luatex) engine and with ConTeXt.


the tricky part there is that int has super and subscripts while left / 
right are different animals ... i looked into this (in the engine) and 
decided to delay implementing that (i might do it some day but it's sort 
of tricky to keep compatibility)


also, ints are upright (extensible or stepwise sizes) or slanted 
(stepwise sizes) so even if we support something there are some 
limitations due to lack of font support (could be dealt with in due time)



The problem with extensions, like always, in straying from traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX (and
LaTeX) thinking. I know that at some level we do not care, for we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like \sum, ...)
that present difficulties and then decide on good solutions.


sure ...

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] integral symbol

2016-12-28 Thread Alan Braslau
Hi Hans, Hi list,

This is similar to what we have discussed earlier on this list and
elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
b} is *much* more readable in running source code than \frac{a}{b} but
have resigned myself to use \frac{}{}, as this can be made better
behaved and gives a much better result.)

Other traditional TeX constructs like \int^a_b have their charm (and
need to remain supported, just like is \over), but I support
introducing and encouraging the use of new constructs like your example
below. An alternative syntax (that could co-exist) would be admitting
$\left\int ... \right.$, but I do not know what limitations there might
be with both the (luatex) engine and with ConTeXt.

The problem with extensions, like always, in straying from traditional
TeX is interchangeability of code, or, more importantly, in the
learning curve obstacles that this introduces to traditional TeX (and
LaTeX) thinking. I know that at some level we do not care, for we often
make (good) design choices that improve the syntax of ConTeXt.

Perhaps we can use this thread to discuss other cases (like \sum, ...)
that present difficulties and then decide on good solutions.

Just a suggestion.

Alan



On Wed, 28 Dec 2016 17:42:39 +0100
Hans Hagen  wrote:

> The problem with integrals is that they don't adapt because they are
> not wrapped as delimiters (like left/right stuff). If \int were a
> command taking an argument it would be easier. As in:
> 
> 
> \starttext
> 
> \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]
> 
> \startlines
> \ruledhbox{$\integral   f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
> \ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
> \stoplines
> 
> \startformula
>  a =
>  \autointegral{t}{b}1 +
>  \autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
>  \autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
> \stopformula
> 
> \stoptext


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] new xml feature (for html lovers)

2016-12-28 Thread Hans Hagen

Hi,

As a side effect of a fun project I've added css like selectors to the 
xml interface, so one can do:


\xmlall{#1}{{foo bar .whatever, bar foo .whatever}}

\starttext

\startbuffer[selector-003]



title 1
title 1.1
title 2
title 2.1
title 3
title 3.1
title 4
title 4.1

\stopbuffer

\xmlloadbuffer{selector-003}{selector-003}

\startxmlsetups xml:selector:demo
\xmlverbatim{#1}\par
\stopxmlsetups

\xmlcommand
  {selector-003}
  {{document title .one + subtitle, document title .two + subtitle}}
  {xml:selector:demo}

\stoptext

Performance should be ok although (currently) a combined selector 
triggers a result sorter which has a small speed penalty. After all you 
don't want your document to come out in the wrong order.


like things. In the process I optimized an aspect of the parser and 
hopefully I didn't break anything.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] integral symbol

2016-12-28 Thread Hans Hagen

On 12/28/2016 2:02 PM, Fabrice Couvreur wrote:

Hi Henri,
Thank you for your suggestion.


The problem with integrals is that they don't adapt because they are not 
wrapped as delimiters (like left/right stuff). If \int were a command 
taking an argument it would be easier. As in:



\starttext

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]

\startlines
\ruledhbox{$\integral   f\frac{1}{2}$}
\ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
\ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
\stoplines

\startformula
a =
\autointegral{t}{b}1 +
\autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
\autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
\stopformula

\stoptext




Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke >:

On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have 
it bigger ?
> thank you,
> Fabrice
>
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
>
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
>
> \setupbodyfont[mainface,11pt]
>
> \starttext
>
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

\math{\displaystyle\int_1^3 k(x)\diff x}

>
> L'aire hachurée se note :
>
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
>
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/

> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hi Henri,
Thank you for your suggestion.
Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke :

> On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> > Hello,
> > The integral symbol is little in inline math mode. Is it possible to
> have it bigger ?
> > thank you,
> > Fabrice
> >
> > \definetypeface [mainface] [rm]
> >[serif] [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [ss]
> >[sans]  [helvetica]   [default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [tt]
> >[mono]  [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [mm]
> >[math]  [palatino][default]   [encoding=texnansi]
> >
> > \setupbodyfont[mainface,11pt]
> >
> > \starttext
> >
> > L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.
>
> \math{\displaystyle\int_1^3 k(x)\diff x}
>
> >
> > L'aire hachurée se note :
> >
> > \startformula
> >   \int_1^3 k(x)\mathop{dx}.
> > \stopformula
> >
> > \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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] integral symbol

2016-12-28 Thread Henri Menke
On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have it 
> bigger ?
> thank you,
> Fabrice
> 
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
> 
> \setupbodyfont[mainface,11pt]
>  
> \starttext
> 
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

\math{\displaystyle\int_1^3 k(x)\diff x}

> 
> L'aire hachurée se note :
> 
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
> 
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] floatcombination alignment has changed?

2016-12-28 Thread Christoph Reller
Dear List,

Consider the following MWE:

\startplacefigure
  \startfloatcombination
\startplacetable[title={Table I}] % <- shifted
%\startplacetable   % <- not shifted
  \bTABLE
\bTR \bTD Foo \eTD \bTD Text. \eTD \eTR
  \eTABLE
\stopplacetable
\startplacetable[title={Table II}] % <- shifted
%\startplacetable% <- not shifted
  \bTABLE
  \bTR \bTD Foo \eTD \bTD Text. \eTD \eTR
  \eTABLE
\stopplacetable
  \stopfloatcombination
\stopplacefigure

The resulting output looks strange to me. The tables are shifted to
the left when compared with omitting the titles. In earlier versions
of ConTeXt, no such shift happens.

Do floatcombinations not work?

Any feedback is welcome.

Cheers,
Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hello,
The integral symbol is little in inline math mode. Is it possible to have
it bigger ?
thank you,
Fabrice

\definetypeface [mainface] [rm]
   [serif] [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [ss]
   [sans]  [helvetica]   [default]   [encoding=texnansi]

\definetypeface [mainface] [tt]
   [mono]  [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [mm]
   [math]  [palatino][default]   [encoding=texnansi]

\setupbodyfont[mainface,11pt]

\starttext

L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

L'aire hachurée se note :

\startformula
  \int_1^3 k(x)\mathop{dx}.
\stopformula

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___