2012-02-25 9 views
6

組織モードでLaTeXにエクスポートすると、コードブロックの後に新しい段落が生成されます。どうすればこれを避けることができますか?これは、最初のコードブロックの後にテキストその注 Org-modeでコードブロックの後に新しい段落を避けるには?

The output I get

として出力する以下の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} 

にエクスポート

#+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 

は、次の例を考えてみ新しい段落として設定されます。私はそれを新しい段落として設定したくありません。私はEmacsの23.3.1で組織モード7.6を実行しています

\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} 

:私はの出力がある

The output I want

として設定することにしたいです。

答えて

2

して手動でインデントを設定することができます。これは、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} 
出力

Output result

を提供します
2

私は、これはあなたが望む解決策ではありませんが、とにかく、あなたは

#+BEGIN_SRC emacs-lisp 
(setq foo "bar") 
#+END_SRC 
#+LATEX:\noindent 
A paragraph contains some text and this text only serves as example text. 
#+BEGIN_SRC emacs-lisp 
(setq bar "foo") 
#+END_SRC 
関連する問題