LaTeX writer: don't produce columns environment unless beamer.

The environment is beamer-only and as far as I'm
aware there's no latex package that provides it
for non-beamer use.

Closes #5485.
This commit is contained in:
John MacFarlane 2019-05-05 07:26:18 -07:00
parent 33e2d46dbe
commit 548ffa38c3

View file

@ -560,13 +560,13 @@ blockToLaTeX (Div (identifier,classes,kvs) bs)
_ -> linkAnchor'
let align dir txt = inCmd "begin" dir $$ txt $$ inCmd "end" dir
lang <- toLang $ lookup "lang" kvs
let wrapColumns = if "columns" `elem` classes
let wrapColumns = if beamer && "columns" `elem` classes
then \contents ->
inCmd "begin" "columns" <> brackets "T"
$$ contents
$$ inCmd "end" "columns"
else id
wrapColumn = if "column" `elem` classes
wrapColumn = if beamer && "column" `elem` classes
then \contents ->
let w = maybe "0.48" fromPct (lookup "width" kvs)
in inCmd "begin" "column" <>