emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
@ 2014-02-06  2:30 Jason Lewis
  2014-02-06  8:59 ` Bastien
  0 siblings, 1 reply; 17+ messages in thread
From: Jason Lewis @ 2014-02-06  2:30 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 3657 bytes --]

Hi,

when using the Shift-<enter> feature in a table to copy values down, it
fails to place the cursor where you expect it to if the previous column
has a fixed width and the contents of the cell is truncated.

Steps to reproduce:

enter the following org table:

|   | <7>     |   |
|---+---------+---|
| 4 | podsdfsfsadastatoes | 1 |
| 5 | podsdfsfsadastatoes | 2 |
| 6 |         |   |

press C-c C-c to ensure the second column is showing abbreviated.

place cursor on the number 1,
Shift-<enter> copies values to the next line but leaves the cursor in
the wrong position, at the end of the string in the row that starts with 5

if you remove the <7> and repeat the experiment, the cursor moves down
the third column as you expect it to.

I expect it should work the same whether or not the previous column has
truncated contents.

Emacs  : GNU Emacs 24.3.50.2 (i686-pc-cygwin)
 of 2014-01-15 on jade
Package: Org-mode version 8.2.5h (8.2.5h-6-g8e1386-elpa @
/cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)

current state:
==============
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-html-format-inlinetask-function 'ignore
 outline-minor-mode-hook '(mediawiki-outline-magic-keys)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-html-format-headline-function 'ignore
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-default-notes-file "~/Dropbox/org/todo.org"
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-blank-before-new-entry nil
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook
org-show-block-all append local]
                   5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook
org-babel-show-result-all append
                    local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 (lambda nil (flyspell-mode -1)))
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-directory "~/Dropbox/org"
 org-from-is-user-regexp "\\<jason\\>"
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-files '("~/Dropbox/org/todo.org" "~/Dropbox/org"
"~/Dropbox/org/todo.org")
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-inlinetask-function 'ignore
 org-M-RET-may-split-line '((default))
 org-confirm-shell-link-function 'yes-or-no-p
 )



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-02-06  2:30 Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)] Jason Lewis
@ 2014-02-06  8:59 ` Bastien
  2014-02-25 10:46   ` Michael Brand
  2014-09-30 22:24   ` Solution for very long hyperlinks when exporting to latex? Martin Weigele
  0 siblings, 2 replies; 17+ messages in thread
From: Bastien @ 2014-02-06  8:59 UTC (permalink / raw)
  To: Jason Lewis; +Cc: org mode

Hi Jason,

Jason Lewis <jason@dickson.st> writes:

> when using the Shift-<enter> feature in a table to copy values down, it
> fails to place the cursor where you expect it to if the previous column
> has a fixed width and the contents of the cell is truncated.

Fixed in maint, thanks for reporting this!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-02-06  8:59 ` Bastien
@ 2014-02-25 10:46   ` Michael Brand
  2014-03-01  9:02     ` Bastien
  2014-03-20 14:15     ` Bastien
  2014-09-30 22:24   ` Solution for very long hyperlinks when exporting to latex? Martin Weigele
  1 sibling, 2 replies; 17+ messages in thread
From: Michael Brand @ 2014-02-25 10:46 UTC (permalink / raw)
  To: Bastien; +Cc: Jason Lewis, org mode

Hi Bastien

On Thu, Feb 6, 2014 at 9:59 AM, Bastien <bzg@gnu.org> wrote:
> Jason Lewis <jason@dickson.st> writes:
>
>> when using the Shift-<enter> feature in a table to copy values down, it
>> fails to place the cursor where you expect it to if the previous column
>> has a fixed width and the contents of the cell is truncated.
>
> Fixed in maint, thanks for reporting this!

The related commit

    commit 323c7b3de2211a7d61bf0c71c6f5923b1ea62297
    Author: Bastien Guerry <bzg@altern.org>
    Date:   Thu Feb 6 09:58:17 2014 +0100

        org-table.el: Fix bugs about cursor repositioning

        * org-table.el (org-table-copy-down)
        (org-table-find-dataline, org-table-move-row)
        (org-table-insert-hline, org-table-kill-row): Use
        `org-move-to-column' with the IGNORE-INVISIBLE arg set to `t',
        so that abbreviated rows don't interfer with setting the
        cursor back at the correct position.

        Thanks to Jason Lewis for reporting one of these bugs.

is a regression for Shift-<enter> on 1 in the table below when
hyperlinks are configured to be literal:

