From: Jambunathan K <kjambunathan@gmail.com>
To: Pierfranco Minsenti <pierfranco.minsenti@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to change latex export of links from \href to \url ?
Date: Sun, 25 Sep 2011 23:24:00 +0530 [thread overview]
Message-ID: <81mxdswls7.fsf@gmail.com> (raw)
In-Reply-To: <CAE306MVRkLtbWBzUgtr1sT3jjJk_0y_s7X2jY02ivm=cjiFVpA@mail.gmail.com> (Pierfranco Minsenti's message of "Sun, 25 Sep 2011 19:30:29 +0200")
Pierfranco Minsenti <pierfranco.minsenti@gmail.com> writes:
> Hello,
>
>
> I would like to change how hyperlinks are exported from org mode to
> LaTeX.
> Infact now links are exported as a couple of \href but I've found out
> that in the case of long URLs it is impossible to have them broken
> properly in different lines using in the latex file commands such as
> \usepackage{breakurl} becasue this and other similar strategies don't
> work with \href
>
> So that's why I'd like to export links as \url and obviously not as a
> couple but as single instance.
>
> Does anybody knows how to obtain it in org mode?
Under M-x customize-group RET org-latex RET
you will find
,----[ C-h v org-export-latex-href-format RET ]
| org-export-latex-href-format is a variable defined in `org-latex.el'.
| Its value is "\\href{%s}{%s}"
|
| Documentation:
| A printf format string to be applied to href links.
| The format must contain either two %s instances or just one.
| If it contains two %s instances, the first will be filled with
| the link, the second with the link description. If it contains
| only one, the %s will be filled with the link.
|
| You can customize this variable.
|
| [back]
`----
> Thank you in advance for your help.
>
> Pierfranco
>
>
>
--
next prev parent reply other threads:[~2011-09-25 17:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-25 17:30 How to change latex export of links from \href to \url ? Pierfranco Minsenti
2011-09-25 17:54 ` Jambunathan K [this message]
2011-09-25 17:56 ` Jambunathan K
2011-09-25 18:23 ` Pierfranco Minsenti
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=81mxdswls7.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=pierfranco.minsenti@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).