ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Devereux <jdREMOVE@THISdevereux.me.uk>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Unable to generate luatex formats
Date: Tue, 15 Apr 2008 13:52:45 +0100	[thread overview]
Message-ID: <87y77fjn4y.fsf@cordelia.devereux.me.uk> (raw)
In-Reply-To: <6faad9f00804150517s7fe84a08y12231b0601d94ab4@mail.gmail.com> (Mojca Miklavec's message of "Tue\, 15 Apr 2008 14\:17\:02 +0200")

"Mojca Miklavec" <mojca.miklavec.lists@gmail.com> writes:

> On Tue, Apr 15, 2008 at 1:25 PM, John Devereux wrote:
>>
>> "Mojca Miklavec" writes:
>>
>>  >>  Setting TEXMF was missing from the instructions in debian... Or perhaps I
>>  >>  messed up my configuration in the past.
>>  >>
>>  >>   luatools --ini --compile cont-en
>>  >>
>>  >>  works now.
>>  >>
>>  >>  I will start playing with it.
>>  >>
>>  >>  A quick try of the example snippet did not work (see dump at end of
>>  >>  message) but I will look into it more and try Mojcas advice re
>>  >>  ctxtools --update.
>>  >
>>  > ctxtools --update won't help you as you have some missing fonts (msam7.tfm).
>>  > http://packages.debian.org/etch/all/texlive-base/filelist claims that
>>  > the file should be present in texlive-base in Debian, so it's a bit
>>  > confusing.
>>  >
>>  > Mojca
>>
>>  Hi Mojca,
>>
>>  There is a file here:
>>
>>   /usr/share/texmf-texlive/fonts/tfm/public/ams/msam7.tfm
>>
>>  But I don't know what else is needed.
>
> I would say that the installation might be slightly broken, even if
> only a few variables are missing. How exactly did you install LuaTeX
> and latest ConTeXt?

Mojca,

I followed the instructions here, where applicable for debian sid:

<http://wiki.contextgarden.net/Debian_installation>

Then the instruction in the README.MarkIV that appeared in the pckage
documentation directory (appended to end of post).

However I have been using context for years, and may well have messed
something up! It seems to work OK with my "normal" documents. Except I
notice \usemodule[gnuplot] does not work.

John

>>  Setting TEXMF was missing from the instructions in debian...
>
> This should not happen, but once you answer the question about how you
> have installed it, it might become clearer.
>
> Some time ago there was some problem on debian since Hans's lua
> scripts were unable to parse TEXMFCNF (texmf.cnf) files properly, but
> this might have been resolved in the meantime.

============================================================

README.luatex
=============

Mark IV is the name of the LuaTeX-aware part of ConTeXt; that is, when you
use ConTeXt over the LuaTeX engine instead of PDFTeX or XeTeX. You run it
with texexec --lua.

Currently the integration of Mark IV into Debian is not completely done,
especially because the details are currently worked out (see the dev-context
mailing list).

If you want to start using Mark IV the following the following few points
should get you started:

1) Right versions:
    luatex >= 0.20.2
    context >= 2007.12.20

2) environment variables and luatex-cache
   Mark IV ships its own implementation of file searching and doesn't
   use the ls-R databases, but luatex-cache. You have to tell luatools
   where to find texmf.cnf, and then generate the cache:
   	export TEXMFCNF=/usr/share/texmf/web2c
	luatools --generate --verbose
   This will generate the luatex-cache in $HOME. If you want to put it
   somewhere else set (and export) the TEXMFCACHE variable (like
   export TEXMFCACHE=/tmp)

3) Generate a Mark IV format
   This is not integrated into the usual format building process, and 
   probably will need some time to be worked out completely as the 
   current fmtutil cannot cope with Mark IV formats. Call
   	luatools --ini --compile cont-en

4) Now you can try some simple document like (thanks to Arthur Reutenauer)
	\starttext

	\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
	or the equivalent:
	\startlua
	a = 1.5
	b = 1.8
	c = a*b
	tex.print(c)
	\stoplua

	You can also do more elaborate calculations with the lua math library:
	\ctxlua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}

	\stoptext
  and run it with
  	texexec --lua filename.tex


-- 

John Devereux
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-04-15 12:52 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 20:53 Michael Green
2008-04-13  8:02 ` Taco Hoekwater
2008-04-13 11:54   ` Hans Hagen
2008-04-13 10:12 ` Jean Magnan de Bornier
2008-04-15  7:57 ` John Devereux
2008-04-15  9:31   ` Taco Hoekwater
2008-04-15  9:44     ` John Devereux
2008-04-15  9:56       ` Hans Hagen
2008-04-15 10:37         ` John Devereux
2008-04-15 10:46           ` Mojca Miklavec
2008-04-15 11:25             ` John Devereux
2008-04-15 12:17               ` Mojca Miklavec
2008-04-15 12:52                 ` John Devereux [this message]
2008-04-15 12:59                   ` Mojca Miklavec
2008-04-16 15:18                     ` John Devereux
2008-04-16 18:29                       ` Mojca Miklavec
2008-04-16 19:24                         ` gnuplot module John Devereux
2008-04-17 13:42                           ` Mojca Miklavec
2008-04-17 14:23                             ` Henning Hraban Ramm
2008-04-17 14:31                               ` Mojca Miklavec
2008-04-17 14:27                             ` John Devereux
2008-04-17 14:37                               ` Mojca Miklavec
2008-04-17 15:31                                 ` John Devereux
2008-04-15 14:16                   ` Unable to generate luatex formats Hans van der Meer
2008-04-15 14:29                     ` Mojca Miklavec
2008-04-15 14:31                       ` Mojca Miklavec
2008-04-15 15:00                     ` Hans Hagen
2008-04-15 10:40         ` Hans van der Meer
2008-04-15  9:43   ` Mojca Miklavec
2008-04-16 10:21   ` John Devereux
2008-04-16 18:53 ` Joel C. Salomon
2008-04-16 19:01   ` Mojca Miklavec
2008-04-16 20:32   ` Hans Hagen
2008-04-17  4:55     ` Joel C. Salomon
2008-04-17  7:50       ` Taco Hoekwater
2008-04-17  8:03       ` Hans Hagen
2008-04-15  5:43 Michael Green
2008-04-15 16:10 Michael Green

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y77fjn4y.fsf@cordelia.devereux.me.uk \
    --to=jdremove@thisdevereux.me.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).