Re: [NTG-context] Text editor support via Digestif

2021-01-02 Thread Hans Hagen

On 1/2/2021 7:58 PM, Augusto Stoffel wrote:



I'd have to revive ST's package which provides support for ConTeXt
syntax and
now trying it with vim/coc, but wonder whether you're using TeXLive
or lmtx?

I'm trying with the latter on Debian (Sid)...


I have only tested it with TeXLive. But if lmtx provides a lua 
interpreter with kpathsea bindings, like the usual texlua, then it will 
surely work. If that's not the case and you installed lmtx in a 
nonstandard location, you will need to set an environment variable to 
specify the location of the interface XML files.

you can use resolvers.findfile when you use

mtxrun --script yourscript ...

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] Text editor support via Digestif

2021-01-02 Thread Augusto Stoffel
>
> I'd have to revive ST's package which provides support for ConTeXt syntax
> and
> now trying it with vim/coc, but wonder whether you're using TeXLive or
> lmtx?
>
> I'm trying with the latter on Debian (Sid)...
>
>
I have only tested it with TeXLive. But if lmtx provides a lua interpreter
with kpathsea bindings, like the usual texlua, then it will surely work. If
that's not the case and you installed lmtx in a nonstandard location, you
will need to set an environment variable to specify the location of the
interface XML files.

Best,
Augusto
___
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] Ducks in ConTeXt

2021-01-02 Thread Hans Hagen

On 1/2/2021 7:23 PM, Jairo A. del Rio wrote:



El jue, 31 de dic. de 2020 a la(s) 07:17, Wolfgang Schuster 
(wolfgang.schuster.li...@gmail.com 
) escribió:


Jairo A. del Rio schrieb am 24.12.2020 um 15:18:
 > Hi everyone!
 >
 > I've recently ported TikZducks to ConTeXt and finally removed TIkZ
 > along the way. So a new module was created. The module is called
 > "metaducks" (lol) and it's essentially a \useMPgraphic{...} with
a lot
 > of options, most of them ported from TikZducks. For those not
familiar
 > with the package, it draws customized rubber ducks :) I want to
 > include some more, so I'll gladly read any feedback, recommendations
 > and suggestions. Eventually I want it to be a module on its own. The
 > module is already in the ConTeXt Group:
 >
 >
https://modules.contextgarden.net/cgi-bin/module.cgi/action=details/id=105

 >
 > in case anyone wants to give it a try. Here's a minimal example:
 >
 > \usemodule[metaducks]
 > \starttext
 > \ducks[santa=true,mug=true]
 > \stoptext
 >
 > I wish the best for you all. Happy holidays!

It's nice to see a new third party module for ConTeXt but you have to
make a few changes.

1. You have to put the module and the documentation in the correct doc
and tex folders.


I'm doing it now. Thanks, I'll give my module some more order.

2. You should give your manual a better name, e.g. metaducks-manual.tex 



Agreed. I'll prepare a better manual before updating.

3. You can put your color definitions in the module, there is no need
for a new color file, especially because most of the colors you use are
already predefined.


Oh, colors are a bit different, so I copied RGB definitions from 
xcolor.sty, especially because with ConTeXt colors ducks looked a bit 
"brown" rather than yellow. However, I can merge t-metaducks.mkvi and 
colo-imp-xcolor.mkiv if necessary.

no need to merge ... in lmtx you can play with

withcolor "red"

and such ... best keep colors abstract

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] Ducks in ConTeXt

2021-01-02 Thread Jairo A. del Rio
El jue, 31 de dic. de 2020 a la(s) 07:17, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribió:

> Jairo A. del Rio schrieb am 24.12.2020 um 15:18:
> > Hi everyone!
> >
> > I've recently ported TikZducks to ConTeXt and finally removed TIkZ
> > along the way. So a new module was created. The module is called
> > "metaducks" (lol) and it's essentially a \useMPgraphic{...} with a lot
> > of options, most of them ported from TikZducks. For those not familiar
> > with the package, it draws customized rubber ducks :) I want to
> > include some more, so I'll gladly read any feedback, recommendations
> > and suggestions. Eventually I want it to be a module on its own. The
> > module is already in the ConTeXt Group:
> >
> >
> https://modules.contextgarden.net/cgi-bin/module.cgi/action=details/id=105
> >
> > in case anyone wants to give it a try. Here's a minimal example:
> >
> > \usemodule[metaducks]
> > \starttext
> > \ducks[santa=true,mug=true]
> > \stoptext
> >
> > I wish the best for you all. Happy holidays!
>
> It's nice to see a new third party module for ConTeXt but you have to
> make a few changes.
>
> 1. You have to put the module and the documentation in the correct doc
> and tex folders.
>

I'm doing it now. Thanks, I'll give my module some more order.


> 2. You should give your manual a better name, e.g. metaducks-manual.tex


Agreed. I'll prepare a better manual before updating.


> 3. You can put your color definitions in the module, there is no need
> for a new color file, especially because most of the colors you use are
> already predefined.
>
>
Oh, colors are a bit different, so I copied RGB definitions from
xcolor.sty, especially because with ConTeXt colors ducks looked a bit
"brown" rather than yellow. However, I can merge t-metaducks.mkvi and
colo-imp-xcolor.mkiv if necessary.

Thank you for your feedback.

Jairo


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


Re: [NTG-context] xrightarrow specific size issue

2021-01-02 Thread Johann Birnick
On Sat, 2021-01-02 at 17:08 +0100, Wolfgang Schuster wrote:
> Johann Birnick schrieb am 02.01.2021 um 17:04:
> > On Sat, 2021-01-02 at 14:30 +, Bruce Horrocks wrote:
> > > I'm not sure which manual you are looking in to find a reference to the
> > > ability to add a specific dimension.
> > > 
> > > In the source I can only find named sizes of 'none', 'normal', 'small',
> > > 'medium' and 'big'. You can 'kludge' these by extending the length of the
> > > text
> > > using hard spaces. Alternatively there is \rightarrowfill which you might
> > > be
> > > able to put into a frame of the desired width?
> > > 
> > > \starttext
> > > $1\xrightarrow[none]{blah} 1$
> > > \par
> > > $2\xrightarrow[normal]{blah} 2$
> > > \par
> > > $3\xrightarrow[small]{blah} 3$
> > > \par
> > > $4\xrightarrow[medium]{blah} 4$
> > > \par
> > > $5\xrightarrow{~~~blah~~~} 5$
> > > \par
> > > $6\xrightarrow[big]{blah} 6$
> > > \par
> > > $7\rightarrowfill 7$
> > > \par
> > > \stoptext
> > > 
> > > --
> > > Bruce Horrocks
> > > Hampshire, UK
> > In particular the documentation
> > https://dl.contextgarden.net/myway/matharrows.pdf shows exactly the example
> > 
> > \xrightarrow[50]
> > 
> > and the says the options are:
> > 
> > none small medium big normal DIMENSION
> > 
> > I'm sure I've seen the same options (i.e. including DIMENSION) in other
> > documentations aswell, but I can't find them now.
> > 
> > I assume this was removed with LMTX... is it possible to introduce it again?
> 
> No, the change already happened in MkIV when Hans rewrote the arrows code.
> 
> Wolfgang

And it's not planned to make specific sizes possible?

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
___


Re: [NTG-context] xrightarrow specific size issue

2021-01-02 Thread Wolfgang Schuster

Johann Birnick schrieb am 02.01.2021 um 17:04:

On Sat, 2021-01-02 at 14:30 +, Bruce Horrocks wrote:

I'm not sure which manual you are looking in to find a reference to the
ability to add a specific dimension.

In the source I can only find named sizes of 'none', 'normal', 'small',
'medium' and 'big'. You can 'kludge' these by extending the length of the text
using hard spaces. Alternatively there is \rightarrowfill which you might be
able to put into a frame of the desired width?

\starttext
$1\xrightarrow[none]{blah} 1$
\par
$2\xrightarrow[normal]{blah} 2$
\par
$3\xrightarrow[small]{blah} 3$
\par
$4\xrightarrow[medium]{blah} 4$
\par
$5\xrightarrow{~~~blah~~~} 5$
\par
$6\xrightarrow[big]{blah} 6$
\par
$7\rightarrowfill 7$
\par
\stoptext

--
Bruce Horrocks
Hampshire, UK

In particular the documentation
https://dl.contextgarden.net/myway/matharrows.pdf shows exactly the example

\xrightarrow[50]

and the says the options are:

none small medium big normal DIMENSION

I'm sure I've seen the same options (i.e. including DIMENSION) in other
documentations aswell, but I can't find them now.

I assume this was removed with LMTX... is it possible to introduce it again?


No, the change already happened in MkIV when Hans rewrote the arrows code.

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
___


Re: [NTG-context] xrightarrow specific size issue

2021-01-02 Thread Johann Birnick
On Sat, 2021-01-02 at 14:30 +, Bruce Horrocks wrote:
> I'm not sure which manual you are looking in to find a reference to the
> ability to add a specific dimension.
> 
> In the source I can only find named sizes of 'none', 'normal', 'small',
> 'medium' and 'big'. You can 'kludge' these by extending the length of the text
> using hard spaces. Alternatively there is \rightarrowfill which you might be
> able to put into a frame of the desired width?
> 
> \starttext
> $1\xrightarrow[none]{blah} 1$
> \par
> $2\xrightarrow[normal]{blah} 2$
> \par
> $3\xrightarrow[small]{blah} 3$
> \par
> $4\xrightarrow[medium]{blah} 4$
> \par
> $5\xrightarrow{~~~blah~~~} 5$
> \par
> $6\xrightarrow[big]{blah} 6$
> \par
> $7\rightarrowfill 7$
> \par
> \stoptext
> 
> --
> Bruce Horrocks
> Hampshire, UK

