Re: [NTG-context] double-sided page number placement

2021-07-11 Thread Pablo Rodriguez
On 7/11/21 5:07 PM, Charles Doherty wrote:
> [...]
> the left page of the double spread places the page number on the left
> margin of the page and in the right page it is placed on the right
> margin. This is what I would like to get in LMTX as well. Am I doing
> something wrong here?

Hi Charles,

I think that "inright" is what you want:

  \setuppagenumbering[alternative=doublesided,
  location=inright]

  \starttext
  \dorecurse{20}{\input knuth }
  \stoptext

With current latest from 2021.07.10 21:51, "location=inright" behaves as
you expect using LMTX.

Using MKIV with the current latest, there is no difference between
"location=inright" and "location=inmargin".

I don’t know whether this is intended or not.

I hope it might 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] weekend upload

2021-07-11 Thread Aditya Mahajan
On Sun, 11 Jul 2021, Bruce Horrocks wrote:

> > On 9 Jul 2021, at 17:29, Hans Hagen  wrote:
> > 
> > This weekend upload has something new for metapost animation lovers:
> 
> Forgive my ignorance but what exactly am I supposed to be seeing here? I run 
> the example and get two rows of ten boxes. They don't move so it's not like 
> an animated GIF was put into the PDF and they don't appear to be consecutive 
> frames that could be joined into an animated GIF.

For me, this feature provides the same capability as 'layers' in a graphical 
program. Consider the diagram shown in page 1 of the attached PDF. Suppose I 
want to "highlight" boxes A and B by drawing a square around them. That is 
easy; simply determine the bounding box of A, B (I do that manually here), and 
expand it a bit and draw it. Simple. See page 2. 

Now, suppose I want to fill this highlighted box. Suddenly, we have a problem. 
The highlight box needs to be "behind" the other boxes. How do we do it. We 
determine the location of boxes A, B, and C, but do not draw them. Determine 
the highlight box. Now draw the highlight box first and then draw the boxes. 
Suddenly the code became an order of magnitude more complicated. 

With the new stacking mechanism, I can just put the highlight box on "stack 
-1", and everything works well. See page 4. What's also super cool is that I 
can control what gets shown by changing the stacking key. 

Let's assume that the last MPpage was a \startuseMPgraphic{boxes}  
\stopuseMPgraphic. Suppose I wanted to use these pictures in a presentation. On 
the first slide, I can use

\useMPgraphic[stacking=0]{boxes}

to show the three boxes, and on the next slide, I can use

\useMPgraphic[stacking={-1,0}]{boxes}

to show the boxes and the highlight. Drawing such "conditional" graphics was 
cumbersome in the past. Now, it is easier. 

If you show a bunch of such "conditional" graphics in a sequence, you get an 
animation (or you could wrap around the animation module). 

Aditya

PS: Hans, stacking doesn't completely work with the boxes macro. drawunboxed is 
always drawn on stack 0, which the bpath is drawn on the right stack. That is 
the reason I use stack = -1 to put the highlight in the "background". 

background.pdf
Description: Adobe PDF document


background.tex
Description: TeX 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
___


[NTG-context] double-sided page number placement

2021-07-11 Thread Charles Doherty

Dear Hans,

The following file:

\setuplayout[location=doublesided]
\setuppagenumbering[location=inmargin,alternative=doublesided]

\starttext
\dorecurse{20}{\input knuth }
\stoptext

using:
> ConTeXt  ver: 2021.04.21 11:39 LMTX  fmt: 2021.7.11  int: english/english

the left page of the double spread places the page number on the right margin 
of the page and in the right page it is placed on the right margin


using:
> ConTeXt  ver: 2019.06.20 18:47 MKIV beta  fmt: 2019.6.23  int: english/english

the left page of the double spread places the page number on the left margin of 
the page and in the right page it is placed on the right margin. This is what I 
would like to get in LMTX as well. Am I doing something wrong here?

Thanks,
Charlie


___
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] weekend upload

2021-07-11 Thread Hans Hagen

On 7/11/2021 3:04 PM, Bruce Horrocks wrote:




On 9 Jul 2021, at 17:29, Hans Hagen  wrote:

This weekend upload has something new for metapost animation lovers:


Forgive my ignorance but what exactly am I supposed to be seeing here? I run 
the example and get two rows of ten boxes. They don't move so it's not like an 
animated GIF was put into the PDF and they don't appear to be consecutive 
frames that could be joined into an animated GIF.
It's not an animation ... but there are users who make animations with 
mp and then they need stepwise build images so this feature provides 
that (instead of defining 10 different mp graphicss one can dedine just 
one).


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] LMTX crashes with source

2021-07-11 Thread Pablo Rodriguez
On 7/8/21 7:38 PM, Hans Hagen wrote:
> On 7/7/2021 6:51 PM, Pablo Rodriguez wrote:
>> [...]
>> I get a crash when using LMTX, but not with MkIV (in both Windows and
>> Linux). I’m afraid it might be a bug.
>>
> hm, not related to the font .. tricky to trace, the real cause

Many thanks for your fix in current latest, Hans.

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] weekend upload

2021-07-11 Thread Bruce Horrocks


> On 9 Jul 2021, at 17:29, Hans Hagen  wrote:
> 
> This weekend upload has something new for metapost animation lovers:

Forgive my ignorance but what exactly am I supposed to be seeing here? I run 
the example and get two rows of ten boxes. They don't move so it's not like an 
animated GIF was put into the PDF and they don't appear to be consecutive 
frames that could be joined into an animated GIF.

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


Re: [NTG-context] Missing symb-imp-was.mkiv ?

2021-07-11 Thread Ramkumar KB
Hans,

Thank you very much! Let me follow your instructions and will give you
feedback.

Thanks again.

best regards,
Ramkumar

On Sun, Jul 11, 2021 at 3:46 AM Hans Hagen  wrote:

> On 7/10/2021 8:24 AM, Ramkumar KB wrote:
> > Hello,
> >
> > I am trying to follow the steps described here for using \usesymbols
> > [was] and details
> > described here -
> > https://wiki.contextgarden.net/Symbols/was
> > 
> >
> > Looks like the file `symb-imp-was.mkiv` is missing from the path -
> >
> > \tex\texmf-context\tex\context\base\mkiv
> >
> > Thank you for any tips or pointers.
> The wiki page actually mentiones jmn symbols but these are by (the late)
> Januz so that should be corrected.
>
> Anyway, the wasy font symbol setup was never converted to mkiv so
> attached is a draft.
>
> Up to you to complete it. From CTAN, download the type one package and
> put the afm and pfb files under (e.g.) texmf-fonts/fonts/data/wasy (no
> need for subdirs) and run "mtxrun --generate" to update the file database.
>
> You can look in the afm files to see what names are provided.
>
> It looks like the files were updated in 2020 (taco is mentiones). Rhaban
> made the mkii file so you can consult him. I advice to stick to the
> regular symbols not the weirdly composed ones.
>
> You can patch the file and send me the result. You can 'run the file' in
> order to get the overview. You should see at least most symbols.
>
> So ... work to do ...
>
> 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
___