*/
SCM m = mark_req_l_->get_mus_property ("label");
- if (!gh_string_p (m))
- m = get_property ("rehearsalMark");
-;
-
- if (gh_number_p (m))
- {
- int mark_count = gh_scm2int (m);
- t = to_str (mark_count);
- mark_count ++;
- m = gh_int2scm (mark_count);
- }
- else if (gh_string_p (m))
+ if (gh_pair_p (m)) // markup text
+ text_p_->set_grob_property ("text",m);
+ else
{
- t = ly_scm2string (m);
- String next;
- if (t.length_i ())
+ if (!gh_string_p (m))
+ m = get_property ("rehearsalMark");
+ ;
+
+ if (gh_number_p (m))
{
- char c = t[0];
- c++;
- next = to_str (c);
+ int mark_count = gh_scm2int (m);
+ t = to_str (mark_count);
+ mark_count ++;
+ m = gh_int2scm (mark_count);
+ }
+ else if (gh_string_p (m))
+ {
+ t = ly_scm2string (m);
+ String next;
+ if (t.length_i ())
+ {
+ char c = t[0];
+ c++;
+ next = to_str (c);
+ }
+ m = ly_str02scm (next.ch_C());
+ }
+ else
+ {
+ m = gh_int2scm (1);
}
- m = ly_str02scm (next.ch_C());
- }
- else
- {
- m = gh_int2scm (1);
- }
- daddy_trans_l_->set_property ("rehearsalMark", m);
-
-
- text_p_->set_grob_property ("text",
- ly_str02scm ( t.ch_C()));
+ daddy_trans_l_->set_property ("rehearsalMark", m);
+
+ text_p_->set_grob_property ("text",
+ ly_str02scm ( t.ch_C()));
- String style = "mark";
- for (int i=0; i < t.length_i(); i++)
- {
- if (!isdigit(t[i]))
+ String style = "mark";
+ for (int i=0; i < t.length_i(); i++)
{
- style = "large";
- break;
+ if (!isdigit(t[i]))
+ {
+ style = "large";
+ break;
+ }
}
+ SCM st = ly_symbol2scm (style.ch_C());
+ text_p_->set_grob_property ("font-style", st);
}
- SCM st = ly_symbol2scm (style.ch_C());
- text_p_->set_grob_property ("font-style", st);
+
}
}
# * (c) on page 1
# * more helpful info on lily crashes
# * Should use files in /tmp/ only. This potentially messes with
-# usergenerated files in the CWD
+# user generated files in the CWD
"""
name = 'ly2dvi'
version = '@TOPLEVEL_VERSION@'
-if version == '@' + 'TOPLEVEL_VERSION' + '@':
- version = '(unknown version)' # uGUHGUHGHGUGH
errorlog = ''
import sys
# ------ ----------
( 'language', Props.setLanguage ),
( 'latexheaders', Props.setHeader ),
+ ( 'latexpackages', Props.setPackages ),
( 'paperorientation', Props.setOrientation ),
( 'paperpapersize', Props.setPaperZize ),
( 'papertextheight', Props.setTextHeight ),
\usepackage[latin1]{inputenc}
%%\usepackage[T1]{fontenc}
%%
-%s
%% don not waste unused space at bottom of page
%% (unless we have footnotes ...)
%%\headheight9pt
%% UGR.
%%\renewcommand{\@evenhead}{eve!{\small\lilypondinstrument{,}\quad\textbf{\thepage}}\hfil}%%
\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\thefooter}}%%
+%s
\begin{document}
""" % ( program_id(), Props.get('filename'), now, Props.get('papersize'),
- Props.get('language'), Props.get('pagenumber'), Props.get('linewidth'),
- textheightsetting, Props.get('orientation'), Props.get('header') )
+ Props.get('language'), Props.get('linewidth'), textheightsetting,
+ Props.get('orientation'), Props.get('header'), Props.get('pagenumber'))
base, ext = os.path.splitext(file)
this.__base = base
( 'KEEPLY2DVI', this.setKeeply2dvi ),
( 'LANGUAGE', this.setLanguage ),
( 'LATEXHF', this.setHeader ),
+ ( 'LATEXPKG', this.setPackages ),
( 'LILYINCLUDE', this.setInclude ),
( 'LILYPONDPREFIX', this.setRoot ),
( 'NONUMBER', this.setNonumber ),
# Set latex header name
#
def setHeader(this,head, requester):
- this.__set('header','\\input{' + head + '}',requester)
+ this.__set('header','\\input{' + head + '}'+this.get('header'),requester)
+
+ #
+ # Set latex package name
+ #
+ def setPackages(this,pkgs, requester):
+ this.__set('header','\\usepackage{' + pkgs + '}'+this.get('header'),requester)
#
# Set or Clear Dependencies flag to generate makefile dependencies