diff --git a/collects/scribble/latex-render.rkt b/collects/scribble/latex-render.rkt index 1cdbda22..caccf925 100644 --- a/collects/scribble/latex-render.rkt +++ b/collects/scribble/latex-render.rkt @@ -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))])