emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [org-beamer] \alert
Date: Tue, 26 Jan 2010 16:06:27 +0100	[thread overview]
Message-ID: <877hr4zz0s.fsf@mundaneum.com> (raw)
In-Reply-To: 87pr4y1me5.wl%ucecesf@ucl.ac.uk

Hi Eric and Sven,

Eric S Fraga wrote:
> (mistakenly sent this only to the OP... resending to list as well)
>
> At 24 Jan 2010 20:10:03 +0100,
> Sven Bretfeld wrote:
>> 
>> Is there any Symbol in org-beamer for \alert{Text}? In presentations \alert
>> is recommended instead of italics. We could even think of translating text
>> enclosed in slashes / ... / to \alert{} by default in the beamer class.
>
> Essentially, you can add this functionality yourself:
>
> (setq org-emphasis-alist (quote (("*" bold "<b>" "</b>") 
>       				 ("/" italic "<i>" "</i>")
>       				 ("_" underline "<span style=\"text-decoration:underline;\">" "</span>")
>       				 ("=" org-code "<code>" "</code>" verbatim)
>       				 ("~" org-verbatim "<code>" "</code>" verbatim)
>       				 ("+" (:strike-through t) "<del>" "</del>")
>       				 ("@" org-warning "<b>" "</b>")))
>       org-export-latex-emphasis-alist (quote 
>       				       (("*" "\\textbf{%s}" nil)
>       					("/" "\\emph{%s}" nil) 
>       					("_" "\\underline{%s}" nil)
>       					("+" "\\texttt{%s}" nil)
>       					("=" "\\verb=%s=" nil)
>       					("~" "\\verb~%s~" t)
>       					("@" "\\alert{%s}" nil))))
>

That's what I'm using as well, but the problem is that it's not compatible
anymore with non-beamer LaTeX, the alert macro being unknown.

Would there be a way to conditionally translate @...@ to alert (if beamer) or
to emph (if not-beamer), so that we can still easily compile a document to one
or the other LaTeX "back-end", without having to customize variables in Emacs,
prior to a compilation to the other "back-end"?

I must admit I do not have clear specifications on how to tell Org about such
a config...

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-01-26 15:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-24 19:10 [org-beamer] \alert Sven Bretfeld
2010-01-25 10:58 ` Eric S Fraga
2010-01-25 16:55   ` Sven Bretfeld
2010-01-26 15:06   ` Sébastien Vauban [this message]
2010-01-26 16:22     ` Eric S Fraga
2010-01-28 17:58       ` Carsten Dominik
2010-01-29  9:40         ` Eric S Fraga
2010-01-29 11:26           ` Tim Burt
2010-01-29 12:23             ` Eric S Fraga
2010-01-29 15:36               ` Sébastien Vauban
2010-02-01 16:18                 ` Carsten Dominik
2010-02-03  8:31         ` Karsten Heymann
2010-02-03 10:21           ` Carsten Dominik
2010-02-03 22:05             ` Sven Bretfeld

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=877hr4zz0s.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).