@@ -309,7 +309,10 @@ options =
309309
310310 , Option "" ["xetex"]
311311 (NoArg
312− (\opt -> return opt { optXeTeX = True }))
312+ (\opt -> do
313+ UTF8.hPutStrLn stderr $ "pandoc: --xetex is deprecated. "
314+ ++ "It is no longer needed for use with XeTeX."
315+ return opt { optXeTeX = True }))
313316 "" -- "Format latex for processing by XeTeX"
314317
315318 , Option "" ["chapters"]
@@ -675,7 +678,6 @@ main = do
675678 , optSectionDivs = sectionDivs
676679 , optIncremental = incremental
677680 , optOffline = offline
678− , optXeTeX = xetex
679681 , optSmart = smart
680682 , optHtml5 = html5
681683 , optChapters = chapters
@@ -786,7 +788,8 @@ main = do
786788 stateIndentedCodeClasses = codeBlockClasses,
787789 stateApplyMacros = writerName' `notElem` ["latex", "latex+lhs"] }
788790
789− let writerOptions = WriterOptions { writerStandalone = standalone',
791+ let writerOptions = defaultWriterOptions
792+ { writerStandalone = standalone',
790793 writerTemplate = if null template
791794 then defaultTemplate
792795 else template,
@@ -798,7 +801,6 @@ main = do
798801 writerHTMLMathMethod = mathMethod,
799802 writerSlideVariant = slideVariant,
800803 writerIncremental = incremental,
801− writerXeTeX = xetex,
802804 writerCiteMethod = citeMethod,
803805 writerBiblioFiles = reffiles,
804806 writerIgnoreNotes = False,