LaTeX reader: Don't handle \index separately.

Instead, just put it in list of commands to ignore.
This commit is contained in:
John MacFarlane 2011-01-05 12:05:04 -08:00
parent b26247a4a8
commit c3071ff6e9

View file

@ -478,7 +478,6 @@ inline = choice [ str
, accentedChar
, nonbreakingSpace
, cite
, index
, specialChar
, rawLaTeXInline'
, escapedChar
@ -815,12 +814,6 @@ footnote = try $ do
cite :: GenParser Char ParserState Inline
cite = simpleCite <|> complexNatbibCites
index :: GenParser Char ParserState Inline
index = try $ do
(name, _, _) <- command
guard $ name == "index"
return $ Str ""
simpleCiteArgs :: GenParser Char ParserState [Citation]
simpleCiteArgs = try $ do
first <- optionMaybe $ (char '[') >> manyTill inline (char ']')