emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gaurav Sharma <gvshar@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Org Mode Latex Export Customization of org-export-latex-emphasis-alist
Date: Sun, 27 Jun 2010 20:04:31 -0400	[thread overview]
Message-ID: <AANLkTimdJAmsUeEfCg1AqY6DZi_9l-lRA9xBNalSa-mp@mail.gmail.com> (raw)

Hello!

I am a relative newbie to Org even though Emacs has been my editor of
choice for a long time. I'm trying to customize the
org-export-latex-emphasis-alist by using the following in my .emacs

(setq org-export-latex-emphasis-alist (quote (("*" "\\textbf{%s}" nil)
("/" "\\emph{%s}" nil) ("_" "\\alert{%s}" nil) ("+" "\\st{%s}" nil)
("=" "\\verb" t) ("@" "\\alert{%s}" nil) ("!" "\\note{%s}" nil) ("~"
"\\verb" t))))

Several of the above re-definitions seem to take effect. In fact, in
the above "_" is redefined to be the same as "@" for testing that the
re-definition is indeed effective and I have verified that it is.
However, the definitions of "@" and "!" do not seem to take effect at
all. I see the same behavior when I customize this variable through
the Org->customize interface. I've tried a lot of things and am at my
wits end in terms of figuring out this weird behavior.

I would very much appreciate if someone could shed more light on this.
My initial thought was whether there could be a dependency on latex
packages that make alternate use of these special symbols. However,
that should come into play only in the latex file and upon seeing the
latex file I see that indeed the definitions of "@" and "!" seem
ineffective. In case it matters, I am working with a org file intended
for use with beamer that is included below.

Suggestions for a fix would be very helpful.

Thanks much in advance for your help,

-- Gaurav

____Test Org File ___

#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_FRAME_LEVEL: 1

#+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)
%4BEAMER_col(Col) %8BEAMER_extra(Extra)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC

* Test  :export:

** Test of Underline and Alert functionality
*** _test_
** _Test of Underscore_
** +Test of Plus+
** @Alert Test@
** !Note test!

             reply	other threads:[~2010-06-28  0:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-28  0:04 Gaurav Sharma [this message]
2010-06-29 11:11 ` Org Mode Latex Export Customization of org-export-latex-emphasis-alist Giovanni Ridolfi
2010-06-29 11:29   ` Giovanni Ridolfi
2010-06-29 17:57   ` Gaurav Sharma

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=AANLkTimdJAmsUeEfCg1AqY6DZi_9l-lRA9xBNalSa-mp@mail.gmail.com \
    --to=gvshar@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gsharma@ece.rochester.edu \
    /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).