Re: [NTG-context] pragma-ade.nl - 404

2022-11-09 Thread Thangalin via ntg-context
Re: https://wiki.contextgarden.net/Installation

I've changed all the download links to use the site
http://lmtx.pragma-ade.com instead of .nl. I haven't tested all the
links.

Cheers!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Floris van Manen via ntg-context



On 09/11/2022 14:38, Ramkumar KB wrote:

Can you please try with VSCode first in Ubuntu and see if this works?

We have never tried with Codium (unfortunately) and therefore not sure 
how the Extension sytem works in Codium.




Not too eager to invite the telemetricks into my machine,
so I'll rather opt to wait instead.
No hurry.

.F
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] OpenBSD binaries

2022-11-09 Thread damien thiriet via ntg-context

Wasn't it you who actually suggested to have the two versions?


I bet I was… mea maxima culpa.
Looks anyway like there are not many OBSD users dealing with ConTeXt…


the sources are in the distribution as is build.sh


Thanks Hans. I understand these are on

https://www.pragma-ade.nl/download-1.htm

I'll give it a try during my next holidays…

Best regards,

Damien Thiriet
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Bruce Horrocks via ntg-context
On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context  
wrote:
> 
> On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
>> Hi,
>> I find that for some time (but maybe the problem comes from me !), the
>> placement of a figure at the bottom of the page causes a page break when
>> it seems to me that there is enough space, which poses some problems in
>> the pagination of my documents.
> 
> Hi Fabrice,
> 
> your figure requires about 7¼ lines (one line before, six for the image
> itself, and some extra space after it).
> 
> Your layout for the first page only allows 43 lines and sample text ends
> on line 37.
> 
> Replace \showframe with \showgrid and you will see that there might be
> not enough space to fit the image in the first page.
> 
> Add "bottomspace=7.25mm" to the layout for the first page and the image
> will fit in the first page.
> 
> Just in case it might help,

Or Pablo's answer shown another way... change the end of the example to:

\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\dorecurse{5}{\input ward} %% extra
\stoptext

and the extra text shows how much space the image requires. Holding a ruler up 
to the screen you can see that it won't fit.

The problem seems to be that the image is reserving space for a caption even 
though there isn't a caption. A work-around is to change \setupfloat to the 
following:

 \setupfloat
 [recipe]
 [default={right,none,high}]

and then the image fits as you want it to.
—
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Pablo Rodriguez via ntg-context
On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
> Hi,
> I find that for some time (but maybe the problem comes from me !), the
> placement of a figure at the bottom of the page causes a page break when
> it seems to me that there is enough space, which poses some problems in
> the pagination of my documents.

Hi Fabrice,

your figure requires about 7¼ lines (one line before, six for the image
itself, and some extra space after it).

Your layout for the first page only allows 43 lines and sample text ends
on line 37.

Replace \showframe with \showgrid and you will see that there might be
not enough space to fit the image in the first page.

Add "bottomspace=7.25mm" to the layout for the first page and the image
will fit in the first page.

Just in case it might help,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Fabrice Couvreur via ntg-context
Hi,
I find that for some time (but maybe the problem comes from me !), the
placement of a figure at the bottom of the page causes a page break when it
seems to me that there is enough space, which poses some problems in the
pagination of my documents.
Thanks.
Fabrice

\useMPlibrary[dum]
\definelayout
   [1]
   [topspace=10mm,
header=15mm,
headerdistance=10mm,
height=middle,
width=middle,
location=middle]

\setuplayout
  [topspace=10mm,
header=0pt,
headerdistance=0pt,
height=middle,
width=middle,
location=middle]

\definefloat
[recipe]
[figure]

 \setupfloat
 [recipe]
 [default={right,none}]

 \showframe
\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] overprinting black

2022-11-09 Thread Henning Hraban Ramm via ntg-context

Am 09.11.22 um 17:22 schrieb Duncan Hothersall:
Have you tried overprint=yes? I have that in old files which used to 
work under mkii. I must admit I haven't had the need to use overprinting 
since then, but I do recall that come colour handling wasn't ported 
across to mkiv or later.


