emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Baptiste Fouques <baptiste.fouques@m4tp.org>
To: emacs-orgmode@gnu.org
Subject: Latex export format control - emphasis and radio link
Date: Wed, 23 Dec 2009 15:27:19 +0100	[thread overview]
Message-ID: <32832d030912230627l1c0642e9k6a5dfbd6e8b14bdc@mail.gmail.com> (raw)

Hi,

I am using Org for a while, and I actually do like it a lot. I'd like
to extend my usage a bit, but I have some difficulties with export
format.
Basically, my point is about expanding/escaping control sequences in
latex output.

My sample org file is :

#+TITLE:     Org Test
#+AUTHOR:    Baptiste Fouques
#+EMAIL:     bat@m4tp.org
#+DESCRIPTION: org mode link test
#+OPTIONS:   ^:nil

* org-export-latex-emphasis-alist difficutlies

# <<<link_radio>>>

 =link_radio=

 =not_a_link=

* Radio Link format

<<<other_radio_link>>>


EOF-----------------

What I would expect as a Latex export would be :

\section{org-export-latex-emphasis-alist difficutlies}
\label{sec-1}

\label{link_radio}
 \texttt{\hyperref[link_radio]{link\_radio}}
 \texttt{not\_a\_link}

\section{Radio Link format}
\label{sec-2}
\label{other_radio_link}other\_radio\_link

EOF ----------------

But, I naturally get
...
 \texttt{[[link\_radio][link\_radio]]}                             {1}
...
\label{other_radio_link}other_radio_link                     {2}

which does not work at all as {1} is just a no-sense for LaTeX, and
{2} has not escaped the _ in plain text output (also the org header
has #+OPTIONS: ^:nil ).

I can manage to get {1} quite correct, manipulating
org-export-latex-emphasis-alist : ( ... ("=" "\\texttt{%s}" nil) ... )
...
 \texttt{\hyperref[link_radio]{link\_radio}}
...
but then, =not_a_link= became naturally broken ( _ are no more escaped ... )
And I found no such parameter that can be used to manipulate radio
link export format (to get <<<oher_radio_link>>> beeing exported as
\label{other_radio_link}other\_radio\_link .


If you could help me on this issue, I will be able to use Org mode
more widely in my everyday work (and propose it to my co-worker).

Thanks a lot,

---Bat

             reply	other threads:[~2009-12-23 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23 14:27 Baptiste Fouques [this message]
2009-12-24  8:31 ` Latex export format control - emphasis and radio link Carsten Dominik
2009-12-24 16:25   ` Baptiste Fouques

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=32832d030912230627l1c0642e9k6a5dfbd6e8b14bdc@mail.gmail.com \
    --to=baptiste.fouques@m4tp.org \
    --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).