[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Page number patch for ly2dvi
From: |
Mark Hindley |
Subject: |
Page number patch for ly2dvi |
Date: |
Tue, 8 May 2001 11:22:19 +0100 (BST) |
Here is a patch for ly2dvi. It allows you to specify the starting
pagenumber from the .ly file. Useful for combining several pieces into
one book.
I have also written some docs for the pagenumber option which were
missing.
Hope it is useful.
Mark
--- ./ly2dvi Sat May 5 08:27:13 2001
+++ ./ly2dvi Tue May 8 10:55:58 2001
@@ -520,6 +520,7 @@
'''
if extra['pagenumber'] and extra['pagenumber'][-1] and
extra['pagenumber'][-1] != 'no':
+ s = s + '\setcounter{page}{%s}\n' % (extra['pagenumber'][-1])
s = s + r'''
address@hidden to\textwidth{\textbf{\thepage}\hfill{\small\theheader}}}
address@hidden to \textwidth{{\small\theheader}\hfill\textbf{\thepage}}}
--- ./ly2dvi.itexi.orig Tue May 8 11:04:05 2001
+++ ./ly2dvi.itexi Tue May 8 11:08:43 2001
@@ -127,6 +127,9 @@
The music line width. It is normally read from the @code{\paper}
block.
address@hidden pagenumber
+ Set page numbering. Choices are @code{no} or an empty string (@code{""})
for no page numbers. Alternatively specify a number to start the numbering
from. The default is page numbers starting from 1.
+
@item papersize
The paper size (as a name, e.g. @code{a4}). It is normally read from
the @code{\paper} block.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Page number patch for ly2dvi,
Mark Hindley <=