emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Henri-Paul Indiogine <hindiogine@gmail.com>
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: breaking URLs
Date: Tue, 26 Jul 2011 13:24:21 +0200	[thread overview]
Message-ID: <87r55dthcq.fsf@gnu.org> (raw)
In-Reply-To: <CAG_r7O4m+nSL8ouYz6XMhpz3LjD+_DZOHDnUhh=P0+6iWDZW5A@mail.gmail.com> (Henri-Paul Indiogine's message of "Mon, 18 Jul 2011 09:18:42 -0700")

Henri-Paul Indiogine <hindiogine@gmail.com> writes:

> Hi Bastien!
>
> 2011/7/18 Bastien <bzg@altern.org>:
>>> the URL in  \url{my url}  it is exported as
>>>
>>> \url{[[my url]] [[my url]]}   however the URL is nicely split to the
>>> next line in the pdf.
>>
>> I would welcome ideas/code to have more flexibility wrt the way urls
>> are handled by the LaTeX exporter.
>
> If there would be a way of having the URL in orgmode be exported to
> LaTeX as \url{my url} without the square brackets and the repetition
> that would be all that is necessary for me.  I have no idea why the
> LaTeX exporter add the brackets and duplicates the link.

You want to customize `org-export-latex-href-format'.

This variable used to make two "%s" mandatory, to insert both the link
and its path.  You can now use only one "%s" if you want, since latest
git commit.

  (setq org-export-latex-href-format "\url{%s}") 

will do what you want.

Thanks for bringing this up!

-- 
 Bastien

  reply	other threads:[~2011-07-26 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 20:21 breaking URLs Henri-Paul Indiogine
2011-07-18  8:57 ` Bastien
2011-07-18 16:18   ` Henri-Paul Indiogine
2011-07-26 11:24     ` Bastien [this message]
2011-07-26 17:13       ` Bastien

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=87r55dthcq.fsf@gnu.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=hindiogine@gmail.com \
    /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).