[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: markup in environments in latex export

From: Carsten Dominik
Subject: Re: [Orgmode] Re: markup in environments in latex export
Date: Thu, 16 Apr 2009 22:47:32 +0200

Hi Chris,

no, this is really by design the way it is.  Org-mode has its own
markup.  As a bonus to people used to LaTeX, it allows certain
LaTeX constructs to be intermingled into the file.  For LaTeX
export, it will export these *literally*, the entire construct.
For HTML export, you can arrange for these snippets to be
processed by LaTeX as well and then included as images,
this is useful for formulas and some other constructs.

Here is a way to fool it:


- /a/ this is a
- /b/ this is b

\item \emph{a} this is a
\item \emph{b} this is b


- /a/ this is a
- /b/ this is b

Why does it fool it? Because it recognized full environments to be included
by \begin ... \end, wit these macros at the beginning of the line.

If I were to allow what you propose, it would quickly become hard to know
what should be LaTeX and what not.  I think.

Feel free to try to make a patch that will convince me of the opposite.

- Carsten

On Apr 16, 2009, at 3:09 PM, Chris Gray wrote:

Carsten Dominik wrote:

Hi Chris,

you can't have the cake and eat it.

if you insert a LaTeX environment, the entire environment
will be protected.  After all, you rely on this quoting with your
itemize environment!

Hi Carsten,

I don't really understand this.  I can see it for things like the
verbatim environment, but that might be a special case.

However, you can do this:


I should have chosen a different example I suppose.  What I am really
using, rather than center, are the theorem, lemma, and proof
environments.  I thought it would be safer for my example to use an
environment that is included by default in LaTeX. Unfortunately, center
is already a special case in org.  But I tried #+begin_proof and that
did not work.

This works by the protection being done first, and only
then #+begin_center is turned into \begin{center}

Perhaps that could be generalized so that #+begin_foo means "do the
regular org parsing and then turn on \begin{foo}"?  Other exporters
would be free to ignore these commands.

I really like doing my work in org mode, and I can certainly convert my
markup commands to regular LaTeX, but doing that really seems like a
second-best solution.


Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]