Re: [NTG-context] Spacing in \unit

2022-10-09 Thread Alan Braslau via ntg-context
On Sat, 8 Oct 2022 11:59:04 -0600
Gavin via ntg-context  wrote:

> I’m trying to fix four issues:
>   - No space between the number and the following units. Should be a
> thin space.
>   - No space between the units and the following symbol (+ and =
> above). Should be appropriate “bin" or “rel" space.
>   - Too much space around the \cdot in the units. Should be treated
> like an “ord" when used to separate units.
>   - Too much space around the \times in the scientific notation.
> Should be treated like an "ord" when used in scientific notation.
> (I'm not sure there is consensus on this.)

Gavin (and the mailing list),

I would very strongly argue that the space between the number and the
following units be UNBREAKABLE. Perhaps a thin space (preference), but
most certainly non-breakable.

Similarly around the times in scientific notation.

I further cannot imagine that a line break be acceptable around a \cdot
in composite units.

This can possibly lead to overfill and underfill, something that I find
*infinitely* more acceptable then breaking numbers and units.

I do not know or use the \units command. Maybe it uses unbreakable
spaces, maybe not. I would never use it unless it could be configured
to only use nonbreakable spaces. 

Perhaps others feel differently?

Alan
___
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] How to make something appear to the right of every paragraph?

2022-10-09 Thread Joel via ntg-context
I'd like to add some area for readers to write in the margins of some text. 
This would leave three lines, like this to the right of the text.

__

The passage would take up about the left 60% of the text and the margin note 
space about 30% of textwidth, so no need to use the margins.
Though its easy for me to implement this code using some \thinrules and 
manually dropping macros in the text, is there some way ConTeXt can be told to 
just add them to right of every paragraph (at the start of the paragraph)?
Sample:
This is some text  
that is written in        
the passage and      you can see the th-ree lines to the right.The text 
in the para-graph continues eventhough there arejust three lines tothe right.

Here is another par-    agraph.                         
          
Here is yet another    paragraph. You can    see it also has 
the three liens.

This is just for a segment of the book, not every paragraph in the book.

--Joel

___
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] startTEXpage on A4

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

Am 09.10.22 um 20:49 schrieb Leah Neukirchen via ntg-context:


But that requires knowing the size in advance.  Think of the labels in
a museum that depend how long the description is. ;)


Well, on the labels in the church museum (https://staurothek.de) in 
Limburg/Lahn, the text just stops if it’s too long ;P
(No, really, whoever was in charge of the labels there did a crap job. 
On a big sign there are even correction remarks left.)


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] Help test a LMTX bug fix: tweaks in PDF generation

2022-10-09 Thread Leah Neukirchen via ntg-context
Henning Hraban Ramm via ntg-context  writes:

> Am 09.10.22 um 17:33 schrieb Leah Neukirchen via ntg-context:
>> Hi,
>> last week we had a long thread about non-printing PDF on this list
>> and
>> together with Hans I tracked down the issue and we found a fix.
>> Since it changes some details of how PDFs are generated by LMTX, we'd
>> like to test this change first on a wide range of software and
>> printers.
>> So please: Try to preview and then try to print the attached PDF;
>> and report back if either preview or printout does not look like
>> the attached reference PNG image (i.e. something is missing,
>> the fonts look different, or have wrong relative size.)
>> If you use other PDF tools in your workflow, please also check they
>> continue to work as before (and just as well as with MKIV-generated PDFs).
>
> Hi Leah, thank you!
>
> I viewed and printed the PDF with pdf.js in Thunderbird, Apple Preview
> and Adobe Acrobat Pro 9 to my Kyocera FS-C5100DN color laserprinter
> via KPDL (PS-compatible) driver.
> I don’t see any font problems, but neither text nor the bar are 100%
> black – is this intentional? Doesn’t look like RGB black, there are no
> other colors involved except in the printout from pdf.js.

Should be all black (CMYK black), but we didn't change this.
Picking from the screenshot I get #00 on Linux with evince, mupdf,
pdf.js.

> pdf.js seems to print as image and blurs the outlines. (I never tried
> to print from pdf.js before, is this normal?)

Yes, unfortunately.  But not related to our changes.

> Hraban

-- 
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] startTEXpage on A4

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

> On 10/9/2022 3:52 PM, Leah Neukirchen via ntg-context wrote:
>> Wolfgang Schuster via ntg-context  writes:
>> 
>>> Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:
 Hi,

 is there a way to have something like

 \setuppapersize[A5][A4]

 but have the "inner paper size" be a computed fit like in
 \startTEXpage?

 Or, alternatively, is there is a way to print crop marks around
 an environment like \startTEXpage?
