--- jadetex-3.12.orig/jadetex.dtx +++ jadetex-3.12/jadetex.dtx @@ -56,7 +56,7 @@ \end{document} % % \fi -% \CheckSum{4407} +% \CheckSum{4435} % \StopEventually{} % % \section{Introduction} @@ -99,6 +99,7 @@ \def\JadeTeXMinorVersion{12} \def\JadeTeXDate{2002/01/25} \documentclass{minimal} +\RequirePackage[english]{babel} \RequirePackage{array}[1995/01/01] \RequirePackage{longtable}[1995/01/01] \RequirePackage{color}[1997/09/09] --- jadetex-3.12.orig/debian/fmtutil.cnf.jtex +++ jadetex-3.12/debian/fmtutil.cnf.jtex @@ -0,0 +1,7 @@ +# for Japanese extension +# jadefmtutil.cnf: configuration file for fmtutil; jade flavor. +# invoke with 'fmtutil --cnffile ' +# +# format engine pattern-file arguments +jadejtex jtex language.dat -progname=jadetex &jlatex jadetex.ini + --- jadetex-3.12.orig/debian/README.Debian +++ jadetex-3.12/debian/README.Debian @@ -0,0 +1,56 @@ +JadeTeX for Debian +------------------ + +Sometimes problems occur with the installation of teTeX, and these +problems only manifest during the installation of the jadetex package. +The JadeTeX package tries to be as flexible as possible in dealing +with these problems. However, during certain upgrade paths, cases +have been reported where the only way to fix the problem was to +actually purge the tetex and jadetex packages, then reinstall them (a +clean slate). + +To use jadetex, you just do: + + > jade -t tex + +Which produces `basename `.tex, a.k.a., , and then: + + > jadetex + +An excellent paper on Jadetex can be found at +. + +You can create the memory dump files jadetex.fmt and pdfjadetex.fmt by +running `fmtutil --cnffile /etc/texmf/jadetex/fmtutil.cnf --all' as +root. This is done automatically during the installation process of +this package. + +If running jadetex gives you 'capacity exceeded' messages, please +check out /etc/texmf/texmf.cnf. The jadetex maintainer has worked +with the teTeX maintainer to ensure that the settings that teTeX ships +with generally work with JadeTeX. Yet you may have opted to *not* +install the newer versions of texmf.cnf with the expanded, so look at +that file and compare it with /etc/texmf/texmf.cnf.dpkg-dist . You +should have lines such as these near the bottom: + +% Settings for Debian jadetex + hash_extra.jadetex = 15000 + hash_extra.pdfjadetex = 15000 + ... + +If you *do* have the settings for the distributed texmf.cnf files +already in place, but are still receiving capacity exceeded messages, +the best I can tell you is to note from the error message which +setting is too small, and increase it. I'd be curious to be notified +if you do have to do this, since other users may also benefit from the +expanded sizes. + +In some cases, it is possible for pdfjadetex to error out even with +the expanded settings. You might need to fix that with special +'jadetex.cfg' settings -- see README.jadetex.cfg . + +-- +Adam Di Carlo +Marcus Brinkmann , Fri, 10 Jul 1998 04:03:33 +0200 +Christian Leutloff , Mon, 23 Feb 1998 + --- jadetex-3.12.orig/debian/changelog +++ jadetex-3.12/debian/changelog @@ -0,0 +1,528 @@ +jadetex (3.12-2.jp.1) unstable; urgency=low + + * Add Japanese support. + + -- OHURA Makoto Wed, 22 May 2002 14:22:57 +0900 + +jadetex (3.12-2) unstable; urgency=low + + * control: require tetex-bin >= 1.0.7+20011202-5.1 for new machinery to + let our memory dumps stay up-to-date; closes: #140231 + * use new update-fmtutil system: we install fmtutil.cnf to + /etc/texmf/fmt.d/40jadetex.cnf during installation (it's a + configuration file, not a conffile), disable that on package removal, + re-enable on install if possible preserving user configuration, purge + on purge + * policy checked against 3.5.6 + * problem could only be user error; closes: #114193 + + -- Adam Di Carlo Sat, 30 Mar 2002 16:58:31 -0500 + +jadetex (3.12-1) unstable; urgency=low + + * new upstream version + * postinst: remove some cruft + * jadetex.dtx had \CheckSum{4407} which I changed to \CheckSum{4434}, + seems like a problem with how upstream shipped... + * rules: contents of doc dir changed, accommodate + + -- Adam Di Carlo Sun, 10 Mar 2002 15:41:48 -0500 + +jadetex (3.11-2) unstable; urgency=low + + * prerm: bit more robust in case of missing conffiles + * postinst: fail early if we don't have /etc/texmf/jadetex/fmtutil.cnf + + -- Adam Di Carlo Fri, 2 Nov 2001 17:46:23 -0500 + +jadetex (3.11-1) unstable; urgency=low + + * new upstream version + + -- Adam Di Carlo Mon, 30 Jul 2001 00:47:47 -0400 + +jadetex (3.10-1) unstable; urgency=low + + * new upstream version + * debian/{copyright,control}: URLs change, now at SourceForge + + -- Adam Di Carlo Sun, 15 Jul 2001 21:30:06 -0400 + +jadetex (3.7-2) unstable; urgency=low + + * version 3.7 fixed some bugs + closes: #96641, #102598 + * use prerm rather than postrm when possible; we were also leaving the + TeX memory dumps around after removal, which is now fixed + closes: #92656 + * debian/control: update standards to 3.5.5 (no changes needed); + docbook-stylesheets now called docbook-dsssl + * README.jadetex.cfg: fix the Verso/Recto chapter settings + closes: #100601 + * README.Debian: remove some reduncdancy with README.jadetex.cfg + + -- Adam Di Carlo Tue, 10 Jul 2001 20:40:58 -0400 + +jadetex (3.7-1) unstable; urgency=low + + * new upstream version + * README.jadetex.cfg: add a note about PDF Outlines + + -- Adam Di Carlo Tue, 10 Jul 2001 20:04:39 -0400 + +jadetex (3.5-2) unstable; urgency=low + + * upgrade tetex-bin in build-depends with tetex-extra, closes: #90401 + * README.jadetex.cfg: hint at pdfpagemode=UseOutlines -- someone explain + this to me + * copyright: remove obsolete download location + + -- Adam Di Carlo Sat, 24 Mar 2001 16:37:47 -0500 + +jadetex (3.5-1) unstable; urgency=low + + * new upstream version + * debian/postinst: fix a bug in a warning message, closes: #86592 + * remove obsolete README.ver_2.1, add README.jadetex.cfg, talking about + some common jadetex.cfg (per directory settings) + + -- Adam Di Carlo Tue, 6 Mar 2001 19:15:22 -0500 + +jadetex (3.3a-1) unstable; urgency=low + + * new upstream revision to unicode.sty; any reference to non-free font + for a while, anyhow, has been wrapped inside a + \@ifpackageloaded{lucidabr}, so if that package (requesting the + non-free font hlcm) isn't loaded, an alternative is used + (closes: Bug#39711) + + -- Adam Di Carlo Sat, 17 Feb 2001 15:56:16 -0500 + +jadetex (3.3-1) unstable; urgency=low + + * new upstream version, fixes the tdot entity problem + (closes: Bug#69783) + * debian/control: standards version 3.5.0 (no changes) + * install the file ut1omlgc.fd as well + (I am confused on what files should be shipped and which one needn't + bother with) + + -- Adam Di Carlo Wed, 7 Feb 2001 00:41:55 -0500 + +jadetex (3.2-2) unstable; urgency=low + + * re-enabled language.dat handling in upstream source; i18n stuff should + work, since we don't hardcode languages or even use Babel anymore + (closes: Bug#43759) + * jadetex uses colorlinks now upstream (closes: Bug#60240) + * debian/copyright: refresh + + -- Adam Di Carlo Sat, 3 Feb 2001 19:22:56 -0500 + +jadetex (3.2-1) unstable; urgency=medium + + * new upstream version, fixes or already fixed: + - warning for undefined labels (closes: Bug#42839) + * debian/control: Policy upgraded to 3.2.1, no changes needed; add + conflicts on cslatex (closes: Bug#67549); depends on either jade + or openjade; conflict on csplain in the name of paranoia + * disable language.dat processing temporarily, since our language.dat + file has tabs in it, which aren't handled upstream + * debian/rules: make realclean from upstream + * debian/postinst: remove hackaround for bug 67549 + + -- Adam Di Carlo Thu, 25 Jan 2001 21:41:06 -0500 + +jadetex (2.20-3) unstable; urgency=low + + * debian/postrm: add #DEBHELPER# token + * debian/copyright: update copyright date for my stuff + + -- Adam Di Carlo Thu, 18 Jan 2001 01:58:57 -0500 + +jadetex (2.20-2) unstable; urgency=low + + * debian/control: update tetex-extra dependancy version to woody or so + (closes: Bug#78114) + * debian/copyright: update upstream email addr + * add norsk support -- thanks Tore Morkemo (closes: Bug#75146) + * debian/fmtutil.cnf: fix invokation in the comments, thanks to Alan + W. Irwin + + -- Adam Di Carlo Mon, 15 Jan 2001 20:11:56 -0500 + +jadetex (2.20-1) unstable; urgency=low + + * new upstream version + * debian/copyright: update + * debian/README: talk about pdfjadetex only capacity errors and the + '\LabelElementsfalse' hack + * debian/postrm: remove /etc/texmf/jadetex on purge + (closes: Bug#69551) + * debian/postinst: if we have to resort to 'fmtutil -all', redirect that + output to the log file at least; add a condition to check for failure + due to tetex-extra Bug#67549 so I don't get swamped with bug reports; + use stderr rather than stdout for errors and warnings; postinst is + still too chatty however, maybe at some point I'll debconf it + * debian/rules: clean is a bit cleaner + + -- Adam Di Carlo Sat, 14 Oct 2000 22:39:20 -0400 + +jadetex (2.18-2) unstable; urgency=low + + * debian/postinst: fmtutil seems to return error codes now, allow that + to fall through; this allows for better error reporting, but doesn't + actually fix the install problems people are having + + -- Adam Di Carlo Sat, 13 May 2000 02:20:37 -0400 + +jadetex (2.18-1) unstable; urgency=low + + * new upstream version + * debian/rules: install new documentation and tests; ship documentation + as PDF rather than dvi/ps + + -- Adam Di Carlo Sat, 6 May 2000 02:32:37 -0400 + +jadetex (2.13-1) unstable; urgency=low + + * new upstream version + * merge changes from potato branch + + -- Adam Di Carlo Tue, 28 Mar 2000 04:18:12 -0500 + +jadetex (2.9.pre.2.11-1) unstable; urgency=low + + * new upstream version + * manpages now included upstream + * debian/rules: adjust for upstream + + -- Adam Di Carlo Tue, 11 Jan 2000 23:36:37 -0500 + +jadetex (2.7-2) frozen unstable; urgency=low + + * debian/control,rules,copyright: Standards Version 3.1.1 + * debian/postinst: if we fail at creating (pdf)*jadetex.fmt, then try + 'fmtutil --all' and try again (closes: Bug#46806, Bug#49152, + Bug#50850, Bug#54405, Bug#57200) + + -- Adam Di Carlo Tue, 8 Feb 2000 19:02:31 -0500 + +jadetex (2.7-1) unstable; urgency=low + + * new upstream version + * debian/control: Standards-Version: 3.0.1 (changed man path, left doc + path); update teTeX dependancies (closes: Bug#39416, Bug#39754) + * no response from user, suspect bug is close (closes: Bug#39700) + + -- Adam Di Carlo Sat, 28 Aug 1999 06:40:03 -0400 + +jadetex (2.6-5) unstable; urgency=low + + * README.Debian: update (closes Bug#39248) + + -- Adam Di Carlo Wed, 7 Jul 1999 02:53:06 -0400 + +jadetex (2.6-4) unstable; urgency=low + + * debian/control: bump up tetex dependancies again, removed conflict and + suggest (!) on tetex-nonfree (closes Bug#38399) + * README.capacity_exceeded: no longer needed, new teTeX folds in the + needed alterations + + -- Adam Di Carlo Sun, 6 Jun 1999 01:29:53 -0400 + +jadetex (2.6-3) unstable; urgency=low + + * debian/rules: stop including our own cooked babel, which was just a + workaround for problems with older tetex; bring up to "Di Carlo" + standards + * debian/control: bump up tetex-dependancies to 0.9.990510-2, conflict + with tetex-nonfree >= 0.9.990510 temporarily, since we don't seem to + get along with the new french.sty, and I can't distributed the cooked + version since that would break licensing (closes Bug#38302, Bug#38395, + Bug#38399) + + -- Adam Di Carlo Thu, 27 May 1999 18:43:21 -0400 + +jadetex (2.6-2) unstable; urgency=low + + * postinst: attempt to cope with missing latex.fmt, pdftex.fmt or + pdflatex.fmt, in an attempt to close Bug#37414 and Bug#37727 + * debian/rules: clean is cleaner + + -- Adam Di Carlo Sat, 22 May 1999 04:35:44 -0400 + +jadetex (2.6-1) unstable; urgency=low + + * new upstream version, should fix the babel conflict which was causing + pdfjadetex to die; we still have to ship the local babel from the + cooked subdir, however, until teTeX is updated (closes Bug#36614) + * debian/postinst: when jadetex.fmt is not generated, ask the user to + submit the contents of the fmtutil run with the output; don't hardcode + TeX fmt dir, use kpsewhich, but the script must be bash for that; + quiet lintian warning about mktemp + * debian/postrm: use same techniques from postinst + * debian/rules: minor debhelper tweaks, install upstream ChangeLog, + install charlist.dtd into /usr/doc/jadetex + * debian/control: update standards to 2.5.1; update TeX dependancies + * debian/jadetex.conffiles: removed, obsolete (generated by debian/rules) + + -- Adam Di Carlo Fri, 14 May 1999 10:29:10 -0400 + +jadetex (2.5-3) unstable; urgency=low + + * README.capacity_exceeded: up the stack size to 6000, from + J.H.M. Dassen (closes Bug#36615), raise a few other parameters that + have bit me recently + * jadetex.dtx: workaround bug, 'Incomplete \ifnum; all text was ignored + after line 1410' + * debian/rules: ship older babel from the 'cooked' subdir, fixing a + nasty interaction with newer tetexen (closes Bug#36614, Bug#36268) + + -- Adam Di Carlo Tue, 27 Apr 1999 23:44:07 -0400 + +jadetex (2.5-2) unstable; urgency=low + + * README.capacity_exceeded and README.Debian updated + + -- Adam Di Carlo Fri, 23 Apr 1999 02:34:06 -0400 + +jadetex (2.5-1) unstable; urgency=low + + * new upstream version + * ship unicode.sty (required) and unicode.xml (documentation) + * debian/rules: modularize, clean up, and abstract like I like it; move + over to /usr/share/texmf/tex/jadetex (closes Bug#35836); some files + renamed in debian/* to debhelper standards + * debian/control: updated standards to 2.5.0; update tetex dependancies + to Mar. 1999 version + * debian/postinst: clean up and clean out + * README.capacity_exceeded: updated + * jadetex-texconfig: removed + * debian/copyright: updated + + -- Adam Di Carlo Sun, 11 Apr 1999 19:38:15 -0400 + +jadetex (2.2-1) stable unstable; urgency=medium + + * new maintainer + * fix fmtutil configuration file, which totally broke package + installation (close important Bug#35300, Bug#35463, Bug#35385, + Bug##34986, Bug#33336, Bug#32853, Bug#32000) + + -- Adam Di Carlo Fri, 9 Apr 1999 02:35:03 -0400 + +jadetex (2.2-0.2) frozen unstable; urgency=low + + * non-maintainer release + * jadetex.dtx: 5 line patch from upstream maintainer to use multicol.sty + if it is available, but proceed even if not; this means jadetex's + dependancy on a non-free package can be lowered to 'suggests' (closes + important Bug#28224) + * jadetex.dtx: removed [implicit=false,bookmarks=false] from hyperref + package options, since pdflatex doesn't seem to like package options + at all for hyperref (closes Bug#29170, tetex-extra bug opened) + * fmtutil.cnf: new fmtutil conffile, installed to /etc/texmf/jadetex, + which enables us to simply run + 'fmtutil -cnfffile /etc/texmf/jadetex/fmtutil.cnf --all' + which speeds up installation considerably (closes Bug#27446, at least) + * jadetex-texconfig: no longer installed + * debian/control: do not install hyperref.sty, hypertex.def, or + hpdftex.def, since they are in a new tetex-extra (closes Bug#29168) + * debian/control: bump depends accordingly, mention PDF files in the + package description + * debian/rules: add a check that postinst/postrm are valid while building + + -- Adam Di Carlo Wed, 16 Dec 1998 16:48:55 -0500 + +jadetex (2.2-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version + * fix problem with source + * jadetex.dtx: remove T3 since it causes confusing errors w/o the proper + font being installed. If someone want's to package 'tipa' from CTAN, + then we could bring it back + * debian/control: now also depends on tetex-nonfree; this means this + package must be moved to contrib. I'll let the maintainer work around + this or file the bug against ftp.debian.org (closes Bug#27487) + + -- Adam P. Harris Wed, 7 Oct 1998 23:05:14 -0400 + +jadetex (2.1-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version (depends on jade >= 1.2); pdfjadetex is now + properly called pdfjadetex (not jadetexpdf) upstream + * bump tetex Depends up to newest version of tetex-* + * reintroduced 'cooked' directory since it is upstream from 'cooked', + install t3enc.def, hypertex.def, hpdftex.def, and hyperref.sty into + /etc/texmf/jadetex/, aka /usr/lib/texmf/tex/jadetex/config/, because + it is needed in the current tetex environment + * postinst: check that the jadetex.fmt and pdfjadetex.fmt files were + actually generated, since texconfig doesn't exit with non-zero status + on failure. Consider this a failure condition. It has been + determined that this is in fact a limitiation of the upstream + 'texconfig' system employed. The hacky patch I added here to the + postinst sould probably be removed for the freeze; for now it's + probably a good way to chase down problems (closes Bug#25592, Bug#25695) + * add a few bits of documentation off the net; talk about the TeX + capacity exceeded issue in /usr/doc/jadetex/README.capacity_exceeded + (addressing but not quite closing Bug#24307) + * debian/README: how to use jadetex, 3 second overview; refer to other + READMEs now shipped + * jadetextables.html: removed ^Ms from HTML + * debian/copyright: update ftp location + * debian/rules: add '-isp' to dpkg-gencontrol + * debian/rules: explicit dependancy on /bin/bash, since curly braces are + used + * debian/jadetexcofig: run tex -ini with hugelatex if possible to fix + TeX capacity exceeded. + * link man page for jadetex-texconfig.1 to texconfig.1 + + -- Adam P. Harris Sun, 4 Oct 1998 04:13:40 -0400 + +jadetex (1.05-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version (requires new jade) + * promote jade relationship to 'Depends', so we can manage version + dependancies properly + + -- Adam P. Harris Thu, 3 Sep 1998 01:12:51 -0400 + +jadetex (1.0b5-1) unstable; urgency=low + + * New maintainer. + * New upstream version. Maybe works with tables, tell me about it. + * Changed postinst to use solely mktemp and not to fall back to insecure + tempfile allocation if mktemp does not exist. Made sure that mktemp does + exist by adding a dependency to debianutils >= 1.7. (lintian). + * JadeTeX now recommends jade and sugests docbook-stylesheets instead the + other way round. + * Documentation generation works now, and documentation is included. + * Converted debian/rules from debhelper to Manoj rules style. + * Dropped "cooked" directory, as it is not provided upstream anymore and + doesn't make much sense, IMHO. If you really need such information, I'm + happy to provide you with the version numbers of the Debian packages I + use to build JadeTeX. + * Added pdfjadetex. + * The introduction of pdfjadetex means that jadetex-texconfig is back. + I used the new version 0.9 however, and only added pdfjadetex support. + Christoph and Thomas are contacted. + * JadeTeX and pdfJadeTeX now point to TeX and pdfTeX directly, and not to + virTeX or something like this. + * Added real man pages. They are derived from the teTeX distribution, please + sent me improvements, corrections, etc. + + -- Marcus Brinkmann Thu, 9 Jul 1998 17:54:41 +0200 + +jadetex (0.61-1.2) frozen unstable; urgency=medium + + * Non-maintainer release + * eliminate jadetex-texconfig for texconfig; use tetex's texconfig + instead. The old jadetex-texconfig is still in the source archive + though; hopefully it is no longer required. + (closes grave Bug#22688, Bug#22638, Bug#22639, Bug#22766) + * Note there are known cases, such as generating php-doc, where tetex + seems to run out of memory internally; I think this is a tetex-base + bug (report as a bug) + + -- Adam P. Harris Sun, 31 May 1998 22:06:37 -0400 + +jadetex (0.61-1.1) frozen unstable; urgency=low + + * Non-maintainer release + * debian/control: starting with tetex-extra 0.9-5, hyperref is obsolete, + so we shouldn't depend on both. Used the rather complex depends + provided by Anthony Fok (closes Bug#21110, + Bug#21885, Bug#22455) + * debian/postinst: rather than hardcode the path of tempfile, use + 'command -v' to check for it (it was testing for /usr/bin/tempfile, + which seems to be in /bin now) + * strip off prepended !! from "kpsetool -v '$VAR'" (not sure if that's + actually the right thing to do, but the way it was was definately + wrong) + + -- Adam P. Harris Fri, 15 May 1998 00:39:33 -0400 + +jadetex (0.61-1) frozen; urgency=low + + * New upstream (bugfix only) release + * depends on tetex-extra (fixes Bug #18606) + * README.debian reworked (fixes Bug #18617) + * Bug #19489 should be fixed with changes in 0.57-2 + + -- Christian Leutloff Mon, 16 Mar 1998 09:35:54 +0100 + +jadetex (0.57-2) unstable; urgency=low + + * modified postinst and README.Debian + + -- Christian Leutloff Thu, 26 Feb 1998 18:43:40 +0100 + +jadetex (0.57-1) unstable; urgency=low + + * New upstream release + + -- Christian Leutloff Wed, 25 Feb 1998 09:29:10 +0100 + +jadetex (0.56-2) unstable; urgency=low + + * check for symlink to conffiles in postinst (fixes #18517) + (thanks to Francesco Potorti` ) + * README changed (#18436) + + -- Christian Leutloff Mon, 23 Feb 1998 19:26:04 +0100 + +jadetex (0.56-1) unstable; urgency=low + + * New upstream release + * fixed symlink (#18087) + + -- Christian Leutloff Fri, 20 Feb 1998 16:04:29 +0100 + +jadetex (0.55-2) unstable; urgency=low + + * added jadetex.ini and jadetexpdf.ini to conffiles and moved them to + /etc/texmf/jadetex/ + * need to add jadetex-texconfig again 8-( + * improved description, thanks to Chris Fearnley + + -- Christian Leutloff Sun, 8 Feb 1998 12:47:22 +0100 + +jadetex (0.55-1) unstable; urgency=low + + * new upstream version + + -- Christian Leutloff Tue, 3 Feb 1998 19:28:01 +0100 + +jadetex (0.53-4) unstable; urgency=low + + * texconfig.jadetex obsoleted by tetex-bin 0.4pl8-4 + + -- Christian Leutloff Sun, 14 Dec 1997 15:52:11 +0100 + +jadetex (0.53-3) unstable; urgency=low + + * now in main again, because copyright of hyperref is now DFSG compliant + + -- Christian Leutloff Thu, 27 Nov 1997 11:13:14 +0100 + +jadetex (0.53-2) unstable; urgency=low + + * changed section to contrib/tex, added dependency for hyperref + + -- Christian Leutloff Fri, 21 Nov 1997 23:34:16 +0100 + +jadetex (0.53-1) unstable; urgency=low + + * new upstream source + * minor improvements + * added set -e to postinst + * Initial Version. + + -- Christian Leutloff Fri, 7 Nov 1997 11:24:12 +0100 + + --- jadetex-3.12.orig/debian/README.jadetex.cfg +++ jadetex-3.12/debian/README.jadetex.cfg @@ -0,0 +1,52 @@ +You can put a file jadetex.cfg if you want to override jadetex's or +pdfjadtex's default behavior. It seems that pretty much any TeX code +can go in there, but here are some common things. + +This file just goes in whatever the current directory where jadetex is +being run from. + + +* Two-Sided Pages + +Sometimes, you will want JadeTeX will start chapters and such on the +recto side, and try to keep the total count of pages even. Note that +this used to be the default, but no longer is. If you want to turn +that back on, put this in jadetex.cfg: + +\def\PageTwoSide{1} +\def\TwoSideStartOnRight{1} + + +* Not Labelling Elements + +In some cases, it is possible for pdfjadetex to error out even with +expanded texmf.cnf settings. The sign of this is that jadetex is able +to process the file, but pdfjadetex isn't. The upstream maintainer, +Sebastian Rahtz, had this to say: + +| pdfjadetex _can_ go over a string limit in TeX +| which *isn't* changeable in texmf.cnf. The workaround is to write a +| file called jadetex.cfg, containing just the line +| +| \LabelElementsfalse +| +| and see if that helps. it stops jadetex from using up a string for +| every element. If that leaves unsatisfied cross-references, try +| "jadetex" instead of "pdfjadetex", and create your PDF in another via +| (ie via Distiller). + + + +* PDF Outlines + +PDF outlines are a nested list of the hierarchy of chapters, sections, +etc. These will display on the left side using 'acroread' for +instance. + +Put this in jadetex.cfg: + + pdfpagemode=UseOutlines + +This functionality requires the use of OpenJade. + + --- jadetex-3.12.orig/debian/fmtutil.cnf.ptex +++ jadetex-3.12/debian/fmtutil.cnf.ptex @@ -0,0 +1,7 @@ +# for Japanese extension +# jadefmtutil.cnf: configuration file for fmtutil; jade flavor. +# invoke with 'fmtutil --cnffile ' +# +# format engine pattern-file arguments +jadeptex ptex language.dat -progname=jadetex &platex jadetex.ini + --- jadetex-3.12.orig/debian/jadetex-jtex.postinst +++ jadetex-3.12/debian/jadetex-jtex.postinst @@ -0,0 +1,165 @@ +#!/bin/bash +# for Japanese extension +# jadetex-jtex postinst +# jobs: texhash, remove old cruft we used to make, and run fmtutil + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +FMTDIR=/etc/texmf/fmt.d +TEMPLDIR=/usr/share/texmf/tex/jadetex/config-templates + +umask 022 + +# emit a warning, generic routine +warn ( ) { + echo $* 1>&2 +} + +checkfmt ( ) { + format=$1 + baseformat=`basename $1 .fmt` + if ! kpsewhich $format > /dev/null ; then + warn "WARNING: memory dump $format not found, attempting to reconstruct ..." + echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE + fmtutil --byfmt $baseformat >> $MYTMPFILE + if kpsewhich $format > /dev/null ; then + warn " ok, reconstructed" + else + warn "ERROR: cannot create TeX memory dump $format" + warn " Your TeX environment seems to be broken; the memory dump file $format" + warn " was not found and cannot be created. Probably, TeX is miconfigured." + warn " You should submit the log file $MYTMPFILE as a bug against" + warn " the package tetex-bin." + warn + warn "JadeTeX cannot be installed." + exit 1 + fi + fi +} + +makejadetexfmt ( ) { + local goterror + goterror=false + + if ! fmtutil --byfmt jadejtex >> $MYTMPFILE + then + warn "ERROR: jadejtex fmtutil failed" 1>&2 + goterror=true + fi +# if ! fmtutil --byfmt pdfjadetex >> $MYTMPFILE +# then +# warn "ERROR: pdfjadetex fmtutil failed" 1>&2 +# goterror=true +# fi + if $goterror; then + return 1 + else + return 0 + fi +} + +jadetexfmtcheck ( ) { + # check whether it actually worked, since the texconfig program + # doesn't exit non-zero + + # file exists test + local goterror + goterror=false + if ! kpsewhich jadejtex.fmt > /dev/null ; then + warn "ERROR: JadejTeX memory dump (jadejtex.fmt) cannot be found" + goterror=true + fi +# if ! kpsewhich pdfjadetex.fmt > /dev/null ; then +# warn "ERROR: PDFJadeTeX memory dump (pdfjadetex.fmt) cannot be found" +# goterror=true +# fi + + if $goterror; then + return -1 + else + return 0 + fi +} + +if [ "$1" = "configure" ]; then + # old crufty stuff we used to build in postinst - I wonder whether we + # should actually do this in preinst? + if [ -L /usr/lib/texmf/tex/jadetex/config ]; then + warn "removing old JadeTeX config symlink" + rm /usr/lib/texmf/tex/jadetex/config + fi + if [ -d /usr/lib/texmf/tex/jadetex ]; then + rmdir /usr/lib/texmf/tex/jadetex || \ + warn "unused, obsolete dir /usr/lib/texmf/tex/jadetex, remove it yourself if you care" + fi + + texhash + + # new fmt.d handling; we have to handle this in postinst rather + # than conffiles so that we can disable it when pkg is removed + # + # first we check if the file or any jadetex.cnf file is already there, + # if not, is there is a disabled version of the script available? + # if not, is there a globbed version of the disabled file available? + # if not, copy in the file from the template area + if [ -f ${FMTDIR}/41jadejtex.cnf ] || + ls ${FMTDIR}/*jadejtex.cnf 2>/dev/null; then + : + elif [ -f ${FMTDIR}/41jadejtex.cnf.disable ]; then + mv ${FMTDIR}/41jadejtex.cnf.disable ${FMTDIR}/41jadejtex.cnf + else + OLD=`ls -1 ${FMTDIR}/*jadejtex.cnf* 2>/dev/null | tail -1` + if [ ${OLD} -a -f ${OLD} ]; then + NEW=`echo $OLD | sed -e 's/.cnf.*/.cnf/'` + mv ${OLD} ${NEW} + else + cp ${TEMPLDIR}/fmtutil.cnf.jtex ${FMTDIR}/41jadejtex.cnf + fi + fi + + update-fmtutil + + MYTMPFILE=`mktemp /tmp/jadejtex-postinst.XXXXXX` + : > $MYTMPFILE + + echo "Checking for TeX memory dumps (.fmt) ..." + checkfmt jlatex.fmt +# checkfmt pdftex.fmt +# checkfmt pdflatex.fmt + echo " done." + + echo "Creating JadeTeX memory dumps ..." + if makejadetexfmt && jadetexfmtcheck; then + echo " done." + else + warn " failed." + + echo "Desperate measures: running 'fmtutil --all' to rebuild existing TeX" + echo " memory dumps ..." + fmtutil --all >> $MYTMPFILE + echo " done." + echo "Re-checking for JadeTeX memory dumps ..." + if jadetexfmtcheck; then + echo " done." + else + warn "ERROR: JadeTeX/PDFJadeTeX memory dump not found" + warn " This package could not be installed." + warn " Please report this bug; include tetex* package version" + warn " numbers and the file $MYTMPFILE in the bug report." + exit 1 + fi + fi + + # remove temp file + rm -f $MYTMPFILE +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/control +++ jadetex-3.12/debian/control @@ -0,0 +1,44 @@ +Source: jadetex +Section: tex +Priority: optional +Maintainer: Adam Di Carlo +Standards-Version: 3.5.6 +Build-Depends-Indep: debhelper, tetex-extra + +Package: jadetex +Architecture: all +Depends: debianutils (>= 1.7), tetex-bin (>= 1.0.7+20011202-5.1), tetex-extra (>= 1.0.2+20000804-3), jade (>= 1.2-1) | openjade +Suggests: docbook-dsssl +Conflicts: cslatex, csplain +Description: LaTeX macros for SGML to DVI/PS/PDF conversion with Jade + JadeTeX provides a set of LaTeX macros to process the TeX files + generated by Jade or OpenJade. Using Jade and JadeTeX you can print + every SGML document for which you have or make a DSSSL description. + . + Homepage: http://jadetex.sourceforge.net/ + +Package: jadetex-jtex +Architecture: all +Pre-Depends: jadetex +Depends: jadetex, jtex-bin +Description: LaTeX macros for SGML to DVI/PS/PDF conversion with Jade + JadeTeX provides a set of LaTeX macros to process the TeX files + generated by Jade or OpenJade. Using Jade and JadeTeX you can print + every SGML document for which you have or make a DSSSL description. + . + Homepage: http://jadetex.sourceforge.net/ + . + This is a Japanese extension for NTT jTeX. + +Package: jadetex-ptex +Architecture: all +Pre-Depends: jadetex +Depends: jadetex, ptex-bin +Description: LaTeX macros for SGML to DVI/PS/PDF conversion with Jade + JadeTeX provides a set of LaTeX macros to process the TeX files + generated by Jade or OpenJade. Using Jade and JadeTeX you can print + every SGML document for which you have or make a DSSSL description. + . + Homepage: http://jadetex.sourceforge.net/ + . + This is a Japanese extension for ASCII pTeX. --- jadetex-3.12.orig/debian/jadetex-ptex.postinst +++ jadetex-3.12/debian/jadetex-ptex.postinst @@ -0,0 +1,165 @@ +#!/bin/bash +# for Japanese extension +# jadetex-ptex postinst +# jobs: texhash, remove old cruft we used to make, and run fmtutil + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +FMTDIR=/etc/texmf/fmt.d +TEMPLDIR=/usr/share/texmf/tex/jadetex/config-templates + +umask 022 + +# emit a warning, generic routine +warn ( ) { + echo $* 1>&2 +} + +checkfmt ( ) { + format=$1 + baseformat=`basename $1 .fmt` + if ! kpsewhich $format > /dev/null ; then + warn "WARNING: memory dump $format not found, attempting to reconstruct ..." + echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE + fmtutil --byfmt $baseformat >> $MYTMPFILE + if kpsewhich $format > /dev/null ; then + warn " ok, reconstructed" + else + warn "ERROR: cannot create TeX memory dump $format" + warn " Your TeX environment seems to be broken; the memory dump file $format" + warn " was not found and cannot be created. Probably, TeX is miconfigured." + warn " You should submit the log file $MYTMPFILE as a bug against" + warn " the package tetex-bin." + warn + warn "JadeTeX cannot be installed." + exit 1 + fi + fi +} + +makejadetexfmt ( ) { + local goterror + goterror=false + + if ! fmtutil --byfmt jadeptex >> $MYTMPFILE + then + warn "ERROR: jadeptex fmtutil failed" 1>&2 + goterror=true + fi +# if ! fmtutil --byfmt pdfjadetex >> $MYTMPFILE +# then +# warn "ERROR: pdfjadetex fmtutil failed" 1>&2 +# goterror=true +# fi + if $goterror; then + return 1 + else + return 0 + fi +} + +jadetexfmtcheck ( ) { + # check whether it actually worked, since the texconfig program + # doesn't exit non-zero + + # file exists test + local goterror + goterror=false + if ! kpsewhich jadeptex.fmt > /dev/null ; then + warn "ERROR: JadejTeX memory dump (jadeptex.fmt) cannot be found" + goterror=true + fi +# if ! kpsewhich pdfjadetex.fmt > /dev/null ; then +# warn "ERROR: PDFJadeTeX memory dump (pdfjadetex.fmt) cannot be found" +# goterror=true +# fi + + if $goterror; then + return -1 + else + return 0 + fi +} + +if [ "$1" = "configure" ]; then + # old crufty stuff we used to build in postinst - I wonder whether we + # should actually do this in preinst? + if [ -L /usr/lib/texmf/tex/jadetex/config ]; then + warn "removing old JadeTeX config symlink" + rm /usr/lib/texmf/tex/jadetex/config + fi + if [ -d /usr/lib/texmf/tex/jadetex ]; then + rmdir /usr/lib/texmf/tex/jadetex || \ + warn "unused, obsolete dir /usr/lib/texmf/tex/jadetex, remove it yourself if you care" + fi + + texhash + + # new fmt.d handling; we have to handle this in postinst rather + # than conffiles so that we can disable it when pkg is removed + # + # first we check if the file or any jadetex.cnf file is already there, + # if not, is there is a disabled version of the script available? + # if not, is there a globbed version of the disabled file available? + # if not, copy in the file from the template area + if [ -f ${FMTDIR}/41jadeptex.cnf ] || + ls ${FMTDIR}/*jadeptex.cnf 2>/dev/null; then + : + elif [ -f ${FMTDIR}/41jadeptex.cnf.disable ]; then + mv ${FMTDIR}/41jadeptex.cnf.disable ${FMTDIR}/41jadeptex.cnf + else + OLD=`ls -1 ${FMTDIR}/*jadeptex.cnf* 2>/dev/null | tail -1` + if [ ${OLD} -a -f ${OLD} ]; then + NEW=`echo $OLD | sed -e 's/.cnf.*/.cnf/'` + mv ${OLD} ${NEW} + else + cp ${TEMPLDIR}/fmtutil.cnf.ptex ${FMTDIR}/41jadeptex.cnf + fi + fi + + update-fmtutil + + MYTMPFILE=`mktemp /tmp/jadeptex-postinst.XXXXXX` + : > $MYTMPFILE + + echo "Checking for TeX memory dumps (.fmt) ..." + checkfmt jlatex.fmt +# checkfmt pdftex.fmt +# checkfmt pdflatex.fmt + echo " done." + + echo "Creating JadeTeX memory dumps ..." + if makejadetexfmt && jadetexfmtcheck; then + echo " done." + else + warn " failed." + + echo "Desperate measures: running 'fmtutil --all' to rebuild existing TeX" + echo " memory dumps ..." + fmtutil --all >> $MYTMPFILE + echo " done." + echo "Re-checking for JadeTeX memory dumps ..." + if jadetexfmtcheck; then + echo " done." + else + warn "ERROR: JadeTeX/PDFJadeTeX memory dump not found" + warn " This package could not be installed." + warn " Please report this bug; include tetex* package version" + warn " numbers and the file $MYTMPFILE in the bug report." + exit 1 + fi + fi + + # remove temp file + rm -f $MYTMPFILE +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/copyright +++ jadetex-3.12/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Christian Leutloff + on Fri, 7 Nov 1997 11:24:12 +0100. Marcus +Brinkmann took over maintenance of this package on Thu, 9 Jul 1998 +17:55:30 +0200. Adam Di Carlo took over maintenance +on Fri, 9 Apr 1999 02:35:03 -0400. + +It was downloaded from + +Copyright: + +Copyright (C) 1996, 1997, 1998, 2000, 2001 +Sebastian Rahtz + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL SEBASTIAN RAHTZ BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +-- + +Debian-specific changes are Copyright (c) 1997, 1998 Christian +Leutloff and Marcus Brinkmann; 1999 -- 2001 Adam Di Carlo. These +changes are distributed under the terms of the GNU General Public +License. + +The GNU General Public License is available on Debian systems in the +file /usr/share/common-licenses/GPL. --- jadetex-3.12.orig/debian/jadetex-jtex.postrm +++ jadetex-3.12/debian/jadetex-jtex.postrm @@ -0,0 +1,18 @@ +#!/bin/bash +# for Japanese extension +# postrm -- don't rely on tex being installed, or anything; remove the config dirs + +set -e + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "purge" ]; then +# rm -rf $ETC_CONFIG || true + rm -f ${FMTDIR}/*jadejtex.cnf* +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/fmtutil.cnf +++ jadetex-3.12/debian/fmtutil.cnf @@ -0,0 +1,7 @@ +# jadefmtutil.cnf: configuration file for fmtutil; jade flavor. +# invoke with 'fmtutil --cnffile ' +# +# format engine pattern-file arguments +jadetex tex language.dat &latex jadetex.ini +pdfjadetex pdftex language.dat &pdflatex pdfjadetex.ini + --- jadetex-3.12.orig/debian/rules +++ jadetex-3.12/debian/rules @@ -0,0 +1,128 @@ +#!/usr/bin/make -f +# Debian rules file for jadetex + +package := jadetex + +# for Japanese extension +package-jtex := jadetex-jtex +package-ptex := jadetex-ptex + +# directory abstraction +prefix := debian/tmp +bindir := $(prefix)/usr/bin +docdir := $(prefix)/usr/share/doc/$(package) +mandir := $(prefix)/usr/share/man +texdir := $(prefix)/usr/share/texmf/tex/$(package) +templdir := $(texdir)/config-templates +confdir := $(prefix)/etc/texmf/$(package) + +# for Japanese extension +prefix-jtex := debian/$(package-jtex) +prefix-ptex := debian/$(package-ptex) +bindir-jtex := $(prefix-jtex)/usr/bin +bindir-ptex := $(prefix-ptex)/usr/bin +mandir-jtex := $(prefix-jtex)/usr/share/man +mandir-ptex := $(prefix-ptex)/usr/share/man +texdir-jtex := $(prefix-jtex)/usr/share/texmf/tex/$(package) +texdir-ptex := $(prefix-ptex)/usr/share/texmf/tex/$(package) +templdir-jtex := $(texdir-jtex)/config-templates +templdir-ptex := $(texdir-ptex)/config-templates + +# tool abstraction +install_file := install -o root -g root -m 644 -p +install_program := install -o root -g root -m 755 -p +make_dir := install -d -o root -g root -m 755 +compress := gzip -9f + + +build: + $(checkdir) + $(MAKE) basic + pdflatex '\nonstopmode\input{jadetex.dtx}' > latex.log + pdflatex '\nonstopmode\input{jadetex.dtx}' >> latex.log + touch build + +clean: + $(checkdir) + -$(MAKE) realclean + rm -f jadetex.ps + rm -f build binary debian/conffiles + dh_clean + +binary: binary-indep binary-arch + +.PHONY: test +test: + $(checkdir) + sh -n debian/postinst + sh -n debian/prerm + sh -n debian/postrm + +binary-indep: build test + $(checkdir) + $(checkroot) + rm -rf $(prefix) + + $(make_dir) $(bindir) $(docdir) $(mandir)/man1 \ + $(texdir)/base $(confdir) $(templdir) +# for Japanes extension + $(make_dir) $(bindir-jtex) $(bindir-ptex) \ + $(mandir-jtex)/man1 $(mandir-ptex)/man1 \ + $(templdir-jtex) $(templdir-ptex) + +# conffile handling + ln -sf /etc/texmf/jadetex $(texdir)/config + $(install_file) jadetex.ini pdfjadetex.ini $(confdir)/ + + : > debian/conffiles + echo $(subst $(prefix),,$(confdir))/jadetex.ini >> debian/conffiles + echo $(subst $(prefix),,$(confdir))/pdfjadetex.ini >> debian/conffiles + +# the fmtutil snippet is managed in the postinst +# (we might also wanna put all the jadetex texmf.cnf stuff in there too) + $(install_file) debian/fmtutil.cnf $(templdir)/ + +# for Japanese extension + $(install_file) debian/fmtutil.cnf.jtex $(templdir-jtex)/ + $(install_file) debian/fmtutil.cnf.ptex $(templdir-ptex)/ + + $(install_file) jadetex.1 pdfjadetex.1 $(mandir)/man1/ + +# for Japanese extension + ln -s jadetex.1.gz $(mandir-jtex)/man1/jadejtex.1.gz + ln -s jadetex.1.gz $(mandir-ptex)/man1/jadeptex.1.gz + + $(install_file) jadetex.ltx $(texdir)/base/ + $(install_file) dsssl.def *.sty *.fd $(texdir)/base/ + + ln -s tex $(bindir)/jadetex + +# for Japanese extension + $(install_program) debian/jadejtex.sh $(bindir-jtex)/jadejtex + $(install_program) debian/jadeptex.sh $(bindir-ptex)/jadeptex + + ln -s pdftex $(bindir)/pdfjadetex + + dh_installdocs debian/README.* jadetex.pdf doc/releasenotes.ps doc/releasenotes.xml + dh_installchangelogs ChangeLog + + dh_compress -i + + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build +# nothing to do + +define checkdir + test -f debian/rules + test -f jadetex.dtx +endef + +define checkroot + test `id -u` = 0 +endef + +.PHONY: clean binary-indep binary-arch binary --- jadetex-3.12.orig/debian/postinst +++ jadetex-3.12/debian/postinst @@ -0,0 +1,164 @@ +#!/bin/bash +# jadetex postinst +# jobs: texhash, remove old cruft we used to make, and run fmtutil + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +FMTDIR=/etc/texmf/fmt.d +TEMPLDIR=/usr/share/texmf/tex/jadetex/config-templates + +umask 022 + +# emit a warning, generic routine +warn ( ) { + echo $* 1>&2 +} + +checkfmt ( ) { + format=$1 + baseformat=`basename $1 .fmt` + if ! kpsewhich $format > /dev/null ; then + warn "WARNING: memory dump $format not found, attempting to reconstruct ..." + echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE + fmtutil --byfmt $baseformat >> $MYTMPFILE + if kpsewhich $format > /dev/null ; then + warn " ok, reconstructed" + else + warn "ERROR: cannot create TeX memory dump $format" + warn " Your TeX environment seems to be broken; the memory dump file $format" + warn " was not found and cannot be created. Probably, TeX is miconfigured." + warn " You should submit the log file $MYTMPFILE as a bug against" + warn " the package tetex-bin." + warn + warn "JadeTeX cannot be installed." + exit 1 + fi + fi +} + +makejadetexfmt ( ) { + local goterror + goterror=false + + if ! fmtutil --byfmt jadetex >> $MYTMPFILE + then + warn "ERROR: jadetex fmtutil failed" 1>&2 + goterror=true + fi + if ! fmtutil --byfmt pdfjadetex >> $MYTMPFILE + then + warn "ERROR: pdfjadetex fmtutil failed" 1>&2 + goterror=true + fi + if $goterror; then + return 1 + else + return 0 + fi +} + +jadetexfmtcheck ( ) { + # check whether it actually worked, since the texconfig program + # doesn't exit non-zero + + # file exists test + local goterror + goterror=false + if ! kpsewhich jadetex.fmt > /dev/null ; then + warn "ERROR: JadeTeX memory dump (jadetex.fmt) cannot be found" + goterror=true + fi + if ! kpsewhich pdfjadetex.fmt > /dev/null ; then + warn "ERROR: PDFJadeTeX memory dump (pdfjadetex.fmt) cannot be found" + goterror=true + fi + + if $goterror; then + return -1 + else + return 0 + fi +} + +if [ "$1" = "configure" ]; then + # old crufty stuff we used to build in postinst - I wonder whether we + # should actually do this in preinst? + if [ -L /usr/lib/texmf/tex/jadetex/config ]; then + warn "removing old JadeTeX config symlink" + rm /usr/lib/texmf/tex/jadetex/config + fi + if [ -d /usr/lib/texmf/tex/jadetex ]; then + rmdir /usr/lib/texmf/tex/jadetex || \ + warn "unused, obsolete dir /usr/lib/texmf/tex/jadetex, remove it yourself if you care" + fi + + texhash + + # new fmt.d handling; we have to handle this in postinst rather + # than conffiles so that we can disable it when pkg is removed + # + # first we check if the file or any jadetex.cnf file is already there, + # if not, is there is a disabled version of the script available? + # if not, is there a globbed version of the disabled file available? + # if not, copy in the file from the template area + if [ -f ${FMTDIR}/40jadetex.cnf ] || + ls ${FMTDIR}/*jadetex.cnf 2>/dev/null; then + : + elif [ -f ${FMTDIR}/40jadetex.cnf.disable ]; then + mv ${FMTDIR}/40jadetex.cnf.disable ${FMTDIR}/40jadetex.cnf + else + OLD=`ls -1 ${FMTDIR}/*jadetex.cnf* 2>/dev/null | tail -1` + if [ ${OLD} -a -f ${OLD} ]; then + NEW=`echo $OLD | sed -e 's/.cnf.*/.cnf/'` + mv ${OLD} ${NEW} + else + cp ${TEMPLDIR}/fmtutil.cnf ${FMTDIR}/40jadetex.cnf + fi + fi + + update-fmtutil + + MYTMPFILE=`mktemp /tmp/jadetex-postinst.XXXXXX` + : > $MYTMPFILE + + echo "Checking for TeX memory dumps (.fmt) ..." + checkfmt latex.fmt + checkfmt pdftex.fmt + checkfmt pdflatex.fmt + echo " done." + + echo "Creating JadeTeX memory dumps ..." + if makejadetexfmt && jadetexfmtcheck; then + echo " done." + else + warn " failed." + + echo "Desperate measures: running 'fmtutil --all' to rebuild existing TeX" + echo " memory dumps ..." + fmtutil --all >> $MYTMPFILE + echo " done." + echo "Re-checking for JadeTeX memory dumps ..." + if jadetexfmtcheck; then + echo " done." + else + warn "ERROR: JadeTeX/PDFJadeTeX memory dump not found" + warn " This package could not be installed." + warn " Please report this bug; include tetex* package version" + warn " numbers and the file $MYTMPFILE in the bug report." + exit 1 + fi + fi + + # remove temp file + rm -f $MYTMPFILE +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/postrm +++ jadetex-3.12/debian/postrm @@ -0,0 +1,17 @@ +#!/bin/bash +# postrm -- don't rely on tex being installed, or anything; remove the config dirs + +set -e + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "purge" ]; then + rm -rf $ETC_CONFIG || true + rm -f ${FMTDIR}/*jadetex.cnf* +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/prerm +++ jadetex-3.12/debian/prerm @@ -0,0 +1,41 @@ +#!/bin/bash +# derived from tetex-base.postrm + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "remove" ]; then + # remove the fmt files created at postinst + JADETEXFMT=$(kpsewhich jadetex.fmt) || true + PDFJADETEXFMT=$(kpsewhich pdfjadetex.fmt) || true + rm -f $JADETEXFMT $PDFJADETEXFMT + + # remove the logs created as a sideeffect + WEB2CDIR=$(dirname $JADETEXFMT) || true + rm -f $WEB2CDIR/jadetex.log $WEB2CDIR/pdfjadetex.log + + # disable the fmt.d bit and recreate fmtutil.cnf + if [ -f ${FMTDIR}/40jadetex.cnf ]; then + mv ${FMTDIR}/40jadetex.cnf ${FMTDIR}/40jadetex.cnf.disable + fi + update-fmtutil +fi + +# the upgrade case will be handled in postinst; no need to run it twice +if [ "$1" != "upgrade" ]; then + if command -v texhash >/dev/null 2>&1; then + texhash || true + fi +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/jadetex-ptex.postrm +++ jadetex-3.12/debian/jadetex-ptex.postrm @@ -0,0 +1,18 @@ +#!/bin/bash +# for Japanese extension +# postrm -- don't rely on tex being installed, or anything; remove the config dirs + +set -e + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "purge" ]; then +# rm -rf $ETC_CONFIG || true + rm -f ${FMTDIR}/*jadeptex.cnf* +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/jadetex-jtex.prerm +++ jadetex-3.12/debian/jadetex-jtex.prerm @@ -0,0 +1,41 @@ +#!/bin/bash +# derived from tetex-base.postrm + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "remove" ]; then + # remove the fmt files created at postinst + JADETEXFMT=$(kpsewhich jadejtex.fmt) || true +# PDFJADETEXFMT=$(kpsewhich pdfjadetex.fmt) || true + rm -f $JADETEXFMT #$PDFJADETEXFMT + + # remove the logs created as a sideeffect + WEB2CDIR=$(dirname $JADETEXFMT) || true + rm -f $WEB2CDIR/jadejtex.log #$WEB2CDIR/pdfjadetex.log + + # disable the fmt.d bit and recreate fmtutil.cnf + if [ -f ${FMTDIR}/41jadejtex.cnf ]; then + mv ${FMTDIR}/41jadejtex.cnf ${FMTDIR}/41jadejtex.cnf.disable + fi + update-fmtutil +fi + +# the upgrade case will be handled in postinst; no need to run it twice +if [ "$1" != "upgrade" ]; then + if command -v texhash >/dev/null 2>&1; then + texhash || true + fi +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/jadetex-ptex.prerm +++ jadetex-3.12/debian/jadetex-ptex.prerm @@ -0,0 +1,41 @@ +#!/bin/bash +# derived from tetex-base.postrm + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "remove" ]; then + # remove the fmt files created at postinst + JADETEXFMT=$(kpsewhich jadeptex.fmt) || true +# PDFJADETEXFMT=$(kpsewhich pdfjadetex.fmt) || true + rm -f $JADETEXFMT #$PDFJADETEXFMT + + # remove the logs created as a sideeffect + WEB2CDIR=$(dirname $JADETEXFMT) || true + rm -f $WEB2CDIR/jadeptex.log #$WEB2CDIR/pdfjadetex.log + + # disable the fmt.d bit and recreate fmtutil.cnf + if [ -f ${FMTDIR}/41jadeptex.cnf ]; then + mv ${FMTDIR}/41jadeptex.cnf ${FMTDIR}/41jadeptex.cnf.disable + fi + update-fmtutil +fi + +# the upgrade case will be handled in postinst; no need to run it twice +if [ "$1" != "upgrade" ]; then + if command -v texhash >/dev/null 2>&1; then + texhash || true + fi +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.12.orig/debian/jadejtex.sh +++ jadetex-3.12/debian/jadejtex.sh @@ -0,0 +1,2 @@ +#!/bin/sh +jtex -fmt=jadejtex -progname=jadetex $* --- jadetex-3.12.orig/debian/jadeptex.sh +++ jadetex-3.12/debian/jadeptex.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ptex -fmt=jadeptex -progname=jadetex $*