1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
4 | %general-entities;
|
---|
5 |
|
---|
6 | <!ENTITY a2ps-download-http "http://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
|
---|
7 | <!ENTITY a2ps-download-ftp "ftp://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
|
---|
8 | <!ENTITY a2ps-md5sum "0c8e0c31b08c14f7a7198ce967eb3281">
|
---|
9 | <!ENTITY a2ps-size "1.9 MB">
|
---|
10 | <!ENTITY a2ps-buildsize "19.2 MB">
|
---|
11 | <!ENTITY a2ps-time "0.26 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="a2ps" xreflabel="a2ps-&a2ps-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="a2ps.html"?>
|
---|
20 | <title>a2ps-&a2ps-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>a2ps</application></title>
|
---|
24 |
|
---|
25 | <para><application>a2ps</application> is a filter utilitized mainly in the
|
---|
26 | background and primarily by printing scripts to convert almost
|
---|
27 | every input format into PostScript output. The application's name expands
|
---|
28 | appropriately to "all to PostScript".</para>
|
---|
29 |
|
---|
30 | <sect3><title>Package information</title>
|
---|
31 | <itemizedlist spacing='compact'>
|
---|
32 | <listitem><para>Download (HTTP): <ulink
|
---|
33 | url="&a2ps-download-http;"/></para></listitem>
|
---|
34 | <listitem><para>Download (FTP): <ulink
|
---|
35 | url="&a2ps-download-ftp;"/></para></listitem>
|
---|
36 | <listitem><para>Download MD5 sum: &a2ps-md5sum;</para></listitem>
|
---|
37 | <listitem><para>Download size: &a2ps-size;</para></listitem>
|
---|
38 | <listitem><para>Estimated disk space required:
|
---|
39 | &a2ps-buildsize;</para></listitem>
|
---|
40 | <listitem><para>Estimated build time:
|
---|
41 | &a2ps-time;</para></listitem></itemizedlist>
|
---|
42 | </sect3>
|
---|
43 |
|
---|
44 | <sect3><title>Additional downloads</title>
|
---|
45 | <itemizedlist spacing='compact'>
|
---|
46 | <listitem><para>International fonts: <ulink
|
---|
47 | url="ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz"/></para></listitem>
|
---|
48 | </itemizedlist>
|
---|
49 | </sect3>
|
---|
50 |
|
---|
51 | <sect3><title><application>a2ps</application> dependencies</title>
|
---|
52 | <sect4><title>Optional</title>
|
---|
53 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
54 | <xref linkend="psutils"/>,
|
---|
55 | <xref linkend="tex"/>,
|
---|
56 | <xref linkend="gs"/> or <xref linkend="espgs"/>,
|
---|
57 | <ulink
|
---|
58 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
|
---|
59 | <ulink url="http://www.adobe.com/products/acrobat/readstep2.html">Adobe
|
---|
60 | Reader</ulink> and
|
---|
61 | <ulink
|
---|
62 | url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview</ulink>
|
---|
63 | </para>
|
---|
64 | </sect4>
|
---|
65 | </sect3>
|
---|
66 |
|
---|
67 | </sect2>
|
---|
68 |
|
---|
69 | <sect2>
|
---|
70 | <title>Installation of <application>a2ps</application></title>
|
---|
71 |
|
---|
72 | <para>Install <application>a2ps</application> by running the following
|
---|
73 | commands:</para>
|
---|
74 |
|
---|
75 | <screen><userinput><command>sed -i -e "s|emacs||" contrib/Makefile.in &&
|
---|
76 | sed -i -e "s|/usr/local/share|/usr/share|" configure &&
|
---|
77 | sed -i -e "s|char \*malloc ();|/* & */|" \
|
---|
78 | lib/path-concat.c &&
|
---|
79 | ./configure --prefix=/usr \
|
---|
80 | --sysconfdir=/etc/a2ps --localstatedir=/var \
|
---|
81 | --enable-shared --with-medium=letter &&
|
---|
82 | make &&
|
---|
83 | make install</command></userinput></screen>
|
---|
84 |
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2>
|
---|
88 | <title>Command explanations</title>
|
---|
89 |
|
---|
90 | <para><command>sed -i -e "s|emacs||" contrib/Makefile.in</command>:
|
---|
91 | This command eliminates the compiling and installing of the
|
---|
92 | <application>Emacs</application> script files. If you have substituted
|
---|
93 | <application>Emacs</application> for <application>Vi</application> as your
|
---|
94 | primary editor, skip this step.</para>
|
---|
95 |
|
---|
96 | <para><command>sed -i -e "s|/usr/local/share|/usr/share|" configure</command>:
|
---|
97 | This command modifies the configure script to search for
|
---|
98 | <application>Ghostscript</application> fonts at the location where they were
|
---|
99 | installed by the <acronym>BLFS</acronym> instructions.</para>
|
---|
100 |
|
---|
101 | <para><command>sed -i -e "s|char \*malloc ();|/* & */|"
|
---|
102 | lib/path-concat.c</command>: This command fixes a build problem with
|
---|
103 | <application><acronym>GCC</acronym></application>-3.4.x</para>
|
---|
104 |
|
---|
105 | <para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
|
---|
106 | is installed in <filename class="directory">/etc/a2ps</filename> instead of
|
---|
107 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
108 |
|
---|
109 | <para><parameter>--enable-shared</parameter>: This switch enables building
|
---|
110 | the dynamic <filename class='libraryfile'>liba2ps</filename> library.</para>
|
---|
111 |
|
---|
112 | <para><parameter>--with-medium=letter</parameter>: This switch changes
|
---|
113 | the default paper format of A4 to letter. Installations that utilize A4
|
---|
114 | would eliminate this switch.</para>
|
---|
115 |
|
---|
116 | </sect2>
|
---|
117 |
|
---|
118 | <sect2>
|
---|
119 | <title>Configuring <application>a2ps</application></title>
|
---|
120 |
|
---|
121 | <sect3><title>Config files</title>
|
---|
122 |
|
---|
123 | <para><filename>/etc/a2ps/a2ps.cfg</filename>,
|
---|
124 | <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
|
---|
125 |
|
---|
126 | </sect3>
|
---|
127 |
|
---|
128 | <sect3><title>Configuration Information</title>
|
---|
129 |
|
---|
130 | <para>Information about configuring <application>a2ps</application> can be
|
---|
131 | found in the comments contained in the above files, and also by
|
---|
132 | running <command>info a2ps</command>.</para>
|
---|
133 | </sect3>
|
---|
134 |
|
---|
135 | </sect2>
|
---|
136 |
|
---|
137 | <sect2>
|
---|
138 | <title>Contents</title>
|
---|
139 |
|
---|
140 | <para>The <application>a2ps</application> package
|
---|
141 | contains <command>a2ps</command>, <command>card</command>,
|
---|
142 | <command>composeglyphs</command>, <command>fixnt</command>,
|
---|
143 | <command>fixps</command>, <command>ogonkify</command>,
|
---|
144 | <command>pdiff</command>, <command>psmandup</command>,
|
---|
145 | <command>psset</command>, <command>texi2dvi4a2ps</command>,
|
---|
146 | <filename class='libraryfile'>liba2ps</filename> libraries
|
---|
147 | and filter data.</para>
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | <sect2><title>Description</title>
|
---|
151 |
|
---|
152 | <sect3><title>a2ps</title>
|
---|
153 | <para><command>a2ps</command> is a filter, utilized primarily by
|
---|
154 | printing scripts, that converts standard input or supported files
|
---|
155 | to PostScript.</para></sect3>
|
---|
156 |
|
---|
157 | <sect3><title>card</title>
|
---|
158 | <para><command>card</command> prints a reference card of a given program's
|
---|
159 | options.</para></sect3>
|
---|
160 |
|
---|
161 | <sect3><title>composeglyphs</title>
|
---|
162 | <para><command>composeglyphs</command> creates a composite font
|
---|
163 | program.</para></sect3>
|
---|
164 |
|
---|
165 | <sect3><title>fixnt</title>
|
---|
166 | <para><command>fixnt</command> is supposed to fix the problems in
|
---|
167 | the PostScript files generated by the Microsoft PostScript driver under
|
---|
168 | Windows NT (3.5 and 4.0).</para></sect3>
|
---|
169 |
|
---|
170 | <sect3><title>fixps</title>
|
---|
171 | <para><command>fixps</command> tries to fix common PostScript problems that
|
---|
172 | break postprocessing.</para></sect3>
|
---|
173 |
|
---|
174 | <sect3><title>ogonkify</title>
|
---|
175 | <para><command>ogonkify</command> provides international support for
|
---|
176 | Postscript by performing various munging of PostScript files
|
---|
177 | related to printing in different languages.</para></sect3>
|
---|
178 |
|
---|
179 | <sect3><title>pdiff</title>
|
---|
180 | <para><command>pdiff</command> produces a pretty comparison between
|
---|
181 | files.</para></sect3>
|
---|
182 |
|
---|
183 | <sect3><title>psmandup</title>
|
---|
184 | <para><command>psmandup</command> tries to produce a version of a given
|
---|
185 | PostScript file to print in manual duplex.</para></sect3>
|
---|
186 |
|
---|
187 | <sect3><title>psset</title>
|
---|
188 | <para><command>psset</command> produces a version of a given PostScript file
|
---|
189 | with a protected call to the PostScript operator 'setpagedevice'. Typical use
|
---|
190 | is making a file print duplex, or on the manual tray, etc.</para></sect3>
|
---|
191 |
|
---|
192 | <sect3><title>texi2dvi4a2ps</title>
|
---|
193 | <para><command>texi2dvi4a2ps</command> compiles Texinfo and LaTeX files to
|
---|
194 | <acronym>DVI</acronym> or <acronym>PDF</acronym></para></sect3>
|
---|
195 |
|
---|
196 | </sect2>
|
---|
197 |
|
---|
198 | </sect1>
|
---|