@@ -290,7 +290,12 @@ blockToLaTeX :: PandocMonad m
290290 => Block -- ^ Block to convert
291291 -> LW m (Doc Text)
292292blockToLaTeX Null = return empty
293−blockToLaTeX (Div attr@(identifier,"block":_,_) (Header _ _ ils : bs)) = do
293+blockToLaTeX (Div attr@(identifier,"block":dclasses,_)
294+ (Header _ _ ils : bs)) = do
295+ let blockname
296+ | "example" `elem` dclasses = "exampleblock"
297+ | "alert" `elem` dclasses = "alertblock"
298+ | otherwise = "block"
294299 ref <- toLabel identifier
295300 let anchor = if T.null identifier
296301 then empty
@@ -298,8 +303,8 @@ blockToLaTeX (Div attr@(identifier,"block":_,_) (Header _ _ ils : bs)) = do
298303 braces (literal ref) <> braces empty
299304 title' <- inlineListToLaTeX ils
300305 contents <- blockListToLaTeX bs
301− wrapDiv attr $ ("\\begin{block}" <> braces title' <> anchor) $$
302− contents $$ "\\end{block}"
306+ wrapDiv attr $ ("\\begin" <> braces blockname <> braces title' <> anchor) $$
307+ contents $$ "\\end" <> braces blockname
303308blockToLaTeX (Div (identifier,"slide":dclasses,dkvs)
304309 (Header _ (_,hclasses,hkvs) ils : bs)) = do
305310 -- note: [fragile] is required or verbatim breaks