Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-10-03 Thread Martin Weigele
Problem solved by uncommenting the [NO-DEFAULT-PACKAGES] and [EXTRA] 
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. Except 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 mar...@weigele.de writes:
   There you go. Thx.
  
  Please send a minimal example that displays the undesired behavior :)
  
   #+TITLE: Blah
   #+AUTHOR: Me und Du
   
   #+OPTIONS:   H:20
   #+LATEX_CLASS: scrbook
   
   #+LATEX_CLASS_OPTIONS:
   [paper=17cm:22cm,DIV=calc,BCOR=12mm,titlepage,11pt,scrhack]
   
   #+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ßraum um
   Auslassungspunkte
   #+LATEX_HEADER:  ragged2e, % Ermöglicht Flattersatz mit Silbentrennung
   #+LATEX_HEADER: marginnote,% Für bessere Randnotizen mit \marginnote
   statt
   #+LATEX_HEADER:% \marginline
   #+LATEX_HEADER:}
   #+LATEX_HEADER:\usepackage[tracking=true]{microtype}%
   #+LATEX_HEADER:% Microtype ist einfach super, aber 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, ifthen,
   moreverb}
   #+LATEX_HEADER: \usepackage{gnuplottex}
   #+LATEX_HEADER: \usepackage{tikz}
   #+LATEX_HEADER: \usepackage{gnuplot-lua-tikz}
   #+LATEX_HEADER: \hypersetup{
   #+LATEX_HEADER:  breaklinks=true,
   #+LATEX_HEADER:  pdfkeywords={},
   #+LATEX_HEADER:  pdfsubject={},
   #+LATEX_HEADER:  pdfcreator={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
   
  '(scrbook
  
  \\documentclass{scrbook}
   
   ;; [NO-DEFAULT-PACKAGES]
   ;; [EXTRA]
   
(\\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 mar...@weigele.de writes:
Hi Rasmus, thank you very much, Wasn't really aware of texdoc
package
this is great. A lot improvement since the old days... :)
   
   TL is astonishing software.
   

[O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread Martin Weigele
Hi,

very happy with orgmode but rather desperate these days trying to get very 
long url hyperlinks in footnotes to typeset as line-broken-up links after 
latex export. I have tried the hints available on texstack etc., but none of 
the proposed latex methods work. Not even manual \- produces a reasonable 
result. I have tried with hyperref switched on and off in the emacs org 
exporter configuration, and with the linebreak option of hyperref which is 
not even accepted depending on the exporter setting.

I am using org-version 8.2.4, emacs 24.3.1, texlive 2014, scrbook (added this 
style to .emacs which works fine otherwise). I am not sure if it has to do 
with the exporter or with latex/koma script only, or maybe all three of them.

Surely someone must have come across this problem and may be able to provide a 
hint? 

Thanks, Martin



Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread Rasmus
Hi Martin,

Martin Weigele mar...@weigele.de writes:

 very happy with orgmode but rather desperate these days trying to get very 
 long url hyperlinks in footnotes to typeset as line-broken-up links after 
 latex export. I have tried the hints available on texstack etc., but none of 
 the proposed latex methods work. Not even manual \- produces a reasonable 
 result. I have tried with hyperref switched on and off in the emacs org 
 exporter configuration, and with the linebreak option of hyperref which is 
 not even accepted depending on the exporter setting.

 I am using org-version 8.2.4, emacs 24.3.1, texlive 2014, scrbook (added this 
 style to .emacs which works fine otherwise). I am not sure if it has to do 
 with the exporter or with latex/koma script only, or maybe all three of them.

 Surely someone must have come across this problem and may be able to provide 
 a 
 hint? 

url.sy is usually pretty good a breaking urls.  Is the url wrapped in
\url{·} in your .tex file?  If no, you probably did something wrong.
If yes you should consult the url manual (texdoc url in your
terminal if you have TeXLive).  Section 5.2 and maybe section 6 could
be helpful.

Hope it helps,
Rasmus

-- 
You people at the NSA are becoming my new best friends!




Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread Martin Weigele
Hi Rasmus, thank you very much, Wasn't really aware of texdoc package this 
is great. A lot improvement since the old days... :)

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.

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 breaklinks (which is 
perhaps just passed on to url as 'hyphens').

Thx anyway,
Martin

Am Mittwoch, 1. Oktober 2014, 01:02:07 schrieb Rasmus:
 Hi Martin,
 
 Martin Weigele mar...@weigele.de writes:
  very happy with orgmode but rather desperate these days trying to get very
  long url hyperlinks in footnotes to typeset as line-broken-up links after
  latex export. I have tried the hints available on texstack etc., but none
  of the proposed latex methods work. Not even manual \- produces a
  reasonable result. I have tried with hyperref switched on and off in the
  emacs org exporter configuration, and with the linebreak option of
  hyperref which is not even accepted depending on the exporter setting.
  
  I am using org-version 8.2.4, emacs 24.3.1, texlive 2014, scrbook (added
  this style to .emacs which works fine otherwise). I am not sure if it has
  to do with the exporter or with latex/koma script only, or maybe all
  three of them.
  
  Surely someone must have come across this problem and may be able to
  provide a hint?
 
 url.sy is usually pretty good a breaking urls.  Is the url wrapped in
 \url{·} in your .tex file?  If no, you probably did something wrong.
 If yes you should consult the url manual (texdoc url in your
 terminal if you have TeXLive).  Section 5.2 and maybe section 6 could
 be helpful.
 
 Hope it helps,
 Rasmus

