emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: latex export and beamer columns
Date: Tue, 24 Nov 2009 18:02:55 +0000	[thread overview]
Message-ID: <87ws1fg5rk.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <8C1EA010-04C9-49C1-9F7F-5F0AB12EF4D0@gmail.com>

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

At Tue, 24 Nov 2009 09:59:20 +0100,
Carsten Dominik wrote:

[...]

> 
> Hmm, I think one would still like to be able to make text
> bold and italic as well?  So I don't think one should use * or /.
> How about the exclamation mark?
> 
> I guess the easiest would be to add to the two variables org-emphasis- 
> alist
> and org-export-emphasis-alist.
> 
> To the former your could add (maybe use other HTML tags)
> 
>    ("!" org-warning "<b>" "</b>")
> 
> and to the latter
> 
>    ("!" "\\alert{%s}" nil)
> 
> You might have to restart Emacs before these work.

I've tried this (with org up to date as of an hour or so ago [Org-mode
version 6.33trans (release_6.33f.29.g5064)] and emacs 23.1.1) and it
doesn't work for me, having tried "!", ":" and "@" as possible markers
(and I'm leaning to the latter as the best choice to avoid confusion
with ends of sentences and because I don't have a lot of email
addresses in my slides... ;-).  

The display doesn't reflect the face to be used and the text goes
straight through upon export.  I have customised both variables
indicated and have looked at the code in org.el that handles this but
cannot figure out what is wrong.  Any suggestions?  Attached is my
beamer org test file.

My settings are:

--8<---------------cut here---------------start------------->8---
org-emphasis-alist is a variable defined in `org.el'.
Its value is shown below.

Documentation:
Special syntax for emphasized text.
Text starting and ending with a special character will be emphasized, for
example *bold*, _underlined_ and /italic/.  This variable sets the marker
characters, the face to be used by font-lock for highlighting in Org-mode
Emacs buffers, and the HTML tags to be used for this.
For LaTeX export, see the variable `org-export-latex-emphasis-alist'.
Use customize to modify this, or restart Emacs after changing it.

You can customize this variable.

Value: 
(("*" 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>")
 ("@" bold "<b>" "</b>"))
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
org-export-latex-emphasis-alist is a variable defined in `org-latex.el'.
Its value is 
(("*" "\\textbf{%s}" nil)
 ("/" "\\emph{%s}" nil)
 ("_" "\\underline{%s}" nil)
 ("+" "\\texttt{%s}" nil)
 ("=" "\\verb=%s=" nil)
 ("~" "\\verb~%s~" t)
 ("@" "\\alert{%s}" nil))
--8<---------------cut here---------------end--------------->8---


By the way, the second variable, org-export-latex-emphasis-alist, does
not appear in the possible variables to get help on (with C-h v)
unless I have given it a value.  It does, of course, appear in the
org-latex customisation group.  However, note the difference in the
output from C-h v for these two variables.  Maybe this gives some hint
of what may be wrong?  Dunno...

Thanks,
eric


[-- Attachment #2: beamertest.org --]
[-- Type: application/octet-stream, Size: 772 bytes --]

#+TITLE: Presentation with Org-Mode and Beamer 
#+AUTHOR:    Eric S Fraga
#+EMAIL:     Eric S Fraga <e.fraga@ucl.ac.uk>
#+DATE:      2009-10-18 Sun
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:5 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 

#+LaTeX_CLASS: beamer 

* Introduction
*** The first point
1. <1-> I would like to say this @emphatically@.
2. <2-> and this but in *bold*.
3. <3-> but also this /emphasised/.
*** the second
* The guts of the presentation
*** and more
*** and less

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please 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-11-24 18:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-21 12:49 latex export and beamer columns Eric S Fraga
2009-11-21 13:34 ` Carsten Dominik
2009-11-22 12:12   ` Eric S Fraga
2009-11-22 15:15     ` Eric S Fraga
2009-11-22 15:29       ` Matt Lundin
2009-11-22 19:31         ` Eric S Fraga
2009-11-23 13:55       ` Carsten Dominik
2009-11-23 22:15         ` Eric S Fraga
2009-11-24  0:02           ` Daniel Martins
2009-11-24  6:55           ` Carsten Dominik
2009-11-24  8:36             ` Eric S Fraga
2009-11-24  8:49             ` Eric S Fraga
2009-11-24  8:59               ` Carsten Dominik
2009-11-24 18:02                 ` Eric S Fraga [this message]
2009-11-25  6:28                   ` Carsten Dominik
2009-11-25  9:27                     ` Eric S Fraga
2009-11-25 18:03                     ` Eric S Fraga
2009-11-25 23:25                       ` Carsten Dominik
2009-11-26  8:16                         ` Eric S Fraga
2009-11-26  9:05                           ` Carsten Dominik
2009-11-26 10:33                             ` Eric S Fraga
2009-11-23 14:53     ` Sébastien Vauban
2009-11-21 16:33 ` Thomas S. Dye
2009-11-22 12:00   ` Eric S Fraga
2009-11-26  1:52 ` Łukasz Stelmach
2009-11-26 18:25   ` Eric S Fraga
2009-11-26 19:54     ` Darlan Cavalcante Moreira

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=87ws1fg5rk.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=carsten.dominik@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).