From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Weigele Subject: Re: Solution for very long hyperlinks when exporting to latex? Date: Wed, 01 Oct 2014 02:17:54 +0200 Message-ID: <41546244.GAid7nNslZ@sirius> References: <52F2F3C7.6060609@dickson.st> <7406529.0UkPJmCLV2@sirius> <87oatwhcz1.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ7cJ-0003CE-Ad for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:18:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ7cD-0004c3-JW for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:18:03 -0400 Received: from smtprelay03.ispgateway.de ([80.67.31.26]:42894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ7cD-0004bi-A2 for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:17:57 -0400 In-Reply-To: <87oatwhcz1.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Rasmus There you go. Thx. #+TITLE: Blah #+AUTHOR: Me und Du #+OPTIONS: H:20=20 #+LATEX_CLASS: scrbook #+LATEX_CLASS_OPTIONS: [paper=3D17cm:22cm,DIV=3Dcalc,BCOR=3D12mm,titlep= age,11pt,scrhack] #+LATEX_HEADER: \usepackage[english,ngerman]{babel} #+LATEX_HEADER:\usepackage{ #+LATEX_HEADER: fixltx2e % Verbessert einige Kernkompetenzen von LaTe= X2e #+LATEX_HEADER:} #+LATEX_HEADER:\usepackage{%=20 #+LATEX_HEADER: ellipsis, % Korrigiert den Wei=C3=9Fraum um Auslassung= spunkte #+LATEX_HEADER: ragged2e, % Erm=C3=B6glicht Flattersatz mit Silbentren= nung #+LATEX_HEADER: marginnote,% F=C3=BCr bessere Randnotizen mit \marginno= te statt #+LATEX_HEADER: % \marginline #+LATEX_HEADER:} #+LATEX_HEADER:\usepackage[tracking=3Dtrue]{microtype}% #+LATEX_HEADER: % Microtype ist einfach super, aber lesen Si= e #+LATEX_HEADER: % unbedingt die Anleitung um das Folgende zu= #+LATEX_HEADER: % verstehen. #+LATEX_HEADER: \usepackage{mathptmx, enumerate, setspace,alnumsec}\aln= umsecstyle{LRald} #+LATEX_HEADER: \pagenumbering{roman} #+LATEX_HEADER: \usepackage[hyphens]{url} #+LATEX_HEADER: \usepackage{pdfpages} #+LATEX_HEADER: \usepackage{graphics, color} #+LATEX_HEADER: \usepackage{xcolor} #+LATEX_HEADER: \usepackage{graphicx, latexsym, keyval, ifthen, morever= b} #+LATEX_HEADER: \usepackage{gnuplottex} #+LATEX_HEADER: \usepackage{tikz} #+LATEX_HEADER: \usepackage{gnuplot-lua-tikz} #+LATEX_HEADER: \hypersetup{ #+LATEX_HEADER: breaklinks=3Dtrue,=20 #+LATEX_HEADER: pdfkeywords=3D{}, #+LATEX_HEADER: pdfsubject=3D{}, #+LATEX_HEADER: pdfcreator=3D{Emacs Org-mode version }} #+TEXT: [TABLE-OF-CONTENTS] ----------------------------- (require 'package) (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)= (require 'ox-odt) (require 'org-latex) (setq org-export-latex-listings t) (add-to-list 'org-latex-classes '("scrartcl" "\\documentclass{scrartcl}" ;; [NO-DEFAULT-PACKAGES] ;; [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) (add-to-list 'org-latex-classes =09 '("scrbook" "\\documentclass{scrbook}" ;; [NO-DEFAULT-PACKAGES] ;; [EXTRA]" =09 ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ;; active Babel languages (org-babel-do-load-languages 'org-babel-load-languages '((gnuplot . t))) ;; add additional languages with '((language . t))) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-latex-with-hyperref nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ---------------------------------------------------- Am Mittwoch, 1. Oktober 2014, 02:04:34 schrieb Rasmus: > Martin Weigele writes: > > Hi Rasmus, thank you very much, Wasn't really aware of texdoc > > this is great. A lot improvement since the old days... :) >=20 > TL is astonishing software. >=20 > > Yes \url{...} is being produced by the exporter in the footnotes. H= owever, > > when I try to set the values by means of #+LATEX_HEADER: > > \usepackage[hyphens] {url} I get an option clash with pdfpages, and= if > > removed, with graphics. > >=20 > > Also I found the information that hyperref calls the package url, b= ut it > > is > > not clear to me how to influence this behaviour in time in the expo= rter. > > The story is similar if I try to modify hyperref with option breakl= inks > > (which is perhaps just passed on to url as 'hyphens'). >=20 > Please share a complete example as org (that produces the quirk from > emacs -q) or as tex. >=20 > A unsatisfactory solution is url shortener. >=20 > =E2=80=94Rasmus