Re: [NTG-context] floats disturb grid setting

2022-10-03 Thread Max Chernoff via ntg-context

Hi Hraban,

> > As soon as I use floats, text isn’t typeset on the grid any more:
> > 
> > 
> > \setuppaper[A5]
> > \setuplayout[grid=yes]
> > \showframe\showgrid
> 
> Oops, my bad: It must be "grid=on".
> But didn’t work "yes" in earlier versions?

I just tested:

 MkIV  MkXL
[grid=yes]   BrokenBroken
 [grid=on]   BrokenWorks

-- Max
___
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] remote images

2022-10-03 Thread Max Chernoff via ntg-context
Hi Hraban,

> fetching images per URI was supported (and is also documented in the 
> wiki), but with LMTX 2022.09.11 and one of
> 
> \externalfigure[http://tug.org/images/logobw.jpg]
> or
> \externalfigure[https://picsum.photos/300/200]
> 
> I only get the usual grey box. No error message.

Neither of those links are valid images themselves, they are both
redirects. The following works though:

   \starttext
   \externalfigure[https://tug.org/images/logobw.jpg]
   \stoptext
   
I can't seem to get the second one to work since its redirected URL is a
bit odd.

> Do I need any setup, was this discarded in LMTX, or what’s wrong?

I have no idea if ConTeXt would ever follow redirects before, but I
agree that it would be a useful feature.

Thanks,
-- Max
___
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] floats disturb grid setting

2022-10-03 Thread Henning Hraban Ramm via ntg-context

Am 03.10.22 um 14:02 schrieb Henning Hraban Ramm via ntg-context:

As soon as I use floats, text isn’t typeset on the grid any more:


\setuppaper[A5]
\setuplayout[grid=yes]
\showframe\showgrid


Oops, my bad: It must be "grid=on".
But didn’t work "yes" in earlier versions?

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] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Angel M Alganza via ntg-context

On Mon, Oct 03, 2022 at 07:17:10PM +0200, Leah Neukirchen via ntg-context wrote:


When I print this "directly" (i.e. sending the raw PDF to the printer)
on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.


I believe that is the exact same problem I have and that I described a
few days ago in my email with subject "Missing letters and numbers in
printout".  I have some grids on my document, which gets printed out,
but nothing else does.


The PDFs render fine on every PDF reader I could find.


Same here.


PDFs generated directly from Context MKIV from TeXLive 2022 using
LuaTeX 1.5 render fine on these printers.
I've also printed PDFs from pdfTeX in the past fine.


Same here.


Any ideas what I should try to help debug this?


I was told that this is the default now, that isn't going to change, and
that I could always use LuaTeX instead.  I could also use LaTeX, I
guess, but I'd rather keep using ConTeXt at least while my old 32 bits
OpenBSD installation works.

Cheers,
Ángel
___
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] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Leah Neukirchen via ntg-context
Hans Hagen via ntg-context  writes:

> On 10/3/2022 7:17 PM, Leah Neukirchen via ntg-context wrote:
>> Hi,
>> I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11.
>> Here's a tiny test document, I disabled PDF compression but it also
>> doesn't work with the default settings.
>> \setupbackend[level=0,compresslevel=0]
>> \starttext
>> Just a line of text.
>> \stoptext
>> When I print this "directly" (i.e. sending the raw PDF to the
>> printer)
>> on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.
>> The PDFs render fine on every PDF reader I could find.
>> Conversion to PostScript with pstopdf (poppler-22.07.0) and then
>> sending the PS renders the document correctly on the printer.
>> PDFs generated directly from Context MKIV from TeXLive 2022 using
>> LuaTeX 1.5 render fine on these printers.
>> I've also printed PDFs from pdfTeX in the past fine.
>> I attached the non-working 'foo.pdf.mkix'
>> and the working 'foo.pdf.mkiv' file.
>> I tried to disable font subsetting to debug this further, but I
>> couldn't figure out how to do it.
>
> subsetting should not be a problem and both files are subsetted  (lmxt
> a bit different but not fundamentally)

Well the idea was to have the same font stream in both files, so we
exclude that from the reasons it breaks.

Curiously, when I use Deja Vu:
\setupbodyfont[dejavu]

Then I get a
VHOYGZ+DejaVuSansMonoCID TrueType  Identity-H
   yes yes yes  8  0

and the PDF prints fine!  So it must be related to how Type 0C fonts
are written out, I think.

-- 
Leah Neukirchenhttps://leahneukirchen.org
___
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] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Hans Hagen via ntg-context

On 10/3/2022 7:17 PM, Leah Neukirchen via ntg-context wrote:

Hi,

I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11.

Here's a tiny test document, I disabled PDF compression but it also
doesn't work with the default settings.

\setupbackend[level=0,compresslevel=0]
\starttext
Just a line of text.
\stoptext

When I print this "directly" (i.e. sending the raw PDF to the printer)
on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.

The PDFs render fine on every PDF reader I could find.

Conversion to PostScript with pstopdf (poppler-22.07.0) and then
sending the PS renders the document correctly on the printer.

PDFs generated directly from Context MKIV from TeXLive 2022 using
LuaTeX 1.5 render fine on these printers.
I've also printed PDFs from pdfTeX in the past fine.

I attached the non-working 'foo.pdf.mkix'
and the working 'foo.pdf.mkiv' file.

I tried to disable font subsetting to debug this further, but I
couldn't figure out how to do it.


subsetting should not be a problem and both files are subsetted  (lmxt a 
bit different but not fundamentally)



Any ideas what I should try to help debug this?

