I'm using org-mode to produce beamer presentations. I'm having trouble figuring out the best way of including Latex snippets. As far as I can tell, there are two ways of signalling to org-mode to interpret text as LaTeX code.

The first is to sandwich the LaTeX code between:

.....[LateX code here]....

The other is to have the line start with #+LaTeX:

#+LaTeX: .....[LateX code here]....

The problem about both of these methods is that they require the LaTeX code really sits on its own line (or lines) separate from "regular org-mode" code/text. But if I want a bullet point followed by LaTeX code, say a \url{}, this doesn't work, as it has to be on the following line:

* Heading one
** some point
#+LaTeX: \url{http://www.gnu.org}
*** something else

And, unfortunately, org-mode doesn't seem to be to automatically interpret \url{} without LaTeX tags. If I just have:

* Heading one
** \url{http://www.hello-world.net}

Then the PDF output looks like:

* Heading one
** [[http://www.hello-world.net][http://www.hello-world.net]]

So, is there a better way to handle LaTeX snippets generally? And, more specifically, some good way of getting URLs to be processed in some reasonable way? (Reasonable here means that they standout in some way (colour or fontface) and are "clickable".)

Edit: The first suggestion in mvarela's answer is, I think, close to what I want, as it actually "looks like a url" in the output. The other possibility suggested here, as well as Seamus's suggestion, are indeed clickable urls in the pdf output, but are formatted as regular text.


*** \murl{http}{www.google.com}
*** [[http://www.google.com][google.com]]
*** http://www.google.com
*** <http://google.com>

Outputs as:

org output http://gobblin.se/media/media_entries/660/shot-2012-08-09_10-35-36.jpg

Only the first one is visually differentiated from other text.

  • 1
    Can't you just use <www.whatever.com> or does org mode not support that? Check whether orgmode has a native syntax for explicit urls...
    – Seamus
    Commented Aug 9, 2012 at 8:35

1 Answer 1


This is hackish, but it does the job:

#+LaTeX_HEADER: \newcommand{\murl}[2]{\url{#1://#2}}

You can also just use the org format for URLs in the .org file, which will then be translated into proper TeX:


You can insert such a link with C-c C-l, if you don't feel like typing it.

  • See edited answer above. Commented Aug 9, 2012 at 15:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .