From 80d1ff22738906c8574853fce3aad4a7a9badb1e Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 6 Oct 2011 07:47:38 -0600 Subject: [PATCH] scribble: fix Latex renderer treatment of table cell/column styles The renderer was using symbol style names as command names, but only strings should be treated that way. original commit: 0f5b53d3498f857920ff7fa438269727553dc058 --- collects/scribble/latex-render.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))