2012-02-25 14 views
6

Kuruluş modu, LaTeX'e dışa aktarıldığında, kod bloklarından sonra yeni bir paragraf oluşturur. Bundan nasıl kurtulabilirim?Org modunda kod bloğundan sonra yeni paragraf nasıl engellenir?

aşağıdaki örneğe bakalım:

Bu

olarak

The output I get

Not verir aşağıdaki 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} 

ihraç

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

birinci kod bloğu sonra metin yeni bir paragraf olarak ayarlandı. Yeni bir paragraf olarak ayarlanmasını istemiyorum. Ben Emacs 23.3.1 içinde Org-mode 7.6 çalıştırıyorum

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

: Ben çıktısı olan

The output I want

olarak ayarlanacak istiyorum.

cevap

2

Bu elle girinti ayarlayabilirsiniz. tam kod bloğu test aşağıdaki çıktı üretmesi

Org
#+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} 
Çıktı

Output result

sağlar
2

bu İstediğiniz çözüm değil korkuyorum ama neyse, sen Org 7.8.03 bir sorun olmaya görünmüyor

#+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 
İlgili konular