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