组织模式:保护重点

dsh*_*011 5 emacs org-mode

当我有类似的东西时,我怎么能保护Emacs org-mode中的斜体或代码等重点

/cologne/dome/
Run Code Online (Sandbox Code Playgroud)

要么

=<pre language="python">=
Run Code Online (Sandbox Code Playgroud)

Jon*_*pin 7

下面的org-block演示了哪些部分默认工作,需要少量的解决方法才能工作.

以下是使用创建的Org-mode version 7.8.03 (release_7.8.03.321.gaac1c).如果您使用的是旧版本,则行为可能略有不同.

有关详细信息,请参阅组织手册中的文字示例等宽字体

ORG
* 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
Run Code Online (Sandbox Code Playgroud) HTML导出
<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>
Run Code Online (Sandbox Code Playgroud) 乳胶出口
\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}
Run Code Online (Sandbox Code Playgroud)