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