Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
70320b5b
Commit
70320b5b
authored
Oct 09, 1999
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair markup for sgmltools writeup.
Fix indenting and make other minor markup improvements.
parent
fc32c709
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
527 additions
and
445 deletions
+527
-445
doc/src/sgml/docguide.sgml
doc/src/sgml/docguide.sgml
+527
-445
No files found.
doc/src/sgml/docguide.sgml
View file @
70320b5b
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.2
1 1999/10/05 18:55:45 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/docguide.sgml,v 1.2
2 1999/10/09 02:29:15 thomas
Exp $
Documentation Guide
Documentation Guide
Thomas Lockhart
Thomas Lockhart
...
@@ -1278,170 +1278,226 @@ $ make man
...
@@ -1278,170 +1278,226 @@ $ make man
</procedure>
</procedure>
</sect2>
</sect2>
</sect1>
</sect1>
<sect1>
<sect1>
<title>Toolsets</title>
<title>Toolsets</title>
<para>
<para>
We have documented experience with two installation methods for the
We have documented experience with two installation methods for the
various tools that are needed to process the documentation. One is
various tools that are needed to process the documentation. One is
installation from <acronym>RPM</acronym>s on
installation from <acronym>RPM</acronym>s on
<productname>Linux</productname>, the other is a general installation
<productname>Linux</productname>, the other is a general installation
from original distributions of the individual tools. Both will be
from original distributions of the individual tools. Both will be
described below.</para>
described below.
</para>
<para>
<para>
We understand that there are some other packaged distributions for
We understand that there are some other packaged distributions for
these tools. <productname>FreeBSD</productname> seems to have them
these tools. <productname>FreeBSD</productname> seems to have them
available. Please report package status to the docs mailing list and
available. Please report package status to the docs mailing list and
we will include that information here.
we will include that information here.
</para>
</para>
<sect2>
<sect2>
<title><acronym>RPM</acronym> installation on
<title><acronym>RPM</acronym> installation on
<productname>Linux</productname></title>
<productname>Linux</productname></title>
<para>
<para>
Install <ulink url="ftp://ftp.cygnus.com/pub/home/rosalia/">
Install <ulink url="ftp://ftp.cygnus.com/pub/home/rosalia/">
<acronym>RPM</acronym>s</ulink> for <productname>Jade</productname>
<acronym>RPM</acronym>s</ulink> for <productname>Jade</productname>
and related packages.
and related packages.
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2>
<title>Manual installation of tools</title>
<title>Manual installation of tools</title>
<para>
<para>
This is a brief run-through of the process of obtaining and
This is a brief run-through of the process of obtaining and
installing the software you'll need to edit DocBook source with Emacs
installing the software you'll need to edit DocBook source with Emacs
and process it with Norman Walsh's DSSSL style sheets to create <acronym>HTML</acronym>
and process it with Norman Walsh's DSSSL style sheets to create
and <acronym>RTF</acronym>.
<acronym>HTML</acronym>
and <acronym>RTF</acronym>.
</para>
</para>
<para>
<para>
The easiest way is to fetch the SGML and DocBook tools is to get
The easiest way to obtain the SGML and DocBook tools may be to get
<application>sgmltools</application> from <ulink
<application>sgmltools</application> from
url="http://www.sgmltools.org/"><productname>sgmltools</productname></u
<ulink url="http://www.sgmltools.org/"><productname>sgmltools</productname></ulink>.
link>. <productname>sgmltools</productname> requires the GNU version of
<productname>sgmltools</productname> requires the GNU version of
<productname>m4</productname>. <programlisting>gnum4
<productname>m4</productname>. To confirm that you have the
--version</programlisting> will show you if your m4 is the GNU version.
correct version of m4 available, try
If you install GNU m4, install it with the name gnum4 and
<productname>sgmltools</productname> will it. After the install, you will
have <productname>sgmltools</productname>,
<productname>jade</productname>, and <productname>DocBook</productname>
style sheets. The instructions below are for installing these tools
separately. </para>
<sect3><title>Prerequisites</title>
<para>What you need:
<itemizedlist>
<programlisting>
<listitem><para>A working installation of GCC 2.7.2</para></listitem>
gnum4 --version
<listitem><para>A working installation of Emacs 19.19 or later</para></listitem>
</programlisting>
<listitem><para>An unzip program for Unix to unpack things</para></listitem>
</para>
</itemizedlist>
</para>
<para>
If you install GNU m4, install it with the name gnum4 and
<productname>sgmltools</productname> will find it.
After the install, you will
have <productname>sgmltools</productname>,
<productname>jade</productname>,
and Norm Walsh's <productname>DocBook</productname>
style sheets. The instructions below are for installing these tools
separately.
</para>
<para>What you must fetch:
<sect3>
<title>Prerequisites</title>
<itemizedlist>
<para>
<listitem>
What you need:
<para><ulink url="ftp://ftp.jclark.com/pub/jade/">
James Clark's <productname>Jade</productname></ulink>
(version 1.1 in file <filename>jade1_1.zip</filename> was current at the time of writing)
</para></listitem>
<listitem>
<para><ulink url="http://www.ora.com/davenport/docbook/current/docbk30.zip">
<productname>DocBook</productname> version 3.0</ulink>
</para></listitem>
<listitem>
<para><ulink url="http://nwalsh.com/docbook/dsssl/">
Norman Walsh's <productname>Modular Stylesheets</productname></ulink>
(version 1.19 was used to produce these documents)
</para></listitem>
<listitem>
<para><ulink url="ftp://ftp.lysator.liu.se/pub/sgml/">
Lennart Staflin's <productname>PSGML</productname></ulink>
(version 1.0.1 in <filename>psgml-1.0.1.tar.gz</filename> was available at the time of writing)
</para></listitem>
</itemizedlist>
</para>
<itemizedlist>
<listitem>
<para>
A working installation of GCC 2.7.2
</para>
</listitem>
<listitem>
<para>
A working installation of Emacs 19.19 or later
</para>
</listitem>
<listitem>
<para>
An unzip program for Unix to unpack things
</para>
</listitem>
</itemizedlist>
</para>
<para>Important URLs:
<para>
What you must fetch:
<itemizedlist>
<itemizedlist>
<listitem><para><ulink url="http://www.jclark.com/jade/">
<listitem>
The <productname>Jade</productname> web page</ulink></para></listitem>
<para>
<listitem><para><ulink url="http://www.ora.com/davenport/">
<ulink url="ftp://ftp.jclark.com/pub/jade/">James Clark's <productname>Jade</productname></ulink>
The <productname>DocBook</productname> web page</ulink></para></listitem>
(version 1.1 in file <filename>jade1_1.zip</filename> was
<listitem><para><ulink url="http://nwalsh.com/docbook/dsssl/">
current at the time of writing)
The <productname>Modular Stylesheets</productname> web page</ulink>
</para>
</para></listitem>
</listitem>
<listitem><para>
<listitem>
<ulink url="http://www.lysator.liu.se/projects/about_psgml.html">
<para>
The <productname>PSGML</productname> web page</ulink></para></listitem>
<ulink url="http://www.ora.com/davenport/docbook/current/docbk30.zip">
<listitem><para><ulink url="http://www.infotek.no/sgmltool/guide.htm">
<productname>DocBook</productname> version 3.0</ulink>
Steve Pepper's Whirlwind Guide</ulink></para></listitem>
</para>
<listitem><para><ulink url="http://www.sil.org/sgml/publicSW.html">
</listitem>
Robin Cover's database of <acronym>SGML</acronym> software</ulink></para></listitem>
<listitem>
</itemizedlist>
<para>
</para>
<ulink url="http://nwalsh.com/docbook/dsssl/">Norman Walsh's <productname>Modular Stylesheets</productname></ulink>
(version 1.19 was originally used to produce these documents)
</para>
</listitem>
<listitem>
<para>
<ulink url="ftp://ftp.lysator.liu.se/pub/sgml/">Lennart Staflin's <productname>PSGML</productname></ulink>
(version 1.0.1 in <filename>psgml-1.0.1.tar.gz</filename> was
available at the time of writing)
</para>
</listitem>
</itemizedlist>
</para>
</sect3>
<para>
Important URLs:
<sect3>
<itemizedlist>
<title>Installing Jade</title>
<listitem>
<para>
<ulink url="http://www.jclark.com/jade/">The <productname>Jade</productname> web page</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.ora.com/davenport/">The <productname>DocBook</productname> web page</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://nwalsh.com/docbook/dsssl/">The <productname>Modular Stylesheets</productname> web page</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.lysator.liu.se/projects/about_psgml.html">The <productname>PSGML</productname> web page</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.infotek.no/sgmltool/guide.htm">Steve
Pepper's Whirlwind Guide</ulink>
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.sil.org/sgml/publicSW.html">
Robin Cover's database of <acronym>SGML</acronym>
software</ulink>
</para>
</listitem>
</itemizedlist>
</para>
</sect3>
<procedure
>
<sect3
>
<title>Installing Jade</title>
<title>Installing Jade</title>
<step performance="required">
<procedure>
<para>
<title>Installing Jade</title>
Read the installation instructions at the above listed
URL.
</para>
</step>
<step performance="required">
<step performance="required">
<para>
<para>
Unzip the distribution kit in a suitable place. The command to do
Read the installation instructions at the above listed
this will be something like
URL.
<programlisting>
</para>
</step>
<step performance="required">
<para>
Unzip the distribution kit in a suitable place. The command to do
this will be something like
<programlisting>
unzip -aU jade1_1.zip
unzip -aU jade1_1.zip
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="required">
<step performance="required">
<para><productname>Jade</productname> is not built using
<para>
<productname>GNU Autoconf</productname>, so you'll need to edit a
<productname>Jade</productname> is not built using
<filename>Makefile</filename> yourself. Since James Clark has been
<productname>GNU autoconf</productname>, so you'll need to edit a
good enough to prepare his kit for it, it is a good idea to make a
<filename>Makefile</filename> yourself. Since James Clark has been
build directory (named for your machine architecture, perhaps) under
good enough to prepare his kit for it, it is a good idea to make a
the main directory of the <productname>Jade</productname>
build directory (named for your machine architecture, perhaps) under
distribution, copy the file <filename>Makefile</filename> from the
the main directory of the <productname>Jade</productname>
main directory into it, edit it there, and then run
distribution, copy the file <filename>Makefile</filename> from the
<command>make</command> there.</para>
main directory into it, edit it there, and then run
<command>make</command> there.
<para>However, the <filename>Makefile</filename> does need to be
</para>
edited. There is a file called <filename>Makefile.jade</filename> in
the main directory, which is intended to be used with <command>make -f
<para>
Makefile.jade</command> when building <productname>Jade</productname>
However, the <filename>Makefile</filename> does need to be
(as opposed to just <productname>SP</productname>, the <acronym>SGML</acronym> parser kit
edited. There is a file called <filename>Makefile.jade</filename> in
that <productname>Jade</productname> is built upon). We suggest that
the main directory, which is intended to be used with <command>make -f
you don't do that, though, since there is more that you need to change
Makefile.jade</command> when building <productname>Jade</productname>
than what is in <filename>Makefile.jade</filename>, so you'd have to
(as opposed to just <productname>SP</productname>,
edit one of them anyway.</para>
the <acronym>SGML</acronym> parser kit
that <productname>Jade</productname> is built upon). We suggest that
<para>Go through the <filename>Makefile</filename>, reading James'
you don't do that, though, since there is more that you need to change
instructions and editing as needed. There are various variables that
than what is in <filename>Makefile.jade</filename>, so you'd have to
need to be set. Here is a collected summary of the most important
edit one of them anyway.
ones, with typical values:
</para>
<programlisting>
<para>
Go through the <filename>Makefile</filename>, reading James'
instructions and editing as needed. There are various variables that
need to be set. Here is a collected summary of the most important
ones, with typical values:
<programlisting>
prefix = /usr/local
prefix = /usr/local
XDEFINES = -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\"
XDEFINES = -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\"
XLIBS = -lm
XLIBS = -lm
...
@@ -1449,332 +1505,358 @@ RANLIB = ranlib
...
@@ -1449,332 +1505,358 @@ RANLIB = ranlib
srcdir = ..
srcdir = ..
XLIBDIRS = grove spgrove style
XLIBDIRS = grove spgrove style
XPROGDIRS = jade
XPROGDIRS = jade
</programlisting>
</programlisting>
Note the specification of where to find the default catalog of
Note the specification of where to find the default catalog of
<acronym>SGML</acronym> support files -- you may want to change that
<acronym>SGML</acronym> support files -- you may want to change that
to something more suitable for your own installation. If your system
to something more suitable for your own installation. If your system
doesn't need the above settings for the math library and the
doesn't need the above settings for the math library and the
<command>ranlib</command> command, leave them as they are in the
<command>ranlib</command> command, leave them as they are in the
<filename>Makefile</filename>.
<filename>Makefile</filename>.
</para>
</para>
</step>
</step>
<step performance="required">
<para>Type <command>make</command> to build Jade and the various
<productname>SP</productname> tools.</para>
</step>
<step performance="required">
<para>Once the software is built, <command>make install</command> will
do the obvious.</para>
</step>
</procedure>
</sect3>
<sect3>
<step performance="required">
<title>Installing the <productname>DocBook</productname> <acronym>DTD</acronym> Kit</title>
<para>
Type <command>make</command> to build Jade and the various
<procedure>
<productname>SP</productname> tools.</para>
<title>Installing the <productname>DocBook</productname> <acronym>DTD</acronym> Kit</title>
</step>
<step performance="required">
<step performance="required">
<para>You'll want to place the files that make up the
<para>
<productname>DocBook</productname> <acronym>DTD</acronym> kit in the
Once the software is built, <command>make install</command> will
directory you built <productname>Jade</productname> to expect them in,
do the obvious.
which, if you followed our suggestion above, is
</para>
<filename>/usr/local/share/sgml/</filename>. In addition to the
</step>
actual <productname>DocBook</productname> files, you'll need to have a
</procedure>
<filename>catalog</filename> file in place, for the mapping of
</sect3>
document type specifications and external entity references to actual
files in that directory. You'll also want the <acronym>ISO</acronym>
<sect3>
character set mappings, and probably one or more versions of
<title>Installing the <productname>DocBook</productname> <acronym>DTD</acronym> Kit</title>
<acronym>HTML</acronym>.</para>
<procedure>
<para>One way to install the various <acronym>DTD</acronym> and
<title>Installing the <productname>DocBook</productname> <acronym>DTD</acronym> Kit</title>
support files and set up the <filename>catalog</filename> file, is to
collect them all into the above mentioned directory, use a single file
<step performance="required">
named <filename>CATALOG</filename> to describe them all, and then
<para>
create the file <filename>catalog</filename> as a catalog pointer to
You'll want to place the files that make up the
the former, by giving it the single line of content:
<productname>DocBook</productname> <acronym>DTD</acronym> kit in the
<programlisting>
directory you built <productname>Jade</productname> to expect them in,
which, if you followed our suggestion above, is
<filename>/usr/local/share/sgml/</filename>. In addition to the
actual <productname>DocBook</productname> files, you'll need to have a
<filename>catalog</filename> file in place, for the mapping of
document type specifications and external entity references to actual
files in that directory. You'll also want the <acronym>ISO</acronym>
character set mappings, and probably one or more versions of
<acronym>HTML</acronym>.
</para>
<para>
One way to install the various <acronym>DTD</acronym> and
support files and set up the <filename>catalog</filename> file, is to
collect them all into the above mentioned directory, use a single file
named <filename>CATALOG</filename> to describe them all, and then
create the file <filename>catalog</filename> as a catalog pointer to
the former, by giving it the single line of content:
<programlisting>
CATALOG /usr/local/share/sgml/CATALOG
CATALOG /usr/local/share/sgml/CATALOG
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="required">
<step performance="required">
<para>
<para>
The <filename>CATALOG</filename> file should then contain three types
The <filename>CATALOG</filename> file should then contain three types
of lines. The first is the (optional) <acronym>SGML</acronym>
of lines. The first is the (optional) <acronym>SGML</acronym>
declaration, thus:
declaration, thus:
<programlisting>
<programlisting>
SGMLDECL docbook.dcl
SGMLDECL docbook.dcl
</programlisting>
</programlisting>
Next, the various references to <acronym>DTD</acronym> and entity
Next, the various references to <acronym>DTD</acronym> and entity
files must be resolved. For the <productname>DocBook</productname>
files must be resolved. For the <productname>DocBook</productname>
files, these lines look like this:
files, these lines look like this:
<programlisting>
<programlisting>
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" docbook.dtd
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" docbook.dtd
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" cals-tbl.dtd
PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" cals-tbl.dtd
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" dbpool.mod
PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" dbpool.mod
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" dbhier.mod
PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" dbhier.mod
PUBLIC "-//Davenport//ENTITIES DocBook Additional General Entities V3.0//EN" dbgenent.mod
PUBLIC "-//Davenport//ENTITIES DocBook Additional General Entities V3.0//EN" dbgenent.mod
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="required">
<step performance="required">
<para>
<para>
Of course, a file containing these comes with the
Of course, a file containing these comes with the
<productname>DocBook</productname> kit. Note that the last item on
<productname>DocBook</productname> kit. Note that the last item on
each of these lines is a file name, given here without a path. You
each of these lines is a file name, given here without a path. You
can put the files in subdirectories of your main
can put the files in subdirectories of your main
<acronym>SGML</acronym> directory if you like, of course, and modify
<acronym>SGML</acronym> directory if you like, of course, and modify
the reference in the <filename>CATALOG</filename> file.
the reference in the <filename>CATALOG</filename> file.
<productname>DocBook</productname> also references the
<productname>DocBook</productname> also references the
<acronym>ISO</acronym> character set entities, so you need to fetch
<acronym>ISO</acronym> character set entities, so you need to fetch
and install these (they are available from several sources, and are
and install these (they are available from several sources, and are
easily found by way of the URLs listed above), along with catalog
easily found by way of the URLs listed above), along with catalog
entries for all of them, such as:
entries for all of them, such as:
<programlisting>
<programlisting>
PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN" ISO/ISOlat1
PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN" ISO/ISOlat1
</programlisting>
</programlisting>
Note how the file name here contains a directory name, showing that
Note how the file name here contains a directory name, showing that
we've placed the <acronym>ISO</acronym> entity files in a subdirectory
we've placed the <acronym>ISO</acronym> entity files in a subdirectory
named <filename>ISO</filename>. Again, proper catalog entries should
named <filename>ISO</filename>. Again, proper catalog entries should
accompany the entity kit you fetch.
accompany the entity kit you fetch.
</para>
</para>
</step>
</step>
</procedure>
</procedure>
</sect3>
</sect3>
<sect3>
<sect3>
<title>Installing Norman Walsh's <acronym>DSSSL</acronym> Style Sheets</title>
<title>Installing Norman Walsh's <acronym>DSSSL</acronym> Style Sheets</title>
<procedure>
<procedure>
<title>Installing Norman Walsh's <acronym>DSSSL</acronym> Style Sheets</title>
<title>Installing Norman Walsh's <acronym>DSSSL</acronym> Style Sheets</title>
<step performance="required">
<step performance="required">
<para>Read the installation instructions at the above listed
<para>
URL.</para>
Read the installation instructions at the above listed
</step>
URL.
</para>
<step performance="required">
</step>
<para>To install Norman's style sheets, simply unzip the distribution
kit in a suitable place. A good place to dot this would be
<step performance="required">
<filename>/usr/local/share</filename>, which places the kit in a
<para>
directory tree under <filename>/usr/local/share/docbook</filename>.
To install Norman's style sheets, simply unzip the distribution
The command will be something like
kit in a suitable place. A good place to dot this would be
<programlisting>
<filename>/usr/local/share</filename>, which places the kit in a
directory tree under <filename>/usr/local/share/docbook</filename>.
The command will be something like
<programlisting>
unzip -aU db119.zip
unzip -aU db119.zip
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="required">
<step performance="required">
<para>One way to test the installation is to build the
<para>
<acronym>HTML</acronym> and <acronym>RTF</acronym> forms of the
One way to test the installation is to build the
<citetitle><productname>PostgreSQL</productname> User's Guide</citetitle>.
<acronym>HTML</acronym> and <acronym>RTF</acronym> forms of the
</para>
<citetitle><productname>PostgreSQL</productname> User's Guide</citetitle>.
</para>
<substeps>
<substeps>
<step performance="required">
<step performance="required">
<para>
<para>
To build the <acronym>HTML</acronym> files,
To build the <acronym>HTML</acronym> files,
go to the <acronym>SGML</acronym> source
go to the <acronym>SGML</acronym> source
directory, <filename>doc/src/sgml</filename>, and say
directory, <filename>doc/src/sgml</filename>, and say
<programlisting>
<programlisting>
jade -t sgml -d /usr/local/share/docbook/html/docbook.dsl -D ../graphics postgres.sgml
jade -t sgml -d /usr/local/share/docbook/html/docbook.dsl -D ../graphics postgres.sgml
</programlisting>
</programlisting>
</para>
</para>
<para>
<para>
<filename>book1.htm</filename> is the top level node of the output..
<filename>book1.htm</filename> is the top level node of the output..
</para>
</para>
</step>
</step>
<step performance="required">
<step performance="required">
<para>
<para>
To generate the <acronym>RTF</acronym> output, ready for importing
To generate the <acronym>RTF</acronym> output, ready for importing
into your favorite word processing system and printing, type:
into your favorite word processing system and printing, type:
<programlisting>
<programlisting>
jade -t rtf -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml
jade -t rtf -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
</substeps>
</substeps>
</step>
</step>
</procedure>
</procedure>
</sect3>
</sect3>
<sect3>
<sect3>
<title>Installing <productname>PSGML</productname></title>
<title>Installing <productname>PSGML</productname></title>
<procedure>
<procedure>
<title>Installing <productname>PSGML</productname></title>
<title>Installing <productname>PSGML</productname></title>
<step performance="required">
<step performance="required">
<para>Read the installation instructions at the above listed
<para>
URL.</para>
Read the installation instructions at the above listed
</step>
URL.
</para>
</step>
<step performance="required">
<step performance="required">
<para>Unpack the distribution file, run configure, make and make
<para>
install to put the byte-compiled files and info library in place.
Unpack the distribution file, run configure, make and make
</para>
install to put the byte-compiled files and info library in place.
</step>
</para>
</step>
<step performance="required" id="psgml-setup">
<step performance="required" id="psgml-setup">
<para>
<para>
Then add the following lines to your
Then add the following lines to your
<filename>/usr/local/share/emacs/site-lisp/site-start.el</filename>
<filename>/usr/local/share/emacs/site-lisp/site-start.el</filename>
file to make <productname>Emacs</productname> properly load
file to make <productname>Emacs</productname> properly load
<productname>PSGML</productname> when needed:
<productname>PSGML</productname> when needed:
<programlisting>
<programlisting>
(setq load-path
(setq load-path
(cons "/usr/local/share/emacs/site-lisp/psgml" load-path))
(cons "/usr/local/share/emacs/site-lisp/psgml" load-path))
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="optional">
<step performance="optional">
<para>
<para>
If you want to use <productname>PSGML</productname> when editing
If you want to use <productname>PSGML</productname> when editing
<acronym>HTML</acronym> too, also add this:
<acronym>HTML</acronym> too, also add this:
<programlisting>
<programlisting>
(setq auto-mode-alist
(setq auto-mode-alist
(cons '("\\.s?html?\\'" . sgml-mode) auto-mode-alist))
(cons '("\\.s?html?\\'" . sgml-mode) auto-mode-alist))
</programlisting>
</programlisting>
</para>
</para>
</step>
</step>
<step performance="optional">
<para>There is one important thing to note with
<productname>PSGML</productname>: its author assumed that your main
<acronym>SGML</acronym> <acronym>DTD</acronym> directory would be
<filename>/usr/local/lib/sgml</filename>. If, as in the examples in
this chapter, you use <filename>/usr/local/share/sgml</filename>, you
have to compensate for this.
</para>
<substeps>
<step performance="optional">
<step performance="optional">
<para>
<para>
There is one important thing to note with
You can set the
<productname>PSGML</productname>: its author assumed that your main
<filename>SGML_CATALOG_FILES</filename> environment variable.
<acronym>SGML</acronym> <acronym>DTD</acronym> directory would be
</para>
<filename>/usr/local/lib/sgml</filename>. If, as in the examples in
</step>
this chapter, you use <filename>/usr/local/share/sgml</filename>, you
have to compensate for this.
</para>
<step performance="optional"
>
<substeps
>
<para
>
<step performance="optional"
>
You can
<para>
customize your <productname>PSGML</productname> installation (its
You can set the
manual tells you how)
.
<filename>SGML_CATALOG_FILES</filename> environment variable
.
</para>
</para>
</step>
</step>
<step performance="optional">
<step performance="optional">
<para>
<para>
You can even edit the source file
You can
<filename>psgml.el</filename> before compiling and installing
customize your <productname>PSGML</productname> installation (its
<productname>PSGML</productname>, changing the hard-coded paths to
manual tells you how).
match your own default.
</para>
</para>
</step>
</step>
</substeps>
<step performance="optional">
</step>
<para>
You can even edit the source file
<filename>psgml.el</filename> before compiling and installing
<productname>PSGML</productname>, changing the hard-coded paths to
match your own default.
</para>
</step>
</procedure
>
</substeps
>
</sect3
>
</step
>
<sect3><title>Installing <productname>JadeTeX</productname></title>
</procedure>
</sect3>
<para>If you want to, you can also install
<productname>JadeTeX</productname> to use
<sect3>
<productname>TeX</productname> as a formatting backend for
<title>Installing <productname>JadeTeX</productname></title>
<productname>Jade</productname>. Note that this is still quite
unpolished software, and will generate printed output that is inferior
<para>
to what you get from the <acronym>RTF</acronym> backend. Still, it
If you want to, you can also install
works all right, especially for simpler documents that don't use
<productname>JadeTeX</productname> to use
tables, and as both <productname>JadeTeX</productname> and the style
<productname>TeX</productname> as a formatting backend for
sheets are under continuous improvement, it will certainly get better
<productname>Jade</productname>. Note that this is still quite
over time.</para>
unpolished software, and will generate printed output that is inferior
to what you get from the <acronym>RTF</acronym> backend. Still, it
<para>To install and use <productname>JadeTeX</productname>, you will
works all right, especially for simpler documents that don't use
need a working installation of <productname>TeX</productname> and
tables, and as both <productname>JadeTeX</productname> and the style
<productname>LaTeX2e</productname>, including the supported
sheets are under continuous improvement, it will certainly get better
<productname>tools</productname> and
over time.
<productname>graphics</productname> packages,
</para>
<productname>Babel</productname>, <productname><acronym>AMS</acronym>
fonts</productname> and <productname>AMS-LaTeX</productname>, the
<para>
<productname><acronym>PSNFSS</acronym></productname> extension and
To install and use <productname>JadeTeX</productname>, you will
companion kit of "the 35 fonts", the <productname>dvips</productname>
need a working installation of <productname>TeX</productname> and
program for generating <productname>PostScript</productname>, the
<productname>LaTeX2e</productname>, including the supported
macro packages <productname>fancyhdr</productname>,
<productname>tools</productname> and
<productname>hyperref</productname>,
<productname>graphics</productname> packages,
<productname>minitoc</productname>, <productname>url</productname> and
<productname>Babel</productname>, <productname><acronym>AMS</acronym>
<productname>ot2enc</productname>, and of course
fonts</productname> and <productname>AMS-LaTeX</productname>, the
<productname>JadeTeX</productname> itself. All of these can be found
<productname><acronym>PSNFSS</acronym></productname> extension and
on your friendly neighborhood <acronym>CTAN</acronym> site.</para>
companion kit of "the 35 fonts", the <productname>dvips</productname>
program for generating <productname>PostScript</productname>, the
<para><productname>JadeTeX</productname> does not at the time of
macro packages <productname>fancyhdr</productname>,
writing come with much of an installation guide, but there is a
<productname>hyperref</productname>,
<filename>makefile</filename> which shows what is needed. It also
<productname>minitoc</productname>, <productname>url</productname> and
includes a directory <filename>cooked</filename>, wherein you'll find
<productname>ot2enc</productname>, and of course
some of the macro packages it needs, but not all, and not complete --
<productname>JadeTeX</productname> itself. All of these can be found
at least last we looked.</para>
on your friendly neighborhood <acronym>CTAN</acronym> site.
</para>
<para>Before building the <filename>jadetex.fmt</filename> format
file, you'll probably want to edit the
<para>
<filename>jadetex.ltx</filename> file, to change the configuration of
<productname>JadeTeX</productname> does not at the time of
<productname>Babel</productname> to suit your locality. The line to
writing come with much of an installation guide, but there is a
change looks something like
<filename>makefile</filename> which shows what is needed. It also
<programlisting>
includes a directory <filename>cooked</filename>, wherein you'll find
some of the macro packages it needs, but not all, and not complete --
at least last we looked.
</para>
<para>
Before building the <filename>jadetex.fmt</filename> format
file, you'll probably want to edit the
<filename>jadetex.ltx</filename> file, to change the configuration of
<productname>Babel</productname> to suit your locality. The line to
change looks something like
<programlisting>
\RequirePackage[german,french,english]{babel}[1997/01/23]
\RequirePackage[german,french,english]{babel}[1997/01/23]
</programlisting>
</programlisting>
and you should obviously list only the languages you actually need,
and you should obviously list only the languages you actually need,
and have configured <productname>Babel</productname> for.</para>
and have configured <productname>Babel</productname> for.
</para>
<para>With <productname>JadeTeX</productname> working, you should be
able to generate and format <productname>TeX</productname> output for
<para>
the <productname>PostgreSQL</productname> manuals by giving the
With <productname>JadeTeX</productname> working, you should be
commands (as above, in the <filename>doc/src/sgml</filename>
able to generate and format <productname>TeX</productname> output for
directory)
the <productname>PostgreSQL</productname> manuals by giving the
<programlisting>
commands (as above, in the <filename>doc/src/sgml</filename>
directory)
<programlisting>
jade -t tex -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml
jade -t tex -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml
jadetex postgres.tex
jadetex postgres.tex
jadetex postgres.tex
jadetex postgres.tex
dvips postgres.dvi
dvips postgres.dvi
</programlisting>
</programlisting>
Of course, when you do this, <productname>TeX</productname> will stop
during the second run, and tell you that its capacity has been
exceeded. This is, as far as we can tell, because of the way
<productname>JadeTeX</productname> generates cross referencing
information. <productname>TeX</productname> can, of course, be
compiled with larger data structure sizes. The details of this will
vary according to your installation.
</para>
</sect3>
Of course, when you do this, <productname>TeX</productname> will stop
during the second run, and tell you that its capacity has been
exceeded. This is, as far as we can tell, because of the way
<productname>JadeTeX</productname> generates cross referencing
information. <productname>TeX</productname> can, of course, be
compiled with larger data structure sizes. The details of this will
vary according to your installation.
</para>
</sect2>
</sect3>
</sect1>
<sect1
>
</sect2
>
<title>Alternate Toolsets</title
>
</sect1
>
<para>
<sect1>
<productname>sgml-tools</productname> v2.x
<title>Alternate Toolsets</title>
now supports <application>jade</application>
and <productname>DocBook</productname>. It may be the preferred toolset
<para>
for working with <acronym>SGML</acronym> but we have not had a chance to
<productname>sgml-tools</productname> v2.x
evaluate the new package.
now supports <application>jade</application>
</para>
and <productname>DocBook</productname>. It may be the preferred toolset
for working with <acronym>SGML</acronym> but we have not had a chance to
evaluate the new package.
</para>
<!--
<!--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment