ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* use plain LuaTeX in ConTeXt standalone
@ 2013-04-20  9:12 Tim Li
  2013-04-20 10:05 ` Marco Patzer
  0 siblings, 1 reply; 12+ messages in thread
From: Tim Li @ 2013-04-20  9:12 UTC (permalink / raw)
  To: ntg-context


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

Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\>luatex
luatex
This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633) 
 \write18 enabled.
**\relax
I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone?  		 	   		  

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20  9:12 use plain LuaTeX in ConTeXt standalone Tim Li
@ 2013-04-20 10:05 ` Marco Patzer
  2013-04-20 10:21   ` Tim Li
  2013-04-20 10:38   ` Hans Hagen
  0 siblings, 2 replies; 12+ messages in thread
From: Marco Patzer @ 2013-04-20 10:05 UTC (permalink / raw)
  To: ntg-context


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

On 2013–04–20 Tim Li wrote:

> Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\>luatex
> luatex
> This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633) 
>  \write18 enabled.
> **\relax
> I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone?  		 	   		  

1) Create a file “luatex-plain.tex” with the following context:

\input plain
\directlua {tex.enableprimitives('', tex.extraprimitives())}
\pdfoutput=1
\everyjob \expandafter {%
    \the\everyjob
    \input luatex-basics\relax
    \input luatex-fonts\relax
    \input luatex-mplib\relax
}
\edef\fmtversion{\fmtversion+luatex}
\dump

2) Build the format:

  luatex --ini luatex-plain.tex

3) Compile with:

  luatex --fmt=luatex-plain.fmt somefile.tex


Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:05 ` Marco Patzer
@ 2013-04-20 10:21   ` Tim Li
  2013-04-20 10:37     ` Marco Patzer
  2013-04-20 10:38   ` Hans Hagen
  1 sibling, 1 reply; 12+ messages in thread
From: Tim Li @ 2013-04-20 10:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset="gb2312", Size: 1893 bytes --]

Marco, many thanks. By the way, how can I load the `luatex-plain.fmt` by default when typing "luatex somefile.tex"?   
 Date: Sat, 20 Apr 2013 12:05:25 +0200
From: homerow@lavabit.com
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

On 2013¨C04¨C20 Tim Li wrote:
 
> Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\>luatex
> luatex
> This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633) 
>  \write18 enabled.
> **\relax
> I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone?  		 	   		  
 
1) Create a file ¡°luatex-plain.tex¡± with the following context:
 
\input plain
\directlua {tex.enableprimitives('', tex.extraprimitives())}
\pdfoutput=1
\everyjob \expandafter {%
    \the\everyjob
    \input luatex-basics\relax
    \input luatex-fonts\relax
    \input luatex-mplib\relax
}
\edef\fmtversion{\fmtversion+luatex}
\dump
 
2) Build the format:
 
  luatex --ini luatex-plain.tex
 
3) Compile with:
 
  luatex --fmt=luatex-plain.fmt somefile.tex
 
 
Marco

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________ 		 	   		  

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:21   ` Tim Li
@ 2013-04-20 10:37     ` Marco Patzer
  2013-04-20 10:43       ` Tim Li
  0 siblings, 1 reply; 12+ messages in thread
From: Marco Patzer @ 2013-04-20 10:37 UTC (permalink / raw)
  To: ntg-context


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

On 2013–04–20 Tim Li wrote:

> Marco, many thanks. By the way, how can I load the
> `luatex-plain.fmt` by default when typing "luatex somefile.tex"?   

TeX checks for a format which is named the same as the binary. You
can create a link:

  ln -s /path/to/binary/luatex luatex-plain

and then call

  luatex-plain somefile.tex

and it'll use the format “luatex-plain”.


Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:05 ` Marco Patzer
  2013-04-20 10:21   ` Tim Li
@ 2013-04-20 10:38   ` Hans Hagen
  2013-04-20 10:46     ` Marco Patzer
  1 sibling, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-04-20 10:38 UTC (permalink / raw)
  To: ntg-context

On 4/20/2013 12:05 PM, Marco Patzer wrote:
> On 2013–04–20 Tim Li wrote:
>
>> Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\>luatex
>> luatex
>> This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633)
>>   \write18 enabled.
>> **\relax
>> I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone?  		 	   		
>
> 1) Create a file “luatex-plain.tex” with the following context:
>
> \input plain
> \directlua {tex.enableprimitives('', tex.extraprimitives())}
> \pdfoutput=1
> \everyjob \expandafter {%
>      \the\everyjob
>      \input luatex-basics\relax
>      \input luatex-fonts\relax
>      \input luatex-mplib\relax
> }
> \edef\fmtversion{\fmtversion+luatex}
> \dump

there is a luatex-plain.tex in the context distribution

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:37     ` Marco Patzer
@ 2013-04-20 10:43       ` Tim Li
  2013-04-20 11:39         ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Tim Li @ 2013-04-20 10:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset="gb2312", Size: 1289 bytes --]

Yeah, I found that just now, so I changed "luatex-plain.fmt" to "luatex.fmt". I try to move the new "luatex.fmt" to some directory in the ConTeXt standalone, but it seems that the kpathsea can't find my "luatex.fmt". Tim
 Date: Sat, 20 Apr 2013 12:37:19 +0200
From: homerow@lavabit.com
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

On 2013¨C04¨C20 Tim Li wrote:
 
> Marco, many thanks. By the way, how can I load the
> `luatex-plain.fmt` by default when typing "luatex somefile.tex"?   
 
TeX checks for a format which is named the same as the binary. You
can create a link:
 
  ln -s /path/to/binary/luatex luatex-plain
 
and then call
 
  luatex-plain somefile.tex
 
and it'll use the format ¡°luatex-plain¡±.
 
 
Marco

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________ 		 	   		  

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:38   ` Hans Hagen
@ 2013-04-20 10:46     ` Marco Patzer
  0 siblings, 0 replies; 12+ messages in thread
From: Marco Patzer @ 2013-04-20 10:46 UTC (permalink / raw)
  To: ntg-context


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

On 2013–04–20 Hans Hagen wrote:

> >1) Create a file “luatex-plain.tex” with the following context:
> >
> >\input plain
> >\directlua {tex.enableprimitives('', tex.extraprimitives())}
> >\pdfoutput=1
> >\everyjob \expandafter {%
> >     \the\everyjob
> >     \input luatex-basics\relax
> >     \input luatex-fonts\relax
> >     \input luatex-mplib\relax
> >}
> >\edef\fmtversion{\fmtversion+luatex}
> >\dump
> 
> there is a luatex-plain.tex in the context distribution

Indeed. That's probably where I got the snippet from.

@Tim: That means running

  luatex --ini luatex-plain.tex

is sufficient.


Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 10:43       ` Tim Li
@ 2013-04-20 11:39         ` Hans Hagen
  2013-04-27 13:22           ` Marco Patzer
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-04-20 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/20/2013 12:43 PM, Tim Li wrote:
> Yeah, I found that just now, so I changed "luatex-plain.fmt" to
> "luatex.fmt". I try to move the new "luatex.fmt" to some directory in
> the ConTeXt standalone, but it seems that the kpathsea can't find my
> "luatex.fmt".