>>>
>>> Can you be more concrete what your goal is, there are a few ways to solve
>>> your problem but with a few more information we can give you a good
>>> solution.
>> Say I want to print some stickers or paper strips of non-fixed size,
>> and get crop marks around them to know where to cut.
>> With \setuppapersize and \setuparranging I can do this nicely if I
>> know the size in advance, but in some cases I don't.
>
> \definepapersize
>   [label]
>   [width=6cm,
>height=25mm]

But that requires knowing the size in advance.  Think of the labels in
a museum that depend how long the description is. ;)

-- 
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] \setuparranging values for perfect bound A5 on A3?

2022-10-09 Thread Bruce Horrocks via ntg-context


> On 9 Oct 2022, at 02:58, Max Chernoff  wrote:
> 
> 
> Hi Bruce,
> 
>> I have a book to be perfect bound[1] and I'm trying to work out what
>> imposition to use.
>> 
>> The printer would like 4 A5 pages laid out on A3 e.g.
>> 
>> +---+---+
>> |   |   |
>> | a | b |
>> |   |   |
>> +---+---+
>> |   |   |
>> | c | d |
>> |   |   |
>> +---+---+
>> 
>> so that he can cut the paper and simply stack a, b, c, & d on top of
>> each other and then put them in the binding machine[2].
>> 
>> If the book is 40 pages long, say, then stack 'a' has page 1 on the
>> top, page 2 on the reverse, then the next sheet has page 3 and 4, and
>> so on down to the last sheet which has page 9 on the front and page 10
>> on the back. Stack 'b' would have page 11 on the front, 12 on the back
>> and so on, so that each stack has a quarter of the book.
>> 
>> Is this something LMTX can do and if so what combination of
>> \setuplayout and \setuppaper do I need to use? If they can be printed
>> in reverse order then great but I assume the printer can do that
>> fairly easily.
> 
> I don't think that there's any way to do this from within a document
> run, so I think that you'll need to use an external program.
> 
>> If not, is there a recommended external program that can do it?
> 
> But, you can use ConTeXt as the external program here. 
> 
> Save as "imposition.cld":
> 
>   local filename = document.getargument("filename")
>   local pdf = lpdf.epdf.image.open(filename)
>   local pages = pdf.nofpages
>   local max = math.ceil(pages / 4)
> 
>   context.setuppapersize({ "A5" }, { "A3" })
>   context.setuppaper { nx = 2, ny = 2 }
>   context.setuparranging { "XY" }
> 
>   local function insert_page(n)
>   context.startpagemakeup()
>   context.filterpages({ filename }, { n })
>   context.stoppagemakeup()
>   end
> 
>   context.starttext()
>   for i = 1, max do
>   if i % 2 == 1 then
>   insert_page(i + 0 * max)
>   insert_page(i + 1 * max)
>   insert_page(i + 2 * max)
>   insert_page(i + 3 * max)
>   else
>   insert_page(i + 1 * max)
>   insert_page(i + 0 * max)
>   insert_page(i + 3 * max)
>   insert_page(i + 2 * max)
>   end
>   end
>   context.stoptext()
> 
> Then run:
> 
>   context imposition.cld --filename=document.pdf
> 
> where "document.pdf" is replaced by your document name.
> 
> I'm not sure if I got your desired output quite right here, but
> hopefully you can easily modify the script if something isn't quite
> right.

Thank-you Max - that is exactly what I wanted and your code worked first time. 
:)

—
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] Help test a LMTX bug fix: tweaks in PDF generation

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

Am 09.10.22 um 17:33 schrieb Leah Neukirchen via ntg-context:

Hi,

last week we had a long thread about non-printing PDF on this list and
together with Hans I tracked down the issue and we found a fix.
Since it changes some details of how PDFs are generated by LMTX, we'd
like to test this change first on a wide range of software and
printers.

So please: Try to preview and then try to print the attached PDF;
and report back if either preview or printout does not look like
the attached reference PNG image (i.e. something is missing,
the fonts look different, or have wrong relative size.)

If you use other PDF tools in your workflow, please also check they
continue to work as before (and just as well as with MKIV-generated PDFs).


Hi Leah, thank you!

I viewed and printed the PDF with pdf.js in Thunderbird, Apple Preview 
and Adobe Acrobat Pro 9 to my Kyocera FS-C5100DN color laserprinter via 
KPDL (PS-compatible) driver.
I don’t see any font problems, but neither text nor the bar are 100% 
black – is this intentional? Doesn’t look like RGB black, there are no 
other colors involved except in the printout from pdf.js.


