Re: [NTG-context] Sum and mathalignment

2021-11-30 Thread Bruce Horrocks via ntg-context


> On 30 Nov 2021, at 19:34, Alexandre Christe via ntg-context 
>  wrote:
> 
> Dear list,
> 
> 
> 
> What I've done is to play with mathalignment and \framed. Here is a MWE:
> 
> \starttext
> \defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]
> 
> \framed[frame=off,background=midrule,boffset=.65cm]{\startformula
>   
> \startmathalignment[n=12,align={middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle}]
> \NC \NC S_6 \NC= \NC 1 \NC+ \NC 2 \NC+ \NC\dots \NC+ \NC 5 \NC+ \NC 6 \NR
> \NC + \NC S_6 \NC= \NC 6 \NC+ \NC 5 \NC+ \NC\dots \NC+ \NC 2\NC+ \NC 1 \NR
> \NC\NC 2S_6 \NC= \NC 7 \NC+ \NC 7 \NC+ \NC\dots \NC+ \NC 7 \NC+ \NC 7 \NR
>   \stopmathalignment
> \stopformula}
> \stoptext
> 
> Is there a simpler way to typeset something like this?

How about:

\usecolors[svg]
\starttext
\ssa\bold
\starttabulate[|r|CT{red}c|c|CT{yellow}c|c|CT{green}c|c|CT{cyan}c|c|CT{blue}c|c|CT{darkmagenta}c|]
\NC   S = \NC 1 \NC + \NC 2 \NC + \NC 3 \NC + \NC 4 \NC + \NC 5 \NC + \NC 6 
\NC\NR
\NC + S = \NC 6 \NC + \NC 5 \NC + \NC 4 \NC + \NC 3 \NC + \NC 2 \NC + \NC 1 
\NC\NR
\HL[cornflowerblue]
\NC  2S = \NC 7 \NC + \NC 7 \NC + \NC 7 \NC + \NC 7 \NC + \NC 7 \NC + \NC 7 
\NC\NR
\stoptabulate
\stoptext

—
Bruce Horrocks
Hampshire, UK

___
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] Font scaling via sa in LMTX

2021-11-30 Thread Rik Kabel via ntg-context

Hello list,

It seems that font scaling to a letter is not working consistently in LMTX.

This example:

   \definefont[TitleA][Sans sa a]
   \definefont[TitleAB][Sansbold sa a]
   \starttext
   {\ssa This is ssa \TitleA and this is TitleA}\par
   {\ssbf This is ssbf \TitleAB and this is TitleAB}\par
   \contextbanner
   \stoptext

Produces different relevant output with each engine.

I suppose one could use numeric values instead of defined font size 
letters as a work-around, but that means lack of coordination with 
custom sizes in \definebodyfontenvironment.


--
Rik

___
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] Sum and mathalignment

2021-11-30 Thread Alexandre Christe via ntg-context
Dear list,

[image: image.png]

What I've done is to play with mathalignment and \framed. Here is a MWE:

\starttext
\defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]

\framed[frame=off,background=midrule,boffset=.65cm]{\startformula

\startmathalignment[n=12,align={middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle}]
\NC \NC S_6 \NC= \NC 1 \NC+ \NC 2 \NC+ \NC\dots \NC+ \NC 5 \NC+ \NC 6
\NR
\NC + \NC S_6 \NC= \NC 6 \NC+ \NC 5 \NC+ \NC\dots \NC+ \NC 2\NC+ \NC 1
\NR
\NC\NC 2S_6 \NC= \NC 7 \NC+ \NC 7 \NC+ \NC\dots \NC+ \NC 7 \NC+ \NC 7
\NR
  \stopmathalignment
\stopformula}
\stoptext

Is there a simpler way to typeset something like this?

Thanks in advance!
___
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 upload

2021-11-30 Thread Hans Hagen via ntg-context

Hi,

(1) See previous mails on the list (those who requested it have to wikify):

- mixed bars (with limitations)
- horizontal registers (flushing)

(2) As a side effect of reshuffling some code (as well as being complete):

- \boxshift 0 = 10pt
- hbox shift -10pt{...}

These box shifts are what \moveleft, \raise etc use as well as some 
internal constructors like math.


