LaTeX reader: Recognize that \vadjust
sometimes takes "pre".
Closes #7531.
This commit is contained in:
parent
132a6df51e
commit
c9ce6da1bb
1 changed files with 7 additions and 0 deletions
|
@ -941,6 +941,9 @@ getRawCommand name txt = do
|
|||
void $ count 4 braced
|
||||
"def" ->
|
||||
void $ manyTill anyTok braced
|
||||
"vadjust" ->
|
||||
void (manyTill anyTok braced) <|>
|
||||
void (satisfyTok isPreTok) -- see #7531
|
||||
_ | isFontSizeCommand name -> return ()
|
||||
| otherwise -> do
|
||||
skipopts
|
||||
|
@ -948,6 +951,10 @@ getRawCommand name txt = do
|
|||
void $ many braced
|
||||
return $ txt <> untokenize rawargs
|
||||
|
||||
isPreTok :: Tok -> Bool
|
||||
isPreTok (Tok _ Word "pre") = True
|
||||
isPreTok _ = False
|
||||
|
||||
isDigitTok :: Tok -> Bool
|
||||
isDigitTok (Tok _ Word t) = T.all isDigit t
|
||||
isDigitTok _ = False
|
||||
|
|
Loading…
Reference in a new issue