From c3071ff6e9ceb26c1a90c005ad4bb6661679ca40 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 5 Jan 2011 12:05:04 -0800
Subject: [PATCH] LaTeX reader: Don't handle \index separately.

Instead, just put it in list of commands to ignore.
---
 src/Text/Pandoc/Readers/LaTeX.hs | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 03679bb1d..cdac5b2a5 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -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 ']')