diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-27 14:16:05 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-27 14:16:05 +0100 |
commit | 1d17dbd3ae1e3565c62bc2660cf45b2c266d8165 (patch) | |
tree | 48ccffc5478b612fee7662fb6e5e9651b67a5cb1 /src/Text | |
parent | d30883d49eedbdd50ac5f259d6d39382fb33dde6 (diff) | |
download | pandoc-1d17dbd3ae1e3565c62bc2660cf45b2c266d8165.tar.gz |
LaTeX reader: Handle komascript `\dedication`.
It now adds a `dedication` field to metadata.
It is up to the user to supply a template that uses this
variable.
Closes #1845.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index bbbd1fee0..2836ff4cc 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -337,6 +337,8 @@ blockCommands = M.fromList $ , ("address", mempty <$ (skipopts *> tok >>= addMeta "address")) , ("signature", mempty <$ (skipopts *> authors)) , ("date", mempty <$ (skipopts *> tok >>= addMeta "date")) + -- Koma-script metadata commands + , ("dedication", mempty <$ (skipopts *> tok >>= addMeta "dedication")) -- sectioning , ("chapter", updateState (\s -> s{ stateHasChapters = True }) *> section nullAttr 0) |