Следующий org-блок показывает, какие части работают по умолчанию, а какие требуют небольшого количества обходного пути.
Следующее было создано с использованием Org-mode version 7.8.03 (release_7.8.03.321.gaac1c)
. Если вы используете более старую версию, возможно, что поведение немного отличается.
См. Буквальные примеры и Monospace в Руководстве по организации для получения полной информации
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
Экспорт HTML
1 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 /
2 Code
Code blocks can be delimited in multiple ways:
2.1 Inline formatting
Using ~ for verbatim text works
<pre language="python">
~ renders the same as = for blocks test
test
2.2 Code Blocks
Single-line blocks
<pre language="python">
Многострочные блоки
asdf
LaTeX Export
\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}