(3) Because there is no reason for a limitation to rules and boxes we 
can now also do:


- x\cleaders \glyph`! \hfill x

where as usual \glyph taking some options.

(4) A few internals that users are unlikely to encounter (unless they 
mess with weird tokens in lua).


Hopefully no bad side effects of all this (and if so, easy to solve).

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] double underbars

2021-11-30 Thread Hans Hagen via ntg-context

On 11/30/2021 2:52 PM, Taco Hoekwater via ntg-context wrote:


But the problem is that you have to create an “underbardot" that contains both the 
bar and the dots, to fix the non-nesting problem. It is then quite hard to get that 
definition to align properly with any enclosing “underbar” (I tried something like that a 
while ago and basically gave up. I did not want to spend a whole of time on it so I just 
told the client “computer says no").
a new experience ... taco and giving up ... (probably when you'd told 
the client that it would take a few hours it suddenly became less 
important -)


anyway, attached what happens with two different classes ... i didn't 
even test more than two as it's 'undefined behaviour' and when you need 
that you should revert to old school typewriter typesetting


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
-

b.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] double underbars

2021-11-30 Thread Hans Hagen via ntg-context

On 11/30/2021 2:52 PM, Taco Hoekwater via ntg-context wrote:




On 30 Nov 2021, at 14:38, Denis Maier via ntg-context  
wrote:

Thanks, Taco. Good to know. Although it's not what I wanted to hear, of 
course...

I was thinking using mp to draw the combination could be solution, but 
unfortunately I don't know metafun yet.

If my understanding of https://source.contextgarden.net/node-rul.mkiv is 
correct, it should be possible to build upon the defintion of rules:under:dots 
(l. 327) Any hints how I could get this started?


Yes, that is the right part to get started with. You could just copy the whole 
\startuseMPgraphic and rename it for editing (to let’s say 
rules:under:bardots), then do

   \definebar[underbardot][undergraphic][mp=rules:under:bardots]

and play with the mp until you are happy with the output.

But the problem is that you have to create an “underbardot" that contains both the 
bar and the dots, to fix the non-nesting problem. It is then quite hard to get that 
definition to align properly with any enclosing “underbar” (I tried something like that a 
while ago and basically gave up. I did not want to spend a whole of time on it so I just 
told the client “computer says no").



Another question: what do you mean with a dy-shift version?


Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to 
make sure that they do not overlap. Text backgrounds do not have that option at 
all.
i've added that so one can nest the mp driven ones but still within the 
same category ... i'll look into a mix (more complex management wise so 
typically a rainy weekend thing; i know how to do it but ...)


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
___


[NTG-context] Defining new float types fails in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
Hi!

Apologies for spamming this list with my all the floaty stuff.
There's an issue with defining new floats in LMTX in combination
with bottom placement.

The following works in MkIV, but throws an error in LMTX:

  I'm ignoring this; it doesn't match any \if.
  mtx-context | fatal error: return code: 256

\setupfloat [figure]
  [default=bottom]  %% fails
  %% [default=top]  %% works

\definefloat
  [foo] [foos]
  [figure]

\starttext
  \startplacefigure [title=Foo]
\framed{Foo}
  \stopplacefigure

  \startplacefoo [title=Bar]
\framed{Bar}
  \stopplacefoo
\stoptext

Marco

LMTX 2021.11.26 11:38
___
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] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 14:05:23 +0100
Henning Hraban Ramm via ntg-context  wrote:

> Maybe you could define your own float type for the cases without
> caption?

I've done that for other options, too, I guess no-caption-floats get
a dedicated float type as well now. It's more robust than relying on
typing the correct parameter order each time.

BTW: creating new float types fails in LMTX, I'll post an MWE in
a new thread shortly.

Marco
___
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] double underbars

2021-11-30 Thread Aditya Mahajan via ntg-context
On Tue, 30 Nov 2021, Taco Hoekwater via ntg-context wrote:

> 
> > Another question: what do you mean with a dy-shift version?
> 
> Nested bars have a parameter ‘dy’ which controls the vertical shifts needed 
> to make sure that they do not overlap. Text backgrounds do not have that 
> option at all.

There are backgroundoffset and frameoffset in framedtext ... not sure if they 
are inherited in text backgrounds. Or you can defining everything in metapost 
(but that may lose composability).

https://tex.stackexchange.com/a/125486/323

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
___


Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
Ok, so I will see. But, if even you gave up, I should better hope that someone 
else hears our desperate cries ;)

Denis

> -Ursprüngliche Nachricht-
> Von: Taco Hoekwater 
> Gesendet: Dienstag, 30. November 2021 14:52
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) 
> Betreff: Re: [NTG-context] double underbars
> 
> 
> 
> > On 30 Nov 2021, at 14:38, Denis Maier via ntg-context  cont...@ntg.nl> wrote:
> >
> > Thanks, Taco. Good to know. Although it's not what I wanted to hear, of
> course...
> >
> > I was thinking using mp to draw the combination could be solution, but
> unfortunately I don't know metafun yet.
> >
> > If my understanding of https://source.contextgarden.net/node-rul.mkiv is
> correct, it should be possible to build upon the defintion of rules:under:dots
> (l. 327) Any hints how I could get this started?
> 
> Yes, that is the right part to get started with. You could just copy the whole
> \startuseMPgraphic and rename it for editing (to let’s say
> rules:under:bardots), then do
> 
>   \definebar[underbardot][undergraphic][mp=rules:under:bardots]
> 
> and play with the mp until you are happy with the output.
> 
> But the problem is that you have to create an “underbardot" that contains
> both the bar and the dots, to fix the non-nesting problem. It is then quite
> hard to get that definition to align properly with any enclosing “underbar” (I
> tried something like that a while ago and basically gave up. I did not want to
> spend a whole of time on it so I just told the client “computer says no").
> 
> 
> > Another question: what do you mean with a dy-shift version?
> 
> Nested bars have a parameter ‘dy’ which controls the vertical shifts needed
> to make sure that they do not overlap. Text backgrounds do not have that
> option at all.
> 
> >
> > Best,
> > Denis
> >
> >> -Ursprüngliche Nachricht-
> >> Von: Taco Hoekwater 
> >> Gesendet: Dienstag, 30. November 2021 14:19
> >> An: mailing list for ConTeXt users 
> >> Cc: Maier, Denis Christian (UB) 
> >> Betreff: Re: [NTG-context] double underbars
> >>
> >>
> >>
> >>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context  >> cont...@ntg.nl> wrote:
> >>>
> >>> Hi,
> >>>
> >>> for a current project I’ll need different variants of underbars.
> >>>
> >>> - A normal underbar
> >>> - A dotted underbar
> >>> - A combination of both
> >>>
> >>> Is there a way to combine them? I was hoping to have the dotted
> >>> variant
> >> above the normal bar.
> >>
> >> I would like to have this type of “complete” bar nesting as well.
> >>
> >> As it stands, you can nest \underbars inside \underbars and
> >> \overstrikes inside \overstrikes and \overbars inside \overbars, but
> >> no other combinations work. Interoperability between these (as well
> >> as \underdot, \underdash, \underrandom ...) would be really cool.
> >>
> >> Either with \bar or a nestable dy-shift version of
> >> textbackgrounds would be really handy sometimes. :)
> >>
> >>
> >>
> >>>
> >>> This is not working
> >>>
> >>> %%%
> >>> \starttext
> >>>
> >>> \underbar{asdf}
> >>>
> >>> \underdot{asdf}
> >>>
> >>> \underbar{\underdot{asdf}}
> >>>
> >>> \stoptext
> >>> %%%
> >>>
> >>>
> >>> Best,
> >>> Denis
> >>>
> >>>
> >>
> __
> >> 
> >>> _ 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
> >>>
> >>
> __
> >> 
> >>> _
> >>
> >> —
> >> Taco Hoekwater  E: t...@bittext.nl
> >> genderfluid (all pronouns)
> >>
> >>
> >
> >
> __
> 
> > _ 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
> >
> __
> 
> > _
> 
> —
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
> 
> 

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

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context


> On 30 Nov 2021, at 14:38, Denis Maier via ntg-context  
> wrote:
> 
> Thanks, Taco. Good to know. Although it's not what I wanted to hear, of 
> course...
> 
> I was thinking using mp to draw the combination could be solution, but 
> unfortunately I don't know metafun yet.
> 
> If my understanding of https://source.contextgarden.net/node-rul.mkiv is 
> correct, it should be possible to build upon the defintion of 
> rules:under:dots (l. 327) Any hints how I could get this started?

Yes, that is the right part to get started with. You could just copy the whole 
\startuseMPgraphic and rename it for editing (to let’s say 
rules:under:bardots), then do

  \definebar[underbardot][undergraphic][mp=rules:under:bardots]

and play with the mp until you are happy with the output.

But the problem is that you have to create an “underbardot" that contains both 
the bar and the dots, to fix the non-nesting problem. It is then quite hard to 
get that definition to align properly with any enclosing “underbar” (I tried 
something like that a while ago and basically gave up. I did not want to spend 
a whole of time on it so I just told the client “computer says no").


> Another question: what do you mean with a dy-shift version?

Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to 
make sure that they do not overlap. Text backgrounds do not have that option at 
all.

> 
> Best,
> Denis
> 
>> -Ursprüngliche Nachricht-
>> Von: Taco Hoekwater 
>> Gesendet: Dienstag, 30. November 2021 14:19
>> An: mailing list for ConTeXt users 
>> Cc: Maier, Denis Christian (UB) 
>> Betreff: Re: [NTG-context] double underbars
>> 
>> 
>> 
>>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context > cont...@ntg.nl> wrote:
>>> 
>>> Hi,
>>> 
>>> for a current project I’ll need different variants of underbars.
>>> 
>>> - A normal underbar
>>> - A dotted underbar
>>> - A combination of both
>>> 
>>> Is there a way to combine them? I was hoping to have the dotted variant
>> above the normal bar.
>> 
>> I would like to have this type of “complete” bar nesting as well.
>> 
>> As it stands, you can nest \underbars inside \underbars and \overstrikes
>> inside \overstrikes and \overbars inside \overbars, but no other
>> combinations work. Interoperability between these (as well as \underdot,
>> \underdash, \underrandom ...) would be really cool.
>> 
>> Either with \bar or a nestable dy-shift version of textbackgrounds would
>> be really handy sometimes. :)
>> 
>> 
>> 
>>> 
>>> This is not working
>>> 
>>> %%%
>>> \starttext
>>> 
>>> \underbar{asdf}
>>> 
>>> \underdot{asdf}
>>> 
>>> \underbar{\underdot{asdf}}
>>> 
>>> \stoptext
>>> %%%
>>> 
>>> 
>>> Best,
>>> Denis
>>> 
>>> 
>> __
>> 
>>> _ 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
>>> 
>> __
>> 
>>> _
>> 
>> —
>> Taco Hoekwater  E: t...@bittext.nl
>> genderfluid (all pronouns)
>> 
>> 
> 
> ___
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] double underbars

2021-11-30 Thread Henning Hraban Ramm via ntg-context

Am 30.11.21 um 14:19 schrieb Taco Hoekwater via ntg-context:

I would like to have this type of “complete” bar nesting as well.


YES, #metoo


As it stands, you can nest \underbars inside \underbars and \overstrikes inside 
\overstrikes and \overbars inside \overbars, but no other combinations work. 
Interoperability between these (as well as \underdot, \underdash, \underrandom 
...) would be really cool.

Either with \bar or a nestable dy-shift version of textbackgrounds would be 
really handy sometimes. :)


\startbar[under,over,strikethrough] ... \stopbar ?

\barbar[top=single,bottom=double,mp=mp:swiggly]{text} ?

A nestable version of the existing bars would have the advantage that 
you can add bars one after the other.


Hraban
___
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] double underbars

2021-11-30 Thread Denis Maier via ntg-context
Thanks, Taco. Good to know. Although it's not what I wanted to hear, of 
course...

I was thinking using mp to draw the combination could be solution, but 
unfortunately I don't know metafun yet.

If my understanding of https://source.contextgarden.net/node-rul.mkiv is 
correct, it should be possible to build upon the defintion of rules:under:dots 
(l. 327) Any hints how I could get this started?

Another question: what do you mean with a dy-shift version?

Best,
Denis

> -Ursprüngliche Nachricht-
> Von: Taco Hoekwater 
> Gesendet: Dienstag, 30. November 2021 14:19
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) 
> Betreff: Re: [NTG-context] double underbars
> 
> 
> 
> > On 30 Nov 2021, at 12:06, Denis Maier via ntg-context  cont...@ntg.nl> wrote:
> >
> > Hi,
> >
> > for a current project I’ll need different variants of underbars.
> >
> > - A normal underbar
> > - A dotted underbar
> > - A combination of both
> >
> > Is there a way to combine them? I was hoping to have the dotted variant
> above the normal bar.
> 
> I would like to have this type of “complete” bar nesting as well.
> 
> As it stands, you can nest \underbars inside \underbars and \overstrikes
> inside \overstrikes and \overbars inside \overbars, but no other
> combinations work. Interoperability between these (as well as \underdot,
> \underdash, \underrandom ...) would be really cool.
> 
> Either with \bar or a nestable dy-shift version of textbackgrounds would
> be really handy sometimes. :)
> 
> 
> 
> >
> > This is not working
> >
> > %%%
> > \starttext
> >
> > \underbar{asdf}
> >
> > \underdot{asdf}
> >
> > \underbar{\underdot{asdf}}
> >
> > \stoptext
> > %%%
> >
> >
> > Best,
> > Denis
> >
> >
> __
> 
> > _ 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
> >
> __
> 
> > _
> 
> —
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
> 
> 

___
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] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context


> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
>  
> for a current project I’ll need different variants of underbars.
>  
> - A normal underbar
> - A dotted underbar
> - A combination of both
>  
> Is there a way to combine them? I was hoping to have the dotted variant above 
> the normal bar.

I would like to have this type of “complete” bar nesting as well. 

As it stands, you can nest \underbars inside \underbars and \overstrikes inside 
\overstrikes and \overbars inside \overbars, but no other combinations work. 
Interoperability between these (as well as \underdot, \underdash, \underrandom 
...) would be really cool.

Either with \bar or a nestable dy-shift version of textbackgrounds would be 
really handy sometimes. :)



>  
> This is not working
>  
> %%%
> \starttext
>  
> \underbar{asdf}
>  
> \underdot{asdf}
>  
> \underbar{\underdot{asdf}}
>  
> \stoptext
> %%%
>  
>  
> Best,
> Denis
>  
> ___
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] location=outer causes bad page break in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
Hi!

In the following example “Lorem ipsum” sits on an otherwise empty
page in LMTX. Output is as expected with MkIV. Has the interface
changed or may it be a bug in LMTX?

\starttext
\null\godown [15.5cm]

\samplefile{knuth}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
\startplacefigure [location=outer]
  \externalfigure
\stopplacefigure

\samplefile{knuth}
\stoptext

Marco

LMTX 2021.11.26 11:38
___
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] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context

Am 30.11.21 um 13:38 schrieb Marco Patzer via ntg-context:


As far as I know there's no way to only turn off captions, so one
has to know the default placement value (which might be buried in an
environment file) and specify it again together with the “none”
option.

If you (or someone else) knows a way to disable the caption without
influencing the placement, I'm all ears.


Now I understand your problem, and unfortunately I can’t help you.

Maybe you could define your own float type for the cases without caption?

Hraban
___
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] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 13:06:00 +0100
Henning Hraban Ramm via ntg-context  wrote:

> Well, in {bottom,top,here} it’s the order that TeX should try.

“location“ sets the location of the caption as well as the position
of the entire float. If you want to influence one, you'll also have
to specify the other, AFAIK. Which is a bit unfortunate since the
placement belongs in an environment and not the running text (it's a
style decision after all).

Take the following example:

\setupfloats [figure] [default=top]

\setupfloats [table]  [default=bottom]
%% \setupfloats [table]  [default=top]

\starttext
  \samplefile{knuth}

  \startplacefigure %% [location=top]  %% default
\externalfigure
  \stopplacefigure

  %% Goal here: turn off the caption, not influence the default placement
  %% needs to be adapted when the global style changes
  %% \startplacefigure [location=none] %% fails, messes up the placement
  \startplacefigure [location={top, none}] %% works
\externalfigure
  \stopplacefigure

  %% Goal here: turn off the caption, not influence the default placement
  %% needs to be adapted when the global style is changed to “top”
  \startplacetable [location={bottom, none}]
\externalfigure
  \stopplacetable
\stoptext

As far as I know there's no way to only turn off captions, so one
has to know the default placement value (which might be buried in an
environment file) and specify it again together with the “none”
option.

If you (or someone else) knows a way to disable the caption without
influencing the placement, I'm all ears.

Marco
___
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] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context

Am 30.11.21 um 12:16 schrieb Marco Patzer via ntg-context:

Hi!

Today I discovered that the parameter order in float location matters:

\starttext
   \samplefile{knuth}

   \startplacefigure [location={top,none}]  %% works: float is at the top
 \externalfigure
   \stopplacefigure

   \startplacefigure [location={none,top}]  %% top is ignored here
 \externalfigure
   \stopplacefigure
\stoptext

Not sure if that's how it's supposed to be. In any case, I didn't
expect it.


Well, in {bottom,top,here} it’s the order that TeX should try.
In some other combinations it might make less sense.

Hraban
___
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] Title for tabulate

2021-11-30 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Sonntag, 28. November 2021 14:26
> An: Maier, Denis Christian (UB) ; ntg-
> cont...@ntg.nl
> Betreff: Re: AW: [NTG-context] Title for tabulate
> 
> On 11/28/2021 1:22 PM, denis.ma...@unibe.ch wrote:
> >
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von Hans
> >> Hagen via ntg-context
> >> Gesendet: Sonntag, 28. November 2021 12:40
> >> An: Denis Maier via ntg-context 
> >> Cc: Hans Hagen 
> >> Betreff: Re: [NTG-context] Title for tabulate
> >>
> >> On 11/28/2021 9:15 AM, Denis Maier via ntg-context wrote:
> >>
> >>> A couple of questions :
> >>>
> >>> - Is it possible to have the title be typeset only once? I.e., it
> >>> should not repeat on each page.
> >> why not just use
> >>
> >> \subsubsubject{}
> >
> > That sounds like a neat solution. I'll investigate.
> > Does that play nicely with structurelevels? I mean, let's say I'm somewhere
> higher, e.g. on chapter, the next level would be section. If I now invoke this
> subsubsubject manually, does that break the levels structure?
> often it's ok as subjects are unnumbered but you can play safe:
> 
> \definehead[myownhead][subsubsubsubsubsubject]
> 
> \myownhead
> 
> you can then always go lower (more sub) if needed
> 
> and using dedicated head commands is also cleaner

Ok, that's what I've done now, and doesn't seem to create any problems.

Thanks for pointing me in the right direction.

Denis
___
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] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
Hi!

Today I discovered that the parameter order in float location matters:

\starttext
  \samplefile{knuth}

  \startplacefigure [location={top,none}]  %% works: float is at the top
\externalfigure
  \stopplacefigure

  \startplacefigure [location={none,top}]  %% top is ignored here
\externalfigure
  \stopplacefigure
\stoptext

Not sure if that's how it's supposed to be. In any case, I didn't
expect it.

Marco
___
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] double underbars

2021-11-30 Thread Denis Maier via ntg-context
Hi,

for a current project I'll need different variants of underbars.

- A normal underbar
- A dotted underbar
- A combination of both

Is there a way to combine them? I was hoping to have the dotted variant above 
the normal bar.

This is not working

%%%
\starttext

\underbar{asdf}

\underdot{asdf}

\underbar{\underdot{asdf}}

\stoptext
%%%


Best,
Denis

___
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] Caption with hanging figure label

2021-11-30 Thread Ben Moon via ntg-context
Hi,

I’d like to create a caption with the first line hanging/outdented compared to 
the lines afterwards, like this:

> Figure 1. Here is the line of text
>that goes on to a second line. The
>first line is hanging.

I’ve posted this question here: 
, but was suggested to post on 
the mailing list.

I have also seen the `hang=yes` option (from this post 
), which gives the figure label 
in its own ‘column’.

The difference that I want is that the Figure label is in-line with the body of 
the caption and not in a separate column. 

Do you have suggestions for how to do this?

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