parent
dcb0b02aa3
commit
da1b599c96
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do
|
|||
Right r -> r
|
||||
Left _ -> ""
|
||||
case lookup "documentclass" (writerVariables options) `mplus`
|
||||
parseMaybe (withObject "object" (.: "documentclass")) metadata of
|
||||
fmap stringify (lookupMeta "documentclass" meta) of
|
||||
Just x | x `elem` bookClasses -> modify $ \s -> s{stBook = True}
|
||||
| otherwise -> return ()
|
||||
Nothing | documentClass `elem` bookClasses
|
||||
|
|
Loading…
Add table
Reference in a new issue