scribble: for Latex/PDF output, use \makebox for precise pict widths
Otherwise, the width of a pict is implicitly rounded up, since the PDF bounding box is an integer. original commit: 4735666cd9a3a5de4e40202b23a9d8da034ef22e
This commit is contained in:
parent
70332eb7ce
commit
1bb78b43fe
|
@ -301,13 +301,17 @@
|
|||
=> (lambda (bstr+info+suffix)
|
||||
(let* ([bstr (list-ref (list-ref bstr+info+suffix 0) 0)]
|
||||
[suffix (list-ref bstr+info+suffix 1)]
|
||||
[width (list-ref (list-ref bstr+info+suffix 0) 1)]
|
||||
[height (list-ref (list-ref bstr+info+suffix 0) 2)]
|
||||
[descent (and height
|
||||
(+ (list-ref (list-ref bstr+info+suffix 0) 3)
|
||||
(- (ceiling height) height)))]
|
||||
[fn (install-file (format "pict~a" suffix) bstr)])
|
||||
(if descent
|
||||
(printf "\\raisebox{-~apx}{\\includegraphics{~a}}" descent fn)
|
||||
(printf "\\raisebox{-~apx}{\\makebox[~apx][l]{\\includegraphics{~a}}}"
|
||||
descent
|
||||
width
|
||||
fn)
|
||||
(printf "\\includegraphics{~a}" fn))))]
|
||||
[else
|
||||
(parameterize ([rendering-tt (or tt? (rendering-tt))])
|
||||
|
|
Loading…
Reference in New Issue
Block a user