public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Denis Bitouzé" <denis.bitouze-PToOLB6qFnLddoiwg0DPyg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [SOCIAL]Pass through `\passthrough`
Date: Tue, 12 Jul 2022 12:17:22 +0200	[thread overview]
Message-ID: <87czeak53h.fsf@example.com> (raw)
In-Reply-To: <87h73mk5cc.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> ("Denis =?utf-8?Q?Bitouz=C3=A9?= =?utf-8?Q?=22's?= message of "Tue, 12 Jul 2022 12:12:03 +0200")

Le 12/07/22 à 12h12, Denis Bitouzé a écrit :

> 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:

More precisely, I'd like the `tex2rst2tex.tex` file to be identical to
(the relevant lines of) the starting one:

```
A (La)TeX command: \lstinline|\textbf{}|.
```
-- 
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/87czeak53h.fsf%40example.com.


      parent reply	other threads:[~2022-07-12 10:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12 10:12 Pass " Denis Bitouzé
     [not found] ` <87h73mk5cc.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-07-12 10:17   ` Denis Bitouzé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czeak53h.fsf@example.com \
    --to=denis.bitouze-ptoolb6qfnlddoiwg0dpyg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).