thanks for the useful comments to my previous queries....
i now have a makefile which creates 1. ps, 2. pdf, 3. html docs from a lyx
source and associated .eps diagrams.
i have two remaining problems with the following:
* how can i create a 2-up pdf, either by conversion (without destroying
hyperlinks data which will come later)
or special invocations of pdflatex (i couldn;t find it amongst the
docs and googling)
* being a newbie to makefiles how can i do something like:
diags:
echo "-> making tex"
for i in `ls *.eps`; do epstopdf $i; done
this doesn't seem to work (shell type errors?)
you comments gratefully receieved
tariq
-----------
# generate documenation in ps, pdf and html form
# Tariq Rashid
TARGET = pywavelets
all: $(TARGET).lyx diags tex ps pdf html
# indirections (reqd for depencies on file itself, not methods)
tex: $(TARGET).tex
ps: $(TARGET).ps
pdf: $(TARGET).pdf
diags:
echo "-> making diags"
epstopdf diag.eps
$(TARGET).tex: $(TARGET).lyx
echo "-> making tex"
lyx -e latex $(TARGET).lyx
$(TARGET).dvi: $(TARGET).tex
echo "-> making dvi"
latex $(TARGET).tex
$(TARGET).ps: $(TARGET).dvi
echo "-> making ps"
dvips -t a4 -o $(TARGET).ps $(TARGET).dvi
cp $(TARGET).ps $(TARGET)_a4.ps
psnup -pa4 -2 $(TARGET)_a4.ps $(TARGET)_a4_2up.ps
$(TARGET).pdf: diags $(TARGET).tex
echo "-> making pdf"
pdflatex $(TARGET).tex
cp $(TARGET).pdf $(TARGET)_a4.pdf
cp $(TARGET)_a4.pdf $(TARGET)_a4_2up.pdf
html: $(TARGET).tex
latex2html $(TARGET).tex
clean:
rm -f *~
rm -f $(TARGET).aux $(TARGET).log $(TARGET).tex $(TARGET).dvi
rm -f $(TARGET).ps $(TARGET)_a4.ps $(TARGET)_a4_2up.ps
rm -f $(TARGET).pdf $(TARGET)_a4.pdf $(TARGET)_a4_2up.pdf
rm -rf $(TARGET)
final: clean all
intY has scanned this email for all known viruses (www.inty.com)