emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Chris Gray <chrismgray@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: markup in environments in latex export
Date: Thu, 16 Apr 2009 14:21:18 +0200	[thread overview]
Message-ID: <AE5312AB-F9A4-4D0B-8F90-52A7CAE83DCC@gmail.com> (raw)
In-Reply-To: <86iql57zkh.fsf@portan.ibr.cs.tu-bs.de>

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!

However, you can do this:

--8<---------------cut here---------------start------------->8---
#+TITLE: None


#+begin_center

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

\begin{itemize}
\item \emph{a} this is a
\item \emph{b} this is b
\end{itemize}

#+end_center

- /a/ this is a
- /b/ this is b
--8<---------------cut here---------------end--------------->8---

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

HTH

- Carsten

On Apr 16, 2009, at 10:49 AM, Chris Gray wrote:

> Hello,
>
> I have been writing a draft of a paper in org, and I would like to  
> have
> the customary org markup commands work inside of LaTeX  
> environments.  As
> an example, I would like the following to have the same thing three
> times instead of only twice.
>
> --8<---------------cut here---------------start------------->8---
> #+TITLE: None
>
>
> \begin{center}
>
> - /a/ this is a
> - /b/ this is b
>
> \begin{itemize}
> \item \emph{a} this is a
> \item \emph{b} this is b
> \end{itemize}
>
> \end{center}
>
> - /a/ this is a
> - /b/ this is b
> --8<---------------cut here---------------end--------------->8---
>
>
> Cheers,
> Chris
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-04-16 12:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16  8:49 markup in environments in latex export Chris Gray
2009-04-16 12:21 ` Carsten Dominik [this message]
2009-04-16 13:09   ` Chris Gray
2009-04-16 20:47     ` Carsten Dominik
2009-04-19 19:55       ` Chris Gray
2009-04-20  6:04         ` Carsten Dominik
2009-05-02  7:27         ` Carsten Dominik
2009-05-04  7:52           ` Chris Gray
2009-05-04 14:28             ` Carsten Dominik
2009-05-06 14:01               ` Chris Gray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AE5312AB-F9A4-4D0B-8F90-52A7CAE83DCC@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=chrismgray@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).