[NTG-context] Adding support for German language to the Words conversion

2022-10-10 Thread Marcus Christopher Ludl via ntg-context

Hello all,

this is my first contribution to this mailing list. 

Recently, when I posted a question on StackExchange.com regarding adding 
support for another language (German) to the "Words" conversion in 
ConTeXt (see here: 
https://tex.stackexchange.com/questions/657534/how-to-add-support-for-another-language-german-to-the-words-conversion-in-cont), 
@mickep suggested that I post the patched file (core-con.lua) to the 
mailing list, once I have it finished, so that it can be added for all 
to use. So, now that I'm confident my code works well, I would like to 
do just that. 


How should I proceed? Should I just send the file including my new code 
as an attachement to the mailing list? Or would it be preferrable to 
paste only the new parts of the code inline into an e-mail? Is that even 
the correct mailing list or would it be better to send this to 
dev-cont...@ntg.nl?


Best,
Marcus

___
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] Adding support for German language to the Words conversion

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

On 10/10/2022 9:21 PM, Marcus Christopher Ludl via ntg-context wrote:

Hello all,

this is my first contribution to this mailing list. 

Recently, when I posted a question on StackExchange.com regarding adding 
support for another language (German) to the "Words" conversion in 
ConTeXt (see here: 
https://tex.stackexchange.com/questions/657534/how-to-add-support-for-another-language-german-to-the-words-conversion-in-cont), 
@mickep suggested that I post the patched file (core-con.lua) to the 
mailing list, once I have it finished, so that it can be added for all 
to use. So, now that I'm confident my code works well, I would like to 
do just that. 


How should I proceed? Should I just send the file including my new code 
as an attachement to the mailing list? Or would it be preferrable to 
paste only the new parts of the code inline into an e-mail? Is that even 
the correct mailing list or would it be better to send this to 
dev-cont...@ntg.nl?

just mail them to me and wolfgang and we'll have a look at it

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

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

On 10/10/2022 3:04 PM, Tommaso Gordini via ntg-context wrote:
While waiting for Mojca's attempts, for the moment I solved it by simply 
copying the folder of the old Mac in which I had installed the 
Standalone to the Mac M2.

I have slightly modified the TeXShop scripts and everything works.

The log tells me:

This is LuaTeX, Version 1.13.0 (TeX Live 2021)

Compiling with LMTX, i read:

ConTeXt  ver:  2022.09.11 20:44 LMTX

And compiling with MkIV (of the TeX Live 2022):

This is LuaTeX, Version 1.15.0 (TeX live 2022)


in a setup where lmtx is leading mtxrun/context will use luametatex as 
runner and that one should recognize os/platform better


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

2022-10-10 Thread Pablo Rodriguez via ntg-context
On 10/9/22 17:33, Leah Neukirchen via ntg-context wrote:
> [...]
> 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.)

Hi Leah,

I used Acrobat DC, SumatraPDF and Firefox in Windows and all programs
displayed and printed your document fine (Canon imageRUNNER ADVANCE).

I had no issues before printing LMTX-generated documents.

Many thanks for your work fixing the issues (wrong font display and
printing with some printers),

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
___


Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Max Chernoff via ntg-context
Hi Joel,

On Mon, 2022-10-10 at 12:46 +, Joel wrote:
>  Hello Max,
> It is preferred if the solution is just three lines per paragraph,
> rather than some content parallel to the text

A Lua callback solution:

   \startluacode
   -- Constants
   RULE_OFFSET= tex.sp "1em"
   RULE_THICKNESS = tex.sp "0.4pt"
   RULE_LENGTH= tex.sp "3cm"
   
   -- Callback
   function userdata.lines(head)
   if status.output_active or
  tex.nest.ptr > 1
   then
   return head
   end
   
   local i = 0
   for n in node.traverseid(node.id "hlist", head) do
   i = i + 1
   if i > 3 then
   break
   end
   
   local offset = node.new "glue"
   offset.width = RULE_OFFSET
   node.slide(n.list).next = offset
   
   local rule = node.new "rule"
   rule.width = RULE_LENGTH
   rule.height = RULE_THICKNESS
   rule.depth = 0
   offset.next = rule
   end
   
   return head
   end
   
   nodes.tasks.appendaction(
   "finalizers",
   "after",
   "userdata.lines"
   )
   \stopluacode
   
   \parskip=\baselineskip
   
   \starttext
   One line paragraph
   
   Two line paragraph \\
   Two line paragraph
   
   Three line paragraph \\
   Three line paragraph \\
   Three line paragraph
   
   Four line paragraph \\
   Four line paragraph \\
   Four line paragraph \\
   Four line paragraph
   
   \samplefile{bryson}
   
   \samplefile{knuth}
   \stoptext

