Re: [O] function to duplicate current header and change ID

2016-08-11 Thread Xebar Saram
thats perfect John thx so much...its amazing how far my "code" was ..another example how much i suck at anything resembling coding ;-) best Z

Re: [O] function to duplicate current header and change ID

2016-08-11 Thread John Kitchin
Does this do what you want? (defun clone-subtree () "Clone the current subtree and change the id." (interactive) (when (not (looking-at "^\\*")) (re-search-backward "^\\*")) (org-copy-subtree) (goto-char (org-element-property :end (org-element-context))) (org-paste-subtree)

Re: [O] function to duplicate current header and change ID

2016-08-11 Thread Xebar Saram
ok so i have this so far (defun zxx () "duplicate and change id of org header" (interactive) (org-copy-subtree) (org-end-of-line) (newline) ;(org-yank) (org-paste-subtree) (org-forward-heading-same-level 1) (let ((current-prefix-arg '(4))) (call-interactively #'org-id-get-create)) ) yet it s

[O] Some qeustions on odt styles with org mode odt export

2016-08-11 Thread Qiang Fang
Hello everyone, I want to use org mode as an alternative to libreoffice. I have a few questions: 1 how to create a two columns section In org mode, creating a two_columns page style and use #+ATTR_ODT: :style "two_columns" can produce a two column document, but org mode doesn't seem to have