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