[NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Jeong Dal

Hi,

I am trying to add a url as a footnote in the caption.
There is no error, but it is written in two lines in the footnote.
I also try \hyphenatedurl, \letterslash in the wiki, but it is no use.
I am using "ConTeXt  ver: 2020.12.22 22:14 LMTX”.

Thank you for reading.

Best regards,

Dalyoung

Here is a MWE.

\useMPlibrary[dum]
\unexpanded\def\myurl#1{%
\bgroup{\hyphenatedurl{#1}}\egroup}

\starttext
\startplacefigure[]
{\startcombination[2*1]
{\externalfigure[dummyz][width=.35\makeupwidth]}{Pegasus\footnote{\myurl{https://www.mcescher.com/gallery\letterslash
 recognition-success/no-105-pegasus/}}}
{\externalfigure[dummy][width=.35\makeupwidth]}{Birds\footnote{\myurl{https://www.mcescher.com/gallery/recognition-success/no-128-bird/}}}
\stopcombination}
\stopplacefigure

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


Re: [NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Pablo Rodriguez
On 12/29/20 8:23 PM, Jeong Dal wrote:
> [...]
> I am trying to add a url as a footnote in the caption.
> There is no error, but it is written in two lines in the footnote.
> I also try \hyphenatedurl, \letterslash in the wiki, but it is no use.
> I am using "ConTeXt  ver: 2020.12.22 22:14 LMTX”.

Hi Dalyoung,

I would say that LMTX is causing an issue here (but for sure Hans knows
better).

The issue with your MWE is solved by adding:

  \setupnote[footnote][width=\textwidth]

Just in case it helps,

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
___


[NTG-context] drop shadows with metapost/ metafun

2020-12-29 Thread Garulfo
Which process would you advice to add « drop shadows » to any kind of metafun / 
metapost figures like:
picture p;
p := textext("MetaPost is fun!") shifted (10cm,10cm);

My current understanding of the required steps :


1- fill p with the shadow color

2- write it to an external metapost file (with savebuffer ?) ready for png 
export (outputformat := "png »;)

3- with lua, os.execute, and imagemagick prepare the shadow
  - extent the png file with a transparent background, to have room for 
blurring 
  - blur it

4- import this png in context / Metapost (externalfigure), and center it with p 
figure

5- shift it according to the desired shadows distance and angle

6- apply the initial bounding box of p to the shadow, draw the shadow, draw the 
p picture 


Actually, all this seems long and tedious, and contrasts with the already 
existing links between MetaPost / MetaFun and cairo + libpng.

Thanks again for your help.___
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] Math align not working

2020-12-29 Thread Johann Birnick
Hi Otared,

I'm using the same version. The problem is the "right"-alignment. See the 4 on
the right side. It should be right-aligned. I attached my pdf.

Best regards,
Johann


On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote:
> Hi Johann,
> 
> The example you sent works fine here with LMTX version 2020.12.28 01:41.
> Which version of ConTeXt are you using ?
> 
> Best regards: Otared
> 
> > On 29 Dec 2020, at 14:36, Johann Birnick  wrote:
> > 
> > Hi there,
> > 
> > I noticed that Math align is not working properly. In particular I mean the
> > alignment. For example, the following code
> > 
> > 
> > \starttext  
> >    
> > 
> > \startformula \startalign[m=2,distance=8em,n=5,
> > align={right,middle,middle,middle,left}]
> > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10
> > \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR
> > \NC 3 \NC < \NC 2y + 3z \NC < \NC 15
> > \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR
> > \stopalign \stopformula
> > 
> > \stoptext
> > 
> > 
> > is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't
> > produce the intended result.
> > 
> > What's wrong?
> > 
> > Best regards,
> > Johann
> > 
> > 
> > ___
> > 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
> __
> _


test.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] Math align not working

2020-12-29 Thread Otared Kavian
Hi Johann,

The example you sent works fine here with LMTX version 2020.12.28 01:41.
Which version of ConTeXt are you using ?

Best regards: Otared

> On 29 Dec 2020, at 14:36, Johann Birnick  wrote:
> 
> Hi there,
> 
> I noticed that Math align is not working properly. In particular I mean the
> alignment. For example, the following code
> 
> 
> \starttext
>  
> 
> \startformula \startalign[m=2,distance=8em,n=5,
> align={right,middle,middle,middle,left}]
> \NC 0 \NC < \NC 2x + 5y \NC < \NC 10
> \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR
> \NC 3 \NC < \NC 2y + 3z \NC < \NC 15
> \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR
> \stopalign \stopformula
> 
> \stoptext
> 
> 
> is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't
> produce the intended result.
> 
> What's wrong?
> 
> Best regards,
> Johann
> 
> ___
> 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] Best practices for multi-part book

2020-12-29 Thread Denis Maier

Hi,

I need to typeset a book that, due to space constraints, is going to be 
published in two volumes. Both volumes together will contain about 1500 
pages, both volumes should be continuously paginated, i.e. if volume 1 
ends at page 700 volume 2 will start at 801 (After the frontmatter 
maybe.) Both volumes will have the same frontmatter, maybe a different 
subtitle. Oh, and of course, both volumes shall have a complete table of 
contents.


How would you approach such a task. I'm inclined to just treat the the 
whole thing as a single book, and split the the PDF at some point. Or, 
are there better ways that I could consider?


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] Math align not working

2020-12-29 Thread Johann Birnick
Hi there,

I noticed that Math align is not working properly. In particular I mean the
alignment. For example, the following code


\starttext 

\startformula \startalign[m=2,distance=8em,n=5,
align={right,middle,middle,middle,left}]
\NC 0 \NC < \NC 2x + 5y \NC < \NC 10
\NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR
\NC 3 \NC < \NC 2y + 3z \NC < \NC 15
\NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR
\stopalign \stopformula

\stoptext


is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't
produce the intended result.

What's wrong?

Best regards,
Johann

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