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: Fri, 03 Oct 2014 12:02:04 +0200 Message-ID: <1664500.k5V1IFGYQD@sirius> References: <52F2F3C7.6060609@dickson.st> <87bnpw8wte.fsf@gmx.us> <3892684.7xxkJYO0Cx@sirius> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart1444545.5Apd6KQLmt" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZzgk-0000Vo-HJ for emacs-orgmode@gnu.org; Fri, 03 Oct 2014 06:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZzge-0000m7-V5 for emacs-orgmode@gnu.org; Fri, 03 Oct 2014 06:02:14 -0400 Received: from smtprelay04.ispgateway.de ([80.67.29.8]:40954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZzge-0000lZ-Ed for emacs-orgmode@gnu.org; Fri, 03 Oct 2014 06:02:08 -0400 In-Reply-To: <3892684.7xxkJYO0Cx@sirius> 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 This is a multi-part message in MIME format. --nextPart1444545.5Apd6KQLmt Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Problem solved by uncommenting the "[NO-DEFAULT-PACKAGES]" and "[EXTRA]= "=20 parts (see elisp part below) in the emacs lisp initialisation of .emacs= . Am Mittwoch, 1. Oktober 2014, 02:29:23 schrieb Martin Weigele: > That is exactly the problem, Rasmus... I am lost in the complexity of= object > and metalevels and don't really know where to start reducing it. Exce= pt for > the naughty monster urls everything else works fine. Thanks anyway. := ) >=20 > Good night, Martin >=20 > Am Mittwoch, 1. Oktober 2014, 02:20:45 schrieb Rasmus: > > Martin Weigele writes: > > > There you go. Thx. > >=20 > > Please send a minimal example that displays the undesired behavior = :) > >=20 > > > #+TITLE: Blah > > > #+AUTHOR: Me und Du > > >=20 > > > #+OPTIONS: H:20 > > > #+LATEX_CLASS: scrbook > > >=20 > > > #+LATEX_CLASS_OPTIONS: > > > [paper=3D17cm:22cm,DIV=3Dcalc,BCOR=3D12mm,titlepage,11pt,scrhack]= > > >=20 > > > #+LATEX_HEADER: \usepackage[english,ngerman]{babel} > > > #+LATEX_HEADER:\usepackage{ > > > #+LATEX_HEADER: fixltx2e % Verbessert einige Kernkompetenzen vo= n > > > LaTeX2e > > > #+LATEX_HEADER:} > > > #+LATEX_HEADER:\usepackage{% > > > #+LATEX_HEADER: ellipsis, % Korrigiert den Wei=C3=9Fraum um > > > Auslassungspunkte > > > #+LATEX_HEADER: ragged2e, % Erm=C3=B6glicht Flattersatz mit Silb= entrennung > > > #+LATEX_HEADER: marginnote,% F=C3=BCr bessere Randnotizen mit \ma= rginnote > > > statt > > > #+LATEX_HEADER: % \marginline > > > #+LATEX_HEADER:} > > > #+LATEX_HEADER:\usepackage[tracking=3Dtrue]{microtype}% > > > #+LATEX_HEADER: % Microtype ist einfach super, aber le= sen Sie > > > #+LATEX_HEADER: % unbedingt die Anleitung um das Folge= nde zu > > > #+LATEX_HEADER: % verstehen. > > > #+LATEX_HEADER: \usepackage{mathptmx, enumerate, > > > setspace,alnumsec}\alnumsecstyle{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, > > > moreverb} > > > #+LATEX_HEADER: \usepackage{gnuplottex} > > > #+LATEX_HEADER: \usepackage{tikz} > > > #+LATEX_HEADER: \usepackage{gnuplot-lua-tikz} > > > #+LATEX_HEADER: \hypersetup{ > > > #+LATEX_HEADER: breaklinks=3Dtrue, > > > #+LATEX_HEADER: pdfkeywords=3D{}, > > > #+LATEX_HEADER: pdfsubject=3D{}, > > > #+LATEX_HEADER: pdfcreator=3D{Emacs Org-mode version }} > > >=20 > > > #+TEXT: [TABLE-OF-CONTENTS] > > >=20 > > > ----------------------------- > > >=20 > > > (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 > > >=20 > > > '("scrartcl" > > > =20 > > > "\\documentclass{scrartcl}" > > >=20 > > > ;; [NO-DEFAULT-PACKAGES] > > > ;; [EXTRA]" > > >=20 > > > ("\\section{%s}" . "\\section*{%s}") > > > ("\\subsection{%s}" . "\\subsection*{%s}") > > > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > > > ("\\paragraph{%s}" . "\\paragraph*{%s}") > > > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > > >=20 > > > (add-to-list 'org-latex-classes > > >=20 > > > =09 '("scrbook" > > > =09 =20 > > > "\\documentclass{scrbook}" > > >=20 > > > ;; [NO-DEFAULT-PACKAGES] > > > ;; [EXTRA]" > > >=20 > > > =09 ("\\chapter{%s}" . "\\chapter*{%s}") > > > =09 =20 > > > ("\\section{%s}" . "\\section*{%s}") > > > ("\\subsection{%s}" . "\\subsection*{%s}") > > > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > > > ("\\paragraph{%s}" . "\\paragraph*{%s}") > > > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > > >=20 > > > ;; active Babel languages > > > (org-babel-do-load-languages > > >=20 > > > 'org-babel-load-languages > > > '((gnuplot . t))) > > >=20 > > > ;; add additional languages with '((language . t))) > > > (custom-set-variables > > >=20 > > > ;; 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)) > > >=20 > > > (custom-set-faces > > >=20 > > > ;; 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. > > > ) > > >=20 > > > ---------------------------------------------------- > > >=20 > > > 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. > > >> --nextPart1444545.5Apd6KQLmt Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Pro= blem solved by uncommenting the "[NO-DEFAULT-PACKAGES]" and &= quot;[EXTRA]" parts (see elisp part below) in the emacs lisp initi= alisation of .emacs.

 

Am = Mittwoch, 1. Oktober 2014, 02:29:23 schrieb Martin Weigele:

>= ; That is exactly the problem, Rasmus... I am lost in the complexity of= object

>= ; and metalevels and don't really know where to start reducing it. Exce= pt for

>= ; the naughty monster urls everything else works fine. Thanks anyway. := )

>= ;

>= ; Good night, Martin

>= ;

>= ; Am Mittwoch, 1. Oktober 2014, 02:20:45 schrieb Rasmus:

>= ; > Martin Weigele <martin@weigele.de> writes:

>= ; > > There you go. Thx.

>= ; >

>= ; > Please send a minimal example that displays the undesired behavi= or :)

