2012-02-20 19 views
5

मैं कैसे Emacs के भीतर इटैलिक या कोड की तरह जोर की रक्षा कर सकते ऑर्ग मोड जब मैंसंगठन मोड: रक्षा जोर

/cologne/dome/ 

या

=<pre language="python">= 

तरह बातें है?

+0

मैं:

  1. सब जोर प्रतीकों
  2. संशोधित org-emphasis-alist बंद करने के लिए, प्रासंगिक आइटम

मैं भी एक समान प्रश्न यहाँ पूछा हटाने #+OPTIONS: *:nil सेट आप सवाल नहीं समझते हैं। शायद आप समझा सकते हैं कि अब आप क्या प्राप्त करते हैं और आप क्या करना चाहते हैं? –

+0

इस तरह का सवाल स्पष्ट नहीं है। आप उपर्युक्त उदाहरणों में सुरक्षा करने की क्या कोशिश कर रहे हैं (आउटपुट क्या है और आप आउटपुट क्या चाहते हैं)? –

+0

समस्या: मैं कुछ इटालिक्स डालना चाहता हूं जिसमें इटालिक्स (= स्लैश) के लिए मार्कर शामिल हैं या कोड में कुछ डालें जिसमें कोड (= बराबर चिह्न) के लिए मार्कर शामिल हैं। क्या मैं इन तरीकों से रक्षा कर सकता हूं? – dshh2011

उत्तर

7

निम्नलिखित संगठन-ब्लॉक दर्शाता है कि कौन से हिस्से डिफ़ॉल्ट रूप से काम करते हैं और जिनके लिए काम करने के लिए काम की एक छोटी सी मात्रा की आवश्यकता होती है।

निम्नलिखित Org-mode version 7.8.03 (release_7.8.03.321.gaac1c) का उपयोग करके बनाया गया था। यदि आप पुराने संस्करण का उपयोग कर रहे हैं तो यह संभव है कि व्यवहार थोड़ा अलग हो।

पूरी जानकारी

ओआरजी
* Italics 
    - Your example simply works\\ 
    /cologne/dome/ 
    - It also works if your /example had/spaces within it/ 
    - It will only fail if/your /have spaces on one end or the other/
* Code 
    Code blocks can be delimited in multiple ways: 
** Inline formatting 
    - Using ~ for verbatim text works\\ 
     ~<pre language="python">~ 
    - ~ renders the same as = for blocks =test= ~test~ 
** Code Blocks 
    - Single-line blocks 
     : <pre language="python"> 
    - Multi-line blocks 
     #+BEGIN_EXAMPLE 
     asdf 
     #+END_EXAMPLE 
एचटीएमएल निर्यात के लिए Literal Examples और संगठन-मैनुअल में Monospace देखें
<div id="outline-container-1" class="outline-2"> 
<h2 id="sec-1"><span class="section-number-2">1</span> Italics</h2> 
<div class="outline-text-2" id="text-1"> 

<ul> 
<li>Your example simply works<br/> 
    <i>cologne/dome</i> 
</li> 
<li>It also works if your <i>example had/spaces within it</i> 
</li> 
<li>It will only fail if/your /have spaces on one end or the other/
</li> 
</ul> 

</div> 

</div> 

<div id="outline-container-2" class="outline-2"> 
<h2 id="sec-2"><span class="section-number-2">2</span> Code</h2> 
<div class="outline-text-2" id="text-2"> 

<p>Code blocks can be delimited in multiple ways: 
</p> 
</div> 

<div id="outline-container-2-1" class="outline-3"> 
<h3 id="sec-2-1"><span class="section-number-3">2.1</span> Inline formatting</h3> 
<div class="outline-text-3" id="text-2-1"> 

<ul> 
<li>Using ~ for verbatim text works<br/> 
    <code>&lt;pre language="python"&gt;</code> 
</li> 
<li>~ renders the same as = for blocks <code>test</code> <code>test</code> 
</li> 
</ul> 

</div> 

</div> 

<div id="outline-container-2-2" class="outline-3"> 
<h3 id="sec-2-2"><span class="section-number-3">2.2</span> Code Blocks</h3> 
<div class="outline-text-3" id="text-2-2"> 

<ul> 
<li>Single-line blocks 
<pre class="example"> 
&lt;pre language="python"&gt; 
</pre> 

</li> 
<li>Multi-line blocks 



<pre class="example">asdf 
</pre> 

</li> 
</ul> 
LaTeX निर्यात
\section{Italics} 
\label{sec-1} 

\begin{itemize} 
\item Your example simply works\\ 
\emph{cologne/dome} 
\item It also works if your \emph{example had/spaces within it} 
\item It will only fail if/your /have spaces on one end or the other/
\end{itemize} 
\section{Code} 
\label{sec-2} 

Code blocks can be delimited in multiple ways: 
\subsection{Inline formatting} 
\label{sec-2-1} 

\begin{itemize} 
\item Using \~{} for verbatim text works\\ 
\verb~<pre language="python">~ 
\item \~{} renders the same as = for blocks \texttt{test} \verb~test~ 
\end{itemize} 
\subsection{Code Blocks} 
\label{sec-2-2} 

\begin{itemize} 
\item Single-line blocks 
\begin{verbatim} 
    <pre language="python"> 
\end{verbatim} 
\item Multi-line blocks 

\begin{verbatim} 
asdf 
\end{verbatim} 
\end{itemize} 
+1

जैसा कि उल्लेख किया गया है ~ verbatim ~ काम किया लेकिन यह मेरे लिए, एकल और डबल उद्धरण पर तोड़ दिया। यह [लिंक] (http://lists.gnu.org/archive/html/emacs-orgmode/2010-04/msg00330.html) बंद होने से पहले U200B (ZERO WIDTH SPACE) वर्ण जोड़कर मदद मिली ~। – nymo

0

मुझे लगता है कि आप उत्पादन मूल /cologne/dome/ करना चाहते हैं, लेकिन <i>cologne/dome</i> नहीं, है ना?

दो तरीके: How do I escape slash in org-mode?

संबंधित मुद्दे