LaTeX reader: Allow skipping of unknown block commands in \author
section.
Closes #505, which was a problem with `\vspace{10pt}` inside `\author`.
This commit is contained in:
parent
c844634757
commit
206f261194
1 changed files with 3 additions and 1 deletions
|
@ -298,7 +298,9 @@ authors :: LP ()
|
|||
authors = try $ do
|
||||
char '{'
|
||||
let oneAuthor = mconcat <$>
|
||||
many1 (notFollowedBy' (controlSeq "and") >> inline)
|
||||
many1 (notFollowedBy' (controlSeq "and") >>
|
||||
(inline <|> mempty <$ blockCommand))
|
||||
-- skip e.g. \vspace{10pt}
|
||||
auths <- sepBy oneAuthor (controlSeq "and")
|
||||
char '}'
|
||||
updateState (\s -> s { stateAuthors = map (normalizeSpaces . toList) auths })
|
||||
|
|
Loading…
Reference in a new issue