Thank you for the hint, but it doesn’t work, neither in \setupcolors nor 
in \definecolor.


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
Have you tried overprint=yes? I have that in old files which used to work
under mkii. I must admit I haven't had the need to use overprinting since
then, but I do recall that come colour handling wasn't ported across to
mkiv or later.

Duncan

On Wed, 9 Nov 2022 at 16:12, Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> I’m not sure if this ever worked, but at least in latest LMTX it doesn’t:
>
> """
> \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint]
>
> \starttext
>
> \framed[
>background=color,
>backgroundcolor=yellow,
> ]{\ss\bfd
>Black should always overprint.
> }
>
> \stoptext
> """
>
> The black text and frame border don’t overprint the yellow background
> but knockout. The only way to check this (that I know of) is Acrobat
> Pro’s separation simulation; the screenshot shows a snippet of the
> yellow separation.
>
> Actually, setting “overprint” for all colors doesn’t make sense, it
> should be a setting for single color (but default for black):
>
> % desired interface:
> \definecolor[overBlack][k=1,intent=overprint]
>
> Hraban
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] overprinting black

2022-11-09 Thread Henning Hraban Ramm via ntg-context

I’m not sure if this ever worked, but at least in latest LMTX it doesn’t:

"""
\setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint]

\starttext

\framed[
  background=color,
  backgroundcolor=yellow,
]{\ss\bfd
  Black should always overprint.
}

\stoptext
"""

The black text and frame border don’t overprint the yellow background 
but knockout. The only way to check this (that I know of) is Acrobat 
Pro’s separation simulation; the screenshot shows a snippet of the 
yellow separation.


Actually, setting “overprint” for all colors doesn’t make sense, it 
should be a setting for single color (but default for black):


% desired interface:
\definecolor[overBlack][k=1,intent=overprint]

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Saša Janiška via ntg-context
On Tue, 8 Nov 2022 22:20:10 +0800
Ramkumar KB via ntg-context  wrote:

> Hello All,
> 
> I have published the new VSCode Extension for ConTeXt, that I
> presented during the 2022 ConTeXt meeting -
> 
> https://wiki.contextgarden.net/VSCode  

Any plan to make it work with other editors which do support LSP?


Sincerely,
Saša

-- 
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Saša Janiška via ntg-context
On Tue, 8 Nov 2022 22:20:10 +0800
Ramkumar KB via ntg-context  wrote:

> Hello All,
> 
> I have published the new VSCode Extension for ConTeXt, that I
> presented during the 2022 ConTeXt meeting -
> 
> https://wiki.contextgarden.net/VSCode

Any plan to make it work with other editors which do support LSP?


Sincerely,
Saša

-- 
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Ramkumar KB via ntg-context
Denis,

Thanks for the feedback.

No, you are not missing anything. The ConTeXt command list comes from a
file that Hans & Hraban maintain - to create the PDF version of the ConTeXt
commands guide that is available with the distribution -
https://wiki.contextgarden.net/Documentation (we convert that file into a
Typescript object and then use it in the Language Server).

Yes, this is an obvious improvement point that you have highlighted - I
will work with Hans & Hraban to improve it.

Best,

On Wed, Nov 9, 2022 at 8:36 PM  wrote:

