ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: MkIV on Ubuntu
Date: Mon, 17 Dec 2007 18:32:31 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.0.9999.0712171752030.5899@nqv-yncgbc> (raw)
In-Reply-To: <alpine.DEB.0.9999.0712171714010.5899@nqv-yncgbc>

On Mon, 17 Dec 2007, Aditya Mahajan wrote:

> On Mon, 17 Dec 2007, Hans Hagen wrote:
>
>> Aditya Mahajan wrote:
>>
>>> Why did luatools decide not to scan my user texmf trees? Since the new
>>> files are located at /home/adityam/texmf and this tree is not scanned,
>>> format generation does not work.
>>
>> maybe --verbose helps
>
> with luatools --generate, --verbose does not give any additional
  	> information.

Ok. Finally had to read luatools.lua.

MTX_INPUT_TRACE=10 luatools --generate gives a bit more info.

This is what I think is happening. I do sudo mktexlsr and get
mktexlsr: Updating /usr/local/share/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.

ls-R-TEXMFMAIN and ls-R-TEXLIVE and symlinked in other directories. But no ls-R
was created for TEXMFHOME. Luatools looks in directors in TEXMF containing ls-R
files. It does not find any in $HOME/texmf, so it does not include it in the
hash for where to look for files. When it searches for cont-en.tex it finds one
in /usr/share/texmf/ (the distribution directory).

kpsewhich on the other hand (it appears) also searches files in the TEXMF 
tree. This is what kpsewhich tells me

kdebug:Search path for ls-R files (from texmf.cnf)
kdebug:  = 
/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texmf-texlive

kdebug:Search path for tex files (from texmf.cnf)
kdebug:  = 
.:/home/adityam/.texmf-config/tex/kpsewhich//:/home/adityam/.texmf-var/tex/kpsewhich//:/home/adityam/texmf/tex/kpsewhich//:/etc/texmf/tex/kpsewhich//:!!/var/lib/texmf/tex/kpsewhich//:!!/usr/local/share/texmf/tex/kpsewhich//:!!/usr/share/texmf/tex/kpsewhic
h//:!!/usr/share/texmf-texlive/tex/kpsewhich//:/home/adityam/.texmf-config/tex/generic//:/home/adityam/.texmf-var/tex/generic//:/home/adityam/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic/ 
/:!!/usr/share/texmf/tex/generic//:!!/usr/share/texmf-texlive/tex/generic//:/home/adityam/.texmf-config/tex///:/home/adityam/.texmf-var/tex///:/home/adityam/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/shar 
e/texmf/tex///:!!/usr/share/texmf-texlive/tex///


So /home/adityam/texmf/tex/// tree is there, and it seems that kpsewhich finds
the file by brute-force search of that tree (there is no ls-R file in
TEXMFHOME).

So, I read the man page of mktexlsr and try
mktexlsr $HOME/texmf

which creates a ls-R in $HOME/texmf

Now, I recreate the formats, and finally things are working. That is, I am back
to where I was before I reinstalled the OS. Mkiv is working, mtxrun --script
font still does not work. I will look into that tomorrow.

Bottom line, if you try to install mkiv on a non-distribution tree, run mktexlsr
<tree> before generating formats.

Aditya

___________________________________________________________________________________
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:[~2007-12-17 23:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12 23:41 Aditya Mahajan
2007-12-13  8:32 ` Hans Hagen
2007-12-13 17:17   ` Aditya Mahajan
2007-12-14  8:15     ` Hans Hagen
2007-12-14 13:55       ` Aditya Mahajan
2007-12-14 14:01         ` Aditya Mahajan
2007-12-17  8:42         ` Hans Hagen
2007-12-17 18:11           ` Aditya Mahajan
2007-12-17 18:31             ` Aditya Mahajan
2007-12-17 21:14               ` Hans Hagen
2007-12-17 21:13             ` Hans Hagen
2007-12-17 22:14               ` Aditya Mahajan
2007-12-17 23:32                 ` Aditya Mahajan [this message]
2007-12-18  8:39                   ` Hans Hagen
2007-12-18  8:46                     ` Taco Hoekwater
2007-12-18  8:43                   ` Hans Hagen
2007-12-17 22:28             ` Aditya Mahajan
2007-12-18  8:36               ` Hans Hagen
2007-12-18 16:52                 ` Aditya Mahajan
2007-12-18 17:12                   ` Hans Hagen

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=alpine.DEB.0.9999.0712171752030.5899@nqv-yncgbc \
    --to=adityam@umich.edu \
    --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).