+2005-03-31 Erlend Aasland <erlenda@gmail.com>
+
+ * scm/output-tex.scm: implement {re,}setcolor
+ * tex/lilyponddefs.tex: use color package
+
2005-03-31 Jan Nieuwenhuizen <janneke@gnu.org>
* Documentation/user/macros.itexi: Fix @usermanref html links in
round-filled-box
text
white-text
+ setcolor
+ resetcolor
polygon
draw-line
no-origin
(define (white-text scale s)
(embedded-ps (list 'white-text scale s)))
+(define (setcolor r g b)
+ (string-append "\\color[rgb]{"
+ (number->string r) ", "
+ (number->string g) ", "
+ (number->string b) "}"))
+
+;; FIXME
+;; The PostScript backend saves the current color
+;; during setcolor and restores it during resetcolor.
+;; We don't do that here.
+(define (resetcolor)
+ (string-append "\\color[rgb]{0,0,0}"))
+
(define (polygon points blotdiameter)
(embedded-ps (list 'polygon `(quote ,points) blotdiameter)))
\fi
\pagestyle{empty}
+ \usepackage{xcolor}
+
\lilypondifundefined{lilypondclassic}
{%% If not in `classic' mode, undo LaTeX's page layout settings
%% since LilyPond does the layout by itself.