Commit Graph

38 Commits

Author SHA1 Message Date
Jim Hague 0fd030fde6 Clear old LaTeX intermediate files before building a booke.
Old ones can cause the build to error.
2024-04-12 17:35:05 +01:00
Jim Hague a087c28ecf Add optional image caption taken from <section>/image.md. 2019-03-26 11:00:35 +00:00
Jim Hague 8cdbb8fec6 Add section picture to the section title page on printed Bookes only.
I guess these could be added to be website, but right now I don't think
they'd add much. On paper, they fill some blank space.
2018-06-11 09:47:58 +01:00
Jim Hague a5b76de484 Introduce mechanism for having different tune images for compact printed output.
Sort alternate .abc in subdir 'Compact' under the booke dir. Use that as
the graphic for A5 output, assuming it will be vertically more compact.
Use Bear Dance as an example, as it has commentary that currently
overflows an A5 landscape page.

For the moment, transposed Bookes don't transpose and so don't use Compact.
2017-10-13 15:44:15 +01:00
Jim Hague 676554040a Make sure section names strip any '-<instrument>' filename decoration. 2017-09-14 14:11:00 +01:00
Jim Hague 9cd0fabe90 Strip any '-<instrument>' from section name for booke text. 2017-09-14 13:14:28 +01:00
Jim Hague 407ec5913d Rework makeAll.sh to make multiple Bookes and a Bumper Booke too.
The Bumper is made if more than 1 Booke is specified.
2016-11-04 22:41:57 +00:00
Jim Hague c61a2d6136 Revise build to allow multi-section books. 2016-11-04 17:59:10 +00:00
Jim Hague 24f0fee542 Put the title and subtitle on the section intro page.
Contents, for some reason, can't be taken from file.
2016-11-04 00:48:23 +00:00
Jim Hague b17a790b77 Create a section title page in the print version.
Move the section comment to that title page.
2016-11-04 00:03:54 +00:00
Jim Hague 07e6191f9c Switch from txt2tags to using pandoc with Markdown (Pandoc flavour) input. 2016-10-29 21:51:59 +01:00
Jim Hague ed0ef9ce66 Use txt2tags to format intro text.
That way we can include basic markup in the into text and use it in
both LaTeX and HTML.

Take advantage of this to expand the wording of the intro text in all
books.
2013-08-21 10:28:10 +01:00
Jim Hague c0a0fd45d9 Make emails \url{} to that they will wrap at the end of a line.
Also remove unused reference to graphics dir.
2013-08-05 13:30:08 +01:00
Jim Hague e88593f22f Replace buzzard EPS with cropped PDF. 2013-07-07 20:29:10 +01:00
Jim Hague ade3337704 Revise scripts for building printed Bookes.
A lot of stuff was being duplicated between different page size. Consolidate where
possible, and in particular put as much into a single source file (dottes.tex) as
possible. Making a single Booke is now potentially quicker, as the tune pages
don't necessarily have to be regenerate every time.
2013-06-26 23:37:45 +01:00
Jim Hague 50c67f52c8 Add a A4 portrait book with multiple tunes per page.
Also add a script to make all variants of a single book, and
look for <tune name>.tex files, and if one exists add it after the tune.
2013-01-26 13:47:01 +00:00
Jim Hague 4c8f2a3ade Make output larger where possible.
This is done by

a) reducing the page margins
b) compressing the heading and removing all but Notes: fields.

The latter produced vertically smaller tune PDFs that will scale wider.

In the process, modify abctitle.py to extract the first of any header field, and
move formatting for a single tune into a .fmt file.
2012-04-21 19:47:30 +01:00
Jim Hague c0453ec772 Try to cope with Squeeze and Sid xetex problems.
On Sid, "xdvipdfmx -p a5 -l" outputs its first page in A4 portrait.
So guess which we're using and use the appropriate invocation.
2012-04-13 16:20:43 +01:00
Jim Hague 7c72d2e1ee Fix page size issue on xetex on Squeeze.
The version of xetex on Squeeze does not pass the paper size
through to the PDF rendered properly. Following a Googled suggestion,
split the rendering into two part, and pass the page size explicitly
to the PDF generation.