An \everypar solution:

   \appendtoks%
   \vbox to 0pt{%
   \dorecurse{3}{%
   \rlap{%
   \hskip\dimexpr\hsize+1em%
   \vrule height 0.4pt width 3cm%
   \relax%
   }%
   }%
   }%
   \to\everypar
   
   \parskip=\baselineskip
   
   \starttext
   One line paragraph
   
   Two line paragraph \\
   Two line paragraph
   
   Three line paragraph \\
   Three line paragraph \\
   Three line paragraph
   
   Four line paragraph \\
   Four line paragraph \\
   Four line paragraph \\
   Four line paragraph
   
   \samplefile{bryson}
   
   \samplefile{knuth}
   \stoptext

Neither of these solutions are great though. Both of these solutions are
pretty low-level, so there's presumably a more ConTeXt-y way of doing
this.

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

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

Max Chernoff via ntg-context schrieb am 11.10.2022 um 00:57:

Hi Joel,

On Mon, 2022-10-10 at 12:46 +, Joel wrote:

  Hello Max,
It is preferred if the solution is just three lines per paragraph,
rather than some content parallel to the text

A Lua callback solution:

[...]

An \everypar solution:

\appendtoks%
\vbox to 0pt{%
\dorecurse{3}{%
\rlap{%
\hskip\dimexpr\hsize+1em%
\vrule height 0.4pt width 3cm%
\relax%
}%
}%
}%
\to\everypar


You can use the \EveryPar register but \everypar is off limits.

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

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

Hi Tommaso,

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

I think that MkIV has been frozen since before macOS ARM was released,
so I wouldn't be surprised if an ARM version just doesn't exist.

I've never used macOS, but if this worked on your Intel Mac, then you
can try running the installer via Rosetta instead of running it
directly. TeX is so fast that the Rosetta emulation will have fairly
little overhead.


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

You can still use MkIV with the LMTX installation. Just run 

   context --luatex document.tex
   
instead of the usual

   context document.tex
   
TeX Live also supports macOS ARM and includes MkIV if you want another
installation option.

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

2022-10-10 Thread Max Chernoff via ntg-context
Hi Joel,

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

Is it okay if there are rules continuously down the right column? If so,
this is fairly simple to do with layers/backgrounds + MetaFun. 

If you want for there to be exactly three rules per paragraph, then that
is more complicated. I can think of some bad solutions (\everypar, Lua
callbacks), but I'll leave it to someone else to think of a good
solution.

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] Spacing in \unit

2022-10-10 Thread Max Chernoff via ntg-context
Hi Alan,

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

Yes, I agree completely here.

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

The current behaviour doesn't break the unit from the number, but it
does split the scientific notation.

This test file:

   \starttext
   \hsize=0pt Math: $G = \unit{6.6743e-11 m3 kg-1 s-2}$
   
   \hsize=0pt Text: \unit{6.6743e-11 m3 kg-1 s-2}
   \stoptext
   
gives:

   Math:
   퐺=
   6.6743×
   10–11m3⋅kg–1⋅s–2
   Text:
   6.6743
   ×
   10−11 m3⋅kg−1⋅s−2
   
which isn't great. In my opinion, the \unit command should be typeset in an
\hbox (or similar) since I can't think of any circumstances where breaking
it would be reasonable.

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

2022-10-10 Thread Keith McKay via ntg-context

Hi,