I'll add this

mtxrun --script plain --make
mtxrun --script plain somefile.tex

on windows: copy context.exe to plain.exe to get a stub, after that you 
can do just

plain --make
plain somefile.tex

--jit is also supported

(I will probably add some more plain support i.e. mess abit with 
luatexfication of plain some day. Not that I use it myself, more for 
testing issues.)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-20 11:39         ` Hans Hagen
@ 2013-04-27 13:22           ` Marco Patzer
  2013-04-27 21:01             ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Marco Patzer @ 2013-04-27 13:22 UTC (permalink / raw)
  To: ntg-context


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

On 2013–04–20 Hans Hagen wrote:

> On 4/20/2013 12:43 PM, Tim Li wrote:
> >Yeah, I found that just now, so I changed "luatex-plain.fmt" to
> >"luatex.fmt". I try to move the new "luatex.fmt" to some directory in
> >the ConTeXt standalone, but it seems that the kpathsea can't find my
> >"luatex.fmt".
> 
> I'll add this
> 
> mtxrun --script plain --make

Doesn't work here:

..beta/tex/texmf-context/scripts/context/lua/mtx-plain.lua:61: attempt to get length of local 'fmtpathspec' (a nil value)


Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-27 13:22           ` Marco Patzer
@ 2013-04-27 21:01             ` Hans Hagen
  2013-05-02 13:06               ` Sietse Brouwer
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-04-27 21:01 UTC (permalink / raw)
  To: ntg-context

On 4/27/2013 3:22 PM, Marco Patzer wrote:
> On 2013–04–20 Hans Hagen wrote:
>
>> On 4/20/2013 12:43 PM, Tim Li wrote:
>>> Yeah, I found that just now, so I changed "luatex-plain.fmt" to
>>> "luatex.fmt". I try to move the new "luatex.fmt" to some directory in
>>> the ConTeXt standalone, but it seems that the kpathsea can't find my
>>> "luatex.fmt".
>>
>> I'll add this
>>
>> mtxrun --script plain --make
>
> Doesn't work here:
>
> ..beta/tex/texmf-context/scripts/context/lua/mtx-plain.lua:61: attempt to get length of local 'fmtpathspec' (a nil value)

ok. new upload ... (btw, the name database, when used, is not first 
looked for in the cache, something that mtxrun --script font --reload 
--simple takes care of)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-04-27 21:01             ` Hans Hagen
@ 2013-05-02 13:06               ` Sietse Brouwer
  2013-05-06 16:47                 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Sietse Brouwer @ 2013-05-02 13:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

Currently
    mtxrun --script font --reload --simple
creates luatex-fonts-names.lua, the font list/database for Plain LuaTeX;
and
    mtxrun --script font --reload
creates names.tma and names.tmc, the font list for ConTeXt.

Perhaps it makes sense if
    mtxrun --script font --reload
always creates all font lists? That way users of Plain LuaTeX could
never run into 'oh damn, I forgot to create the font database' —
things would go right automatically. And the --simple flag would no
longer be needed.

Does that make sense, or am I overlooking some complexity?

Cheers,
Sietse
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: use plain LuaTeX in ConTeXt standalone
  2013-05-02 13:06               ` Sietse Brouwer
@ 2013-05-06 16:47                 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2013-05-06 16:47 UTC (permalink / raw)
  To: ntg-context

On 5/2/2013 3:06 PM, Sietse Brouwer wrote:

> Does that make sense, or am I overlooking some complexity?

only that it's more complex (it makes more sense to auto generate in 
plain ... something i can look into later)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2013-05-06 16:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-20  9:12 use plain LuaTeX in ConTeXt standalone Tim Li
2013-04-20 10:05 ` Marco Patzer
2013-04-20 10:21   ` Tim Li
2013-04-20 10:37     ` Marco Patzer
2013-04-20 10:43       ` Tim Li
2013-04-20 11:39         ` Hans Hagen
2013-04-27 13:22           ` Marco Patzer
2013-04-27 21:01             ` Hans Hagen
2013-05-02 13:06               ` Sietse Brouwer
2013-05-06 16:47                 ` Hans Hagen
2013-04-20 10:38   ` Hans Hagen
2013-04-20 10:46     ` Marco Patzer

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