pdf.js seems to print as image and blurs the outlines. (I never tried to 
print from pdf.js before, is this normal?)


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] startTEXpage on A4

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

On 10/9/2022 3:52 PM, Leah Neukirchen via ntg-context wrote:

Wolfgang Schuster via ntg-context  writes:


Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:

Hi,

is there a way to have something like

\setuppapersize[A5][A4]

but have the "inner paper size" be a computed fit like in
\startTEXpage?

Or, alternatively, is there is a way to print crop marks around
an environment like \startTEXpage?


Can you be more concrete what your goal is, there are a few ways to solve
your problem but with a few more information we can give you a good
solution.


Say I want to print some stickers or paper strips of non-fixed size,
and get crop marks around them to know where to cut.

With \setuppapersize and \setuparranging I can do this nicely if I
know the size in advance, but in some cases I don't.

\unprotect % fix needed

\def\page_boxes_apply_offset % #box
  {\unless\ifdim\topoffset=\zeropoint
 \expandafter\page_boxes_apply_offset_indeed
   \orunless\ifdim\backoffset=\zeropoint
 \expandafter\page_boxes_apply_offset_indeed
   \else
 \expandafter\gobbleoneargument
   \fi}

\protect

\definepapersize
  [label]
  [width=6cm,
   height=25mm]

\setuppapersize
  [label] [A4]

\setuplayout
  [page]

\setuppaper
  [nx=3,
   ny=10,
   dx=1mm,
   dy=1mm]

\setuplayout
  [horoffset=50mm,
   veroffset=10mm]

\setuparranging
  [XY]

\setupbackgrounds
  [page]
  [frame=on]

\starttext
\dorecurse{56}
  {\startpagemakeup
 \midaligned{test #1}
   \stoppagemakeup}
\stoptext


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


[NTG-context] Help test a LMTX bug fix: tweaks in PDF generation

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

last week we had a long thread about non-printing PDF on this list and
together with Hans I tracked down the issue and we found a fix.
Since it changes some details of how PDFs are generated by LMTX, we'd
like to test this change first on a wide range of software and
printers.

So please: Try to preview and then try to print the attached PDF;
and report back if either preview or printout does not look like
the attached reference PNG image (i.e. something is missing,
the fonts look different, or have wrong relative size.)

If you use other PDF tools in your workflow, please also check they
continue to work as before (and just as well as with MKIV-generated PDFs).



fontmatrixtest.pdf
Description: Adobe PDF document

Thank you very much,
-- 
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] startTEXpage on A4

2022-10-09 Thread Wolfgang Schuster via ntg-context

Leah Neukirchen schrieb am 09.10.2022 um 15:52:

Wolfgang Schuster via ntg-context  writes:


Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:

Hi,

is there a way to have something like

\setuppapersize[A5][A4]

but have the "inner paper size" be a computed fit like in
\startTEXpage?

Or, alternatively, is there is a way to print crop marks around
an environment like \startTEXpage?

Can you be more concrete what your goal is, there are a few ways to solve
your problem but with a few more information we can give you a good
solution.

Say I want to print some stickers or paper strips of non-fixed size,
and get crop marks around them to know where to cut.

With \setuppapersize and \setuparranging I can do this nicely if I
know the size in advance, but in some cases I don't.


You can use \framed to create a box which takes the size of its content. 
The borders
of the framed box can be used to cut the stickers and with the 
frameoffset key

(or offset if your prefer) you can increase the distance between the borders
and the content.

\setuplayout[page]

\starttext

\centerbox
   {\startframed[width=10cm,align=normal,frameoffset=1cm]
    \input ward
    \stopframed}

\stoptext

Wolfgang

___
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] startTEXpage on A4

2022-10-09 Thread Leah Neukirchen via ntg-context
Wolfgang Schuster via ntg-context  writes:

> Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:
>> Hi,
>>
>> is there a way to have something like
>>
>> \setuppapersize[A5][A4]
>>
>> but have the "inner paper size" be a computed fit like in
>> \startTEXpage?
>>
>> Or, alternatively, is there is a way to print crop marks around
>> an environment like \startTEXpage?
>
> Can you be more concrete what your goal is, there are a few ways to solve
> your problem but with a few more information we can give you a good
> solution.

Say I want to print some stickers or paper strips of non-fixed size,
and get crop marks around them to know where to cut.

With \setuppapersize and \setuparranging I can do this nicely if I
know the size in advance, but in some cases I don't.

-- 
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] startTEXpage on A4

2022-10-09 Thread Wolfgang Schuster via ntg-context

Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:

Hi,

is there a way to have something like

\setuppapersize[A5][A4]

but have the "inner paper size" be a computed fit like in
\startTEXpage?