This isn't necessary for the booklet because the output is A4 portrait,
the default paper size.
2012-04-13 15:57:02 +01:00
Jim Hague 743543501c Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
Also switch to Times New Roman for the main text. The music is set
with Postscript Times, so this is the easy approach to better typographic
consistency.
2012-04-04 11:52:29 +01:00
Jim Hague 552709a281 Ensure tune graphic is confined to a single page.
Set a maximum height for the graphic of 0.9 text area as well as the current
target width of the text width. And also keep the aspect ratio. So if the
height is small enough, you get full width. Otherwise the graphic is
shrunk enough to keep it all on one page.

Perhaps one can then go back and edit the tune to fit it into fewer
lines.
2012-03-16 10:40:09 +00:00
Jim Hague 694eac1077 Add internal hyperlinks to the book.
Don't put the links in a different colour, so it still prints well.
2012-03-16 10:37:48 +00:00
Jim Hague 19e9f59ff2 Add basic diacritic handling for LaTeX and web.
It would be nice if everyone used UTF-8, but it doesn't look like that
works at present.
2012-03-15 14:32:53 +00:00
Jim Hague 25aea9f0c9 First line width again - make it a fraction of the text width. 2012-03-14 15:53:10 +00:00
Jim Hague 42dbba03e2 Increase width of first music line to just under text width. 2012-03-14 15:46:28 +00:00
Jim Hague a7e4500773 Fix renaming of the A4 booklet. 2012-03-05 14:49:17 +00:00
Jim Hague 2351348471 Add list of tune first lines.
Add a list of tune first lines to the Booke. First, a small Python script to
filter a .abc file and spit out just enough to give a graphic of the first line
without the title. Then generate these graphics and generate a new section in the Booke
with a longtable of tune name and the first line graphic.
2012-03-04 20:16:48 +00:00
Jim Hague fc446fb0ae Put making tune graphics required by web and book into separate dir and make separately.
Web and book both require the tune PDF graphics. Break these out into a separate
direction and make with a separate process.
2012-03-04 12:00:30 +00:00
Jim Hague f7d2212e41 Revise page footers, and add build number. 2012-03-03 16:06:23 +00:00
Jim Hague 6dc31caa77 Change subtitle and intro files to .txt extension. 2012-03-03 15:24:59 +00:00
Jim Hague 87713505c8 Quick attempt to parameterise different book builds.
Move subtitle and intro text into book directory.
Do all building in build directory.
Name output by the book name.
2012-03-03 14:08:41 +00:00
Jim Hague c81cce41dd Fix up troubles with \. echo -E disables expansion. 2012-03-03 12:00:35 +00:00
Jim Hague fbbce04c6f Remove use of abc pacakge and do the graphics outselves.
Make book building time a lot quicker, because converting from abc to
eps/pdf is done only once.
2012-03-02 12:30:43 +00:00
Jim Hague 37b89efc47 Revert to putting Change: notices into the notes.
W: is for words/lyrics. None at present in Session tunes, but they do
exist in Morris tunes, and who knows what might happen in sessions in
future. I want to keep the option of adding words.

So move Change: notices back to N:, and have all notes printed.
2012-03-02 10:46:43 +00:00
Jim Hague 9f3510c4b2 Produce an A4 PDF document with the A5 pages in booklet form.
Print the A4 with long edge duplex to get a ready booklet.
2012-02-29 14:05:18 +00:00
Jim Hague 7ffc756929 Update book making command.
Switched to A5 portrait. In landscape it stretches the image to fit the
width, and that causes a lot of longer tunes to become too high to fit
properly on the page.

Build the book in a separate build directory. The build generates lots
of .abc files and so forth, which it is convenient to have elsewhere
so you can ignore them. I did experimend with \abcinclude, but that has
a lot of expectations about the files being in the current directory.

If a tune has multiple titles, pick the first.

Adjust abcm2ps options to preserve the line breaks in the ABC.
2012-02-27 13:04:37 +00:00
Jim Hague dd61d2757f First go at LaTeX booklet. 2012-02-27 08:50:45 +00:00
Jim Hague 5811641ba0 Beginnings. 2012-02-25 14:32:23 +00:00