emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to change latex export of links from \href to \url ?
@ 2011-09-25 17:30 Pierfranco Minsenti
  2011-09-25 17:54 ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: Pierfranco Minsenti @ 2011-09-25 17:30 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

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?

Thank you in advance for your help.

Pierfranco

[-- Attachment #2: Type: text/html, Size: 768 bytes --]

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

* Re: How to change latex export of links from \href to \url ?
  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
  2011-09-25 17:56   ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2011-09-25 17:54 UTC (permalink / raw)
  To: Pierfranco Minsenti; +Cc: emacs-orgmode

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

-- 

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

* Re: How to change latex export of links from \href to \url ?
  2011-09-25 17:54 ` Jambunathan K
@ 2011-09-25 17:56   ` Jambunathan K
  2011-09-25 18:23     ` Pierfranco Minsenti
  0 siblings, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2011-09-25 17:56 UTC (permalink / raw)
  To: Pierfranco Minsenti; +Cc: emacs-orgmode


Low on caffeine :-)

> Under M-x customize-group RET org-export-latex RET
                                    ^^^^^^
                                    missed this 


-- 

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

* Re: How to change latex export of links from \href to \url ?
  2011-09-25 17:56   ` Jambunathan K
@ 2011-09-25 18:23     ` Pierfranco Minsenti
  0 siblings, 0 replies; 4+ messages in thread
From: Pierfranco Minsenti @ 2011-09-25 18:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

Thank you. It works.
pierfranco

2011/9/25 Jambunathan K <kjambunathan@gmail.com>

>
> Low on caffeine :-)
>
> > Under M-x customize-group RET org-export-latex RET
>                                    ^^^^^^
>                                    missed this
>
>
> --
>

[-- Attachment #2: Type: text/html, Size: 577 bytes --]

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

end of thread, other threads:[~2011-09-25 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-09-25 17:56   ` Jambunathan K
2011-09-25 18:23     ` Pierfranco Minsenti

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