In particular the documentation
https://dl.contextgarden.net/myway/matharrows.pdf shows exactly the example

\xrightarrow[50]

and the says the options are:

none small medium big normal DIMENSION

I'm sure I've seen the same options (i.e. including DIMENSION) in other
documentations aswell, but I can't find them now.

I assume this was removed with LMTX... is it possible to introduce it again?

My problem is not to make the arrow bigger, I actually want to make it smaller.
I have 2 long words above it, and so it's really long. I could use \clap{}, but
then the spacing is gone and my 2 words clash with the text left and right of
the arrow. So I want a small arrow with long text above it, but the spacing
should be oriented on the text.

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


Re: [NTG-context] Text editor support via Digestif

2021-01-02 Thread Saša Janiška
On Thu, 31 Dec 2020 10:25:20 +0100
Augusto Stoffel  wrote:

Hiya Augusto,

> I have worked a bit on ConTeXt support in the Digestif language server
> [1], and I think it's pretty usable by this point, so I would like to
> invite everyone to check it out. Feedback is welcome.

Thanks a lot for your work on digestif and improving ConTeX support!

> Digestif plugs into any editor that support the Language Server
> Protocol

I'd probably like to use it with SublimeText which I favour over VScode...

> Another nice thing is that Digestif is a Lua program, and can run on
> the LuaTeX interpreter with no extra dependencies. On the other hand,
> I didn't get the change to test it on Windows or editors other than
> Emacs, although both things should work with minimal adjustments. Let
> me know if you have any issues.

I'd have to revive ST's package which provides support for ConTeXt syntax and
now trying it with vim/coc, but wonder whether you're using TeXLive or lmtx? 

I'm trying with the latter on Debian (Sid)...


Sincerely,
Gour

-- 
One who works in devotion, who is a pure soul, and who controls
his mind and senses is dear to everyone, and everyone is dear to
him. Though always working, such a man is never entangled.


___
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] xrightarrow specific size issue

2021-01-02 Thread Bruce Horrocks


> On 1 Jan 2021, at 14:25, Johann Birnick  wrote:
> 
> Hi Aditya,
> 
> I know the syntax, my problem is about the options for the length of the 
> arrow.
> 
> For example
> 
> \xrightarrow[big]{abc}
> 
> gives a longer arrow than
> 
> \xrightarrow{abc}
> 
> According to different manuals also specific lengths should be possible. But
> they don't work. I think it's a bug. (because the example from a documentation
> doesn't work)
> 
> Best regards,
> Johann

I'm not sure which manual you are looking in to find a reference to the ability 
to add a specific dimension.

In the source I can only find named sizes of 'none', 'normal', 'small', 
'medium' and 'big'. You can 'kludge' these by extending the length of the text 
using hard spaces. Alternatively there is \rightarrowfill which you might be 
able to put into a frame of the desired width?

\starttext
$1\xrightarrow[none]{blah} 1$
\par
$2\xrightarrow[normal]{blah} 2$
\par
$3\xrightarrow[small]{blah} 3$
\par
$4\xrightarrow[medium]{blah} 4$
\par
$5\xrightarrow{~~~blah~~~} 5$
\par
$6\xrightarrow[big]{blah} 6$
\par
$7\rightarrowfill 7$
\par
\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] [solved] Re: fatal error: return code: 256

2021-01-02 Thread Saša Janiška
On Fri, 1 Jan 2021 12:42:04 +0100
Saša Janiška  wrote:

> runtime error : input file './t.tex' is not found, quitting

Ahh..blindness. :-(

Did not realize that I rm-ed (by mistake) source file...


Sincerely,
Gour

-- 
Everyone is forced to act helplessly according to the qualities
he has acquired from the modes of material nature; therefore no
one can refrain from doing something, not even for a moment.


___
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] drop shadows with metapost/ metafun

2021-01-02 Thread Henning Hraban Ramm


> Am 29.12.2020 um 22:56 schrieb 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.

I don’t know if that helps, but I’m using a stack of transparent objects to 
simulate drop shadows:
https://wiki.contextgarden.net/Drop_shadows

No pixel images required. But I’d like to have a real text shadow instead of 
that box shadow.


Happy New Year!
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
___


[NTG-context] SILE typesetter and other projects

2021-01-02 Thread denis.maier
Hi
I just came across the SILE typesetter (https://sile-typesetter.org), which 
looks quite interesting and somehow similar to ConTeXt in some ways (e.g. lua), 
apart from the fact that it does not use TeX at all. ;-) Another project seems 
to be Patoline. Just out of curiosity: Has anyone some experience with these 
tools?
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
___