From: wl Date: Thu, 30 Sep 2004 16:15:14 +0000 (+0000) Subject: * tex/lilyponddefs.tex (\lilypondstart): Define X-Git-Tag: release/2.3.24^2~108 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c685c2a0ce47a9795573d8727b95e10ba8122f62;p=lilypond.git * tex/lilyponddefs.tex (\lilypondstart): Define \lilypondfontencoding for both texinfo and latex mode. * scm/framework-tex.scm (font-load-command): Use \lilypondfontencoding. --- diff --git a/ChangeLog b/ChangeLog index 11576fba4b..9a0b800e49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-09-30 Werner Lemberg + + * tex/lilyponddefs.tex (\lilypondstart): Define + \lilypondfontencoding for both texinfo and latex mode. + + * scm/framework-tex.scm (font-load-command): Use + \lilypondfontencoding. + 2004-09-30 Han-Wen Nienhuys * scm/framework-tex.scm (dump-page): take with-extents? diff --git a/scm/framework-tex.scm b/scm/framework-tex.scm index a1358c9506..c400bbc883 100644 --- a/scm/framework-tex.scm +++ b/scm/framework-tex.scm @@ -63,7 +63,7 @@ "\\def\\" (tex-font-command font) "{%\n" ;; UGH. Should be handled via alist. (if (equal? "Extended-TeX-Font-Encoding---Latin" font-encoding) - " \\fontencoding{T1}\\selectfont" + " \\lilypondfontencoding{T1}" " ") "\\lilypond" (tex-font-command font) "}\n" diff --git a/tex/lilyponddefs.tex b/tex/lilyponddefs.tex index b5ba687c0b..ece3f1247f 100644 --- a/tex/lilyponddefs.tex +++ b/tex/lilyponddefs.tex @@ -47,12 +47,16 @@ %% \@nodocument is defined as \relax after `\begin{document}' \lilypondifundefined{@nodocument} {%% either plain TeX or texinfo or not at the beginning of LaTeX input - \def\x{\endgroup}} + \def\x{ + \endgroup + \def\lilypondfontencoding##1{}}} {%% FIXME: a4 %% provide a proper LaTeX preamble (for A4 paper format) \def\x{ \endgroup \def\lilyponddocument{} + \def\lilypondfontencoding##1{ + \fontencoding{##1}\selectfont} \documentclass[a4paper]{article} %% safe-mode \nofiles