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:
parent
d30883d49e
commit
1d17dbd3ae
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue