ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Compile a file embedding modules with the lmtx engine
@ 2020-04-03 10:38 Fabrice Couvreur
  2020-04-03 11:04 ` Hans Hagen
  2020-04-03 11:09 ` Pablo Rodriguez
  0 siblings, 2 replies; 8+ messages in thread
From: Fabrice Couvreur @ 2020-04-03 10:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 610 bytes --]

Hi,
I'm sorry but I didn't necessarily follow all the threads. I use to make my
graphics Metapost or Metafun, but I also sometimes use TiKz. This file
compiles with context but not with lmtx because the modules are not
recognized. I am willing to use only lmtx which seems to be the future of
ConteXt, but how do I do that ?
Thank you.
Fabrice


\usemodule[tikz]
\usetikzlibrary[calc]

\starttext

\startlinecorrection[blank]
  \startmidaligned
    \starttikzpicture
       \draw[fill=orange!30e,draw=orange] (0,0) rectangle (5,5);
     \stoptikzpicture
     \stopmidaligned
    \stoplinecorrection

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 996 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 10:38 Compile a file embedding modules with the lmtx engine Fabrice Couvreur
@ 2020-04-03 11:04 ` Hans Hagen
  2020-04-03 11:09 ` Pablo Rodriguez
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2020-04-03 11:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur

On 4/3/2020 12:38 PM, Fabrice Couvreur wrote:
> Hi,
> I'm sorry but I didn't necessarily follow all the threads. I use to make 
> my graphics Metapost or Metafun, but I also sometimes use TiKz. This 
> file compiles with context but not with lmtx because the modules are not 
> recognized. I am willing to use only lmtx which seems to be the future 
> of ConteXt, but how do I do that ?
> Thank you.
> Fabrice
> 
> 
> \usemodule[tikz]
> \usetikzlibrary[calc]
> 
> \starttext
> 
> \startlinecorrection[blank]
>    \startmidaligned
>      \starttikzpicture
>         \draw[fill=orange!30e,draw=orange] (0,0) rectangle (5,5);
>       \stoptikzpicture
>       \stopmidaligned
>      \stoplinecorrection
> 
> \stoptext
you can put additional modules in texmf-local or texmf-modules (after 
installation run mtxrun --generate)

at some point the installer will deal with modules but that has to wait 
till we have set up the new repository infrastructure which will happen 
when there's is time

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 / 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 10:38 Compile a file embedding modules with the lmtx engine Fabrice Couvreur
  2020-04-03 11:04 ` Hans Hagen
@ 2020-04-03 11:09 ` Pablo Rodriguez
  2020-04-03 12:18   ` Fabrice Couvreur
  1 sibling, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2020-04-03 11:09 UTC (permalink / raw)
  To: ntg-context

On 4/3/20 12:38 PM, Fabrice Couvreur wrote:
> Hi,
> I'm sorry but I didn't necessarily follow all the threads. I use to make
> my graphics Metapost or Metafun, but I also sometimes use TiKz. This
> file compiles with context but not with lmtx because the modules are not
> recognized. I am willing to use only lmtx which seems to be the future
> of ConteXt, but how do I do that?

Hi Fabrice,

do you have any modules installed in your LMTX distribution?

As far as I know (sorry if I’ missing something), the user should
install the modules manually for LMTX.

Your sample compiles for me, but I copied the tex/texmf-modules
directory from the ConTeXt Suite to the LMTX distribution.

I hope this helps,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 11:09 ` Pablo Rodriguez
@ 2020-04-03 12:18   ` Fabrice Couvreur
  2020-04-03 13:07     ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2020-04-03 12:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1792 bytes --]

Hi,

I did the installation then I copied the files and finally I did mtxrun
--generate
The file does not compile and I get a file where it says ERROR.

viserion@archlinux ~]$ cd /home/viserion/data/context/tex/texmf-modules/
[viserion@archlinux texmf-modules]$ ls
doc  fonts  ls-R  metapost  scripts  source  tex  VERSION
[viserion@archlinux texmf-modules]$

Fabrice



Le ven. 3 avr. 2020 à 13:10, Pablo Rodriguez <oinos@gmx.es> a écrit :

> On 4/3/20 12:38 PM, Fabrice Couvreur wrote:
> > Hi,
> > I'm sorry but I didn't necessarily follow all the threads. I use to make
> > my graphics Metapost or Metafun, but I also sometimes use TiKz. This
> > file compiles with context but not with lmtx because the modules are not
> > recognized. I am willing to use only lmtx which seems to be the future
> > of ConteXt, but how do I do that?
>
> Hi Fabrice,
>
> do you have any modules installed in your LMTX distribution?
>
> As far as I know (sorry if I’ missing something), the user should
> install the modules manually for LMTX.
>
> Your sample compiles for me, but I copied the tex/texmf-modules
> directory from the ConTeXt Suite to the LMTX distribution.
>
> I hope this helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3500 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 12:18   ` Fabrice Couvreur
@ 2020-04-03 13:07     ` Pablo Rodriguez
  2020-04-03 17:21       ` Fabrice Couvreur
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2020-04-03 13:07 UTC (permalink / raw)
  To: ntg-context

On 4/3/20 2:18 PM, Fabrice Couvreur wrote:
> Hi,
>
> I did the installation then I copied the files and finally I did mtxrun
> --generate
> The file does not compile and I get a file where it says ERROR.
>
> viserion@archlinux ~]$ cd /home/viserion/data/context/tex/texmf-modules/
> [viserion@archlinux texmf-modules]$ ls
> doc  fonts  ls-R  metapost  scripts  source  tex  VERSION

