【发布时间】:2013-09-10 12:59:22
【问题描述】:
我正在使用 pandoc 从 markdown 转换为 LaTeX。我的问题是 Pandoc 似乎将块引用之后的段落文本解释为新段落的开头。虽然这通常是我想要的,但很多时候我想继续引用前面的段落。这在 LaTeX 中很容易实现——我只需将引用环境插入段落中,而不会在引用和周围行之间留下任何空白行,如下所示:
This is the first sentence of paragraph ONE.
\begin{quote}
This is a block quote.
\end{quote}
This is the second sentence of paragraph ONE.
This is the first sentence of paragraph TWO.
但由于 Pandoc 要求块引号后跟一个空行,所以我可以管理的唯一输出如下所示:
This is the first sentence of paragraph ONE.
\begin{quote}
This is a block quote.
\end{quote}
This is the first sentence of paragraph TWO.
This is the first sentence of paragraph THREE.
如何让 pandoc 像我的第一个示例一样输出 LaTeX?
【问题讨论】:
-
这里主要关注的是第二段的缩进吗?
-
是的,如果您指的是第二个示例。在 pdf 输出中,我的目标是不缩进紧跟在块引用之后的行。 (缩进线表示一个新段落,这不是我想要的。)
-
这个问题似乎是题外话,因为它是关于 LaTeX 的。