-- 
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:mar...@weigele.de - http://www.weigele.de




Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread Rasmus
Martin Weigele mar...@weigele.de writes:

 Hi Rasmus, thank you very much, Wasn't really aware of texdoc package this 
 is great. A lot improvement since the old days... :)

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_HEADER: \usepackage[hyphens]
 {url} I get an option clash with pdfpages, and if removed, with graphics.

 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 breaklinks (which is 
 perhaps just passed on to url as 'hyphens').

Please share a complete example as org (that produces the quirk from
emacs -q) or as tex.

A unsatisfactory solution is url shortener.

—Rasmus

-- 
Summon the Mothership!



Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread Martin Weigele
There you go. Thx.

#+TITLE: Blah
#+AUTHOR: Me und Du

#+OPTIONS:   H:20 
#+LATEX_CLASS: scrbook
#+LATEX_CLASS_OPTIONS: 
[paper=17cm:22cm,DIV=calc,BCOR=12mm,titlepage,11pt,scrhack]

#+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ßraum um Auslassungspunkte
#+LATEX_HEADER:  ragged2e, % Ermöglicht Flattersatz mit Silbentrennung
#+LATEX_HEADER: marginnote,% Für bessere Randnotizen mit \marginnote statt
#+LATEX_HEADER:% \marginline
#+LATEX_HEADER:}
#+LATEX_HEADER:\usepackage[tracking=true]{microtype}%
#+LATEX_HEADER:% Microtype ist einfach super, aber 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, ifthen, moreverb}
#+LATEX_HEADER: \usepackage{gnuplottex}
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usepackage{gnuplot-lua-tikz}
#+LATEX_HEADER: \hypersetup{
#+LATEX_HEADER:  breaklinks=true, 
#+LATEX_HEADER:  pdfkeywords={},
#+LATEX_HEADER:  pdfsubject={},
#+LATEX_HEADER:  pdfcreator={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
 '(scrbook
   \\documentclass{scrbook}
;; [NO-DEFAULT-PACKAGES]
;; [EXTRA]
   (\\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 mar...@weigele.de writes:
  Hi Rasmus, thank you very much, Wasn't really aware of texdoc package
  this is great. A lot improvement since the old days... :)
 
 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_HEADER:
  \usepackage[hyphens] {url} I get an option clash with pdfpages, and if
  removed, with graphics.
  
  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 breaklinks
  (which is perhaps just passed on to url as 'hyphens').
 
 Please share a complete example as org (that produces the quirk from
 emacs -q) or as tex.
 
 A unsatisfactory solution is url shortener.
 
 —Rasmus




Re: [O] Solution for very long hyperlinks when exporting to latex?

2014-09-30 Thread 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. Except 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 mar...@weigele.de writes:
  There you go. Thx.
 
 Please send a minimal example that displays the undesired behavior :)
 
  #+TITLE: Blah
  #+AUTHOR: Me und Du
  
  #+OPTIONS:   H:20
  #+LATEX_CLASS: scrbook
  
  #+LATEX_CLASS_OPTIONS:
  [paper=17cm:22cm,DIV=calc,BCOR=12mm,titlepage,11pt,scrhack]
  
  #+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ßraum um Auslassungspunkte
  #+LATEX_HEADER:  ragged2e, % Ermöglicht Flattersatz mit Silbentrennung
  #+LATEX_HEADER: marginnote,% Für bessere Randnotizen mit \marginnote statt
  #+LATEX_HEADER:% \marginline
  #+LATEX_HEADER:}
  #+LATEX_HEADER:\usepackage[tracking=true]{microtype}%
  #+LATEX_HEADER:% Microtype ist einfach super, aber 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, ifthen, moreverb}
  #+LATEX_HEADER: \usepackage{gnuplottex}
  #+LATEX_HEADER: \usepackage{tikz}
  #+LATEX_HEADER: \usepackage{gnuplot-lua-tikz}
  #+LATEX_HEADER: \hypersetup{
  #+LATEX_HEADER:  breaklinks=true,
  #+LATEX_HEADER:  pdfkeywords={},
  #+LATEX_HEADER:  pdfsubject={},
  #+LATEX_HEADER:  pdfcreator={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
  
   '(scrbook
   
 \\documentclass{scrbook}
  
  ;; [NO-DEFAULT-PACKAGES]
  ;; [EXTRA]
  
 (\\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 mar...@weigele.de writes:
   Hi Rasmus, thank you very much, Wasn't really aware of texdoc package
   this is great. A lot improvement since the old days... :)
  
  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_HEADER:
   \usepackage[hyphens] {url} I get an option clash with pdfpages, and if
   removed, with graphics.
   
   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 breaklinks
   (which is perhaps just passed on to url as 'hyphens').
  
  Please share a complete example as org (that produces the quirk from