>= ; >

>= ; > > #+TITLE: Blah

>= ; > > #+AUTHOR: Me und Du

>= ; > >

>= ; > > #+OPTIONS: H:20

>= ; > > #+LATEX_CLASS: scrbook

>= ; > >

>= ; > > #+LATEX_CLASS_OPTIONS:

>= ; > > [paper=3D17cm:22cm,DIV=3Dcalc,BCOR=3D12mm,titlepage,11pt,sc= rhack]

>= ; > >

>= ; > > #+LATEX_HEADER: \usepackage[english,ngerman]{babel}

>= ; > > #+LATEX_HEADER:\usepackage{

>= ; > > #+LATEX_HEADER: fixltx2e % Verbessert einige Kernkompeten= zen von

>= ; > > LaTeX2e

>= ; > > #+LATEX_HEADER:}

>= ; > > #+LATEX_HEADER:\usepackage{%

>= ; > > #+LATEX_HEADER: ellipsis, % Korrigiert den Wei=C3=9Fraum u= m

>= ; > > Auslassungspunkte

>= ; > > #+LATEX_HEADER: ragged2e, % Erm=C3=B6glicht Flattersatz mi= t Silbentrennung

>= ; > > #+LATEX_HEADER: marginnote,% F=C3=BCr bessere Randnotizen m= it \marginnote

