- output->header_ = header;
-
- progress_indication ("\n");
- output->process (ly_scm2string (out_filename));
-
- delete output ;
+ if (layoutbook && layoutbook->c_variable ("is-paper") == SCM_BOOL_T)
+ scale = scm_to_double (layoutbook->c_variable ("output-scale"));
+
+ SCM outputs = SCM_EOL;
+ SCM *tail = &outputs;
+
+ int outdef_count = defs_.size ();
+
+ Object_key *key = new Lilypond_general_key (book_key, user_key_, 0);
+ SCM scm_key = key->unprotect ();
+
+ for (int i = 0; !i || i < outdef_count; i++)
+ {
+ Output_def *def = outdef_count ? defs_[i] : default_def;
+ SCM scaled = SCM_EOL;
+
+ if (def->c_variable ("is-layout") == SCM_BOOL_T)
+ {
+ def = scale_output_def (def, scale);
+ def->parent_ = layoutbook;