Changeset 28da027b for pst/typesetting


Ignore:
Timestamp:
04/07/2005 10:39:37 PM (19 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
44e4099
Parents:
1c1483d6
Message:

Updated the JadeTex instructions to work with Tex-3.0; added a note to the acknowledgments page to recognize Steffen Knollmann creating the instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3691 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/typesetting/jadetex.xml

    r1c1483d6 r28da027b  
    99  <!ENTITY jadetex-md5sum        "634dfc172fbf66a6976e2c2c60e2d198">
    1010  <!ENTITY jadetex-size          "103 KB">
    11   <!ENTITY jadetex-buildsize     "9.6 MB">
    12   <!ENTITY jadetex-time          "0.11 SBU">
     11  <!ENTITY jadetex-buildsize     "9.3 MB">
     12  <!ENTITY jadetex-time          "0.04 SBU">
    1313]>
    1414
     
    4646</sect3>
    4747
     48<sect3><title>Additional downloads</title>
     49<itemizedlist spacing='compact'>
     50<listitem><para>Recommended demo files: <ulink
     51url="http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/jadetex-3.13-demo.tar.bz2"/>
     52</para></listitem>
     53</itemizedlist>
     54</sect3>
     55
    4856<sect3><title><application>JadeTeX</application> dependencies</title>
    4957<sect4><title>Required</title>
     
    5866<title>Installation of <application>JadeTeX</application></title>
    5967
    60 <para>First, as the root user, make some required modifications to files
    61 already installed on the system:</para>
     68<para>If you downloaded the demo files tarball, unpack it along with the
     69source tarball. It will unpack as a
     70<filename class='directory'>demo</filename> directory in the root of the
     71source tree.</para>
     72
     73<para>First, as the root user, make some required modifications to the
     74<filename>texmf.cnf</filename> file already installed on the system by the
     75<application>TeX</application> package, then build a new
     76<filename>latex.fmt</filename> file using the following commands:</para>
    6277
    6378<screen><userinput role='root'><command>sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
    64    /usr/share/texmf/web2c/texmf.cnf</command></userinput></screen>
    65 
    66 <para>You'll need to make two modifications to
    67 <filename>/usr/share/texmf/web2c/texmf.cnf</filename>. First, add the
    68 following line under the section titled <quote>ConTeXt is a memory
    69 hog...</quote>:</para>
    70 
    71 <screen><userinput role='root'>pool_size.context = 750000</userinput></screen>
    72 
    73 <para>Next, add <command>latex</command>, <command>jadetex</command> and
    74 <command>pdfjadetex</command> settings using the following command:</para>
    75 
    76 <screen><userinput role='root'><command>cat &gt;&gt; /usr/share/texmf/web2c/texmf.cnf &lt;&lt; "EOF"</command>
     79            -e "s/memory hog.../&amp;\npool_size.context = 750000/" \
     80    $(kpsewhich texmf.cnf) &amp;&amp;
     81cat &gt;&gt; $(kpsewhich texmf.cnf) &lt;&lt; "EOF"</command>
    7782
    7883% The following 3 sections added for JadeTeX
     
    114119pool_size.pdfjadetex = 500000
    115120max_strings.pdfjadetex = 55000
    116 <command>EOF</command></userinput></screen>
    117 
    118 <para>Build a new <filename>latex.fmt</filename> file using the following
     121
     122<command>EOF &amp;&amp;
     123LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c" &amp;&amp;
     124mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig &amp;&amp;
     125mv -v $LATEX_FMT_DIR/latex.log $LATEX_FMT_DIR/latex.log.orig &amp;&amp;
     126fmtutil-sys --byfmt latex</command></userinput></screen>
     127
     128<para>Install <application>JadeTex</application> using the following
    119129commands:</para>
    120130
    121 <screen><userinput><command>cp -v -R /usr/share/texmf/tex/latex/config . &amp;&amp;
    122 cd config &amp;&amp;
    123 tex -ini -progname=latex latex.ini &amp;&amp;
    124 cd ..</command></userinput></screen>
    125 
    126 <para>Now, as the root user, install the <filename>latex.fmt</filename> file,
    127 then build and install <application>JadeTex</application> using the following
    128 commands:</para>
    129 
    130 <screen><userinput role='root'><command>mv /usr/share/texmf/web2c/latex.fmt \
    131    /usr/share/texmf/web2c/latex.fmt.orig &amp;&amp;
    132 install -v -m644 config/latex.fmt /usr/share/texmf/web2c &amp;&amp;
    133 make install &amp;&amp;
    134 ln -v -sf tex /usr/bin/jadetex &amp;&amp;
    135 ln -v -sf pdftex /usr/bin/pdfjadetex &amp;&amp;
    136 mktexlsr</command></userinput></screen>
     131<screen><userinput><command>make</command></userinput></screen>
     132
     133<para>Now, as the root user:</para>
     134
     135<screen><userinput role='root'><command>install -v -m755 -d \
     136    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &amp;&amp;
     137install -v -m644 dsssl.def jadetex.ltx \
     138    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex &amp;&amp;
     139install -v -m644 {,pdf}jadetex.ini \
     140    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &amp;&amp;
     141FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)" &amp;&amp;
     142mv $FMTUTIL_CNF $FMTUTIL_CNF.orig &amp;&amp;
     143cat $FMTUTIL_CNF.orig - &gt;&gt; $FMTUTIL_CNF &lt;&lt; "EOF"</command>
     144
     145# JadeTeX formats:
     146jadetex         etex            -               "&amp;latex"     jadetex.ini
     147pdfjadetex      pdfetex         -               "&amp;pdflatex"  pdfjadetex.ini
     148
     149<command>EOF &amp;&amp;
     150mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
     151      $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig &amp;&amp;
     152mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
     153      $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig &amp;&amp;
     154mktexlsr &amp;&amp;
     155fmtutil-sys --byfmt jadetex &amp;&amp;
     156fmtutil-sys --byfmt pdfjadetex &amp;&amp;
     157mktexlsr &amp;&amp;
     158ln -v -sf etex /usr/bin/jadetex &amp;&amp;
     159ln -v -sf pdfetex /usr/bin/pdfjadetex</command></userinput></screen>
     160
     161<para>If you downloaded the demo files tarball, issue the following commands
     162as an unprivileged user to test the functionality of the new
     163<application>JadeTex</application> installation:</para>
     164
     165<screen><userinput><command>cd demo &amp;&amp;
     166openjade -t tex -d demo.dsl demo.sgm &amp;&amp;
     167jadetex demo.tex &amp;&amp;
     168pdfjadetex demo.tex</command></userinput></screen>
     169
     170<para>The commands should complete without errors or warnings and create
     171<filename>demo.dvi</filename> and <filename>demo.pdf</filename> files.</para>
    137172
    138173</sect2>
     
    141176<title>Command explanations</title>
    142177
    143 <para><command>sed -i -e "s/original texmf.cnf/modified texmf.cnf/"</command>:
    144 This changes <filename>/usr/share/texmf/web2c/texmf.cnf</filename> so that if
    145 <application>TeX</application> is upgraded, this file won't get
    146 overwritten.</para>
    147 
    148 <para><command>ln -v -sf tex ...; ln -v -sf pdftex ...; mktexlsr</command>: The
     178<para><command>sed -i -e ... -e ... $(kpsewhich texmf.cnf)</command>:
     179This command uses <command>kpsewhich</command> to locate the installed
     180 <filename>texmf.cnf</filename>. The first change is used to modify the
     181header of the file so that if <application>TeX</application> is upgraded,
     182the file won't get overwritten. The next change adds a parameter to
     183increase ConTeXt's memory size to accommodate
     184<application>JadeTeX</application>.</para>
     185
     186<para><command>fmtutil-sys ...</command>: These commands are used to build
     187the <filename>latex.fmt</filename>, <filename>jadetex.fmt</filename> and
     188<filename>pdfjadetex.fmt</filename> files. Additionally, the command
     189automagically places the files in the correct directory.</para>
     190
     191<para><command>mktexlsr; ln -v -sf tex ...; ln -v -sf pdftex ...</command>: The
    149192<application>JadeTeX</application> programs are actually just symlinks to the
    150193<application>TeX</application> programs. <command>mktexlsr</command> updates
     
    185228<seg>jadetex and pdfjadetex</seg>
    186229<seg>None</seg>
    187 <seg>/usr/share/texmf/tex/jadetex</seg>
     230<seg>/usr/share/texmf-local</seg>
    188231</seglistitem>
    189232</segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.