Hi Dave, Dave Angel <da...@davea.name> wrote: [] >>> or use a raw string: >>> >>> i = r'\\ref{fig:abc}' > > Actually that'd be: > i = r'\ref{fig:abc}'
Could you explain why I then see the following difference: In [56]: inp = r'\\ref{fig:abc}' In [57]: print pypandoc.convert(inp, 'latex', format='rst') \textbackslash{}ref\{fig:abc\} In [58]: inp = r'\ref{fig:abc}' In [59]: print pypandoc.convert(inp, 'latex', format='rst') ref\{fig:abc\} The two results are clearly *not* the same, even though the two inp /claim/ to be the same... Al -- https://mail.python.org/mailman/listinfo/python-list