From mboxrd@z Thu Jan  1 00:00:00 1970
From: Martin Weigele <martin@weigele.de>
Subject: Re: Solution for very long hyperlinks when exporting to latex?
Date: Wed, 01 Oct 2014 02:29:23 +0200
Message-ID: <3892684.7xxkJYO0Cx@sirius>
References: <52F2F3C7.6060609@dickson.st> <41546244.GAid7nNslZ@sirius>
	<87bnpw8wte.fsf@gmx.us>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57000)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <martin@weigele.de>) id 1XZ7nP-0004kH-E6
	for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:29:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <martin@weigele.de>) id 1XZ7nJ-0002Z3-Tu
	for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:29:31 -0400
Received: from smtprelay03.ispgateway.de ([80.67.29.7]:37403)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <martin@weigele.de>) id 1XZ7nJ-0002Xn-Jn
	for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 20:29:25 -0400
In-Reply-To: <87bnpw8wte.fsf@gmx.us>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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 <rasmus@gmx.us>

That is exactly the problem, Rasmus... I am lost in the complexity of o=
bject=20
and metalevels and don't really know where to start reducing it. Except=
 for=20
the naughty monster urls everything else works fine. Thanks anyway. :)=20=


Good night, Martin

Am Mittwoch, 1. Oktober 2014, 02:20:45 schrieb Rasmus:
> Martin Weigele <martin@weigele.de> 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 von =
LaTeX2e
> > #+LATEX_HEADER:}
> > #+LATEX_HEADER:\usepackage{%
> > #+LATEX_HEADER:  ellipsis, % Korrigiert den Wei=C3=9Fraum um Auslas=
sungspunkte
> > #+LATEX_HEADER:  ragged2e, % Erm=C3=B6glicht Flattersatz mit Silben=
trennung
> > #+LATEX_HEADER: marginnote,% F=C3=BCr bessere Randnotizen mit \marg=
innote statt
> > #+LATEX_HEADER:            % \marginline
> > #+LATEX_HEADER:}
> > #+LATEX_HEADER:\usepackage[tracking=3Dtrue]{microtype}%
> > #+LATEX_HEADER:            % Microtype ist einfach super, aber lese=
n Sie
> > #+LATEX_HEADER:            % unbedingt die Anleitung um das Folgend=
e 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, mor=
everb}
> > #+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 <martin@weigele.de> writes:
> >> > Hi Rasmus, thank you very much, Wasn't really aware of texdoc <p=
ackage>
> >> > 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=
.
> >> > However,
> >> > 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=
, 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 with option bre=
aklinks
> >> > (which is perhaps just passed on to url as 'hyphens').
> >>=20
> >> Please share a complete example as org (that produces the quirk fr=
om
> >> emacs -q) or as tex.
> >>=20
> >> A unsatisfactory solution is url shortener.
> >>=20
> >> =E2=80=94Rasmus

--=20
Dr. Martin Weigele, Kapellenweg 32, 53179 Bonn, Germany
ph. (+49)(0)228 2894468 office - fax (+49)(0)228 2894446
ph. (+49)(0)228 2893997 privat - mobil (+49)(0)177 4196 515
mailto:martin@weigele.de - http://www.weigele.de