> Thanks. I’ve had a quick look.
>
> One thing I’ve found is that it supports \start... commands, yet in some
> cases the corresponding \stop... commands seem to be missing.
>
>
>
> Am I missing something ?
>
>
>
> Best,
>
> Denis
>
>
>
> *Von:* ntg-context  *Im Auftrag von *Ramkumar
> KB via ntg-context
> *Gesendet:* Dienstag, 8. November 2022 15:20
> *An:* mailing list for ConTeXt users 
> *Cc:* Ramkumar KB 
> *Betreff:* [NTG-context] New VSCode extenstion using ConTeXt Language
> server
>
>
>
> Hello All,
>
>
>
> I have published the new VSCode Extension for ConTeXt, that I presented
> during the 2022 ConTeXt meeting -
>
>
>
> https://wiki.contextgarden.net/VSCode
>
>
>
> You can install it manually in the VSCode (using the "Install from
> VSIX..." option).
>
> Documentation (for now) -
> https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
>
>
>
> This supports ConTeXt markup and for any Lua code (within \startluacode &
> \stopluacode) it re-directs to the Lua Language Server (from Sumneko -
> https://github.com/sumneko/lua-language-server )
>
>
>
> To Do -
>
>1. Make the source code open-source
>2. Add new features (like Hover & Tooltip)
>3. Work with Taco to add MetaPost Language Server (this could be
>challenging and interesting)
>
> Do give this a try and give your feedback. Note that this does not contain
> *all* the macros but covers the vast majority of the ConTeXt commands.
>
>
>
> Thank you,
>
>
>
> best regards
>
> Ramkumar
>
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Ramkumar KB via ntg-context
Floris,
Can you please try with VSCode first in Ubuntu and see if this works?

We have never tried with Codium (unfortunately) and therefore not sure how
the Extension sytem works in Codium.

Best.

On Wed, Nov 9, 2022 at 12:03 AM Floris van Manen via ntg-context <
ntg-context@ntg.nl> wrote:

> I cannot get it (vsix) to work on linux ubuntu with codium (the
> telematic-free version)
> There is probably a reason to it...
>
>
>
> On 08/11/2022 15:20, Ramkumar KB via ntg-context wrote:
> > Subject:
> > [NTG-context] New VSCode extenstion using ConTeXt Language server
> > From:
> > Ramkumar KB via ntg-context 
> > Date:
> > 08/11/2022, 15:20
> >
> > To:
> > mailing list for ConTeXt users 
> > CC:
> > Ramkumar KB 
> >
> >
> > Hello All,
> >
> > I have published the new VSCode Extension for ConTeXt, that I presented
> > during the 2022 ConTeXt meeting -
> >
> > https://wiki.contextgarden.net/VSCode
> > 
> >
> > You can install it manually in the VSCode (using the "Install from
> > VSIX..." option).
> > Documentation (for now) -
> > https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
> >  >
> >
> > This supports ConTeXt markup and for any Lua code (within
> > \startluacode & \stopluacode) it re-directs to the Lua Language Server
> > (from Sumneko - https://github.com/sumneko/lua-language-server
> >  )
> >
> > To Do -
> >
> >  1. Make the source code open-source
> >  2. Add new features (like Hover & Tooltip)
> >  3. Work with Taco to add MetaPost Language Server (this could be
> > challenging and interesting)
> >
> > Do give this a try and give your feedback. Note that this does not
> > contain *all* the macros but covers the vast majority of the ConTeXt
> > commands.
> >
> > Thank you,
> >
> > best regards
> > Ramkumar
> >
> >
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist :ntg-context@ntg.nl  /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  :https://www.pragma-ade.nl  /http://context.aanhet.net
> > archive  :https://bitbucket.org/phg/context-mirror/commits/
> > wiki :https://contextgarden.net
> >
> ___
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Denis Maier via ntg-context
Thanks. I’ve had a quick look.
One thing I’ve found is that it supports \start... commands, yet in some cases 
the corresponding \stop... commands seem to be missing.
[cid:image001.png@01D8F440.4954AD00]

Am I missing something ?

Best,
Denis

Von: ntg-context  Im Auftrag von Ramkumar KB via 
ntg-context
Gesendet: Dienstag, 8. November 2022 15:20
An: mailing list for ConTeXt users 
Cc: Ramkumar KB 
Betreff: [NTG-context] New VSCode extenstion using ConTeXt Language server

Hello All,

I have published the new VSCode Extension for ConTeXt, that I presented during 
the 2022 ConTeXt meeting -

https://wiki.contextgarden.net/VSCode

You can install it manually in the VSCode (using the "Install from VSIX..." 
option).
Documentation (for now) - 
https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf

This supports ConTeXt markup and for any Lua code (within \startluacode & 
\stopluacode) it re-directs to the Lua Language Server (from Sumneko - 
https://github.com/sumneko/lua-language-server )

To Do -

  1.  Make the source code open-source
  2.  Add new features (like Hover & Tooltip)
  3.  Work with Taco to add MetaPost Language Server (this could be challenging 
and interesting)
Do give this a try and give your feedback. Note that this does not contain 
*all* the macros but covers the vast majority of the ConTeXt commands.

Thank you,

best regards
Ramkumar

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___