Mark Wooding [Mon, 7 Sep 2020 01:14:21 +0000 (02:14 +0100)]
mdwtools.ins: Spring clean.
Bring the comment style up to current standards. Sort the list of files
by input as much as is possible; this requires a certain amount of
dexterity with the `docstrip' ordering machinery.
Mark Wooding [Mon, 7 Sep 2020 12:33:04 +0000 (13:33 +0100)]
.skelrc: Quotify the project name.
Mark Wooding [Mon, 7 Sep 2020 00:58:41 +0000 (01:58 +0100)]
Replace general GPL rubrics with project-specific ones.
Mark Wooding [Sun, 6 Sep 2020 14:36:35 +0000 (15:36 +0100)]
Fix dates and version numbers in the package files.
And add a program to do this semiautomatically.
Mark Wooding [Sun, 6 Sep 2020 14:33:30 +0000 (15:33 +0100)]
Fix all the copyright dates.
Mark Wooding [Sun, 6 Sep 2020 14:28:21 +0000 (15:28 +0100)]
Remove the redundant file headers.
Everything is duplicated in the GPL header anyway, and I can't get rid
of that.
Mark Wooding [Sun, 6 Sep 2020 12:24:23 +0000 (13:24 +0100)]
*.dtx: Strip author initials from package descriptions.
Sorry, Peter.
Mark Wooding [Sun, 6 Sep 2020 12:23:07 +0000 (13:23 +0100)]
*.dtx: Normalize package descriptions to begin with uppercase letters.
Mark Wooding [Sun, 6 Sep 2020 12:18:54 +0000 (13:18 +0100)]
*: Eliminate the old CVS `$Id: ...' markers.
Mark Wooding [Sat, 5 Sep 2020 22:12:16 +0000 (23:12 +0100)]
debian/rules: Build things in parallel now.
Mark Wooding [Sat, 5 Sep 2020 17:06:23 +0000 (18:06 +0100)]
debian/rules: Rebuild everything from scratch.
Mark Wooding [Sat, 5 Sep 2020 23:37:15 +0000 (00:37 +0100)]
syntax.dtx: Fix commentary typo.
The problem is that the usual `\-' control sequence for inserting a
discretionary hyphen isn't available in the `tabbing' environment.
Mark Wooding [Mon, 7 Sep 2020 15:39:56 +0000 (16:39 +0100)]
slowbox.dtx: Add a demonstration.
Also a test.
Mark Wooding [Mon, 7 Sep 2020 15:33:29 +0000 (16:33 +0100)]
slowbox.dtx: Typeset and measure unknown boxes.
If you try to set a slow box with an unknown name, it should be typeset
and measured: otherwise bootstrapping is awful. Do this.
Mark Wooding [Mon, 7 Sep 2020 15:39:12 +0000 (16:39 +0100)]
slowbox.dtx: Reword `\newslowboxenv' description for better line breaks.
It was pretty terrible before.
Mark Wooding [Mon, 7 Sep 2020 15:21:09 +0000 (16:21 +0100)]
slowbox.dtx: Remove unnecessary pre-setting of slow-box measurement.
I've no idea what this was for. It doesn't do anything now.
Mark Wooding [Mon, 7 Sep 2020 15:38:22 +0000 (16:38 +0100)]
slowbox.dtx: No, `\newslowboxenv' is a command, not an environment.
It /makes/ an environment. That's entirely different.
Mark Wooding [Mon, 7 Sep 2020 15:37:21 +0000 (16:37 +0100)]
slowbox.dtx: Mention that `\newslowboxenv' handles optional args correctly.
Mark Wooding [Mon, 7 Sep 2020 15:38:54 +0000 (16:38 +0100)]
slowbox.dtx: Actually document `\slowboxend'.
Mark Wooding [Mon, 7 Sep 2020 15:36:35 +0000 (16:36 +0100)]
slowbox.dtx: Delete spurious `{'.
No idea.
Mark Wooding [Mon, 7 Sep 2020 15:34:59 +0000 (16:34 +0100)]
slowbox.dtx: Fix `verbatim' spacing.
The space at the start of the `\end{verbatim}' line causes a blank line
to be typeset in the output document.
Mark Wooding [Mon, 7 Sep 2020 01:52:54 +0000 (02:52 +0100)]
poetry.dtx: Fix file checksum.
Mark Wooding [Mon, 7 Sep 2020 16:27:21 +0000 (17:27 +0100)]
poetry.dtx: Fix the custom label setter.
Previously, it would set the first item's label as `\tanza', which,
just, no.
Mark Wooding [Mon, 7 Sep 2020 16:21:18 +0000 (17:21 +0100)]
poetry.dtx: Insert missing `\' to set description of `\title' correctly.
Mark Wooding [Sun, 6 Sep 2020 14:34:45 +0000 (15:34 +0100)]
poetry.dtx: Replace (24-year-old!) preview notice with standard GPL rubric.
Mark Wooding [Mon, 7 Sep 2020 01:00:14 +0000 (02:00 +0100)]
poetry.dtx (\maybe@unskip): Match the version in `mdwtab'.
I don't actually know why these were different. Both versions appear to
have been there forever, though it's clear that these packages had lives
before they were checked into CVS in 2002. Obviously, since these have
the same name, they should have the same definition. The `mdwtab'
version is more robust (checking `\ifhmode' before applying `\hskip'),
and slightly more refined (using `\m@ne' rather than `-\@ne'), so I'm
going with that one.
Mark Wooding [Sat, 5 Sep 2020 13:59:28 +0000 (14:59 +0100)]
mdwtab.dtx: Use `\package', not `\env', for `mathenv'.
Since, err, it's a package, not an environment.
Mark Wooding [Thu, 3 Sep 2020 14:29:16 +0000 (15:29 +0100)]
mdwtab.dtx: Add a `'' column type for only fiddling with the rule list.
Mark Wooding [Thu, 3 Sep 2020 14:28:14 +0000 (15:28 +0100)]
mdwtab.dtx: Fix nested `*' column-type to work correctly.
This is a little unpleasant.
Mark Wooding [Thu, 3 Sep 2020 14:27:49 +0000 (15:27 +0100)]
mdwtab.dtx (\ifmod): Fix missing maths markup around `y'.
Mark Wooding [Thu, 3 Sep 2020 14:26:41 +0000 (15:26 +0100)]
mdwtab.dtx: Fix the `?>' and `?<' column macro descriptions.
They were the wrong way around. *sigh*.
Mark Wooding [Thu, 3 Sep 2020 14:29:47 +0000 (15:29 +0100)]
mdwmath.dtx (\mpunct): New macro for punctuation in displayed equations.
Mark Wooding [Sat, 5 Sep 2020 13:57:08 +0000 (14:57 +0100)]
footnote.dtx (\fn@endnote): Use `\def', not `\let'.
If the `color' package is loaded /after/ us then it redefines
`\color@begingroup' and `\color@endgroup' to actually do things, but it
won't redefine `\fn@endnote' for obvious reasons. As a result,
`\fn@startnote' will now open a colour group, but nothing will close it
and one ends up on a debugging odyssey.
Mark Wooding [Sat, 5 Sep 2020 13:55:23 +0000 (14:55 +0100)]
footnote.dtx (\fn@endfntext): Include missing `\fn@endnote'.
Oops. This causes trouble when the `color' package is loaded because
there's an unmatched `\color@begingroup' from `\fn@startnote'.
I'm surprised I've never noticed this before.
Mark Wooding [Sun, 6 Sep 2020 14:30:50 +0000 (15:30 +0100)]
cmtt.dtx: Fix package description!
Mark Wooding [Sun, 6 Sep 2020 12:25:50 +0000 (13:25 +0100)]
mdwtools.tex: Use `strayman' and `mdwfonts' if available.
Mark Wooding [Sat, 5 Sep 2020 13:51:39 +0000 (14:51 +0100)]
at.dtx: Don't use `@'-commands in section headings.
Alas, they don't -- and, I think, can't -- work in PDF strings, since
scanning the command name works using `\futurelet', which is a TeX
command rather than an expansion.
Mark Wooding [Mon, 7 Sep 2020 16:24:40 +0000 (17:24 +0100)]
mdwtools.tex, *.dtx: Provide a hack for setting `description' labels.
LaTeX has a bug (which I'm sure can't be fixed without unacceptable
compatibility lossage) which starts setting `description' list labels
`\labelsep' too far to the left, so the `\makelabel' implementation
compensates by adding a `\labelsep' of horizontal space before the
actual label text. The array rule-spec list overrides `\makelabel' to
reduce typing, and therefore must duplicate this countermeasure.
My `strayman' document class, and the `mdwlist' package in this
collection, both correct this bug, so if either of those is loaded then
the list ends up with the labels too far to the right. (This is, of
course, the very compatibility problem that prevents the bug from being
fixed upstream.)
Provide a command which detects (hackily) either of these two situations
and sets a label with the correct spacing, and use it everywhere.
Mark Wooding [Sat, 5 Sep 2020 14:56:56 +0000 (15:56 +0100)]
mdwtools.tex: Add the two-column header to a contents table before including.
The `strayman' class is unusual in that, in `book' mode, it mentions the
`Contents' table in the table of contents. But, if we add the table of
contents early, then this entry ends up being in a single column above
the main table, which is just wrong.
Mark Wooding [Sat, 5 Sep 2020 14:51:20 +0000 (15:51 +0100)]
mdwtools.tex: Set a running header without footnote markers.
The `strayman' document class, in particular, sets a running header with
the document title by default. But if the title contains footnote
markers then these end up in every (other) page header, with steadily
incrementing numbers, which is rather bad.
The hack here only supports `strayman'. Most classes don't have
`strayman''s optional running-header argument for `\title', so I can't
use that.
Mark Wooding [Sat, 5 Sep 2020 14:45:35 +0000 (15:45 +0100)]
mdwtools.tex: Partition stuff as front/main/back matter if available.
If we detect a document class which supports the distinction, set the
table of contents as frontmatter and the index as backmatter.
Mark Wooding [Sat, 5 Sep 2020 14:42:08 +0000 (15:42 +0100)]
mdwtools.tex: Set footnote markers to the right of punctuation in the title.
I decided a long time ago that setting footnote markers to the left of
punctuation looks rather bad. Apparently, this code is even older than
that, so it needs fixing. Unfortunately, we don't know the punctuation
in advance, so we need to delay setting the footnotes by yet another
loop iteration. Ugh.
Mark Wooding [Sat, 5 Sep 2020 14:33:46 +0000 (15:33 +0100)]
mdwtools.tex: Fix spacing of footnote markers in the document title.
The default document classes, and, separately, the `doc' package,
arrange for `\maketitle' to set footnote markers without taking up
horizontal space. Apparently, if you have author names with
affiliations in footnotes, then the footnote marker shifts the names
visually off-centre.
We don't have this problem here, so turn that off, and remove the
compensatory `\space' following the marker.
Mark Wooding [Sat, 5 Sep 2020 14:06:50 +0000 (15:06 +0100)]
mdwtools.tex (\env, \package): Define using `\def', not `\let'.
This allows the commands to be used in PDFstrings, and hence in section
headings. The `hyperref' machinery builds the PDFstring by making many
control sequences, such as `\textsf', be nops, but `\package' or `\env'
will still cause trouble if they're aliases of the old font-changing
commands.
Mark Wooding [Sat, 5 Sep 2020 17:06:08 +0000 (18:06 +0100)]
Makefile.m4: Clean up the `.pdf' and `.ps' files.
Mark Wooding [Sat, 5 Sep 2020 17:05:56 +0000 (18:05 +0100)]
Makefile.m4: Distribute the `.pdf' files too.
Mark Wooding [Sat, 5 Sep 2020 16:57:44 +0000 (17:57 +0100)]
Makefile.m4: Distribute `centre.sty'.
Mark Wooding [Sat, 5 Sep 2020 13:47:37 +0000 (14:47 +0100)]
Makefile.m4: Make PDF documents using PDFTeX.
It produces significantly better output for syntax diagrams, for a
start.
Mark Wooding [Sat, 5 Sep 2020 13:46:13 +0000 (14:46 +0100)]
Makefile.m4 (run_latex): Make the formatting command be a parameter.
Mark Wooding [Sat, 5 Sep 2020 13:41:42 +0000 (14:41 +0100)]
Makefile.m4: Format each document in a subdirectory.
The recent change
f76fbef37b2af3292764729f496f578037cdc314 to
`sverb.dtx' prevents parallel formatting of /different/ documents from
interfering with each other, but I want to build PDF documents using
PDFTeX rather than going via `dvips' and `ps2pdf', and the two parallel
builds of the /same/ documents will still have the same `\jobname' and
therefore will fight over all kinds of temporary files -- not just the
demo files, but `.aux', `.toc', and everything.
Mark Wooding [Sat, 5 Sep 2020 13:32:33 +0000 (14:32 +0100)]
Makefile.m4: Squish the (rather dull) build rules.
Mark Wooding [Mon, 8 Jun 2020 15:59:38 +0000 (16:59 +0100)]
.mdw-build.conf: Don't try `vpath' builds with this package.
Mark Wooding [Mon, 8 Jun 2020 15:41:58 +0000 (16:41 +0100)]
Release 1.8.2.
Mark Wooding [Mon, 8 Jun 2020 15:41:45 +0000 (16:41 +0100)]
debian/changelog: Delete trailing blank line.
Mark Wooding [Sun, 7 Jun 2020 23:06:47 +0000 (00:06 +0100)]
sverb.dtx: Include the `\jobname' in demo filenames.
Mark Wooding [Sun, 7 Jun 2020 22:54:04 +0000 (23:54 +0100)]
Makefile.m4: Fix dependencies for parallel building.
Mark Wooding [Sun, 7 Jun 2020 22:53:06 +0000 (23:53 +0100)]
syntax.dtx: Disable ligatures in `\readupto'.
Otherwise `<<' turns into `«', which is rather unhelpful.
`\@noligs' didn't exist when this was written, but it does now.
Mark Wooding [Sat, 24 Aug 2019 14:25:03 +0000 (15:25 +0100)]
Release 1.8.1.
Debianization!
Mark Wooding [Sat, 24 Aug 2019 14:48:10 +0000 (15:48 +0100)]
Makefile.m4: Collect version using `auto-version'.
Mark Wooding [Sat, 24 Aug 2019 14:46:11 +0000 (15:46 +0100)]
Makefile.m4: Build PDF versions of the documents.
Mark Wooding [Fri, 2 Aug 2019 11:30:43 +0000 (12:30 +0100)]
Release 1.8.0.
Mark Wooding [Fri, 2 Aug 2019 11:27:47 +0000 (12:27 +0100)]
mdwref.dtx: Add a useful output-formatting hook.
Rather than have `\xref@@' produce the output directly, because it's
very hairy and hard to replace, have it call a new macro,
`\formatxfref', to actually put the pieces together. This can be
overridden comfortably, even by novices.
Have the default `\formatxref' notice that `hyperref' is available and
do use its fancier features to include the category name in the link.
Mark Wooding [Sun, 24 Jan 2016 12:43:16 +0000 (12:43 +0000)]
mdwtab.dtx: Fix group nesting in `smarray'.
This bug was introduced with the colour support way back in
7abe48b...
Fixes #21, reported by Christian Cornelssen.
Mark Wooding [Sun, 24 Jan 2016 12:23:03 +0000 (12:23 +0000)]
Eliminate tabs from TeX input files.
TeX doesn't typeset them very well (despite efforts to address this in
`sverb') and Emacs does well enough at dealing without that I've made it
display angry fruit salad when it sees tabs in TeX source. So the tabs
in the source files have to go.
Mark Wooding [Tue, 17 Nov 2015 22:34:11 +0000 (22:34 +0000)]
syntax.dtx: Allow decorative material following nonterminal name in `grammar'.
Mark Wooding [Sun, 4 Oct 2015 22:36:30 +0000 (23:36 +0100)]
mdwtab.dtx: Cope when \if@leqno is frobbed dynamically.
Thanks to Christian Cornelssen for this change.
I considered adding user commands for twiddling \if@leqno (and
\if@fleqn), but I decided against it because the `leqno' and `fleqn'
options do a notionally document-class-specific thing which (in common
cases) involves a complicated rewrite of the `equation' environment and
the \[...\] commands, which I really don't want to get into right now.
Mark Wooding [Sun, 4 Oct 2015 22:36:12 +0000 (23:36 +0100)]
configure.in: Automake is now pickier about ordering.
Mark Wooding [Thu, 24 Sep 2015 23:18:41 +0000 (00:18 +0100)]
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/mdwtools
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/mdwtools:
configure.in: Explicit AC_CONFIG_AUX_DIR.
Mark Wooding [Wed, 19 Aug 2015 17:32:30 +0000 (18:32 +0100)]
syntax.dtx: Allow `grammar' labels to have suffixed decoration.
Mark Wooding [Mon, 8 Jul 2013 16:04:58 +0000 (17:04 +0100)]
configure.in: Explicit AC_CONFIG_AUX_DIR.
Otherwise Automake doesn't pack its helper scripts.
Mark Wooding [Sun, 30 Jun 2013 09:56:31 +0000 (10:56 +0100)]
And fix the Makefile to install things in the proper place.
Duh.
Mark Wooding [Sun, 30 Jun 2013 09:49:35 +0000 (10:49 +0100)]
configure.in: Go back to my old TeX-finding macro.
Mark Wooding [Sun, 30 Jun 2013 09:44:21 +0000 (10:44 +0100)]
Whitespace cleanup.
Mark Wooding [Sun, 30 Jun 2013 09:33:24 +0000 (10:33 +0100)]
configure.ac: Switch to a different macro for finding TeX.
Mark Wooding [Tue, 16 Dec 2008 15:09:01 +0000 (15:09 +0000)]
build: Use ACLTX_TEXMF_PATH for installation.
Also remove old CVS cruft and use autoconf-mode.
Mark Wooding [Sat, 26 Jan 2008 18:50:05 +0000 (18:50 +0000)]
mdwthm: Don't necessarily indent the first line after a theorem.
Not quite sure what the \@endpefalse was doing there anyway.
Mark Wooding [Fri, 26 Oct 2007 15:16:11 +0000 (16:16 +0100)]
sverb: Don't leak lccode changes.
This broke hyperref in a very confusing and unhelpful way.
Mark Wooding [Tue, 15 May 2007 10:28:33 +0000 (11:28 +0100)]
Merge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/public-git/mdwtools
* 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/public-git/mdwtools:
mdwref: New package for typesetting cross-references automagically.
mdwtab: Fix colours and \\ behaviour with longtable.
mdwtab: Fix stupid typo.
Conflicts:
mdwtab.dtx: fix checksum
Mark Wooding [Tue, 15 May 2007 10:26:51 +0000 (11:26 +0100)]
mdwtab: Add optional alignment argument to subsplit environment.
Mark Wooding [Mon, 9 Apr 2007 17:57:59 +0000 (18:57 +0100)]
mdwref: New package for typesetting cross-references automagically.
Mark Wooding [Mon, 9 Apr 2007 12:46:57 +0000 (13:46 +0100)]
mdwtab: Fix colours and \\ behaviour with longtable.
The \@mkpream hack failed to install the hooks used by the colour
extension, so coloured table cells didn't work properly in longtables.
Also, it failed to insert \tab@setcr in \tab@midtext, so \\ didn't work
properly in >{\raggedright}p{...} cells.
Mark Wooding [Mon, 9 Apr 2007 12:45:06 +0000 (13:45 +0100)]
mdwtab: Fix stupid typo.
For some reason, I'd never noticed this one before.
Mark Wooding [Wed, 1 Nov 2006 15:12:17 +0000 (15:12 +0000)]
Merge branch 'master' of /home/mdw/public-git/mdwtools
* 'master' of /home/mdw/public-git/mdwtools:
infra: Expunge revision history clutter.
Mark Wooding [Sat, 21 Oct 2006 09:32:40 +0000 (10:32 +0100)]
crypto: A few new commands for programs.
Mark Wooding [Fri, 20 Oct 2006 21:48:48 +0000 (22:48 +0100)]
crypto: Allow changing the symbol for randomness, e.g., to `$'.
Mark Wooding [Thu, 6 Apr 2006 15:17:58 +0000 (16:17 +0100)]
infra: Expunge revision history clutter.
Mark Wooding [Thu, 6 Apr 2006 14:35:01 +0000 (15:35 +0100)]
Ignore boring files.
Mark Wooding [Thu, 6 Apr 2006 13:23:29 +0000 (14:23 +0100)]
infra: Clean up project setup
Mark Wooding [Mon, 6 Feb 2006 18:21:38 +0000 (18:21 +0000)]
Extract Subversion ignore data.
mdw [Mon, 1 Dec 2003 00:47:56 +0000 (00:47 +0000)]
Fix checksum.
mdw [Mon, 10 Nov 2003 14:43:48 +0000 (14:43 +0000)]
Ignore spaces after spliteqn.
mdw [Sat, 6 Sep 2003 13:08:16 +0000 (13:08 +0000)]
Missing \leavevmode in \frameonly makes life very confusing if you're
too clever.
mdw [Sat, 6 Sep 2003 11:25:54 +0000 (11:25 +0000)]
Allow configuration of theorem numbering.
mdw [Fri, 5 Sep 2003 16:16:31 +0000 (16:16 +0000)]
New stuff\!
mdw [Fri, 5 Sep 2003 16:16:20 +0000 (16:16 +0000)]
Various nips and tucks. Redefine theorem styles from scratch now.
mdw [Fri, 5 Sep 2003 16:15:33 +0000 (16:15 +0000)]
Fix title typesetting: use Oxford comma.
mdw [Fri, 5 Sep 2003 16:15:03 +0000 (16:15 +0000)]
Colour support! Better rule attribute handling. Lots of new hooks.
mdw [Fri, 5 Sep 2003 16:14:36 +0000 (16:14 +0000)]
Fraction typesetting; more symbols; better documentation of Biggles.
mdw [Fri, 5 Sep 2003 16:13:44 +0000 (16:13 +0000)]
Define `note' conditionally, to avoid clashes with `mdwthm' among others.
mdw [Fri, 5 Sep 2003 16:13:14 +0000 (16:13 +0000)]
Various minor fettlings. Fix paragraph formatting after programs. More
Things.