Re: [NTG-context] How to write readable source files?

2021-04-24 Thread luigi scarso
On Sat, Apr 24, 2021 at 11:53 AM Jan U. Hasecke wrote: > > Hi all, > > how do you format your ConTeXt source files? > > I recently discovered prettier which reformats source files for > different markup > and programming languages such as html, markdown, json etc. > > There are some other tools

[NTG-context] Fwd: Corrupt PDF files with LMTX?

2021-04-24 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: sáb, 24 de abr. de 2021 a la(s) 08:05 Subject: Re: [NTG-context] Corrupt PDF files with LMTX? To: Hans Hagen The following: \starttext \startMPpage fill fullcircle scaled 1cm withcolor red \stopMPpage \stoptext gives

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Henning Hraban Ramm
> Am 24.04.2021 um 11:45 schrieb Jan U. Hasecke : > > Do you know of any prettifying tool? I don’t know one. > Is there a best practice for ConTeXt source files, at all? I guess many of us adhere to Hans’ style, as shown in the sources. i.e. e.g. \setupsomething [name] [key=value,

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Hans van der Meer
>> Is there a best practice for ConTeXt source files, at all? Readable code is not just about formatting. Adding clear and complete comments that document the code can be considered even more important. dr. Hans van der Meer > On 24 Apr 2021, at 13:55, Henning Hraban Ramm wrote: > > >> Am

[NTG-context] How to write readable source files?

2021-04-24 Thread Jan U. Hasecke
Hi all, how do you format your ConTeXt source files? I recently discovered prettier which reformats source files for different markup and programming languages such as html, markdown, json etc. There are some other tools around but I don't find anything for ConTeXt. Do you know of any

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Hans Hagen
On 4/24/2021 11:45 AM, Jan U. Hasecke wrote: Hi all, how do you format your ConTeXt source files? I recently discovered prettier which reformats source files for different markup and programming languages such as html, markdown, json etc. There are some other tools around but I don't find

[NTG-context] Corrupt PDF files with LMTX?

2021-04-24 Thread Jairo A. del Rio
Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: Error: stream Length incorrect. Output may be incorrect. Error: An error occurred while reading an XREF table. The file has been

Re: [NTG-context] Corrupt PDF files with LMTX?

2021-04-24 Thread Hans Hagen
On 4/24/2021 8:03 AM, Jairo A. del Rio wrote: Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: hard to handle when there is no mwe ... Hans -

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread juh
Am Sat, Apr 24, 2021 at 01:55:28PM +0200 schrieb Henning Hraban Ramm: > I guess many of us adhere to Hans’ style, as shown in the sources. > > i.e. e.g. > \setupsomething > [name] > [key=value, >otherkey=value] > > while I prefer: > > \setupsomething[name][ > key=value, >

Re: [NTG-context] Fwd: Corrupt PDF files with LMTX?

2021-04-24 Thread Hans Hagen
On 4/24/2021 3:05 PM, Jairo A. del Rio wrote: gives     Error: stream Length incorrect.                Output may be incorrect.     Error: stream Length incorrect.                Output may be incorrect. I'll check it

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Nicola
On 2021-04-24, juh wrote: > Am Sat, Apr 24, 2021 at 01:55:28PM +0200 schrieb Henning Hraban Ramm: >> I guess many of us adhere to Hans’ style, as shown in the sources. >> >> i.e. e.g. >> \setupsomething >> [name] >> [key=value, >>otherkey=value] >> >> while I prefer: >> >>

Re: [NTG-context] new page before xtable with repeated headers

2021-04-24 Thread Werner Hennrich
Thank you Hans, this works well in my unchanged MWE - I'll do some more rigorous testing on monday and let you know. Thanks a lot and hava a nice weekend! Werner Am 23.04.21 um 21:28 schrieb Hans Hagen: Always tricky this (on my agenda is to look into the engines page builder ...) You can

Re: [NTG-context] Corrupt PDF files with LMTX?

2021-04-24 Thread Thomas A. Schmitz
On 24.04.21 08:03, Jairo A. del Rio wrote: Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: Error: stream Length incorrect. Output may be incorrect. Error: An error occurred while reading