git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Give full detail when there are errors converting tex math.
5449e4aJohn MacFarlane
src/Text/Pandoc/Writers/Docx.hs+2−1
@@ -1116,7 +1116,8 @@ inlineToOpenXML' opts (Math mathType str) = do
1116 case writeOMML displayType <$> readTeX str of
1116 case writeOMML displayType <$> readTeX str of
1117 Right r -> return [r]
1117 Right r -> return [r]
1118 Left e -> do
1118 Left e -> do
1119− warn $ "Cannot convert the following TeX math, skipping:\n" ++ str
1119+ warn $ "Cannot convert the following TeX math, skipping:\n" ++ str ++
1120+ "\n" ++ e
1120 inlinesToOpenXML opts (texMathToInlines mathType str)
1121 inlinesToOpenXML opts (texMathToInlines mathType str)
1121inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
1122inlineToOpenXML' opts (Cite _ lst) = inlinesToOpenXML opts lst
1122inlineToOpenXML' opts (Code attrs str) = do
1123inlineToOpenXML' opts (Code attrs str) = do