I printed the file from my Apple mac mini M1 wirelessly to my HP Color 
LaserJet MFP M283fdw from Thunderbird, Adobe Acrobat DC, Skim and 
Texshop. The latter three were essentially identical and clear but that 
from Thunderbird was fuzzy and not as sharp as the others.


Best Wishes

Keith McKay

On 09/10/2022 16:33, Leah Neukirchen via ntg-context wrote:

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


Thank you very much,

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

2022-10-10 Thread Mojca Miklavec via ntg-context
On Mon, 10 Oct 2022 at 08:48, Mojca Miklavec wrote:
> On Sun, 9 Oct 2022 at 09:24, Tommaso Gordini via ntg-context wrote:
> >
> > 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?
>
> It should work, at least in theory. I'll check later today on our M1 machine.

It looks like mtx-update.lua doesn't properly recognise the platform.
This is something that Hans needs to fix inside the context sources.
(I'll try to patch it later, maybe I have some success.)

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

2022-10-10 Thread Mojca Miklavec via ntg-context
On Sun, 9 Oct 2022 at 09:24, Tommaso Gordini via ntg-context wrote:
>
> 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?

It should work, at least in theory. I'll check later today on our M1 machine.
If that doesn't work, it should be some trivial problem (that should
be straightforward to fix).
If that works, it could be that "uname" reports something different
than "arm64" on M2. That should hopefully be easy to fix as well.

What does "uname -m" (and "uname -a") report on your mac?

Mojca
___
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-10 Thread Willi Egger via ntg-context
I would suggest the approach of Wolfgang because the standard setting of 
\framed(texts)’ width is fit and the height setting can be changed to this too. 
Further I would suggest to use an overlay and a Metafun graphic for the 
cut-indicators.


\defineoverlay[Cutpointstight][\useMPgraphic{Cutpointstight}]

\startuniqueMPgraphic{Cutpointstight}
path p;
p := unitsquare xscaled OverlayWidth yscaled OverlayHeight;
draw ulcorner p;
draw urcorner p;
draw llcorner p;
draw lrcorner p;
\stopuniqueMPgraphic

\framedtext
[height=fit,
 align={lohi,center},
 background=Cutpointstight,
 foregroundcolor=black,
 frame=off,
 offset=3pt]
{{\tfa HALITGARII EPISCOPI
 \blank[small]
 De vitiis et virtutibus
 \blank[small]
 Ordinum Poenitentium}
\blank[small]
Libri V.}

I hope this solves your issue

Willi
> On 9 Oct 2022, at 20:49, Leah Neukirchen via ntg-context  
> wrote:
> 
> 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
> ___

___
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-10 Thread Henning Hraban Ramm via ntg-context

Am 10.10.22 um 10:50 schrieb Keith McKay via ntg-context:

Hi,

I printed the file from my Apple mac mini M1 wirelessly to my HP Color 
LaserJet MFP M283fdw from Thunderbird, Adobe Acrobat DC, Skim and 
Texshop. The latter three were essentially identical and clear but that 
from Thunderbird was fuzzy and not as sharp as the others.


The latter is because Thunderbird uses pdf.js, and that prints PDFs as 
images (rasterized in a low resolution), as Leah confirmed my guess.


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

2022-10-10 Thread Joel via ntg-context
 Hello Max,
It is preferred if the solution is just three lines per paragraph, rather than 
some content parallel to the text...I'll be modifying whatever solution to fix 
a bunch of other situations (e.g. display a box next to each paragraph).

--Joel

On Monday, October 10, 2022 at 12:24:03 AM MDT, Max Chernoff 
 wrote:  
 
 Hi Joel,

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

Is it okay if there are rules continuously down the right column? If so,
this is fairly simple to do with layers/backgrounds + MetaFun. 

If you want for there to be exactly three rules per paragraph, then that
is more complicated. I can think of some bad solutions (\everypar, Lua
callbacks), but I'll leave it to someone else to think of a good
solution.

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