Or, alternatively, is there is a way to print crop marks around
an environment like \startTEXpage?


Can you be more concrete what your goal is, there are a few ways to solve
your problem but with a few more information we can give you a good 
solution.


Wolfgang

___
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] startTEXpage on A4

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

is there a way to have something like

\setuppapersize[A5][A4]

but have the "inner paper size" be a computed fit like in
\startTEXpage?

Or, alternatively, is there is a way to print crop marks around
an environment like \startTEXpage?

Thanks,
-- 
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] regular online meet-up

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

You’re invited to join on Wednesday, October 12th, 15:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://v34h.de/ctxmtg)

ConTeXt users of all levels are welcome!

Next meeting will be on November 9th.


(Same blurb as every time:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the above URL, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).

* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.

* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...

See you, 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-09 Thread Hans Hagen via ntg-context

On 10/9/2022 8:03 AM, Max Chernoff via ntg-context wrote:


Hi all,


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.


Just to add some more data points, I tested the attached MkXL file on
two printers, and the file printed perfectly on both.

Printer 1:
Brother HL-3170CDW
Printed via running "cat test.mkxl.pdf | nc Colour-Printer.local 9100"

Printer 2:

HP M227f LaserJet
Printed from the PDF file on a USB stick

Neither printer is anything fancy; they're both fairly inexpensive home

laser printers. I've got a much older Brother laser printer that I may be
able to test with next week.

Sorry I can't be of more help.
Leah and I are zooming in on the issue. It might relate to wrong font 
matrix default behavior in the pdf printer driver, and GS got a fix for 
that long ago, so maybe old printers with not-updated drivers can be 
affected.


Once we're confident that we can catch it Leah (who does the low level 
introspective testing with viewers, printers and tools) likely will 
report on it and there will be a test file for users to test if what we 
do is okay before we apply the safeguard.


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] \setuparranging values for perfect bound A5 on A3?

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

Am 09.10.22 um 02:29 schrieb Bruce Horrocks via ntg-context:

I have a book to be perfect bound[1] and I'm trying to work out what imposition 
to use.

The printer would like 4 A5 pages laid out on A3 e.g.

+---+---+
|   |   |
| a | b |
|   |   |
+---+---+
|   |   |
| c | d |
|   |   |
+---+---+

so that he can cut the paper and simply stack a, b, c, & d on top of each other 
and then put them in the binding machine[2].

If the book is 40 pages long, say, then stack 'a' has page 1 on the top, page 2 
on the reverse, then the next sheet has page 3 and 4, and so on down to the 
last sheet which has page 9 on the front and page 10 on the back. Stack 'b' 
would have page 11 on the front, 12 on the back and so on, so that each stack 
has a quarter of the book.

Is this something LMTX can do and if so what combination of \setuplayout and 
\setuppaper do I need to use? If they can be printed in reverse order then 
great but I assume the printer can do that fairly easily. If not, is there a 
recommended external program that can do it?

I've tried \setuplayout[4*2] and XY with 2x2 but neither output is what I need.


You meant \setuparranging, didn’t you?

https://wiki.contextgarden.net/Imposition
has an example on how to create your own scheme.

Good luck!
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] ConTeXt Standalone does not works on macOS Monterey with Apple M2 chip

2022-10-09 Thread Tommaso Gordini via ntg-context
Hello list,

I'm trying to install ConTeXt Standalone on my Mac (macOS 12.6 Monterey and
Apple M2 chip) but at the end of the installation the ConTeXt-MkIV folder
(where I install Standalone) on the disk weighs only 7MB (the tex tree is
created, but its folders are empty).
I've never had a problem installing it on my old computer (Intel processor).

Do you know if it is a known problem?

These are the commands I used (taken from the wiki):

rsync -av rsync: //contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --modules = all --fonts = all --goodies = all --context
= latest --engine = luatex

Where am I wrong?

LMTX installation, on the other hand, should be successful (the folder
weighs 297.8 MB, as much as the Standalone one should weigh).

Thanks in advance.
Tommaso
___
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-09 Thread Max Chernoff via ntg-context

Hi all,

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

Just to add some more data points, I tested the attached MkXL file on
two printers, and the file printed perfectly on both.

Printer 1:
   Brother HL-3170CDW
   Printed via running "cat test.mkxl.pdf | nc Colour-Printer.local 9100"
   
Printer 2:
   HP M227f LaserJet
   Printed from the PDF file on a USB stick
   
Neither printer is anything fancy; they're both fairly inexpensive home
laser printers. I've got a much older Brother laser printer that I may be
able to test with next week.

Sorry I can't be of more help.
-- 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
___