Hi Fabrice,

I have just installed both LMTX and the ConTeXt Suite brand new. I moved
the tex/texmf-modules contents form the Suite to LMTX tex/temxf-modules.

Your file was compiled perfectly fine. I removed the contents of
tex/texmf-modules and I got these errors:

system          > jobfiles > unknown tex file
'/home/ousia/64ctx/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex'
modules         > 'tikz' is loaded

tex error       > tex error on line 2 in file ./a.tex: ! Undefined
control sequence

<recently read> \syst_helpers_triple_empty_two_nop  \usetikzlibrary

l.2 \usetikzlibrary
                 [calc]

If you get a similar error, I would do the following:

1. Remove tex/texmf-cache/luatex-cache.
2. Run "mtxrun --generate".
3. Compile the document.

I hope this helps,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 13:07     ` Pablo Rodriguez
@ 2020-04-03 17:21       ` Fabrice Couvreur
  2020-04-03 20:22         ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2020-04-03 17:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2388 bytes --]

I reinstalled context and lmtx, followed your instructions because I got
the same error message but now I get another error message; my editor is
Emacs.
Thank you.
Fabrice

Running `LmtX' on `ESSAI' with
``/home/viserion/LMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script
context --autopdf ESSAI''
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'


TeX Output exited abnormally with code 1 at Fri Apr  3 19:15:18

Le ven. 3 avr. 2020 à 15:07, Pablo Rodriguez <oinos@gmx.es> a écrit :

> On 4/3/20 2:18 PM, Fabrice Couvreur wrote:
> > Hi,
> >
> > I did the installation then I copied the files and finally I did mtxrun
> > --generate
> > The file does not compile and I get a file where it says ERROR.
> >
> > viserion@archlinux ~]$ cd /home/viserion/data/context/tex/texmf-modules/
> > [viserion@archlinux texmf-modules]$ ls
> > doc  fonts  ls-R  metapost  scripts  source  tex  VERSION
>
> Hi Fabrice,
>
> I have just installed both LMTX and the ConTeXt Suite brand new. I moved
> the tex/texmf-modules contents form the Suite to LMTX tex/temxf-modules.
>
> Your file was compiled perfectly fine. I removed the contents of
> tex/texmf-modules and I got these errors:
>
> system          > jobfiles > unknown tex file
>
> '/home/ousia/64ctx/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex'
> modules         > 'tikz' is loaded
>
> tex error       > tex error on line 2 in file ./a.tex: ! Undefined
> control sequence
>
> <recently read> \syst_helpers_triple_empty_two_nop  \usetikzlibrary
>
> l.2 \usetikzlibrary
>                  [calc]
>
> If you get a similar error, I would do the following:
>
> 1. Remove tex/texmf-cache/luatex-cache.
> 2. Run "mtxrun --generate".
> 3. Compile the document.
>
> I hope this helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3929 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 17:21       ` Fabrice Couvreur
@ 2020-04-03 20:22         ` Pablo Rodriguez
  2020-04-03 21:42           ` Fabrice Couvreur
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2020-04-03 20:22 UTC (permalink / raw)
  To: ntg-context

On 4/3/20 7:21 PM, Fabrice Couvreur wrote:
>
> I reinstalled context and lmtx, followed your instructions because I got
> the same error message but now I get another error message; my editor is
> Emacs.
>
> Running `LmtX' on `ESSAI' with
> ``/home/viserion/LMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate
> --script context --autopdf ESSAI''
> mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'

Hi Fabrice,

from the shell, run "~/LMTX/tex/texmf-linux-64/bin/mtxrun --generate"
before.

After that, it should compile your document fine.

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compile a file embedding modules with the lmtx engine
  2020-04-03 20:22         ` Pablo Rodriguez
@ 2020-04-03 21:42           ` Fabrice Couvreur
  0 siblings, 0 replies; 8+ messages in thread
From: Fabrice Couvreur @ 2020-04-03 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1322 bytes --]

Hi Pablo,
It seems to be working, thanks for your help.
Fabrice

Le ven. 3 avr. 2020 à 22:22, Pablo Rodriguez <oinos@gmx.es> a écrit :

> On 4/3/20 7:21 PM, Fabrice Couvreur wrote:
> >
> > I reinstalled context and lmtx, followed your instructions because I got
> > the same error message but now I get another error message; my editor is
> > Emacs.
> >
> > Running `LmtX' on `ESSAI' with
> > ``/home/viserion/LMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate
> > --script context --autopdf ESSAI''
> > mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'
>
> Hi Fabrice,
>
> from the shell, run "~/LMTX/tex/texmf-linux-64/bin/mtxrun --generate"
> before.
>
> After that, it should compile your document fine.
>
> Pablo
> --
> http://www.ousia.tk
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2654 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-03 21:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 10:38 Compile a file embedding modules with the lmtx engine Fabrice Couvreur
2020-04-03 11:04 ` Hans Hagen
2020-04-03 11:09 ` Pablo Rodriguez
2020-04-03 12:18   ` Fabrice Couvreur
2020-04-03 13:07     ` Pablo Rodriguez
2020-04-03 17:21       ` Fabrice Couvreur
2020-04-03 20:22         ` Pablo Rodriguez
2020-04-03 21:42           ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).