Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Andy Next Tune on August 16, 2013, 07:43:10 PM

Title: Print formatting in an ABC file
Post by: Andy Next Tune on August 16, 2013, 07:43:10 PM
I'm attempting to add a couple of pages of free text (set lists) to a short band tune book, and struggling to find any information on formatting the text.

I'm using ABC Explorer which supports %% print commands, and I've created a bare text page in the file header, ideas borrowed from someone else's tune book found online.

But now I'd like to format the text more e.g. Bold, italic. Perhaps indent some text?

Any ideas how to do it?

Alternatively is there a better way of getting printable text within an ABC archive?

Cheers, Andy
Title: Re: Print formatting in an ABC file
Post by: Stiamh on August 16, 2013, 07:48:11 PM
This is what you need: http://abcplus.sourceforge.net/#ABCGuide
Title: Re: Print formatting in an ABC file
Post by: Andy Next Tune on August 16, 2013, 09:48:12 PM
Thanks, Steve. I had found that site a little earlier this evening but was then completely confused about which of the myriad links might hide the golden nuggets I needed.
Title: Re: Print formatting in an ABC file
Post by: Anahata on August 16, 2013, 09:52:54 PM
That documentation by Guido Gonzato is excellent and applies specifically to "ABC plus" implemented by abcm2ps. That suits me fine as I use abcm2ps for everything, but if you're not using abcm2ps you might need to be a little cautious about whether all those text formatting options are supported. I haven't checked on the differences between ABC+ and ABC 2.0.

If I was making a book with a lot of formatted text around the tunes, I'd use a DTP package or Word processor, and turn all the ABC tunes into graphic images.

Actually for my band book I printed the set index separately from a word processor document, and the tunes as a big ABC file. Does it have to be all in one document?

Thanks, Steve. I had found that site a little earlier this evening but was then completely confused about which of the myriad links might hide the golden nuggets I needed.

The first zip file listed on the linked page, http://abcplus.sourceforge.net/abcplus_en-2011-03-31.zip which contains a PDF. I printed and comb-bound mine (probably a much earlier version: it was a long time ago) and it's my ABC bible.

Title: Re: Print formatting in an ABC file
Post by: Andy Next Tune on August 16, 2013, 10:09:33 PM
Thanks Anahata.

I was trying to keep everything together rather than producing indexes etc separately and merging the paper PDFs later. However if the document starts to grow and 'have a life' then that is probably the smart route forward.

And thanks for the pointer to the best download in that compendium for a general ABc reference.

Cheers, Andy
Title: Re: Print formatting in an ABC file
Post by: Stiamh on August 16, 2013, 11:45:04 PM
FWIW I maintain a tunebook with 120-odd pages for our ceili band not using an ABC app on my computer but the editor found here: http://music.gordfisch.net/oregans/miscellaneous/multieditor.php  (it's the old version of that site's editor and works better than the new one IMO).

I use many formatting commands learned from the guide linked to above, including footers, fonts, text placement, forced page breaks, section headings and so on and nearly everything  - with the exception of some margin settings IIRC - works perfectly.

Whenever I make changes, even small changes to one or two tunes, I run the entire abc file c/w formatting commands through the editor and it produces a perfect pdf file in seconds.

Edit: Like Anahata though I produce the table of contents and "front matter" separately, in a Word document which I save as a pdf and then merge with the file produced by the editor. No hassle at all really.
Title: Re: Print formatting in an ABC file
Post by: Andy Next Tune on August 17, 2013, 02:21:21 PM
Thanks Steve for your useful input.
THe ABC Plus PDF is very comprehensive and  I'll now take a look at that editor as well.

Cheers, Andy
SimplePortal 2.3.5 © 2008-2012, SimplePortal