emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTex best practice in org-mode
@ 2014-06-22  6:12 Shiyuan
  2014-06-22  8:20 ` Thorsten Jolitz
  0 siblings, 1 reply; 4+ messages in thread
From: Shiyuan @ 2014-06-22  6:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]

Hi all,
Hi all,
   We can write LaTex directly in org-mode without put it in a SRC block.
When the code is exported, the latex syntax will be handled correctly to
html or pdf. That's very nice part of org mode. However, if we don't put
the latex code into a SRC block, the latex syntax is not correctly
highlighted (in the code attached below, the first equation is not
highlighted). Another benefit of putting the latex code into SRC block is
that we can easily switch to the latex mode to edit the code snippet using
C-c ' and in the latex mode, we can use some full-fleged latex package like
auctex. However, the latex code in the SRC block is ignored when exported
to html. For example, when I exported the following to html, the first
equation shows up in the html but the second seconed does not.  Any way to
make the html exporter to generated the second equation too without taking
away the BEGIN_SRC/END_SRC? What's the best practice to write latex in
org-mode. Thanks.

\begin{equation}
    \label{eq:test}
    Bx=b
\end{equation}

#+BEGIN_SRC latex

  \begin{equation}
    \label{eq:test}
    Ax=b
  \end{equation}
#+END_SRC

[-- Attachment #2: Type: text/html, Size: 1383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-24  8:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-22  6:12 LaTex best practice in org-mode Shiyuan
2014-06-22  8:20 ` Thorsten Jolitz
2014-06-24  6:02   ` Shiyuan
2014-06-24  8:52     ` Thorsten Jolitz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).