Pierfranco Minsenti <pierfranco.minse...@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 > > > --