| [[http://www.orgmode.org]] | 1 |   |
| [[http://www.orgmode.org]] |   |   |
| [[http://www.orgmode.org]] |   |   |

Michael

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-02-25 10:46   ` Michael Brand
@ 2014-03-01  9:02     ` Bastien
  2014-03-01 10:39       ` Michael Brand
  2014-03-20 14:15     ` Bastien
  1 sibling, 1 reply; 17+ messages in thread
From: Bastien @ 2014-03-01  9:02 UTC (permalink / raw)
  To: Michael Brand; +Cc: Jason Lewis, org mode

Hi Michael,

Michael Brand <michael.ch.brand@gmail.com> writes:

> is a regression for Shift-<enter> on 1 in the table below when
> hyperlinks are configured to be literal:
>
> | [[http://www.orgmode.org]] | 1 |   |
> | [[http://www.orgmode.org]] |   |   |
> | [[http://www.orgmode.org]] |   |   |

You mean when `bracket' is not part of `org-activate-links'?

I can reproduce the problem... but it goes away when I instrument
`org-move-to-column' for debugging.

I'll have to digg deeper -- if you have more information on your
side, please share.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-03-01  9:02     ` Bastien
@ 2014-03-01 10:39       ` Michael Brand
  2014-03-01 11:13         ` Bastien
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Brand @ 2014-03-01 10:39 UTC (permalink / raw)
  To: Bastien; +Cc: Jason Lewis, org mode

Hi Bastien

On Sat, Mar 1, 2014 at 10:02 AM, Bastien <bzg@gnu.org> wrote:
> Michael Brand <michael.ch.brand@gmail.com> writes:
>
>> is a regression for Shift-<enter> on 1 in the table below when
>> hyperlinks are configured to be literal:
>>
>> | [[http://www.orgmode.org]] | 1 |   |
>> | [[http://www.orgmode.org]] |   |   |
>> | [[http://www.orgmode.org]] |   |   |
>
> You mean when `bracket' is not part of `org-activate-links'?

I don't know if and how the variable org-activate-links is related. I
used the function org-toggle-link-display or the menu to get the state
with the variable org-descriptive-links being nil which is for
"display the full links literally".

Michael

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-03-01 10:39       ` Michael Brand
@ 2014-03-01 11:13         ` Bastien
  2014-03-01 13:58           ` Michael Brand
  0 siblings, 1 reply; 17+ messages in thread
From: Bastien @ 2014-03-01 11:13 UTC (permalink / raw)
  To: Michael Brand; +Cc: Jason Lewis, org mode

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

Hi Michael,

Michael Brand <michael.ch.brand@gmail.com> writes:

> I don't know if and how the variable org-activate-links is related. I
> used the function org-toggle-link-display or the menu to get the state
> with the variable org-descriptive-links being nil which is for
> "display the full links literally".

I see.  The following patch fixes it but it's just a quick try,
I need to review possible side-effects more carefully.  In the
meantime, if you can confirm it works for you, that'd help.

Thanks,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-move-to-column.patch --]
[-- Type: text/x-diff, Size: 729 bytes --]

diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 1553e4f..9837e13 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -344,9 +344,12 @@ Works on both Emacs and XEmacs."
     (indent-line-to column)))
 
 (defun org-move-to-column (column &optional force buffer ignore-invisible)
-  (let ((buffer-invisibility-spec ignore-invisible))
+  (let ((buffer-invisibility-spec
+	 (and ignore-invisible
+	      (member '(org-link) buffer-invisibility-spec))))
     (if (featurep 'xemacs)
-	(org-xemacs-without-invisibility (move-to-column column force buffer))
+	(org-xemacs-without-invisibility
+	 (move-to-column column force buffer))
       (move-to-column column force))))
 
 (defun org-get-x-clipboard-compat (value)

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-03-01 11:13         ` Bastien
@ 2014-03-01 13:58           ` Michael Brand
  2014-03-12 18:42             ` Bastien
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Brand @ 2014-03-01 13:58 UTC (permalink / raw)
  To: Bastien; +Cc: Jason Lewis, org mode

Hi Bastien

On Sat, Mar 1, 2014 at 12:13 PM, Bastien <bzg@gnu.org> wrote:
> I see.  The following patch fixes it but it's just a quick try,
> I need to review possible side-effects more carefully.  In the
> meantime, if you can confirm it works for you, that'd help.

The patch works, thank you. I'll continue to use it.

Michael

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-03-01 13:58           ` Michael Brand
@ 2014-03-12 18:42             ` Bastien
  0 siblings, 0 replies; 17+ messages in thread
From: Bastien @ 2014-03-12 18:42 UTC (permalink / raw)
  To: Michael Brand; +Cc: Jason Lewis, org mode

Hi Michael,

Michael Brand <michael.ch.brand@gmail.com> writes:

> On Sat, Mar 1, 2014 at 12:13 PM, Bastien <bzg@gnu.org> wrote:
>> I see.  The following patch fixes it but it's just a quick try,
>> I need to review possible side-effects more carefully.  In the
>> meantime, if you can confirm it works for you, that'd help.
>
> The patch works, thank you. I'll continue to use it.

I've now applied this patch, thanks for testing it so far.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-02-25 10:46   ` Michael Brand
  2014-03-01  9:02     ` Bastien
@ 2014-03-20 14:15     ` Bastien
  2014-03-20 16:00       ` Michael Brand
  1 sibling, 1 reply; 17+ messages in thread
From: Bastien @ 2014-03-20 14:15 UTC (permalink / raw)
  To: Michael Brand; +Cc: Jason Lewis, org mode

Hi Michael,

I fixed this again in maint, please let me know if it's now okay for
you.  Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
  2014-03-20 14:15     ` Bastien
@ 2014-03-20 16:00       ` Michael Brand
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Brand @ 2014-03-20 16:00 UTC (permalink / raw)
  To: Bastien; +Cc: org mode

Hi Bastien

On Thu, Mar 20, 2014 at 3:15 PM, Bastien <bzg@gnu.org> wrote:
> I fixed this again in maint, please let me know if it's now okay for
> you.  Thanks,

Yes, also release_8.2.5h-809-g613333d still solves my use case with
literal links in a table, thank you. I tested only GNU Emacs and can
not tell for XEmacs.

Michael

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Solution for very long hyperlinks when exporting to latex?
  2014-02-06  8:59 ` Bastien
  2014-02-25 10:46   ` Michael Brand
@ 2014-09-30 22:24   ` Martin Weigele
  2014-09-30 23:02     ` Rasmus
  1 sibling, 1 reply; 17+ messages in thread
From: Martin Weigele @ 2014-09-30 22:24 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
  2014-09-30 22:24   ` Solution for very long hyperlinks when exporting to latex? Martin Weigele
@ 2014-09-30 23:02     ` Rasmus
  2014-09-30 23:51       ` Martin Weigele
  0 siblings, 1 reply; 17+ messages in thread
From: Rasmus @ 2014-09-30 23:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi Martin,

Martin Weigele <martin@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!

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
  2014-09-30 23:02     ` Rasmus
@ 2014-09-30 23:51       ` Martin Weigele
  2014-10-01  0:04         ` Rasmus
  0 siblings, 1 reply; 17+ messages in thread
From: Martin Weigele @ 2014-09-30 23:51 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Rasmus

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
  2014-09-30 23:51       ` Martin Weigele
@ 2014-10-01  0:04         ` Rasmus
  2014-10-01  0:17           ` Martin Weigele
  0 siblings, 1 reply; 17+ messages in thread
From: Rasmus @ 2014-10-01  0:04 UTC (permalink / raw)
  To: martin; +Cc: emacs-orgmode

Martin Weigele <martin@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!

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
  2014-10-01  0:04         ` Rasmus
@ 2014-10-01  0:17           ` Martin Weigele
       [not found]             ` <87bnpw8wte.fsf@gmx.us>
  0 siblings, 1 reply; 17+ messages in thread
From: Martin Weigele @ 2014-10-01  0:17 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Rasmus

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 <martin@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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
       [not found]             ` <87bnpw8wte.fsf@gmx.us>
@ 2014-10-01  0:29               ` Martin Weigele
  2014-10-03 10:02                 ` Martin Weigele
  0 siblings, 1 reply; 17+ messages in thread
From: Martin Weigele @ 2014-10-01  0:29 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Rasmus

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 <martin@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 <martin@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

-- 
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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Solution for very long hyperlinks when exporting to latex?
  2014-10-01  0:29               ` Martin Weigele
@ 2014-10-03 10:02                 ` Martin Weigele
  0 siblings, 0 replies; 17+ messages in thread
From: Martin Weigele @ 2014-10-03 10:02 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Rasmus

[-- Attachment #1: Type: text/plain, Size: 5298 bytes --]

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 <martin@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 <martin@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.
> > >> 

[-- Attachment #2: Type: text/html, Size: 30445 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-10-03 10:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06  2:30 Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)] Jason Lewis
2014-02-06  8:59 ` Bastien
2014-02-25 10:46   ` Michael Brand
2014-03-01  9:02     ` Bastien
2014-03-01 10:39       ` Michael Brand
2014-03-01 11:13         ` Bastien
2014-03-01 13:58           ` Michael Brand
2014-03-12 18:42             ` Bastien
2014-03-20 14:15     ` Bastien
2014-03-20 16:00       ` Michael Brand
2014-09-30 22:24   ` Solution for very long hyperlinks when exporting to latex? Martin Weigele
2014-09-30 23:02     ` Rasmus
2014-09-30 23:51       ` Martin Weigele
2014-10-01  0:04         ` Rasmus
2014-10-01  0:17           ` Martin Weigele
     [not found]             ` <87bnpw8wte.fsf@gmx.us>
2014-10-01  0:29               ` Martin Weigele
2014-10-03 10:02                 ` Martin Weigele

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).