emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tilde in URL not exported to latex
@ 2010-10-20 19:02 Stephen Eglen
  2010-10-20 19:14 ` chris.m.malone
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Eglen @ 2010-10-20 19:02 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Stephen Eglen

With the following file (a.tex):

------------------------------------------------------------
* Intro

This is an example file that I would like to export
Note that the URL has a tilde in it.

  http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html

------------------------------------------------------------

When I do "C-c C-e d" in this buffer, the latex -> pdf exporter displays
a pdf, but I see that the tilde in the URL appears above the following
character (l).  If I click on the link it works just fine and takes me
to the page.

In the tex file, I see it has been exported as:

  \href{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html}
{http://www.stat.uni-muenchen.de/\~leisch/Sweave/FAQ.html}

(my line breaking added). Is the above expected behaviour?  Do I have to
mark up my URLs differently?  Org mode recognises it as a url, judging
by the font locking.



I often use url to format URLs, i.e. this works just fine:
  \url{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html}

Thanks, Stephen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tilde in URL not exported to latex
  2010-10-20 19:02 Tilde in URL not exported to latex Stephen Eglen
@ 2010-10-20 19:14 ` chris.m.malone
  2010-10-21 15:21   ` Stephen Eglen
  0 siblings, 1 reply; 3+ messages in thread
From: chris.m.malone @ 2010-10-20 19:14 UTC (permalink / raw)
  Cc: Stephen Eglen, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1704 bytes --]

Hi Stephen,

I recently experienced this issue while adding a reference in a beamer  
presentation using org-mode. It isn't elegant, but my workaround was to use  
\sim instead of the tilde character, at least for what is actually  
displayed in the document - you will still need to use tilde for the actual  
URL link.

Chris


On Oct 20, 2010 3:02pm, Stephen Eglen <SJEglen@damtp.cam.ac.uk> wrote:
> With the following file (a.tex):



> ------------------------------------------------------------

> * Intro



> This is an example file that I would like to export

> Note that the URL has a tilde in it.



> http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html



> ------------------------------------------------------------



> When I do "Cc Ce d" in this buffer, the latex -> pdf exporter displays

> a pdf, but I see that the tilde in the URL appears above the following

> character (l). If I click on the link it works just fine and takes me

> to the page.



> In the tex file, I see it has been exported as:



> \href{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html}

> {http://www.stat.uni-muenchen.de/\~leisch/Sweave/FAQ.html}



> (my line breaking added). Is the above expected behaviour? Do I have to

> mark up my URLs differently? Org mode recognises it as a url, judging

> by the font locking.







> I often use url to format URLs, ie this works just fine:

> \url{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html}



> Thanks, Stephen



> _______________________________________________

> 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


[-- Attachment #1.2: Type: text/html, Size: 2482 bytes --]

[-- Attachment #2: 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tilde in URL not exported to latex
  2010-10-20 19:14 ` chris.m.malone
@ 2010-10-21 15:21   ` Stephen Eglen
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Eglen @ 2010-10-21 15:21 UTC (permalink / raw)
  To: chris.m.malone; +Cc: emacs-orgmode, Stephen Eglen

chris.m.malone@gmail.com wrote:


> I recently experienced this issue while adding a reference in a beamer
> presentation using org-mode. It isn't elegant, but my workaround was to use \
> sim instead of the tilde character, at least for what is actually displayed in
> the document - you will still need to use tilde for the actual URL
> link.

Thanks for this Chris.  My workaround right now is to do the following
in .org buffer:

#+LaTeX: \url{http://www-cs-faculty.stanford.edu/~uno/lp.html}

This handles the URLs just as I'd want to.  (I do hate typing '#+LaTeX:'
though, but that's for me to deal with!)

I'm also using org here to make a beamer presentation, and in general it
works quite well.  I do find myself wishing to resort to latex commands
a lot though ... but still I do like the feel of org for presentations.



Best wishes, Stephen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-21 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 19:02 Tilde in URL not exported to latex Stephen Eglen
2010-10-20 19:14 ` chris.m.malone
2010-10-21 15:21   ` Stephen Eglen

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).