@@ -56,7 +56,6 @@ data WriterState =
5656 , stEnumerate :: Bool -- true if document needs fancy enumerated lists
5757 , stTable :: Bool -- true if document has a table
5858 , stStrikeout :: Bool -- true if document has strikeout
59− , stSubscript :: Bool -- true if document has subscript
6059 , stUrl :: Bool -- true if document has visible URL link
6160 , stGraphics :: Bool -- true if document contains images
6261 , stLHS :: Bool -- true if document has literate haskell code
@@ -75,7 +74,7 @@ writeLaTeX options document =
7574 WriterState { stInNote = False, stInTable = False,
7675 stTableNotes = [], stOLLevel = 1, stOptions = options,
7776 stVerbInNote = False, stEnumerate = False,
78− stTable = False, stStrikeout = False, stSubscript = False,
77+ stTable = False, stStrikeout = False,
7978 stUrl = False, stGraphics = False,
8079 stLHS = False, stBook = writerChapters options,
8180 stCsquotes = False, stHighlighting = False,
@@ -148,7 +147,6 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
148147 [ ("fancy-enums", "yes") | stEnumerate st ] ++
149148 [ ("tables", "yes") | stTable st ] ++
150149 [ ("strikeout", "yes") | stStrikeout st ] ++
151− [ ("subscript", "yes") | stSubscript st ] ++
152150 [ ("url", "yes") | stUrl st ] ++
153151 [ ("numbersections", "yes") | writerNumberSections options ] ++
154152 [ ("lhs", "yes") | stLHS st ] ++
@@ -503,11 +501,7 @@ inlineToLaTeX (Strikeout lst) = do
503501inlineToLaTeX (Superscript lst) =
504502 inlineListToLaTeX lst >>= return . inCmd "textsuperscript"
505503inlineToLaTeX (Subscript lst) = do
506− modify $ \s -> s{ stSubscript = True }
507− contents <- inlineListToLaTeX lst
508− -- oddly, latex includes \textsuperscript but not \textsubscript
509− -- so we have to define it (using a different name so as not to conflict with memoir class):
510− return $ inCmd "textsubscr" contents
504+ inlineListToLaTeX lst >>= return . inCmd "textsubscript"
511505inlineToLaTeX (SmallCaps lst) =
512506 inlineListToLaTeX lst >>= return . inCmd "textsc"
513507inlineToLaTeX (Cite cits lst) = do