3. Install the Packages3.1. Before You InstallThe following sections suggest how you might install the downloaded packages to setup your DocBook SGML environment. The examples may make reference to old versions of the packages but you should adapt the examples and use the most recent versions instead. For the most up-to-date, authoritative information, always read the documentation that comes with a package you are installing. Often, you will find a README and a INSTALL file after you unpack an archive. The detailed instructions below may not work exactly as shown since packages are changing all the time. However, the instructions should still give you a general idea of the procedure to get DocBook SGML working. 3.2. Install OpenJade3.2.1. openjadeHere is what to do, but remember to read the files that come with OpenJade to see if there are any things you want to do special for your platform:
You might be wondering why I dump the openjade source directly into /usr/local. The author experienced some issues with openjade's installation. However, with newer releases of OpenJade, you might try a standard (/usr/local/src) location for the openjade source package with some other prefix install location, and see how it goes. 3.2.2. jadetex & pdfjadetexAs mentioned, jadetex and pdfjadetex are TeX macros that are packaged with OpenJade. They can be found in /usr/local/openjade-3.1/dsssl. A handy guide to installing these macros was prepared by Frank Atanassow Christoph and can be found at: ftp://ftp.dante.de/tex-archive/macros/jadetex/install.pdf http://reaster.com/installjadetex.pdf The following is based on the instructions in install.pdf: 3.2.2.1. Create hugelatex (if needed)The jadetex and pdfjadetex tex macros require more memory than a regular run of tex. The default tex memory limit configuration is often too limited. The tex configuration file, texmf.cnf, can be edited and variables which limit tex's memory use can be increased. But rather than just editing the texmf.cnf file to allow tex in all instances to have more memory, a custom tex context can be created, called hugelatex. If hugelatex is already configured on your system, you can skip this subsection (which hugelatex). Verify that a working TeX is installed and find its directory:
Using which should find the location of the tex program. If its not found, then you might need to install teTeX then return here. kpsewhich is a utility that comes with teTeX and finds the main tex directory if all goes well. Now that the texmf directory is known, installation can begin:
After setting up hugelatex, like above, it may not work until the texhash program is called:
3.2.2.2. jadetex & pdfjadetexSetting up jadetex and pdfjadetex is similar to hugelatex.
The jadetex command takes a tex file generated from openjade, and outputs a dvi file. pdfjadetex takes a tex file generated from openjade, and outputs a pdf. The dvips program takes the dvi file and outputs a PostScript ps file that you can send to your printer or view with ghostscript gs. 3.3. DocBook SGML DTD3.3.1. Unpack the DocBook SGML DTDThe DocBook DTD is just some sgml text files, so there is nothing to compile. Just unzip them somewhere:
There are some differences between the different versions of the DocBook DTD. The xxissues.txt files document those issues. Tags have been added, removed, and renamed between the versions. If you need to use DocBook DTD V3.1, it is available from the same place where V4.1 is downloaded. V3.1 is used a lot, so its a good idea to get it and install it in a 3.1/ subdirectory. 3.3.2. Unpack the ISO8879 EntitiesFor each DocBook DTD version unpacked, go into its directory and unpack the iso8879-entities.tar.gz file:
3.4. DocBook DSSSLInstallation of the DocBook DSSSL, which works for all versions of DocBook, is just a matter of unzipping it somwhere.
3.5. SGMLtools-LiteIf you like it, you can install the SGMLtools-Lite, but it is optional. Its installation is the standard:
One tweak that has to be done to make the sgmltools script work, is you have to edit it and set the path to openjade: vi `which sgmltools`. Consult its docs to learn more about it. 3.6. htmldoc3.6.1. binaryPreferrably you downloaded a binary distribution of htmldoc for your platform. The installation is straightforward: just unpack it and run the setup. Read the docs in the package for more info. 3.6.2. sourceIf you downloaded the source, you will also need the Fast Light Tool Kit or else it will not link: Installation is autoconf style. Just run the configure script, make, make install. If all goes well, it will install in /usr/bin. 3.6.3. ldp_printThe htmldoc program has (or had) a few glitches when generating output from html files from openjade. For instance, bullet items are not rendered properly and shaded areas are not always shaded. To fix this problem, a perl script (ldp_print) is available from LinuxDoc.org. The lpd_print script processes a nochunks html file from openjade and then runs htmldoc on it to produce correctly rendered pdf and ps.
3.7. DocBook2X and SGMLS.pm (sgmlspl)3.7.1. sgmlsplBefore the spec files from DocBook2X are of any use, the SGMLS.pm module for perl version 5 has to be installed, assuming that perl version 5 is installed. The installation of this module is not as automated as most perl module installs. It uses a Makefile that has to be edited first before running make.
3.7.2. docbook2X (docbook2man-spec.pl)DocBook2X contains no program to compile or install, though it has some scripts you might want to look at, so all there is to do is unpack it somwhere.
3.8. $SGML_CATALOG_FILESThe $SGML_CATALOG_FILES environment variable is used by openjade (and other SGML software) to locate DTDs and DSL (stylesheets). SGML software cannot function without finding these files, which have been unpacked to various directories. Given the setup as done so far, here is how $SGML_CATALOG_FILES can be set in /etc/profile:
Installation is complete! In the next section, we'll test the installation and convert some test DocBook files. Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |