diff --git a/collects/scribble/latex-render.rkt b/collects/scribble/latex-render.rkt index 1657907d..d676e6f3 100644 --- a/collects/scribble/latex-render.rkt +++ b/collects/scribble/latex-render.rkt @@ -544,7 +544,7 @@ [center? (and (not bottom?) (not top?))] [as-box? (and can-box? (boxable? p))]) - (when (style-name vstyle) + (when (string? (style-name vstyle)) (printf "\\~a{" (style-name vstyle))) (let ([minipage? (and can-box? (not as-box?))]) (when minipage? @@ -569,7 +569,7 @@ (render-block p part ri #f)]) (when minipage? (printf " \\end{minipage}\n"))) - (when (style-name vstyle) + (when (string? (style-name vstyle)) (printf "}")) null))