小编use*_*840的帖子

如何使用Pandoc在段落中插入块引用?

我正在使用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.
Run Code Online (Sandbox Code Playgroud)

但由于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.
Run Code Online (Sandbox Code Playgroud)

我怎样才能像第一个例子那样得到pandoc来输出LaTeX?

markdown latex pandoc

12
推荐指数
1
解决办法
7万
查看次数

标签 统计

latex ×1

markdown ×1

pandoc ×1