2 Steps to create a new PDF book
4 1- Create the directory for the book: mkdir 0XXXX
5 2- Copy the general Makefile: Makefile.basic into this directory
6 cp Makefile.basic 0XXXX/Makefile
8 3- Edit the book series
9 4- Edit the language (if other than english)
12 5- Enter that directory
14 7- Your PDF files will be in the 'FINAL' subdirectory that has been created
16 8- Run 'make distclean' to clean all the files used for the build
18 Due to a bug in the XSL location you also have to do this:
20 - Go to the 'en/xml/' (or '/es/xml') directory (from the SVN root).
21 Symlink/Copy the latex.xsl file with the one at 'common/xsl' like this:
22 ( cd en/xml && ln -s ../../common/xsl/latex.xsl . )
27 Mon, 22 Sep 2008 01:55:36 +0200
28 Javier Fernandez-Sanguino <javier.fernandez-sanguino@projectaon.org>
30 -----------------------------------------------------------------
32 The Makefile script should take care of the following automatically:
34 Generate the TeX file for the book using gbtolatex.pl
36 ../../../scripts/gbtolatex.pl 0XXXX - English files
37 ../../../scripts/gbtolatex.pl 0XXXX es - Spanish files
39 Link to the *tex files at ../../shared/*tex:
40 for i in ../../shared/*sty ; do ln $i . ; done
44 for i in ../../shared/*tex ; do ln $i . ; done
48 for i in ../../shared/es/*tex ; do ln $i . ; done
50 [ This makes all shared TeX files available:
51 ac1.tex ac2.tex crtneg.tex crtpos.tex random.tex souvenir.sty
54 Link all common images:
55 for i in ../../../../../en/gif/lw/0XXX/ill/*{pdf,gif}; do ln $i . ; done
57 Note: for translations you first have to link to the images in the
58 translated directory and *then* link to the files to the original (English)
60 for i in ../../../../../es/gif/ls/0XXX/ill/*/*{pdf,gif}; do ln $i . ; done
61 for i in ../../../../../en/gif/lw/0XXX/ill/*{pdf,gif}; do ln $i . ; done
62 [ The second one will probably output errors of common images that will
63 not be overwritten, discard those ]
65 Convert the images into PDF so that they can be included in the TeX file:
67 sh ../../convert-images.sh