-;;; pdftex.scm -- implement Scheme output routines for PDFTeX
-;;;
-;;; source file of the GNU LilyPond music typesetter
-;;; modified from the existing tex.scm
-;;;
-;;; (c) 1998--2003 Jan Nieuwenhuizen <janneke@gnu.org>
-;;; Han-Wen Nienhuys <hanwen@cs.uu.nl>
-;;; Stephen Peters <portnoy@portnoy.org>
+;;;; pdftex.scm -- implement Scheme output routines for PDFTeX
+;;;;
+;;;; source file of the GNU LilyPond music typesetter
+;;;; modified from the existing tex.scm
+;;;;
+;;;; (c) 1998--2004 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; Han-Wen Nienhuys <hanwen@cs.uu.nl>
+;;;; Stephen Peters <portnoy@portnoy.org>
;; TODO: port this to the new module framework.
(embedded-pdf (list 'dashed-slur thick dash l)))
(define (char i)
- (string-append "\\char" (inexact->string i 10) " "))
+ (string-append "\\char" (ly:inexact->string i 10) " "))
(define (dashed-line thick on off dx dy)
(embedded-pdf (list 'dashed-line thick on off dx dy)))
"\\font\\" command "="
(car name-mag)
" scaled "
- (ly:number->string (inexact->exact (* 1000 (cdr name-mag))))
+ (ly:number->string (inexact->exact (* 1000 (cdr name-mag))))
"\n"))
(define (ez-ball c l b)
(define (invoke-char s i)
(string-append
- "\n\\" s "{" (inexact->string i 10) "}" ))
+ "\n\\" s "{" (ly:inexact->string i 10) "}" ))
-;;
-;; need to do something to make this really safe.
-;;
+;; FIXME: explain ploblem: need to do something to make this really safe.
(define (output-tex-string s)
- (if security-paranoia
+ (if safe-mode?
(regexp-substitute/global #f "\\\\" s 'pre "$\\backslash$" 'post)
s))