Re: [NTG-context] Sidefloats inside framed

2019-09-14 Thread Aditya Mahajan

On Sun, 15 Sep 2019, Henri Menke wrote:


Dear list,

Is there a way to get sidefloats working inside a frame?  I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats.  MWE is
below.


You could use background instead of framed.

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


[NTG-context] Sidefloats inside framed

2019-09-14 Thread Henri Menke
Dear list,

Is there a way to get sidefloats working inside a frame?  I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats.  MWE is
below.

Cheers, Henri

---

\starttext

\startplacefigure[location={none,right}]
  \externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem}

\startframed
  [height=20\lineheight,
   width=\hsize,
   offset=0pt,
   align=width]
  \startplacefigure[location={none,right}]
\externalfigure[cow][width=.5\hsize]
  \stopplacefigure
  \samplefile{lorem}
\stopframed

\stoptext





signature.asc
Description: OpenPGP digital signature
___
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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi again,

Actually 
\unexpanded\def\dotlessring#1{\tfb\normalring
{\tfx\mathdotless#1}}
has side effects, that is it induces a font switch outside the scope of 
\dotlessring… So it cannot be used as such in real situations, although when I 
test isolated instances it works fine.

Thanks again for your help: OK

> On 14 Sep 2019, at 14:08, Atsuhito Kohda  wrote:
> 
> Dear Otared,
> 
> Sorry for my mistake.  Of course you will need more fine tuning but
> \unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}}
> might help you a bit.  But if not please ignore this.
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 20:51 Otared Kavian  >:
> 
> Thanks for your attention, but in fact \mathring and what you suggest, that 
> is \dotlessring, give the same result. What I am looking for is to replace 
> the small circle used by \mathring by a slightly bigger circle
> 
> ___
> 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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Dear Atsuhito Kohda,

Thank you: I didn't know how to tweak the fontsizes in the command you 
suggested. With your explannation I can get a good result with \dotlessring.

Many thanks for your help: OK



> On 14 Sep 2019, at 14:08, Atsuhito Kohda  wrote:
> 
> Dear Otared,
> 
> Sorry for my mistake.  Of course you will need more fine tuning but
> \unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}}
> might help you a bit.  But if not please ignore this.
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 20:51 Otared Kavian  >:
> 
> Thanks for your attention, but in fact \mathring and what you suggest, that 
> is \dotlessring, give the same result. What I am looking for is to replace 
> the small circle used by \mathring by a slightly bigger circle
> 
> ___
> 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] mathring circle above a letter

2019-09-14 Thread Atsuhito Kohda
Dear Otared,

Sorry for my mistake.  Of course you will need more fine tuning but
\unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}}
might help you a bit.  But if not please ignore this.

Best regards,
Atsuhito Kohda

2019年9月14日(土) 20:51 Otared Kavian :

>
> Thanks for your attention, but in fact \mathring and what you suggest,
> that is \dotlessring, give the same result. What I am looking for is to
> replace the small circle used by \mathring by a slightly bigger circle
>
>
> ___
> 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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi Atsuhito Kohda,

Thanks for your attention, but in fact \mathring and what you suggest, that is 
\dotlessring, give the same result. What I am looking for is to replace the 
small circle used by \mathring by a slightly bigger circle.

Best regards: OK

> On 14 Sep 2019, at 13:03, Atsuhito Kohda  wrote:
> 
> Dear Otared and all,
> 
> This is very naive idea but anyway please try this.
> Just before the \starttext insert the following line:
> \unexpanded\def\dotlessring#1{\tfa\normalring{\mathdotless#1}}
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 18:37 Otared Kavian  >:
> 
> Can someone tell me please whether it is possible to modify the \mathring 
> command so that th ecircle is a little bit larger, or the one I define below 
> as 
> ___
> 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] mathring circle above a letter

2019-09-14 Thread Atsuhito Kohda
Dear Otared and all,

This is very naive idea but anyway please try this.
Just before the \starttext insert the following line:
\unexpanded\def\dotlessring#1{\tfa\normalring{\mathdotless#1}}

Best regards,
Atsuhito Kohda

2019年9月14日(土) 18:37 Otared Kavian :

>
> Can someone tell me please whether it is possible to modify the \mathring
> command so that th ecircle is a little bit larger, or the one I define
> below as
>
> ___
> 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
___


[NTG-context] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi all,

The \mathring command puts a small circle above a letter, but in some fonts 
(namely Lucida OT) that circle is too small. So thanks to a hint by Hans and 
Wolfgang some years ago I use the following definition which works fine when 
used alone. But in maths, one needs sometimes to use it with the command 
\overline (or \overbar) and the result is not nice.

Can someone tell me please whether it is possible to modify the \mathring 
command so that th ecircle is a little bit larger, or the one I define below as 
\interior in order to have a correct result (more clearly said: I would like 
the small circle to be put above the bar which is itself above the A in 
$\interior{\overline{A}}$).

Thanks for any help: OK

%%% begin mathring-interior.tex
\setuppapersize[A5][A5]
\definemathstackers[MySymbol]
[voffset=-1.2\mathexheight,
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]
%\define[1]\interior{\mathover[MySymbol]{"2218}{#1}} %2218 U+00B0
\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\starttext
The interior of a set $A$ is denoted by $\interior{A}$.

The interior of a set $A$ is denoted by $\mathring{A}$.

The closure of the interior is $\overline{\interior{A}}$.

Beware $\overline{\interior{A}} \neq \interior{\overline{A}}$. (This is not 
nice\dots).

Beware $\overline{\mathring{A}} \neq \mathring{\overline{A}}$
\stoptext

%%% end mathring-interior.tex



mathring-interior.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] expansion problem: random location

2019-09-14 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 13.09.2019 um 20:41:

Am 2019-09-13 um 19:44 schrieb Wolfgang Schuster 
:

Henning Hraban Ramm schrieb am 13.09.2019 um 18:51:

Hi, in an example document I’m trying to get pictures of random size and 
placement.
Unfortunately the expansion is over my head:

Put the value of the random location in a macro.

Thank you!
I thought I had tried that, but probably only defining the macro outside of the 
other…
It could have been that you used \def which doesn't work because this 
will always
call the Lua function and you get a new random value but with \edef the 
result

of the first random value is stored in the macro.

 \def\RandomA{\cldcontext{math.random(1,4)}}
\edef\RandomB{\cldcontext{math.random(1,4)}}

\starttext
\dorecurse{10}{A: \RandomA \quad B: \RandomB\par}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] comma as decimal separator in maths mode

2019-09-14 Thread Martin Althoff
Hi ... I am outputting some numbers in maths mode that have a comma as decimal 
separator.

I get a big space after the comma, which I can prevent by writing $1{,}5$ 

Is there a less awkward way of getting the comma as a "real" decimal separator?

Thanks, Martin

\starttext
$1,5$

\math{1,5}

$1{,}5$
\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
___