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.
This commit is contained in:
John MacFarlane 2017-02-27 14:16:05 +01:00
parent d30883d49e
commit 1d17dbd3ae

View file

@ -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)