@end ignore
@item
-The backend is now switched with the @code{-d} option, e.g.,
-@example
-lilypond -dbackend=svg input-file.ly
-@end example
-
+The following options are now changed as a @code{-d} sub-option:
+@code{--backend}, @code{--safe}, @code{--preview} and
+@code{--no-pages} (which became @code{-dno-print-pages}).
@item
Improved testing procedure now catch changes in CPU and memory
Example: @code{lilypond -dbackend=svg filename.ly}
@cindex output format, setting
+
+@item preview
+Generate an output file containing the titles and the first system
+
+@item print-pages
+Generate the full pages, the default. @code{-dno-print-pages} is
+useful in combination with @code{-dpreview}.
+
@end table
@item --pdf
Generate PDF. This implies @code{--ps}.
-@item --preview
-Generate an output file containing the titles and the first system
-
-@item --no-pages
-Do not generate the full pages. Useful in combination with
-@code{--preview}.
@item -j,--jail=@var{user},@var{group},@var{jail},@var{dir}
*/
extern string output_format_global;
-extern bool make_preview;
-extern bool make_print;
-
/* misc */
extern vector<string> failed_files;
extern int exit_status_global;
string init_scheme_code_global;
string init_scheme_variables_global;
-/* Generate preview of first system. */
-bool make_preview = false;
-
-/* Generate printed output. */
-bool make_print = true;
-
-
-bool relocate_binary =
-#if 1
- true;
-#else
- false
-#endif
- ;
+bool relocate_binary = true;
/*
|| string (opt->longname_str0_) == "ps"
|| string (opt->longname_str0_) == "tex")
add_output_format (opt->longname_str0_);
- else if (string (opt->longname_str0_) == "preview")
- make_preview = true;
- else if (string (opt->longname_str0_) == "no-pages")
- make_print = false;
else if (string (opt->longname_str0_) == "relocate")
relocate_binary = true;
break;
case 'V':
be_verbose_global = true;
break;
- case 'p':
- make_preview = true;
- break;
default:
programming_error (to_string ("unhandled short option: %c",
opt->shortname_char_));
string mod_nm = "scm framework-" + get_output_backend_name ();
SCM mod = scm_c_resolve_module (mod_nm.c_str ());
- if (make_print)
+
+ if (get_program_option ("print-pages"))
{
SCM func = scm_c_module_lookup (mod, "output-framework");
SCM_UNDEFINED));
}
- if (make_preview)
+ if (get_program_option ("preview"))
{
SCM func = scm_c_module_lookup (mod, "output-preview-framework");
func = scm_variable_ref (func);
(point-and-click #t "use point & click")
(paper-size "a4" "the default paper size")
(pixmap-format "png16m" "GS format to use for pixel images")
+ (preview #f "make a incipit image. ")
+ (print-pages #t "print pages normally. ")
(protected-scheme-parsing #t "continue when finding errors in inline
scheme are caught in the parser. If off, halt
on errors, and print a stack trace.")