public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pass through `\passthrough`
@ 2022-07-12 10:12 Denis Bitouzé
       [not found] ` <87h73mk5cc.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Denis Bitouzé @ 2022-07-12 10:12 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi,

I'd like to “pass through `\passthrough`” (BTW, I don't see the point of
this command). Indeed, consider the following diverging chain:

```
$ cat tex.tex
\documentclass{article}
\usepackage{listings}
\begin{document}
A (La)TeX command: \lstinline|\textbf{}|.
\end{document}
$ pandoc -f latex -t rst tex.tex -o tex2rst.rst
$ cat tex2rst.rst
A (La)TeX command: ``\textbf{}``.
$ pandoc -f rst -t latex --listings tex2rst.rst -o tex2rst2tex.tex
$ cat tex2rst2tex.tex 
A (La)TeX command: \passthrough{\lstinline!\\textbf\{\}!}.
$ pandoc -f latex -t rst --listings tex2rst2tex.tex -o tex2rst2tex2rst.rst
$ cat tex2rst2tex2rst.rst
A (La)TeX command: ``\\textbf\{\}``.
```

Obviously, I'd like the last step to give the same file as the second
one:

```
A (La)TeX command: ``\textbf{}``.
```

Thanks!
-- 
Denis

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87h73mk5cc.fsf%40example.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-12 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 10:12 Pass through `\passthrough` Denis Bitouzé
     [not found] ` <87h73mk5cc.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-07-12 10:17   ` [SOCIAL]Pass " Denis Bitouzé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).