On Fri, Feb 25, 2005 at 03:07:06AM +0100, Steffen R. Knollmann wrote:
>   Ah right... I knew I forgot something. No I haven't. Will do once the
> installation of Xorg 6.8.2 is finished.


  Okay, here we go:


  I'd like to see the hardcoded /usr/share/texmf/web2c/texmf.cnf
thingies changed to `kpsewhich texmf.cnf` ;-) But that's not that
important.

  /usr/share/texmf/tex/latex/config would be now ../texmf-dist/..
instead of ../texmf/..

  The step with copying the config directory seems to be not necessary,
that's what fmtutil-sys is for :-)

  So my build notes say:


  Start as described with editing the texmf.cnf, but then don't copy the
config dir but issue:

fmtutil-sys --byfmt latex

  This then leads to some hic-ups with the jadetex Makefile, because the
latex.fmt is normally generated by etex and that leads to a '(Fatal
format file error. I'm stymied)'; but that can be cured[1]:

make basic
mkdir -p `kpsewhich -expand-var '$TEXMFLOCAL'`/tex/jadetex/config
cp dsssl.def jadetex.ltx \
  `kpsewhich -expand-var '$TEXMFLOCAL'`/tex/jadetex
cp jadetex.ini pdfjadetex.ini \
  `kpsewhich -expand-var '$TEXMFLOCAL'`/tex/jadetex/config

  Fire up your favourite editor

$EDITOR `kpsewhich fmutil.cnf`

  and add the following two lines

jadetex    pdfetex  -  "&latex"     jadetex.ini
pdfjadetex pdfetex  -  "&pdflatex"  pdfjadetex.ini

  Now run

mktexlsr
fmtutil-sys --byfmt jadetex
fmtutil-sys --byfmt pdfjadetex
mktexlsr

  to create the format files. They are automagically placed in
`kpsewhich -expand-var '$TEXMFSYSVAR'`/web2c (I am not sure if the last
mktexlsr is needed). I attached a (*extremely* crude) patch for the
Makefile that does this stuff. Just substitute 'make basic' by
'make install-tetex3'. It's probably not worth using that patch, but it
might be useful to someone (and has the correct version of the above
commands, which I might have mistyped).

  Finally create the symlinks (note that is {pdf,}*e*tex):

ln -v -sf `which etex` /your/bin/dir/jadetex
ln -v -sf `which pdfetex` /your/bin/dir/pdfjadetex

  and everything should be set. 


  I'd love to actually test it by running jadetex on something, but the
documention (jadetex-3.13/doc) doesn't work that well, since the
translation from xml to tex fails due to not finding this docbook-stuff.
But jadetex runs on the crumbled .tex that I managed to trick jade into.



  Cheers,
    Steffen


[1] I admit that it would also work to follow the current description
and just modify the paths, but then every time latex.fmt is regenerate
by the tetex internals you'd run again in the stymied problem. Okay, you
could revert the fmtutil.cnf to tex, but that doesn't seem feasible to
me.


-- 
Susie:  You'd get a good grade without doing any work.  
Calvin: So?  
Susie:  It's wrong to get rewards you haven't earned.  
Calvin: I've never heard of anyone who couldn't live with that.
Description: Modifies the Makefile to add a target for a teTeX-3.0
             install.
             Also adds jadetex to the fmtutil system of teTeX and
             respects the directory structure. Requires latex.fmt to be
             generated by etex and assumes that texmf.cnf is adapted for
             the needs of jadetex.

--- jadetex-3.13/Makefile.original      2005-02-25 05:25:48.451616419 +0100
+++ jadetex-3.13/Makefile       2005-02-25 05:22:24.052128755 +0100
@@ -1,3 +1,8 @@
+TEXMFLOCAL=`kpsewhich -expand-var '$$TEXMFLOCAL'`
+FMTUTILCNF=`kpsewhich 'fmtutil.cnf'`
+JADETEXLINE="jadetex    pdfetex  -  \"&latex\"     jadetex.ini"
+PDFJADETEXLINE="pdfjadetex pdfetex  -  \"&pdflatex\"  pdfjadetex.ini"
+
 default: basic
 
 basic: jadetex.ltx
@@ -17,6 +22,21 @@
        mkdir -p $$TT/tex/jadetex ; \
        cp dsssl.def jadetex.ltx $$TT/tex/jadetex)
 
+install-tetex3: basic
+       mkdir -p $(TEXMFLOCAL)/tex/jadetex/config
+       cp jadetex.ini pdfjadetex.ini $(TEXMFLOCAL)/tex/jadetex/config
+       sed -i s/^$(JADETEXLINE)$$// $(FMTUTILCNF)
+       sed -i s/^$(PDFJADETEXLINE)$$// $(FMTUTILCNF)
+       sed -i s/^jadetex.*$$/#\&/g $(FMTUTILCNF)
+       sed -i s/^pdfjadetex.*$$/#\&/g $(FMTUTILCNF)
+       echo $(JADETEXLINE) >> $(FMTUTILCNF)
+       echo $(PDFJADETEXLINE) >> $(FMTUTILCNF)
+       cp dsssl.def jadetex.ltx $(TEXMFLOCAL)/tex/jadetex
+       mktexlsr
+       fmtutil-sys --byfmt jadetex
+       fmtutil-sys --byfmt pdfjadetex
+       mktexlsr
+
 realclean: clean
        -rm jadetex.fmt pdfjadetex.fmt dsssl.def jadetex.ltx
 

Attachment: pgpmJcsBXoa7F.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to