当 Org 模式导出到 LaTeX 时,它会在代码块之后生成一个新段落。我怎样才能避免这种情况?
考虑以下示例:
#+TITLE: Example
#+BEGIN_SRC emacs-lisp
(setq foo "bar")
#+END_SRC
A paragraph contains some text and this text only serves as example text.
#+BEGIN_SRC emacs-lisp
(setq bar "foo")
#+END_SRC
它导出到以下 LaTeX
\begin{verbatim}
(setq foo "bar")
\end{verbatim}
A paragraph contains some text and this text only serves as example text.
\begin{verbatim}
(setq bar "foo")
\end{verbatim}
输出为
请注意,第一个代码块之后的文本设置为新段落。我不希望它被设置为一个新段落。我希望它被设置为
这是输出:
\begin{verbatim}
(setq foo "bar")
\end{verbatim}
A paragraph contains some text and this text only serves as example text.
\begin{verbatim}
(setq bar "foo")
\end{verbatim}
我在 Emacs 23.3.1 中运行 Org-mode 7.6。
最佳答案
这似乎不是 Org 7.8.03
中的问题。 .测试您的确切代码块提供以下输出
组织
#+TITLE: Example
#+BEGIN_SRC emacs-lisp
(setq foo "bar")
#+END_SRC
A paragraph contains some text and this text only serves as example text.
#+BEGIN_SRC emacs-lisp
(setq bar "foo")
#+END_SRC
latex
\begin{verbatim}
(setq foo "bar")
\end{verbatim}
A paragraph contains some text and this text only serves as example text.
\begin{verbatim}
(setq bar "foo")
\end{verbatim}
输出
关于emacs - 如何避免组织模式下代码块后的新段落?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9445252/