Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1]   Go Down

Author Topic: linebreaks and page breaks in abc  (Read 3701 times)

0 Members and 1 Guest are viewing this topic.

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
linebreaks and page breaks in abc
« on: December 04, 2015, 12:21:33 AM »

Please can anyone tell me how to typeset a pagebreak and linebreak in easyabc 1.3.5?

I want to put four tunes into a single document. The first three fit on page 1 and the fourth tune title comes at the bottom of page 1, but tune 4, itself,  is on page 2. I thought it would be simple to correct but I haven't found a solution that I like yet (after a couple of hours of trying). My nearest effort is to insert a line with one dummy character above the title line but I feel this lacks elegance.

Related question: Can I scale the printed score size so that all four tunes come out on one page?
Logged
Greg Smith
DG/GC Pokerwork, DG 2.4 Saltarelle, pre-war CF Hohner, Hohner 1040 Vienna style, old  BbEb Hohner that needs a lot of work.

ACCORDION, n. An instrument in harmony with the sentiments of an assassin. Ambrose Bierce

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: linebreaks and page breaks in abc
« Reply #1 on: December 04, 2015, 09:07:28 AM »

It's always best to choose from one of the export to PDF options and print from there. You have more control and you can see a preview of your music before committing it to paper. For a file which has multiple ABC tunes choose one of the following from the top menu strip:

1. File > Export all > as a PDF book will generate all the tunes together consecutively. If two or more tunes will fit on to a single page, they will be converted thus, otherwise it will automatically go to the next page.

To force a new page break, type %%newpage on a separate line between the end of one tune and the X: number of the next tune.

2. File > Export all > as PDF files will generate separate PDF files for each tune.

To change the music scaling:
Before the X: field of the first tune in the list, type %%scale n.nn where n.nn is a decimal number. The default value is 0.75 (I think). It is quite sensitive, so a value of 0.5 generates a quite small stave, whereas 1.5 generates a huge chunky stave. Experiment with different values to see which works best for you.

You can see all these commands and many others in the EasyABC Help > Show fields and commands reference
Hope this answers some or all of your queries.
« Last Edit: December 04, 2015, 10:25:02 AM by Steve_freereeder »
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Andy Next Tune

  • aka Andy Wooles
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1127
  • Melodeon with Accidentals? Make a PI Claim!!!
    • www.shavethedonkey.co.uk
Re: linebreaks and page breaks in abc
« Reply #2 on: December 04, 2015, 09:12:47 AM »

Quick fix - install ABCExplorer and print from that. It has a much fuller set of configurable print options.

Longer answer - the task of creating a postscript file for printing or a pdf or midi file from ABC is done by separate stand-alone utilities, which are launched by EasyABC, ABCExplorer etc.
The ABC v2.1 standard (see help section in EasyABC) defines a standard set of 'directives'  to pass instructions to these support programs from within the ABC file - see http://abcnotation.com/wiki/abc:standard:v2.1#text_directives
This includes setting paper size, margins, fonts and font sizes.

So if you want much more control over how an ABC file appears on paper, then you need to use these directives.

If you want to move on to creating tunebooks and laying them out then, this article by Paul Hardy has some useful information to guide your voyage of discovery :)
http://www.pghardy.net/concertina/tunebooks/tunebook_process.html
Logged
Andy, from the now ex-County Palatine of Cheshire

Caring for a European community of melodeons from France, Italy, Germany, Wales and Suffolk!

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: linebreaks and page breaks in abc
« Reply #3 on: December 04, 2015, 09:33:24 AM »

Quick fix - install ABCExplorer and print from that.
ABCExplorer is Windows-based software. I use EasyABC because I use a Mac. Perhaps the OP does too?
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: linebreaks and page breaks in abc
« Reply #4 on: December 05, 2015, 10:54:48 AM »

Quick fix - install ABCExplorer and print from that.
ABCExplorer is Windows-based software. I use EasyABC because I use a Mac. Perhaps the OP does too?

Nope, I'm running Windows 10, but you and andy have given me the information I was looking for. Thanks for your help. Much appreciated.

Greg
Logged
Greg Smith
DG/GC Pokerwork, DG 2.4 Saltarelle, pre-war CF Hohner, Hohner 1040 Vienna style, old  BbEb Hohner that needs a lot of work.

ACCORDION, n. An instrument in harmony with the sentiments of an assassin. Ambrose Bierce
Pages: [1]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal