[NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-04-30 Thread Jairo A. del Rio
I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file named maze.lua: function make_maze_tex(w, h, m) w = w or 16 h = h or 8 local map =

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
> On 30 Apr 2020, at 22:54, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 30.04.2020 um 22:47: >> In normal TeX, when I type >> AapAap >> I get something like >> Aap >> Aap >> But inside a \framed[align=]{} the empty line disappears. How do I get it >> back? >> Minimal example:

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
> On 30 Apr 2020, at 22:51, Henning Hraban Ramm wrote: > > > >> Am 30.04.2020 um 22:47 schrieb Gerben Wierda : >> >> In normal TeX, when I type >> >> AapAap >> >> I get something like >> >> Aap >> >> Aap >> >> But inside a \framed[align=]{} the empty line disappears. How do I get

Re: [NTG-context] Trouble setting PDF boxes

2020-04-30 Thread Jack Steyn
Hi Hans, using that produces a pdf which fails compliance with PDF/X-1a as the BleedBox is not set. But notice that if it did work, the sizes of TrimBox and BleedBox would be based off printpaperwidth and printpaperheight. I need them to be based off paperwidth and paperheight (for my documents

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
Brilliant! Thank you! > On 30 Apr 2020, at 22:54, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 30.04.2020 um 22:47: >> In normal TeX, when I type >> AapAap >> I get something like >> Aap >> Aap >> But inside a \framed[align=]{} the empty line disappears. How do I get it >>

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Wolfgang Schuster
Gerben Wierda schrieb am 30.04.2020 um 22:47: In normal TeX, when I type AapAap I get something like Aap Aap But inside a \framed[align=]{} the empty line disappears. How do I get it back? Minimal example: \starttext TestingTesting \page

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Henning Hraban Ramm
> Am 30.04.2020 um 22:47 schrieb Gerben Wierda : > > In normal TeX, when I type > > AapAap > > I get something like > > Aap > > Aap > > But inside a \framed[align=]{} the empty line disappears. How do I get it > back? Try \framedtext instead; multi line text needs a \vbox, and

[NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
In normal TeX, when I type AapAap I get something like Aap Aap But inside a \framed[align=]{} the empty line disappears. How do I get it back? Minimal example: \starttext TestingTesting \page \framed[align=flushleft]{TestingTesting}

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Joey McCollum
Okay! I have not figured out how to add a new page to the wiki, but I was able to add a section to the end of the "Arabic and Hebrew" page ( https://www.contextgarden.net/Arabic_and_Hebrew) discussing the issue, providing a test, and briefly describing the fix. Joey On Thu, Apr 30, 2020 at 11:14

Re: [NTG-context] Trouble setting PDF boxes

2020-04-30 Thread Hans Hagen
On 4/30/2020 5:51 PM, Jack Steyn wrote: Hello, I'm happy to report that I got this working after much trawling through the source and documentation. The code below produces a pdf with the MediaBox, CropBox, BleedBox and TrimBox all in the places I specified in my original message. I hope it

Re: [NTG-context] Fwd: Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Arthur Reutenauer
On Tue, Apr 28, 2020 at 08:21:01PM +0200, Hans Hagen wrote: > On 4/28/2020 6:16 PM, Joey McCollum wrote: >> https://raw.githubusercontent.com/michal-h21/uninormalize/master/char-def-with-ccc.lua), > looks like an ancient copy of char-def.lua I recognise this file name :-) That was from my

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
On 4/30/2020 6:06 PM, mf wrote: Il 30/04/20 17:21, Hans Hagen ha scritto: On 4/30/2020 3:15 PM, mf wrote: Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
On 4/30/2020 5:35 PM, Romain Diss wrote: Hi, Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. The

Re: [NTG-context] Project setup query

2020-04-30 Thread Henning Hraban Ramm
Hi Alan! > Am 30.04.2020 um 15:07 schrieb Alan Bowen : > > Is there a way to identify the TEX root for each of the common files (in > Directory02) so that > the file will be processed when I process any one of the prd files in > Directory01? > > I have tried > % !TEX

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
Il 30/04/20 17:21, Hans Hagen ha scritto: On 4/30/2020 3:15 PM, mf wrote: Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the

Re: [NTG-context] Trouble setting PDF boxes

2020-04-30 Thread Jack Steyn
Hello, I'm happy to report that I got this working after much trawling through the source and documentation. The code below produces a pdf with the MediaBox, CropBox, BleedBox and TrimBox all in the places I specified in my original message. I hope it helps illustrate how to set these PDF boxes

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Romain Diss
Hi, > Il 30/04/20 14:09, Romain Diss ha scritto: > > Hi, > > > > The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) > > doesn't provide the `--export-pdf=` option anymore. So context can not > > convert svg files into the corresponding `m_k_i_v_*` pdf. > The command line syntax

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
On 4/30/2020 3:15 PM, mf wrote: Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
On 4/30/2020 3:15 PM, mf wrote: Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Hans Hagen
On 4/30/2020 4:28 PM, Joey McCollum wrote: Thanks so much, Hans! I should be able to add a wiki page summarizing the tests before the end of the week. For reference purposes, do you know which version of ConTeXt has (or will have) this update included? todays upload

Re: [NTG-context] Getting page width and height in Lua

2020-04-30 Thread Wolfgang Schuster
Jack Steyn schrieb am 30.04.2020 um 16:36: If I want to get the paper width and height to use in some Lua code, I can use: local paperwidth, paperheight = backends.pdf.codeinjections.getpagedimensions() But what if I want to get the page width and height? That is, the width and height of

[NTG-context] Getting page width and height in Lua

2020-04-30 Thread Jack Steyn
If I want to get the paper width and height to use in some Lua code, I can use: local paperwidth, paperheight = backends.pdf.codeinjections.getpagedimensions() But what if I want to get the page width and height? That is, the width and height of the first argument in the two-argument version of

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Joey McCollum
Thanks so much, Hans! I should be able to add a wiki page summarizing the tests before the end of the week. For reference purposes, do you know which version of ConTeXt has (or will have) this update included? Joey On Thu, Apr 30, 2020 at 5:26 AM Hans Hagen wrote: > On 4/28/2020 1:59 PM, Joey

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does

[NTG-context] Project setup query

2020-04-30 Thread Alan Bowen
This is a minor issue—to which I expect the answer will be simple, something I should know by now but do not. I am just trying to see if I can streamline a working directory. In Directory01, I have a number of prd_NameXX.tex files as well as a Directory02 which contains .tex files that are to be

[NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Romain Diss
Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does the job. Thank in advance. -- Romain Diss

[NTG-context] Is this a MetaFun bug or intended behaviour?

2020-04-30 Thread Gerben Wierda
I wanted to use the macro simplified to remove duplicate points from a path, but it removes more than that: metapost log> (127,-107)..controls (117,-107) and (107,-107) metapost log> ..(97,-107)..controls (97,-130.34) and (97,-153.66) metapost log>

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Hans Hagen
On 4/30/2020 2:05 AM, jbf wrote: Hi list, With 99% of work complete on a book, including single page images, I now find myself confronted with a final problem: how to run one image across facing pages or in other words, one image (plus its caption) across a two-page spread, such that there

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Hans Hagen
On 4/28/2020 1:59 PM, Joey McCollum wrote: > ... My question is, can ConTeXt with LuaTeX handle the same situation correctly? In the following minimal example, ConTeXt typesets pointed Hebrew correctly when the characters are in the typographically recommended order, but not when they are in

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
> Am 30.04.2020 um 02:05 schrieb jbf : > > Hi list, > > With 99% of work complete on a book, including single page images, I now find > myself confronted with a final problem: how to run one image across facing > pages or in other words, one image (plus its caption) across a two-page >