i'm clueless ...

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 / 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] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Leah Neukirchen via ntg-context
Leah Neukirchen via ntg-context  writes:

> Hi,
>
> I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11.
>
> Here's a tiny test document, I disabled PDF compression but it also
> doesn't work with the default settings.
>
> \setupbackend[level=0,compresslevel=0]
> \starttext
> Just a line of text.
> \stoptext
>
> When I print this "directly" (i.e. sending the raw PDF to the printer)
> on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.
>
> The PDFs render fine on every PDF reader I could find.

On Acrobat DC on macOS, there is a visible difference between the two files:


Note that the 'a' and 'l' look quite different.

But I couldn't reproduce it with MuPDF for example.

-- 
Leah Neukirchenhttps://leahneukirchen.org
___
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] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Leah Neukirchen via ntg-context
Hi,

I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11.

Here's a tiny test document, I disabled PDF compression but it also
doesn't work with the default settings.

\setupbackend[level=0,compresslevel=0]
\starttext
Just a line of text.
\stoptext

When I print this "directly" (i.e. sending the raw PDF to the printer)
on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.

The PDFs render fine on every PDF reader I could find.

Conversion to PostScript with pstopdf (poppler-22.07.0) and then
sending the PS renders the document correctly on the printer.

PDFs generated directly from Context MKIV from TeXLive 2022 using
LuaTeX 1.5 render fine on these printers.
I've also printed PDFs from pdfTeX in the past fine.

I attached the non-working 'foo.pdf.mkix'
and the working 'foo.pdf.mkiv' file.

I tried to disable font subsetting to debug this further, but I
couldn't figure out how to do it.

Any ideas what I should try to help debug this?



foo.pdf.mkxl
Description: Binary data


foo.pdf.mkiv
Description: Binary data

cu,
-- 
Leah Neukirchenhttps://leahneukirchen.org/
___
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] floats disturb grid setting

2022-10-03 Thread Henning Hraban Ramm via ntg-context

As soon as I use floats, text isn’t typeset on the grid any more:


\setuppaper[A5]
\setuplayout[grid=yes]
\showframe\showgrid

\setupexternalfigure[
  location={local,global,default},
]

\starttext
\samplefile{lorem}
\startplacefigure[location=left,title=left]%
\externalfigure[mill][width=.25\textwidth]
\stopplacefigure

\samplefile{lorem}
\startplacefigure[location=bottom,title=bottom]%
\externalfigure[cow][width=.25\textwidth]
\stopplacefigure

\startplacefigure[location=right,title=right]%
\externalfigure[mill][width=.25\textwidth]
\stopplacefigure
\samplefile{lorem}

\startplacefigure[location=left,title=left]%
\externalfigure[mill][width=.25\textwidth]
\stopplacefigure
\samplefile{lorem}

\stoptext


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
___


[NTG-context] remote images

2022-10-03 Thread Henning Hraban Ramm via ntg-context

Hi,

fetching images per URI was supported (and is also documented in the 
wiki), but with LMTX 2022.09.11 and one of


\externalfigure[http://tug.org/images/logobw.jpg]
or
\externalfigure[https://picsum.photos/300/200]

I only get the usual grey box. No error message.

Do I need any setup, was this discarded in LMTX, or what’s wrong?

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] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Max Chernoff via ntg-context
Hi Taco, Michal,
> > 

> > > /home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136
> > > return (translations ?? [])
> > >   ^

That's the "Nullish coalescing operator", which MDN says is only
available in Node.js >= v14. 

   
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
   
What does running: 

   nodejs --version
   
give you? 

If it's less than v14, then you should probably upgrade your Node.js
installation. If that's not possible, then you'll need to downgrade
"vsce" to v1.103.1. 

If it's greater than v14, then you probably have two Node installations
and you installed "vsce" with the wrong one.

Thanks,
-- Max
___
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] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Taco Hoekwater via ntg-context
Message below is forwarded from the wiki mailing list.

Anybody?

> Begin forwarded message:
> 
> From: Michal Kvasnička 
> Subject: [CG Wiki] ConTeXt with VS Code 
> (https://wiki.contextgarden.net/VSCode)
> Date: 20 September 2022 at 16:31:06 CEST
> To: w...@contextgarden.net
> 
> Hi!
> 
> I tried to use the VS Code extension described in 
> https://wiki.contextgarden.net/VSCode  
> but in
> 
> xxx
> 
> I got the following error:
> 
> /home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136
> return (translations ?? [])
>   ^
> 
> SyntaxError: Unexpected token '?'
> at wrapSafe (internal/modules/cjs/loader.js:915:16)
> at Module._compile (internal/modules/cjs/loader.js:963:27)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> at Module.load (internal/modules/cjs/loader.js:863:32)
> at Function.Module._load (internal/modules/cjs/loader.js:708:14)
> at Module.require (internal/modules/cjs/loader.js:887:19)
> at require (internal/modules/cjs/helpers.js:74:18)
> at Object. 
> (/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/main.js:27:19)
> at Module._compile (internal/modules/cjs/loader.js:999:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> 
> Is there any way to discuss it with the extension developer? Can I find 
> somewhere the extension source code (on github or so)? Many thanks.
> 
> Note: I downloaded the last ConTeXt and compiled it in its directory. But 
> I've got an older version (part of TeXLive) installed on my Ubuntu 22.04, 
> too. I hope this is not the cause of the problem.
> 
> Best wishes,
> Michal
> 
> ___
> Wiki mailing list
> w...@contextgarden.net
> https://lists.contextgarden.net/mailman/listinfo/wiki

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