diff --git a/collects/scribble/latex-render.rkt b/collects/scribble/latex-render.rkt index 64c07710..c95ca7a3 100644 --- a/collects/scribble/latex-render.rkt +++ b/collects/scribble/latex-render.rkt @@ -259,8 +259,9 @@ (let* ([bstr (list-ref (list-ref bstr+info+suffix 0) 0)] [suffix (list-ref bstr+info+suffix 1)] [height (list-ref (list-ref bstr+info+suffix 0) 2)] - [descent (+ (list-ref (list-ref bstr+info+suffix 0) 3) - (- (ceiling height) height))] + [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)