>= ; > > statt

>= ; > > #+LATEX_HEADER: % \marginline

>= ; > > #+LATEX_HEADER:}

>= ; > > #+LATEX_HEADER:\usepackage[tracking=3Dtrue]{microtype}%

=

>= ; > > #+LATEX_HEADER: % Microtype ist einfach super, a= ber lesen Sie

>= ; > > #+LATEX_HEADER: % unbedingt die Anleitung um das= Folgende zu

>= ; > > #+LATEX_HEADER: % verstehen.

>= ; > > #+LATEX_HEADER: \usepackage{mathptmx, enumerate,

>= ; > > setspace,alnumsec}\alnumsecstyle{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, ift= hen,

>= ; > > moreverb}

>= ; > > #+LATEX_HEADER: \usepackage{gnuplottex}

>= ; > > #+LATEX_HEADER: \usepackage{tikz}

>= ; > > #+LATEX_HEADER: \usepackage{gnuplot-lua-tikz}

>= ; > > #+LATEX_HEADER: \hypersetup{

>= ; > > #+LATEX_HEADER: breaklinks=3Dtrue,

>= ; > > #+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" . "ht= tp://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}" . "\\subs= ection*{%s}")

>= ; > > ("\\subsubsection{%s}" . "\\s= ubsubsection*{%s}")

>= ; > > ("\\paragraph{%s}" . "\\parag= raph*{%s}")

>= ; > > ("\\subparagraph{%s}" . "\\su= bparagraph*{%s}")))

>= ; > >

>= ; > > (add-to-list 'org-latex-classes

>= ; > >

>= ; > > =09 '("scrbook"

>= ; > > =09

>= ; > > "\\documentclass{scrbook}"

>= ; > >

>= ; > > ;; [NO-DEFAULT-PACKAGES]

>= ; > > ;; [EXTRA]"

>= ; > >

>= ; > > =09 ("\\chapter{%s}" . "\\chapter*{%s}= ")

>= ; > > =09

>= ; > > ("\\section{%s}" . "\\section= *{%s}")

>= ; > > ("\\subsection{%s}" . "\\subs= ection*{%s}")

>= ; > > ("\\subsubsection{%s}" . "\\s= ubsubsection*{%s}")

>= ; > > ("\\paragraph{%s}" . "\\parag= raph*{%s}")

>= ; > > ("\\subparagraph{%s}" . "\\su= bparagraph*{%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 car= eful.

>= ; > > ;; 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 car= eful.

>= ; > > ;; 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 <martin@weigele.de> writes:

>= ; > >> > Hi Rasmus, thank you very much, Wasn't really awar= e of texdoc

>= ; > >> > <package>

>= ; > >> > this is great. A lot improvement since the old day= s... :)

>= ; > >>

>= ; > >> TL is astonishing software.

>= ; > >>

>= ; > >> > Yes \url{...} is being produced by the exporter in= the footnotes.

>= ; > >> > However,

>= ; > >> > when I try to set the values by means of #+LATEX_H= EADER:

>= ; > >> > \usepackage[hyphens] {url} I get an option clash w= ith pdfpages, and

>= ; > >> > if

>= ; > >> > removed, with graphics.

>= ; > >> >

>= ; > >> > Also I found the information that hyperref calls t= he package url, but

>= ; > >> > it

>= ; > >> > is

>= ; > >> > not clear to me how to influence this behaviour in= time in the

>= ; > >> > exporter.

>= ; > >> > The story is similar if I try to modify hyperref w= ith option

>= ; > >> > breaklinks

>= ; > >> > (which is perhaps just passed on to url as 'hyphen= s').

>= ; > >>

>= ; > >> Please share a complete example as org (that produces t= he quirk from

>= ; > >> emacs -q) or as tex.

>= ; > >>

>= ; > >> A unsatisfactory solution is url shortener.

>= ; > >>

>= ; > >> =E2=80=94Rasmus

 

 

--nextPart1444545.5Apd6KQLmt--