File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -426,6 +426,7 @@ blockToLaTeX (LineBlock lns) =
426426 blockToLaTeX $ linesToPara lns
427427blockToLaTeX (BlockQuote lst) = do
428428 beamer <- gets stBeamer
429+ csquotes <- liftM stCsquotes get
429430 case lst of
430431 [b] | beamer && isListBlock b -> do
431432 oldIncremental <- gets stIncremental
@@ -438,7 +439,10 @@ blockToLaTeX (BlockQuote lst) = do
438439 modify (\ s -> s{stInQuote = True })
439440 contents <- blockListToLaTeX lst
440441 modify (\ s -> s{stInQuote = oldInQuote})
441- return $ " \\ begin{quote}" $$ contents $$ " \\ end{quote}"
442+ let envname = if csquotes then " displayquote" else " quote"
443+ return $ (" \\ begin" <> braces envname) $$
444+ contents $$
445+ (" \\ end" <> braces envname)
442446blockToLaTeX (CodeBlock (identifier,classes,keyvalAttr) str) = do
443447 opts <- gets stOptions
444448 inNote <- stInNote <$> get
You can’t perform that action at this time.
0 commit comments