Re: [NTG-context] How to install the ConTeXt-SBL module?

2022-05-29 Thread Max Chernoff via ntg-context

> What is the correct way to install an unofficial ConTeXt module

Right now with LMTX, the only way to install modules is to manually copy 
files. I believe that the typical location to store module files is 
"TEXMFMODULES", but "TEXMFLOCAL" or "TEXMFHOME" should also work.


To get the folder location, in a Unix shell run:

mtxrun --variables | grep -A4 'lists | TEXMFMODULES'

or in PowerShell run:

mtxrun --variables | sls 'lists \| TEXMFMODULES' -co 0,4

Then you should copy all of the module's files to the "res: " directory 
found above.


Make sure to run

mtxrun --generate

after you copy over the files.

I haven't tested any of this specifically with the SBL module, but I've 
followed this procedure successfully with many other modules.


-- Max
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to install the ConTeXt-SBL module?

2022-05-29 Thread Joey McCollum via ntg-context
While testing the module, I would copy the .mkiv and .lua files to my
ConTeXt MkIV directory (on Windows with the TeXLive distribution, this was
C:\texlive\2021\texmf-dist\tex\context\base\mkiv) and then run

context --make

to apply the updates.

If there is some other preferred way to do this, I'm sure someone can
correct me. Otherwise, I hope this helps!

On Mon, May 30, 2022 at 10:28 AM Joel via ntg-context 
wrote:

> I had https://github.com/jjmccollum/context-sbl this module working fine,
> but ran and update, and somehow it deleted my extra files. I can't figure
> out how I was able to get it working in the first place--I had just copied
> all the files to a folder somewhere.
>
> What is the correct way to install an unofficial ConTeXt module, such as
> this one?
>
> --Joel
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to install the ConTeXt-SBL module?

2022-05-29 Thread Joel via ntg-context
I had https://github.com/jjmccollum/context-sbl this module working fine, but 
ran and update, and somehow it deleted my extra files. I can't figure out how I 
was able to get it working in the first place--I had just copied all the files 
to a folder somewhere.
What is the correct way to install an unofficial ConTeXt module, such as this 
one?

--Joel
 ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] MathML when processing XML

2022-05-29 Thread Duncan Hothersall via ntg-context
This feels like a really stupid question but I can't find an answer to it
anywhere.

When processing an XML file directly with ConTeXt, i.e.
using \startxmlsetups rules, how can I make use of the MathML module for
the MathML content in my XML source? Should I include a specific piece of
code with a \registerctxluafile command as well as / instead of
\usemodule[mathml]? Do I need to use something other than \xmlflush to pass
the XML to the module?

Sorry, it's probably obvious but I can't work it out!

Thanks.

Duncan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] arm osx

2022-05-29 Thread Keith McKay via ntg-context

Hi Steffen

I have TeXshop setup on my mac mini M1 but I rarely use it. I've just 
ran it on a file I have been working on and it runs OK. Here is my engine:


%%

#!/bin/bash export 
PATH=$PATH:/Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin 
/Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun 
--autogenerate --script context --directives="system.error" --autopdf "$1"




The only difference I can see is --directives="system.error" . Don't 
know if this helps.


I'm running:

system > ConTeXt ver: 2022.05.09 17:24 LMTX fmt: 2022.5.11 int: 
english/english


Best Wishes

Keith McKay

On 29/05/2022 19:35, Steffen Wolfrum via ntg-context wrote:

Hi,

the first, clean install of MacOS ARM64bits I downloaded 
fromhttps://wiki.contextgarden.net/Installation

Next I followed the thread below (exchanging texmf-osx-64/bin to 
texmf-osx-arm64/bin) and everything works like a charm (ConTeXt ver: 2022.01.21 
20:13 LMTX) !

Today I wanted to update, using
sh install.sh

After that, running the same TeXShop engine as before gives an error:

Users/steffen/Library/TeXShop/Engines/ConTeXt LMTX_ARM.engine: line 3: 19971 Killed: 9
   /Users/steffen/context-osx-arm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate 
--script context --autopdf "$1"

What did I do wrong?

Steffen





Am 25.04.2021 um 18:52 schrieb Keith McKay:

Great! I'm glad it worked OK!
Best Wishes
Keith

On Sun, 25 Apr 2021, 09:59 Charles Doherty,  wrote:
Dear Keith and Mojca,

I followed the information provided buy Keith below and everything is working 
just fine. Mojca I directed my request to Keith in the first instance since I 
felt it was most likely my lack of knowledge of how to get things going that 
was the problem (as usual). So thank you for your quick response and offer to 
test. And thank you Keith for your example below it did the trick.

Very best wishes,
Charlie


On 23 Apr 2021, at 15:53, Keith McKay  wrote:

Sorry. I put a typo in the engine file in my reply. It should be

#!/bin/bash

export 
PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin

/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script 
context --autopdf "$1"

Best Wishes

Keith


***
CHARLES DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN
D24 YH2V
home: +353 1 2447483
Mobile: +353 863868629
charles.dohe...@icloud.com





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :http://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :http://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :http://contextgarden.net
___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :http://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :http://contextgarden.net
__
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Wolfgang Schuster via ntg-context

I sent a fix to the dev list.

Wolfgang

Joel via ntg-context schrieb am 29.05.2022 um 18:34:
After a recent update to ConTeXt, the code no longer seems to allow me 
to \input a file within a table:


\starttext
\starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
 \HL
        \NC {\bf Term} \NC {\bf Definition} \NC\NR
    \HL
        \input test2.tex %

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
 Adding the brackets + file name also didn't work.
--Joel

On Sunday, May 29, 2022, 11:33:48 AM MDT, Henning Hraban Ramm via 
ntg-context  wrote:  
 
 Did you try \input{file.tex} ?
