2012-02-25 18 views
6

जब ऑर्ग-मोड लाटेक्स में निर्यात करता है तो यह कोड ब्लॉक के बाद एक नया पैराग्राफ उत्पन्न करता है। इससे कैसे बचा जा सकता है?संगठन मोड में कोड ब्लॉक के बाद नए पैराग्राफ से कैसे बचें?

निम्न उदाहरण पर विचार करें:

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

जो आउटपुट

रूप

The output I get

नोट करने के लिए निर्यात करता है कि पहले कोड ब्लॉक के बाद पाठ एक नया पैराग्राफ के रूप में सेट है। मैं नहीं चाहता कि इसे एक नए पैराग्राफ के रूप में सेट किया जाए। मैं चाहता हूँ यह जिनमें से उत्पादन होता है

The output I want

के रूप में स्थापित किया जाना:

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

मैं संगठन मोड 7.6 चला रहा हूँ Emacs 23.3.1 में।

उत्तर

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 
संबंधित मुद्दे