pl4.uu1 changed the way graphics is included into the latex
file created by mudela-book. I was not comfertable with the
way this made a mudela-book session look like:

   mudela-book myfile.doc     (creates out/myfile.latex)
   cd out              (trying to do latex out/myfile.latex 
fails)
   latex myfile.latex
   xdvi myfile
   cd ..

Some changes in pl4.uu1 was that graphics is included as
filename-0.0.0.tex, not out/filename-0.0.0.tex. This mean 
you have to cd into 'out' to process the file with latex, 
'latex out/myfile.latex' fails.

Earlier version was:
* mudela-book creates latex output to out/filename.latex and
  graphics goes into out/filename-0.0.0.tex
* graphics is included into filename.latex as 
  out/filename-0.0.0.tex

A session:
   mudela-book myfile.doc  (creates out/myfile.latex) HACK 
evt uten etternavn
   latex out/myfile.latex
   xdvi myfile

In addition to make me do a lot of 'cd out' and 'cd ..', the
patch made me think about how things should be done. Why not
let mudela-book to all the work from ./myfile.doc to ./
myfile.dvi? A session  will then look like this:
    mudela-book myfile.doc
    xdvi myfile
No one should really wany to edit out/myfile.latex before
running latex on it. And if you need m4 processing you do it
before you run mudela-book.

All graphics files like myfile-0.0.0.tex will, as earlier,
by default go into 'out'. Files created by latex, like
'.log', '.aux' and '.ind' will be created in current dir,
but this is how latex does things, and should not be a
problem. This files should not be deleted by mudela-book
after creating myfile.dvi because LaTeX need them for the
second pass to create index and table of contents.

To make mudela-book behave like I have described, things 
should happen
like this:
* I will include tex and eps graphics into the latex
  document the way before pl4.uu1, 
  \input out/myfile-0.0.0.tex instead of 
  \input myfile-0.0.0.tex
* the generated latex document will go into 
  'out/myfile.latex'
* mudela-book will execute the command 
  'latex out/myfile.latex' that creates 'myfile.dvi', even
  if nothing has changed, because you might do it a second
  time to update indexes. Lilypond, tex or 
  dvips should only be run when files have changed.

If no one disagrees, I'll send a patch that makes the
changes. (It is already written)

I am also making some changes to what options do. 'fragment'
should only save keystrokes, not also change the linewith 
variable etc. Basically options should do only what they say
they do, and do it correct.

Tom Cato Amundsen


______________________________________________________
Get your free web-based email at http://www.xoom.com
Special clipart offer:  http://orders.xoom.com/email

Reply via email to