(Just an idea, didn’t try.)

Hraban

Am 29.05.22 um 18:34 schrieb Joel via ntg-context:
> After a recent update to ConTeXt, the code no longer seems to allow me 
> to \input a file within a table:
> 
> \starttext
> \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
>      \HL
>          \NC {\bf Term} \NC {\bf Definition} \NC\NR
>      \HL
>          \input test2.tex % the table
>      \HL
> \stoptabulate
> \stoptext
> 
> File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR".
> 
> I also tried defining a macro earlier in the document...
> 
> \define[2]\tablewordis{%
>      \NC \NC \NC\NR
>      \NC #1 \NC #2 \NC\NR
> }
> 
> ...then placing that in test2.tex, e.g.:
> 
> \tablewordis{my word}{my definition}
> 
> I get the error: " The file ended when scanning an argument."
> 
> Before the update, this code worked fine.
> 
> How can I \input a file while inside a table environment, as above?
> 
> I have a document that has 100s of these inputs in my code, and now 
> nothing will compile.
> 
> Thanks,
> 
> --Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki    : http://contextgarden.net
___
  ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] arm osx

2022-05-29 Thread Steffen Wolfrum via ntg-context
Hi,

the first, clean install of MacOS ARM64bits I downloaded from 
https://wiki.contextgarden.net/Installation

Next I followed the thread below (exchanging texmf-osx-64/bin to 
texmf-osx-arm64/bin) and everything works like a charm (ConTeXt ver: 2022.01.21 
20:13 LMTX) !

Today I wanted to update, using 
sh install.sh

After that, running the same TeXShop engine as before gives an error:

Users/steffen/Library/TeXShop/Engines/ConTeXt LMTX_ARM.engine: line 3: 19971 
Killed: 9   
/Users/steffen/context-osx-arm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate 
--script context --autopdf "$1"

What did I do wrong?

Steffen




> Am 25.04.2021 um 18:52 schrieb Keith McKay :
> 
> Great! I'm glad it worked OK!
> Best Wishes
> Keith
> 
> On Sun, 25 Apr 2021, 09:59 Charles Doherty,  
> wrote:
> Dear Keith and Mojca,
> 
> I followed the information provided buy Keith below and everything is working 
> just fine. Mojca I directed my request to Keith in the first instance since I 
> felt it was most likely my lack of knowledge of how to get things going that 
> was the problem (as usual). So thank you for your quick response and offer to 
> test. And thank you Keith for your example below it did the trick.
> 
> Very best wishes,
> Charlie
> 
>> On 23 Apr 2021, at 15:53, Keith McKay  wrote:
>> 
>> Sorry. I put a typo in the engine file in my reply. It should be
>> 
>> #!/bin/bash
>> 
>> export 
>> PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin
>> 
>> /Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun --autogenerate 
>> --script context --autopdf "$1"
>> 
>> Best Wishes
>> 
>> Keith
>> 
> 
> ***
> CHARLES DOHERTY
> 13 BANCROFT ROAD
> TALLAGHT
> DUBLIN 
> D24 YH2V
> home: +353 1 2447483
> Mobile: +353 863868629
> charles.dohe...@icloud.com
> 
> 
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pull quote between two column - trial

2022-05-29 Thread Garulfo via ntg-context
to use pull quotes, I need to use the dimensions of the different 
elements to be typeset, before typesetting, in order to adapt the shapes 
of the flow accordingly.


So here is just a basic code to
1/ get the dimensions of an item A that will be typeset, before it is 
actually typeset
2/ use these dimensions to define a item B that should be typeset before 
item 1

3/ typeset of item B and finally item A


It is a quick and dirty solution.

Please, could you help me to have a more elegant solution

1/ to replace

 "width=\measure{FTitleW},"

by something more direct like

 "width=\GetDim{myframes}{FTitle}


2/ to replace

   context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")

   by a more "luametatexish" formulation



Le 28/05/2022 à 20:25, Garulfo a écrit :

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

mesure_framed.pdf
Description: Adobe PDF document

\defineblock[myframes]

\unexpanded\def\GetDim#1#2{
\setbox\scratchbox\hbox\bgroup\useblocks[#1][#2]\egroup%
\directlua{%
local n = tex.getbox('scratchbox')
context("\\definemeasure[#2W][" .. (n.width /65536)  .. "pt]")
context("\\definemeasure[#2H][" .. (n.height /65536)  .. "pt]")
}}


%--

\starttext

\beginmyframes[FTitle]
\framed
  [align=normal]
  {initial framed for a title zone\\
   early in the source code but not yet typeset\\
   with a long sentence to take place horizontaly and for demonstration}
\endmyframes

\GetDim{myframes}{FTitle}

\framed
  [align=normal,
   width=\measure{FTitleW},
   height=\measure{FTitleH}]
  {a second framed, with dimensions equal to the original frame, typeset before the original}

\useblocks[myframes][FTitle]

\stoptext

%--
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Henning Hraban Ramm via ntg-context

Did you try \input{file.tex} ?
(Just an idea, didn’t try.)

Hraban

Am 29.05.22 um 18:34 schrieb Joel via ntg-context:
After a recent update to ConTeXt, the code no longer seems to allow me 
to \input a file within a table:


\starttext
\starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
     \HL
         \NC {\bf Term} \NC {\bf Definition} \NC\NR
     \HL
         \input test2.tex %

[NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
After a recent update to ConTeXt, the code no longer seems to allow me to 
\input a file within a table:
\starttext
\starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]
    \HL
        \NC {\bf Term} \NC {\bf Definition} \NC\NR                
    \HL
        \input test2.tex %