2006-01-26 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/define-markup-commands.scm (verbatim-file): new markup
+ command \verbatim-file
+
+ * Documentation/topdocs/NEWS.tely: fixup URLs
+
* input/regression/alignment-vertical-manual-setting.ly (Module):
new file.
@ifhtml
@macro inputfileref{DIR,NAME}
-@uref{../../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+@uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
@end macro
@macro usermanref{NAME}
-@inforef{\NAME\,,../../user/lilypond/lilypond}@c
+@inforef{\NAME\,,../user/lilypond/lilypond}@c
@end macro
@end ifhtml
@itemize @bullet
@item Alignments of staves may be tuned per system.
@lilypond[]
+#(set-global-staff-size 13)
+
\relative c'' \new StaffGroup <<
- \new Staff { c1 c }
- \new Staff { c c }
- \new Staff {
+ \new Staff { c1 c }
+ \new Staff { c c }
+ \new Staff {
\overrideProperty
#"Score.NonMusicalPaperColumn"
#'line-break-system-details
#'line-break-system-details
#'((alignment-offsets . (0 -15 -20)))
c1
- }
- >>
+ }
+>>
@end lilypond
This feature was sponsored by Trevor Bača.
@item A linebreaking configuration can now be saved as a @file{.ly}
file automatically. This allows vertical alignments to be stretched to
fit pages in a second formatting run. See
-@inputfileref{input/regression/,page-layout-twopass.ly} for an
+@inputfileref{input/regression,page-layout-twopass.ly} for an
example.
This feature was sponsored by Trevor Bača and Nicolas Sceaux.
PACKAGE_NAME=LilyPond
MAJOR_VERSION=2
MINOR_VERSION=7
-PATCH_LEVEL=28
+PATCH_LEVEL=29
MY_PATCH_LEVEL=
}
+\version "2.7.29"
#(set-default-paper-size "a6" 'portrait)
texidoc = "Page breaking details can be stored for later reference."
}
+\version "2.7.29"
\paper {
#(define write-page-layout #t)
tweakFileName = #(format "~a-page-layout.ly" (ly:parser-output-name parser))
#(newline)
-#(ly:progress "Including file: ~a" tweakFileName)
-\include \tweakFileName
+#(ly:progress "Including file: '~a'" tweakFileName)
+
+
+\markup {
+ \column {
+ \line { contents of \typewriter tweakFileName: }
+ \smaller \verbatim-file #tweakFileName
+ }
+}
break;
case 's':
be_safe_global = true;
+ init_scheme_variables
+ += "(cons \'safe #t)\n";
+
break;
case 'p':
make_preview = true;
"
(interpret-markup layout (cons (list new-prop) props) arg))
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; files
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(def-markup-command (verbatim-file layout props name) (string?)
+ "Read the contents of a file, and include verbatimly"
+
+ (interpret-markup
+ layout props
+ (if (ly:get-option 'safe)
+ "Cannot read file in Safe mode"
+ (let*
+ ((str (ly:gulp-file name))
+ (lines (string-split str #\n)))
+
+ (make-typewriter-markup
+ (make-column-markup lines)))
+ )))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; fonts.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(dump-tweaks out-port (reverse val) (ly:make-moment 0 1))
(display "}" out-port))
tweaks)
+ (close-port out-port)
))
(define (handle-page page)
(gui #f "running from gui; redirect stderr to log file")
(delete-intermediate-files #f
"delete unusable PostScript files")
+ (safe #f "Run safely")
(verbose ,(ly:command-line-verbose?) "value for the --verbose flag")
(ttf-verbosity 0
"how much verbosity for TTF font embedding?")