Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-12 Thread Henri Menke
To me the following two MWEs look pretty much the same:

\setupbodyfont[10pt] % same font size as LaTeX
\starttext
$\sum_{k=1}^{n} a_k$
\startformula
\sum\nolimits_{k=1}^{n} a_k
\stopformula
\stoptext


\documentclass{article}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document} 

I tried that with versions of ConTeXt from TeX Live 2016, 2017, 2018, and 2019,
as well as the latest beta, all with the same result.

You refer to ma-cb-en page 19, but which of the two equations, the first or the
second one?  Keep in mind that the first one uses

\sum_{n=1}_^{m}

where you are using

\sum\nolimits_{k=1}^{n}

Cheers, Henri

On 11/05/19 7:42 AM, Eric Scmidt wrote:
> Hello everyone!
> So, I have some inline math in my document,and it's looking too big or 
> "airy"; a 
> bit like when \nolimits is specified in display mode but smaller. The limits 
> are 
> placed next to the symbol when using for example pdflatex, and I prefer this 
> tight way for inline math. Is the "airier" way a (new) Context standard or a 
> bug, and if it is just a standard how can I achieve the tighter style 
> (could't 
> find any pointers anywhere)? At least the latest beta exhibits this behaviour 
> (for what it is worth, Context mark IV an excursion by Ton Otten, the version 
> produced by LuaTeX-1.06.0 , has the style I want on page 19, and no special 
> tricks are discussed). All help is greatly appreciated.
> \starttext
> $\sum_{k=1}^{n} a_k$
> \startformula
> \sum\nolimits_{k=1}^{n} a_k
> \stopformula
> \stoptext
> -Eric
> 
> 
> ___
> 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] inserting figure labels

2019-05-12 Thread Alan Braslau
On Sun, 12 May 2019 19:25:26 +0200
Hans van der Meer  wrote:

> Can I be absolutely sure that \placefigure[here,force] will not
> invoke the float mechanism, but instead always effects an in-place
> insertion?

It will trigger a page break if there is not enough space "here".
In fact, "force" is enough, no need for "here":

\startplacefigure [location=force,title={My title}]
...
\stopplacefigure

--
Alan
___
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] placing content in footers

2019-05-12 Thread Alan Braslau
On Sun, 12 May 2019 18:19:54 +0200
Pablo Rodriguez  wrote:

> >>  \mbox{}\page\mbox{}  
> >
> > Where did you learn to use \mbox?  
> 
> I don’t remember (probably in my LaTeX times, before moving to
> ConTeXt).

The use of \mbox{} is a classic LaTeX hack...

--
Alan
___
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] suggestions for \definefontfamily and \definefallbackfamily

2019-05-12 Thread Pablo Rodriguez
Hi Wolfgang,

as I reported the issue with the fonts and LMTX, I remembered two
suggestions I wanted to post here.

The first one is enabling the use of "method=uppercase" in
\definefallbackfamily (to get fake caps, such as in
https://mailman.ntg.nl/pipermail/ntg-context/2018/092878.html).

The second feature is to enable \definefontfamily to load font files not
part of the font database, the same way as \definefont is able to load them.

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


Re: [NTG-context] inserting figure labels

2019-05-12 Thread Hans van der Meer
Can I be absolutely sure that \placefigure[here,force] will not invoke the 
float mechanism, but instead always effects an in-place insertion?

dr. Hans van der Meer


> On 12 May 2019, at 14:32, Henning Hraban Ramm  wrote:
> 
> Am 2019-05-11 um 21:39 schrieb Hans van der Meer  >:
> 
>> Placing a float figure with
>>  \placefigure[][]{labeltext}{\externalfigure[]}
>> delivers a figure with a label like "Figure V.3 labeltext" (depending on the 
>> setup)
>> 
>> Now I want to intersperse this with an \externalfigure[] not within a 
>> placefigure but still accompanied by a label in the current running series.
>> For example an uninterrupted series of figure numbers with:
>>  \placefigure[][]{labeltext-1}{\externalfigure[figure1]} % -> Figure 1 
>> labeltext-1
>>  \externalfigure[figure-2] \macrocall{labeltext-2}   % -> Figure 2 
>> labeltext-2
>>  \placefigure[][]{labeltext-3}{\externalfigure[figure3]} % -> Figure 3 
>> labeltext-3
>> 
>> I could not find what macro to call as the instance for \macrocall.
> 
> Can’t you just use \placefigure with {here,force}?
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net 
> http://wiki.contextgarden.net 
> https://www.dreiviertelhaus.de 
> GPG Key ID 1C9B22FD
> 
> ___
> 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] placing content in footers

2019-05-12 Thread Pablo Rodriguez
On 5/12/19 2:30 PM, Henning Hraban Ramm wrote:
> Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm:
>> Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez:
>>> [...]
>>> Is there any way to place content in the middle of doublesided footers,
>>> besides left and right contents?
>>
>> \setuppagenumbering[alternative=doublesided]
>> \setupheadertexts[]
>> \setupheadertexts[\setups{text right}][][][\setups{text left}]
>>
>> \startsetups[text right]
>>  \rlap{\pagenumber}
>>  \hfill
>>  \getmarking[chapter]
>>  \hfill
>>  \llap{Un Nom}
>> \stopsetups
>>
>> \startsetups[text left]
>>  \rlap{Una Person}
>>  \hfill
>>  \getmarking[section]
>>  \hfill
>>  \llap{\pagenumber}
>> \stopsetups
>
> Sorry, I didn’t take time to comment on that example – of course it’s
> about headers not footers (they work the same) and shows a way to
> spread three pieces of text instead just centering one, which is much
> easier.

Many thanks for your reply, Hraban.

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


Re: [NTG-context] placing content in footers

2019-05-12 Thread Pablo Rodriguez
On 5/11/19 8:26 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 11.05.2019 um 16:35:
>> [...]
>>  \mbox{}\page\mbox{}
>
> Where did you learn to use \mbox?

I don’t remember (probably in my LaTeX times, before moving to ConTeXt).

I know that you don’t like it, but I didn’t know about \page[dummy].

>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
> \setuppagenumbering
>    [alternative=doublesided]
>
> \setupfootertexts
>    [\doifoddpageelse{right page}{left page}]
>
> \setupfootertexts
>    [inner margin] [outer margin]
>    [outer margin] [inner margin]

Many thanks for your help. I didn’t know that \setupfootertexts could be
invoked twice.

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


Re: [NTG-context] inserting figure labels

2019-05-12 Thread Henning Hraban Ramm
Am 2019-05-11 um 21:39 schrieb Hans van der Meer :

> Placing a float figure with
>   \placefigure[][]{labeltext}{\externalfigure[]}
> delivers a figure with a label like "Figure V.3 labeltext" (depending on the 
> setup)
> 
> Now I want to intersperse this with an \externalfigure[] not within a 
> placefigure but still accompanied by a label in the current running series.
> For example an uninterrupted series of figure numbers with:
>   \placefigure[][]{labeltext-1}{\externalfigure[figure1]} % -> Figure 1 
> labeltext-1
>   \externalfigure[figure-2] \macrocall{labeltext-2}   % -> Figure 2 
> labeltext-2
>   \placefigure[][]{labeltext-3}{\externalfigure[figure3]} % -> Figure 3 
> labeltext-3
> 
> I could not find what macro to call as the instance for \macrocall.

Can’t you just use \placefigure with {here,force}?

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] placing content in footers

2019-05-12 Thread Henning Hraban Ramm
Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm :

> Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez :
> 
>> Dear list,
>> 
>> I have the following sample:
>> 
>>   \setuppapersize[A8]
>>   \setuppagenumbering
>>   [alternative=doublesized]
>>   \setupfootertexts
>>   [even-right]
>>   [even-left]
>>   [odd-right]
>>   [odd-left]
>>   %~ [even-middle]
>>   %~ [odd-middle]
>>   \starttext
>>   \mbox{}\page\mbox{}
>>   \stoptext
>> 
>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
> 
> \setuppagenumbering[alternative=doublesided]
> \setupheadertexts[]
> \setupheadertexts[\setups{text right}][][][\setups{text left}]
> 
> \startsetups[text right]
>  \rlap{\pagenumber}
>  \hfill
>  \getmarking[chapter]
>  \hfill
>  \llap{Un Nom}
> \stopsetups
> 
> \startsetups[text left]
>  \rlap{Una Person}
>  \hfill
>  \getmarking[section]
>  \hfill
>  \llap{\pagenumber}
> \stopsetups

Sorry, I didn’t take time to comment on that example – of course it’s about 
headers not footers (they work the same) and shows a way to spread three pieces 
of text instead just centering one, which is much easier.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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
___