[6c23acd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[6c23acd] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[23460a6] | 7 | <!ENTITY jadetex-download-http "http://prdownloads.sourceforge.net/jadetex/jadetex-&jadetex-version;.tar.gz">
|
---|
[6c23acd] | 8 | <!ENTITY jadetex-download-ftp " ">
|
---|
[460e986] | 9 | <!ENTITY jadetex-md5sum "634dfc172fbf66a6976e2c2c60e2d198">
|
---|
[6c23acd] | 10 | <!ENTITY jadetex-size "103 KB">
|
---|
[28da027b] | 11 | <!ENTITY jadetex-buildsize "9.3 MB">
|
---|
| 12 | <!ENTITY jadetex-time "0.04 SBU">
|
---|
[6c23acd] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="jadetex" xreflabel="JadeTeX-&jadetex-version;">
|
---|
[cfe5e36] | 16 | <?dbhtml filename="jadetex.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>JadeTeX-&jadetex-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="jadetex">
|
---|
| 26 | <primary sortas="a-JadeTeX">JadeTeX</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to JadeTeX</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>JadeTeX</application> package is a companion package
|
---|
| 33 | to the <application>OpenJade</application> DSSSL processor.
|
---|
| 34 | <application>JadeTeX</application> transforms high level LaTeX macros into
|
---|
| 35 | DVI/PostScript and Portable Document Format (PDF) forms.</para>
|
---|
| 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&jadetex-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&jadetex-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &jadetex-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &jadetex-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &jadetex-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &jadetex-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Recommended demo files: <ulink
|
---|
| 63 | url="http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/jadetex-3.13-demo.tar.bz2"/>
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">JadeTeX Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 71 | <para><xref linkend="tex"/> and
|
---|
| 72 | <xref linkend="openjade"/></para>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2 role="installation">
|
---|
| 77 | <title>Installation of JadeTeX</title>
|
---|
| 78 |
|
---|
| 79 | <para>If you downloaded the demo files tarball, unpack it along with the
|
---|
| 80 | source tarball. It will unpack as a
|
---|
| 81 | <filename class='directory'>demo</filename> directory in the root of the
|
---|
| 82 | source tree.</para>
|
---|
| 83 |
|
---|
| 84 | <para>First, as the <systemitem class="username">root</systemitem> user,
|
---|
| 85 | make some required modifications to the <filename>texmf.cnf</filename>
|
---|
| 86 | file already installed on the system by the <application>TeX</application>
|
---|
| 87 | package, then build a new <filename>latex.fmt</filename> file using the
|
---|
| 88 | following commands:</para>
|
---|
| 89 |
|
---|
| 90 | <screen role="root"><userinput>sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
|
---|
[28da027b] | 91 | -e "s/memory hog.../&\npool_size.context = 750000/" \
|
---|
| 92 | $(kpsewhich texmf.cnf) &&
|
---|
[cfe5e36] | 93 | cat >> $(kpsewhich texmf.cnf) << "EOF"
|
---|
| 94 | <literal>
|
---|
[6c23acd] | 95 | % The following 3 sections added for JadeTeX
|
---|
| 96 |
|
---|
| 97 | % latex settings
|
---|
| 98 | main_memory.latex = 1100000
|
---|
| 99 | param_size.latex = 1500
|
---|
| 100 | stack_size.latex = 1500
|
---|
| 101 | hash_extra.latex = 15000
|
---|
| 102 | string_vacancies.latex = 45000
|
---|
| 103 | pool_free.latex = 47500
|
---|
| 104 | nest_size.latex = 500
|
---|
| 105 | save_size.latex = 5000
|
---|
| 106 | pool_size.latex = 500000
|
---|
| 107 | max_strings.latex = 55000
|
---|
| 108 | font_mem_size.latex= 400000
|
---|
| 109 |
|
---|
| 110 | % jadetex settings
|
---|
| 111 | main_memory.jadetex = 1500000
|
---|
| 112 | param_size.jadetex = 1500
|
---|
| 113 | stack_size.jadetex = 1500
|
---|
| 114 | hash_extra.jadetex = 50000
|
---|
| 115 | string_vacancies.jadetex = 45000
|
---|
| 116 | pool_free.jadetex = 47500
|
---|
| 117 | nest_size.jadetex = 500
|
---|
| 118 | save_size.jadetex = 5000
|
---|
| 119 | pool_size.jadetex = 500000
|
---|
| 120 | max_strings.jadetex = 55000
|
---|
| 121 |
|
---|
| 122 | % pdfjadetex settings
|
---|
| 123 | main_memory.pdfjadetex = 2500000
|
---|
| 124 | param_size.pdfjadetex = 1500
|
---|
| 125 | stack_size.pdfjadetex = 1500
|
---|
| 126 | hash_extra.pdfjadetex = 50000
|
---|
| 127 | string_vacancies.pdfjadetex = 45000
|
---|
| 128 | pool_free.pdfjadetex = 47500
|
---|
| 129 | nest_size.pdfjadetex = 500
|
---|
| 130 | save_size.pdfjadetex = 5000
|
---|
| 131 | pool_size.pdfjadetex = 500000
|
---|
| 132 | max_strings.pdfjadetex = 55000
|
---|
[cfe5e36] | 133 | </literal>
|
---|
| 134 | EOF
|
---|
[28da027b] | 135 | LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c" &&
|
---|
| 136 | mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig &&
|
---|
| 137 | mv -v $LATEX_FMT_DIR/latex.log $LATEX_FMT_DIR/latex.log.orig &&
|
---|
[cfe5e36] | 138 | fmtutil-sys --byfmt latex</userinput></screen>
|
---|
[6c23acd] | 139 |
|
---|
[cfe5e36] | 140 | <para>Install <application>JadeTex</application> using the following
|
---|
| 141 | commands:</para>
|
---|
[6c23acd] | 142 |
|
---|
[cfe5e36] | 143 | <screen><userinput>make</userinput></screen>
|
---|
[28da027b] | 144 |
|
---|
[cfe5e36] | 145 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[28da027b] | 146 |
|
---|
[cfe5e36] | 147 | <screen role="root"><userinput>install -v -m755 -d \
|
---|
[28da027b] | 148 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
|
---|
| 149 | install -v -m644 dsssl.def jadetex.ltx \
|
---|
| 150 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex &&
|
---|
| 151 | install -v -m644 {,pdf}jadetex.ini \
|
---|
| 152 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
|
---|
| 153 | FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)" &&
|
---|
| 154 | mv $FMTUTIL_CNF $FMTUTIL_CNF.orig &&
|
---|
[cfe5e36] | 155 | cat $FMTUTIL_CNF.orig - >> $FMTUTIL_CNF << "EOF"
|
---|
| 156 | <literal>
|
---|
[28da027b] | 157 | # JadeTeX formats:
|
---|
| 158 | jadetex etex - "&latex" jadetex.ini
|
---|
| 159 | pdfjadetex pdfetex - "&pdflatex" pdfjadetex.ini
|
---|
[cfe5e36] | 160 | </literal>
|
---|
| 161 | EOF
|
---|
[28da027b] | 162 | mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
|
---|
| 163 | $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig &&
|
---|
| 164 | mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
|
---|
| 165 | $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig &&
|
---|
| 166 | mktexlsr &&
|
---|
| 167 | fmtutil-sys --byfmt jadetex &&
|
---|
| 168 | fmtutil-sys --byfmt pdfjadetex &&
|
---|
| 169 | mktexlsr &&
|
---|
| 170 | ln -v -sf etex /usr/bin/jadetex &&
|
---|
[cfe5e36] | 171 | ln -v -sf pdfetex /usr/bin/pdfjadetex</userinput></screen>
|
---|
[28da027b] | 172 |
|
---|
[cfe5e36] | 173 | <para>If you downloaded the demo files tarball, issue the following
|
---|
| 174 | commands as an unprivileged user to test the functionality of the new
|
---|
| 175 | <application>JadeTex</application> installation:</para>
|
---|
[28da027b] | 176 |
|
---|
[cfe5e36] | 177 | <screen><userinput>cd demo &&
|
---|
[28da027b] | 178 | openjade -t tex -d demo.dsl demo.sgm &&
|
---|
| 179 | jadetex demo.tex &&
|
---|
[cfe5e36] | 180 | pdfjadetex demo.tex</userinput></screen>
|
---|
| 181 |
|
---|
| 182 | <para>The commands should complete without errors or warnings and create
|
---|
| 183 | <filename>demo.dvi</filename> and <filename>demo.pdf</filename> files.</para>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | <sect2 role="commands">
|
---|
| 188 | <title>Command Explanations</title>
|
---|
| 189 |
|
---|
| 190 | <para><command>sed -i -e ... -e ... $(kpsewhich texmf.cnf)</command>:
|
---|
| 191 | This command uses <command>kpsewhich</command> to locate the installed
|
---|
| 192 | <filename>texmf.cnf</filename>. The first change is used to modify the
|
---|
| 193 | header of the file so that if <application>TeX</application> is upgraded,
|
---|
| 194 | the file won't get overwritten. The next change adds a parameter to
|
---|
| 195 | increase ConTeXt's memory size to accommodate
|
---|
| 196 | <application>JadeTeX</application>.</para>
|
---|
| 197 |
|
---|
| 198 | <para><command>fmtutil-sys ...</command>: These commands are used to build
|
---|
| 199 | the <filename>latex.fmt</filename>, <filename>jadetex.fmt</filename> and
|
---|
| 200 | <filename>pdfjadetex.fmt</filename> files. Additionally, the command
|
---|
| 201 | automagically places the files in the correct directory.</para>
|
---|
| 202 |
|
---|
| 203 | <para><command>mktexlsr; ln -v -sf tex ...; ln -v -sf pdftex ...</command>:
|
---|
| 204 | The <application>JadeTeX</application> programs are actually just symlinks
|
---|
| 205 | to the <application>TeX</application> programs. <command>mktexlsr</command>
|
---|
| 206 | updates <application>TeX</application>'s <filename>ls-R</filename> database
|
---|
| 207 | used by the <filename class='libraryfile'>libkpathsea</filename> library so
|
---|
| 208 | that <application>TeX</application> knows to use the
|
---|
| 209 | <application>JadeTeX</application> <filename>.fmt</filename> files when
|
---|
| 210 | <command>jadetex</command> or <command>pdfjadetex</command> is called.</para>
|
---|
| 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | <sect2 role="configuration">
|
---|
| 215 | <title>Configuring JadeTeX</title>
|
---|
| 216 |
|
---|
| 217 | <sect3>
|
---|
| 218 | <title>Config Files</title>
|
---|
| 219 |
|
---|
| 220 | <para><filename>jadetex.dtx</filename> in the
|
---|
| 221 | <application>JadeTeX</application> source tree.</para>
|
---|
| 222 |
|
---|
| 223 | </sect3>
|
---|
| 224 |
|
---|
| 225 | <sect3>
|
---|
| 226 | <title>Configuration Information</title>
|
---|
| 227 |
|
---|
| 228 | <para>If you need to modify the default <application>JadeTeX</application>
|
---|
| 229 | macro settings, see the
|
---|
| 230 | <ulink url="http://jadetex.sourceforge.net/#index-div-d18e397">
|
---|
| 231 | <application>JadeTeX</application> FAQ</ulink>.</para>
|
---|
| 232 |
|
---|
| 233 | </sect3>
|
---|
| 234 |
|
---|
| 235 | </sect2>
|
---|
| 236 |
|
---|
| 237 | <sect2 role="content">
|
---|
| 238 | <title>Contents</title>
|
---|
| 239 |
|
---|
| 240 | <segmentedlist>
|
---|
| 241 | <segtitle>Installed Programs</segtitle>
|
---|
| 242 | <segtitle>Installed Libraries</segtitle>
|
---|
| 243 | <segtitle>Installed Directories</segtitle>
|
---|
| 244 |
|
---|
| 245 | <seglistitem>
|
---|
| 246 | <seg>jadetex and pdfjadetex</seg>
|
---|
| 247 | <seg>None</seg>
|
---|
| 248 | <seg>/usr/share/texmf-local</seg>
|
---|
| 249 | </seglistitem>
|
---|
| 250 | </segmentedlist>
|
---|
| 251 |
|
---|
| 252 | <variablelist>
|
---|
| 253 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 254 | <?dbfo list-presentation="list"?>
|
---|
[869b15ae] | 255 | <?dbhtml list-presentation="table"?>
|
---|
[cfe5e36] | 256 |
|
---|
| 257 | <varlistentry id="jadetex-prog">
|
---|
| 258 | <term><command>jadetex</command></term>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>transforms LaTeX macros created by
|
---|
| 261 | <application>OpenJade</application> into DVI/PostScript forms.</para>
|
---|
| 262 | <indexterm zone="jadetex jadetex-prog">
|
---|
| 263 | <primary sortas="b-jadetex">jadetex</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
| 268 | <varlistentry id="pdfjadetex">
|
---|
| 269 | <term><command>pdfjadetex</command></term>
|
---|
| 270 | <listitem>
|
---|
| 271 | <para>transforms LaTeX macros created by
|
---|
| 272 | <application>OpenJade</application> into Portable Document Format
|
---|
| 273 | (PDF) forms.</para>
|
---|
| 274 | <indexterm zone="jadetex pdfjadetex">
|
---|
| 275 | <primary sortas="b-pdfjadetex">pdfjadetex</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | </variablelist>
|
---|
| 281 |
|
---|
| 282 | </sect2>
|
---|
[6c23acd] | 283 |
|
---|
| 284 | </sect1>
|
---|