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: [LaTeX reader] Issue with \lstinputlisting
Date: Sun, 07 Feb 2021 22:15:35 +0100	[thread overview]
Message-ID: <878s7z7f60.fsf@example.com> (raw)

Hi,

on Linux Mageia 7, I'm using pandoc 2.11.4 compiled with:

- pandoc-types 1.22,
- texmath 0.12.1,
- skylighting 0.10.2,
- citeproc 0.3.0.5,
- ipynb 0.1.0.1.

The following command:

--8<---------------cut here---------------start------------->8---
pandoc -f latex -t rst -s <<< "\begin{lstlisting}Foo\end{lstlisting}"
--8<---------------cut here---------------end--------------->8---

gives the following output:

--8<---------------cut here---------------start------------->8---
::

   Foo
--8<---------------cut here---------------end--------------->8---

So far, so good.

Now, according to:

  ┌────
  │ https://github.com/jgm/pandoc/issues/7003#issuecomment-753662299
  └────

the following commands:

--8<---------------cut here---------------start------------->8---
echo "Foo" > foo.txt
pandoc -f latex -t rst -s <<< "\lstinputlisting{foo.txt}"
--8<---------------cut here---------------end--------------->8---

should give the same output. But in my case, it returns the following
error:

  ┌────
  │ [WARNING] Could not load include file 'foo.txt' at line 1 column 17
  └────

Am I the only one affected by this issue?

Do you know how to fix it?

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/878s7z7f60.fsf%40example.com.


             reply	other threads:[~2021-02-07 21:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07 21:15 Denis Bitouzé [this message]
     [not found] ` <878s7z7f60.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2021-02-08 18:19   ` John MacFarlane
     [not found]     ` <m2y2fy8lsx.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-02-08 20:20       ` Denis Bitouzé

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=878s7z7f60.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).