2006-07-20 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * scm/framework-eps.scm (dump-stencils-as-EPSes): just strip
+ .eps extension from includegraphics.
+
* scripts/lilypond-book.py (main): add support for --pdf.
* lily/spacing-spanner.cc (calc_common_shortest_duration): use
;; main body
(let* ((tex-system-name (format "~a-systems.tex" basename))
- (pdftex-system-name (format "~a-systems.pdftex" basename))
(texi-system-name (format "~a-systems.texi" basename))
(tex-system-port (open-output-file tex-system-name))
- (texi-system-port (open-output-file texi-system-name))
- (pdftex-system-port (open-output-file pdftex-system-name)))
+ (texi-system-port (open-output-file texi-system-name)))
(ly:message (_ "Writing ~a...") tex-system-name)
(ly:message (_ "Writing ~a...") texi-system-name)
- (ly:message (_ "Writing ~a...") pdftex-system-name)
(set! stencils (widen-left-stencil-edges stencils))
\\betweenLilyPondSystem{~a}
\\fi
" c) tex-system-port))
- (display (format "\\includegraphics{~a-~a.eps}\n"
+ (display (format "\\includegraphics{~a-~a}\n"
basename (1+ c)) tex-system-port)
- (display (format "\\includegraphics{~a-~a.pdf}\n"
- basename (1+ c)) pdftex-system-port)
(display (format "@image{~a-~a}\n"
basename (1+ c)) texi-system-port))
(iota (length stencils)))
\preLilyPondExample%%
\fi%%
\def\lilypondbook{}%%
-\input %(base)s-systems.%(texextension)s%%
+\input %(base)s-systems.tex%%
\ifx\postLilyPondExample \undefined%%
\relax%%
\else%%
verb = self.substring ('code')
str += (output[LATEX][VERBATIM] % vars ())
- texextension = 'tex'
- if global_options.create_pdf:
- texextension = 'pdftex'
str += (output[LATEX][OUTPUT] % vars ())
## todo: maintain breaks