2022-10-10 Thread Willi Egger via ntg-context
I printed the file with a HP Officejet 7740 through Wifi from a MacBook Air 
(old form 2013). - The PDF-reader is Skim.  ConTeXt Version 2022.09.11 20:44 — 
There is a perfect print. 

Willi

> On 10 Oct 2022, at 11:24, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 10.10.22 um 10:50 schrieb Keith McKay via ntg-context:
>> Hi,
>> I printed the file from my Apple mac mini M1 wirelessly to my HP Color 
>> LaserJet MFP M283fdw from Thunderbird, Adobe Acrobat DC, Skim and Texshop. 
>> The latter three were essentially identical and clear but that from 
>> Thunderbird was fuzzy and not as sharp as the others.
> 
> The latter is because Thunderbird uses pdf.js, and that prints PDFs as images 
> (rasterized in a low resolution), as Leah confirmed my guess.
> 
> 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] How to get line numbering to match block quote position?

2022-10-10 Thread Joel via ntg-context
I have some text that is a block quote, but also has line numbering:

    \setuplinenumbering[step=3]    \starttext
    \startblockquote
            \startlinenumbering
                \input knuth
            \stoplinenumbering
        \stopblockquote \stoptext
The line numbering is appearing in the left margin as if the text were not a 
block quote. How can I tell it to move the numbering closer to the text, since 
the text is not up against the margin, being block quote text?
--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] ConTeXt Standalone does not works on macOS Monterey with Apple M2 chip

2022-10-10 Thread Tommaso Gordini via ntg-context
While waiting for Mojca's attempts, for the moment I solved it by simply
copying the folder of the old Mac in which I had installed the Standalone
to the Mac M2.
I have slightly modified the TeXShop scripts and everything works.

The log tells me:

This is LuaTeX, Version 1.13.0 (TeX Live 2021)

Compiling with LMTX, i read:

ConTeXt  ver:  2022.09.11 20:44 LMTX

And compiling with MkIV (of the TeX Live 2022):

This is LuaTeX, Version 1.15.0 (TeX live 2022)

Tommaso

Il giorno dom 9 ott 2022 alle ore 09:23 Tommaso Gordini <
illinguista1...@gmail.com> ha scritto:

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

2022-10-10 Thread Tommaso Gordini via ntg-context
Hello Mojca:

uname -a

Darwin MacBook-Air-di-Tommaso.local 21.6.0 Darwin Kernel Version 21.6.0:
Mon Aug 22 20:20:07 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8110
arm64


uname-m

arm64

Tommaso



Il giorno lun 10 ott 2022 alle ore 08:49 Mojca Miklavec <
mojca.miklavec.li...@gmail.com> ha scritto:

> On Sun, 9 Oct 2022 at 09:24, Tommaso Gordini via ntg-context wrote:
> >
> > 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?
>
> It should work, at least in theory. I'll check later today on our M1
> machine.
> If that doesn't work, it should be some trivial problem (that should
> be straightforward to fix).
> If that works, it could be that "uname" reports something different
> than "arm64" on M2. That should hopefully be easy to fix as well.
>
> What does "uname -m" (and "uname -a") report on your mac?
>
> Mojca
>

Il giorno lun 10 ott 2022 alle ore 08:49 Mojca Miklavec <
mojca.miklavec.li...@gmail.com> ha scritto:

> On Sun, 9 Oct 2022 at 09:24, Tommaso Gordini via ntg-context wrote:
> >
> > 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?
>
> It should work, at least in theory. I'll check later today on our M1
> machine.
> If that doesn't work, it should be some trivial problem (that should
> be straightforward to fix).
> If that works, it could be that "uname" reports something different
> than "arm64" on M2. That should hopefully be easy to fix as well.
>
> What does "uname -m" (and "uname -a") report on your mac?
>
> Mojca
>
___
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-10 Thread Rik Kabel via ntg-context

Win 11 64 Intel, Sumatra PDF 3.4.6 to Brother MFC-L2740DW looks good.

Win 11 64 Intel, Sumatra PDF 3.4.6 to HP LJPro M254dw looks good.

Printing via Firefox, as others have noted, is fuzzy, but nothing is 
missing.


--
Rik


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