manpagesynopsis() bf(mudela-book) [options] inputfile
manpagedescription() file(mudela-book) is a script that helps
-integrating mudela and LaTeX(). mudela-book runs LilyPond on
+integrating mudela and LaTeX. mudela-book runs LilyPond on
fragments of mudela in your source file, and includes the results into
-document that can be processed with LaTeX(). The result is a text
+document that can be processed with LaTeX. The result is a text
document with formatted music integrated.
+Lilypond will create a directory to put temporary files, the default
+dir name is file(out). When you run mudela on a file, like this:
+
+verb(mudelab-book myfile.tex)
+
+the a file file(out/myfile.latex) will be created. And to create
+the file(.dvi) file you should type:
+
+verb(latex out/myfile.latex)
+
+This will create file(myfile.dvi) in the current directory. Bad things
+will happen if you cd to file(out) and then runs verb(latex myfile.latex)
+
+bf(About the input)
If the file contains the ``block''
then LilyPond is run on CONTENTS. mudela-book puts the result back,
surrounded by code(\preMudelaExample) and code(\postMudelaExample)
-commands. The code(\begin) takes the following options:
+commands. code(\preMudelaExample) and code(posMudelaExample) is
+defined to nothing by default, and the user can redefine them
+to whatever he wants.
+
+code(\begin) takes the following options:
description(
dit(floating)
set the fontsize to use for the music
)
+
manpageoptions()
startdit()
dit(--outdir)
The directory to output lilypond output and input to.
dit(--help)
- print a short help message
+ Print a short help message
dit(--dependencies)
- write dependencies to outdir/filname.dep
+ Write dependencies to outdir/filename.dep
+dit(--force-verbatim)
+ Make all mudela verbatim.
enddit()
manpagefiles()
Real arithmetic_constant (Moment minimal_mom) const;
Real arithmetic_spacing (Moment mom,Real constant) const;
virtual int get_next_default_count () const;
+ static void reset_default_count();
void output_settings (Paper_outputter*) const;
Paper_outputter* paper_outputter_p (Paper_stream*, Scope*, String) const;
};
#endif // Paper_def_HH
-
FILE *file = fdopen (fd, "a");
port = scm_standard_stream_to_port (file, "a", "");
scm_display (gh_str02scm ("(load 'lily.scm)\n"), port);
+ scm_display (gh_str02scm ("(define (of) 'ps)\n"), port);
+ scm_display (gh_str02scm ("(define (of) 'tex)\n"), port);
}
scm_display (gh_str02scm ("(display ((eval "), port);
scm_write (scm, port);
- scm_display (gh_str02scm (") 'tex))\n"), port);
+ scm_display (gh_str02scm (") (of)))\n"), port);
scm_newline (port);
scm_fflush (port);
grestore
} bind def
+/setbold % '(' text ')'
+{
+ settext
+} bind def
+
/settext % '(' text ')'
{
gsave
yoffset staffheight 8 mul sub /yoffset exch def
} bind def
-/unknown { (U) show} bind def
-/empty {(E) show} bind def
+/unknown { (U) setbold } bind def
+/empty { (E) setbold } bind def
/turnOnExperimentalFeatures { } bind def