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