Re: [O] (org-insert-headline '(4)) should insert new headline before point
They are working on the next release right now so things might be quiet. Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi gret...@acm.org | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Fri, Apr 4, 2014 at 10:01 PM, York Zhao gtdplatf...@gmail.com wrote: Any one? On Thu, Apr 3, 2014 at 6:59 PM, York Zhao gtdplatf...@gmail.com wrote: Hi list, (org-insert-headline '(4)) used to insert new heading before point. But this had broken recently. According to the docstring, this command inserts new heading at the end of the parent subtree ONLY if two universal prefix arguments is given, not one. Here's the reproducer: --8---cut here---start-8--- emacs -Q -L path/to/org-mode/lisp/ --eval \ (let ((buf (get-buffer-create \test-org\))) (with-current-buffer buf (org-mode) (insert \* headline 1\) (goto-char (line-beginning-position)) (org-insert-heading '(4))) (switch-to-buffer buf)) --8---cut here---end---8--- Thanks
[O] PATCH -- ox-latex.el . sideways figure in latex export
This is a tiny patch to support a “:float sidewaysfigure” option in LaTeX backend export --- lisp/ox-latex.el | 5 + 1 file changed, 5 insertions(+) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index d65c975..c05ffb6 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1801,6 +1801,7 @@ used as a communication channel. (float (let ((float (plist-get attr :float))) (cond ((and (not float) (plist-member attr :float)) nil) ((string= float wrap) 'wrap) + ((string= float sidewaysfigure) 'sidewaysfigure) ((string= float multicolumn) 'multicolumn) ((or float (org-element-property :caption parent) @@ -1876,6 +1877,10 @@ used as a communication channel. \\centering %s%s %s\\end{wrapfigure} placement comment-include image-code caption)) + (sidewaysfigure (format \\begin{sidewaysfigure}%s +\\centering +%s%s +%s\\end{sidewaysfigure} placement comment-include image-code caption)) (multicolumn (format \\begin{figure*}%s \\centering %s%s -- 1.8.4.3
Re: [O] Does ELPA package work??
Achim Gratz writes: David Masterson writes: I've installed the complete Cygwin setup on my Windows 8.1 system. This included Emacs 24.3 with Org v7.9.3f. I then used the Emacs package system to install the latest version of Org (20140317 or 8.2.5h). Everything seemed to go without a problem, but org-version still says 7.9.3f with nothing in my .emacs. Is there something I need to do to ensure that the new package is initialized? I see that the new Org package directory has been added to load-path. Put (package-initialize) at the very beginning of your .emacs. Thanks -- David Masterson
Re: [O] Tangling Bernt Hansen's Org-Mode.Org file..?
David Masterson dsmaster...@gmail.com writes: Not sure whether this is expected or if I've setup org-mode incorrectly... I've installed a full version of Cygwin on a Windows 8.1 system. I'm, therefore, using Emacs 24.3 but I've added the org-mode 8.2.5h package. After putting (package-initialize) near the beginning of my .emacs and setting up an after-init-hook to require both org-install and org-compat, the proper version shows up in org-version and everything looks okay. I then pulled down Bernt Hansen's Org-Mode.org file (amazing piece of work!!) and ran C-c C-v C-t on it to tangle it (is that the right verb?). The first time I did this, I get an error about org-with-silent-modifications being an invalid function (from org-refresh-category-properties). However, immediately doing the C-c C-v C-t again correctly tangles the file and produces the expected Org-Mode.el file. Did I mis-setup org-mode?? I think updating the Org package in my Emacs setup helped. -- David Masterson
Re: [O] PATCH -- allow user to set minted style
Michael Weylandt michael.weyla...@gmail.com writes: On Apr 4, 2014, at 16:24, Nicolas Goaziou n.goaz...@gmail.com wrote: You can add a string at the end of `org-latex-packages-alist' that will be inserted in the header. Didn't know that -- thanks! Perhaps the docstring could include that. Indeed. I'll add it in a while. Anyway, since there is no reliable way to detect if a package will be required at Org level, this patch cannot work properly. Not sure I follow: I'm piggy-backing on the same condition Org uses to determine whether to insert \minted blocks for source code. There's nothing to follow, actually. I misread the code and my sentence is irrelevant here. Please scratch that. For anyone who wants it: (defun org-latex-minted-style-filter (contents backend info) (if (string-match \\usepackage{minted} contents) (replace-regexp-in-string usepackage{minted} (format usepackage{minted}usemintedstyle{%s} org-latex-minted-default-style) contents))) (add-to-list 'org-export-filter-final-output-functions 'org-latex-minted-style-filter) Thanks for sharing. You may also want to wrap your code within: (when (org-export-derived-backend-p backend 'latex) ...) so your filter kicks in only when exporting to LaTeX and alike. Anyways, even if the idea is rejected thanks for taking a look and for all your work on Org Mode. ox-latex.el has support for quite a few packages already. Defining one variable for every single feature in all of them doesn't seem realistic. I'd rather do it only for common packages and commonly customized features. Of course, this is only a guideline. In this case, I have the feeling that we should avoid creating yet another minted variable for a simple one-liner. Regards, -- Nicolas Goaziou
Re: [O] Unconditionally turn off Flyspell mode during export
Hello, May I bump up this thread? Sebastien Vauban wrote: Nick Dokos wrote: Sebastien Vauban writes: I use Flyspell in all my text-mode, hence as well in my Org mode buffers -- as they ultimately derive from Text mode. That has the perverse impact that Flyspell gets called (even multiple times) during the export process, when creating copies of the source Org document: Turning on Flyspell in buffer `ecm.txt2' Turning on Flyspell in buffer `ecm.txt22' Turning on Flyspell in buffer ` *temp*' Turning on Flyspell in buffer `ecm.html' Saving file d:/ecm.html... Wrote d:/ecm.html Is it possible to *automatically disable Flyspell during the export* *process*? Advise org-export-as with an `around' piece of advice where you set the text-mode-hook to nil (or just delete the flyspell part) perhaps? (add-hook 'text-mode-hook (lambda () (message Turning on Flyspell in buffer `%s' (buffer-name)) (flyspell-mode 1))) (defadvice org-export-as (around my-org-export-as activate) Turn off Flyspell (and other things) when exporting current Org buffer. (let (text-mode-hook) ad-do-it)) Better... Still, the HTML [1] exported file is entirely Flyspell'ed... Turning on Flyspell in buffer `ecm.txt' Turning on Flyspell in buffer `ecm.html' [1] HTML mode derives from Text mode. Is there an alternative way to stop Org from Flyspell'ing all the (temporary) export files? Best regards, Seb -- Sebastien Vauban
Re: [O] emphasis borders, double quotes, and export
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: I'm afraid it broke again (it was fixed for a while, but I recently updated org and it's now broken). ECM: exp_init.el: (add-to-list 'load-path /Users/schmitta/projets/org-mode/lisp) (require 'org) (require 'ox-html) (setcar (nthcdr 2 org-emphasis-regexp-components) \t\n,) (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist)) You need to reload Org after modifying `org-emphasis-regexp-components'. Thank you for the suggestion. How can I do that? Add an (org-reload) in my async init file? Is there a more efficient way than loading org, setting the variable, and immediately reloading org again? Alan
Re: [O] emphasis borders, double quotes, and export
Hello, Alan Schmitt alan.schm...@polytechnique.org writes: Thank you for the suggestion. How can I do that? Add an (org-reload) in my async init file? Is there a more efficient way than loading org, setting the variable, and immediately reloading org again? You can set the variable before loading Org for the first time. Regards, -- Nicolas Goaziou
Re: [O] Images not showing up in PDF output
On Saturday, 5 Apr 2014 at 05:59, Mark S. wrote: Hello, I was able to export a subtree as PDF, but the images don't show up. The images do export in HTML, and I can see that there is LaTeX code for it. It looks like this: \includegraphics[width=10em]{./Periodicals.org_20140402_202538_4928DjL.png} Are there settings or additional add-ons that I need to produce the images? Thank you, Mark Using MikTeX 2.9 under Windows XP with Org-mode 7.5 Nothing else should be needed, as far as I know (I don't use MS Windows). Have you tried miktex directly on the LaTeX file created by org? I would recommend, in any case, upgrading to a more recent version of org. version 7.5 is quite old. The export engine was completely rewritten for version 8 of org and is much more consistent and robust. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-876-gf57b2d
Re: [O] What are most users worldview of org-mode's data model?
Nick Dokos ndo...@gmail.com writes: Grant Rettke g...@wisdomandwonder.com writes: 2. Are there any brokering functions between the org file and a SEXP? org-element.el Those '-map' functions are very useful and powerful too: C-h f org--map TAB ,- | Possible completions are: | org-babel-map-call-lines org-babel-map-executables | org-babel-map-inline-src-blocksorg-babel-map-src-blocks | org-block-map org-element-map | org-goto-map org-set-transient-map | org-table-map-tables `- C-h f org-map- TAB , | Possible completions are: | org-map-dblocks org-map-entries | org-map-region org-map-tree ` -- cheers, Thorsten
Re: [O] use # instead of * to signal different levels of headlines? is it possible?
Thorsten Jolitz tjol...@gmail.com writes: For editing the property-drawer of the first headline in full Org-mode, use outorg.el. This is how the *outorg-edit-buffer* looks after doing C-u M-# M-# (outorg-edit-as-org) on the first headline (to convert and edit only the subtree at point, use M-# M-#): | * code | ** My first R Function | | simple example function from the manual | #+begin_example | twosam - function(y1, y2) { | n1 - length(y1); n2 - length(y2) | yb1 - mean(y1); yb2 - mean(y2) | s1 - var(y1);s2 - var(y2) | s - ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) | tst - (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2)) | tst |} | #+end_example [ups, I see a bug ... sources should be wrapped into #+begin_src R blocks] This should be fixed now, I associated (ess . R) but it should rather be (ess-mode . R), now outorg recognizes ESS/R mode and converts code to R code-blocks instead of example blocks: ,-- | ** My first R Function | | simple example function from the manual | #+begin_src R | twosam - function(y1, y2) { | n1 - length(y1); n2 - length(y2) | yb1 - mean(y1); yb2 - mean(y2) | s1 - var(y1);s2 - var(y2) | s - ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2) | tst - (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2)) | tst |} | #+end_src `-- -- cheers, Thorsten
Re: [O] Source code to check URLs in an org mode document?
You can parse the buffer, and run some code on all of the links. I did something like this here http://kitchingroup.cheme.cmu.edu/blog/2013/09/28/Changing-links-to-files-so-they-work-in-a-blog/for another reason. You could adapt that to do your link validation. I guess you will need to send a request to the url to see if it is valid. John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Fri, Apr 4, 2014 at 10:23 PM, Grant Rettke g...@wisdomandwonder.comwrote: Hi, One of my documents has ~200 HTML links in the footnotes. Wondering how folks check the links? My goal is that: 1. Each footnote with a URL is evaluated 2. They are evaluated to determine whether the URL is valid 3. Check whether or not the page exists 4. Add some indicate in the footnote that it was found not to be up on some date. This might require some custom coding, no? Regards, Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi gret...@acm.org | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
[O] Bug: Kill ring contains non-killed output after an export to pdf [8.2.5h (8.2.5h-30-gdd810b-elpa @ /Users/kosta/.emacs.d/elpa/org-20140303/)]
Hello, Whenever I export an org file to pdf, subsequently my kill-ring contains the tex code of the intermediate latex stage. Steps to reproduce: 1. Paste the following into an org buffer: * test * another test 2. Press [C-c C-e l p] to export to pdf (note: on my machine the pdf didn't compile, but this is irrelevant for illustration purposes). 3. Press C-y anywhere in emacs, and you will get the following inserted: % Created 2014-04-05 Sat 19:28 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \author{user} \date{\today} \title{test.org} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.50.1 (Org mode 8.2.5h)}} \begin{document} \maketitle \tableofcontents \section{test} \label{sec-1} \section{another test} \label{sec-2} % Emacs 24.3.50.1 (Org mode 8.2.5h) \end{document} What I would expect to get: the last thing I killed. Thanks in advance! Emacs : GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2014-02-28 on bob.porkrind.org Package: Org-mode version 8.2.5h (8.2.5h-30-gdd810b-elpa @ /Users/kosta/.emacs.d/elpa/org-20140303/) current state: == (setq 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-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'time org-format-latex-options '(:foreground default :background default :scale 1.5 :html-foreground Black :html-background Transparent :html-scale 1.0 :matchers (begin $1 $ $$ \\( \\[)) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-pretty-entities t org-agenda-custom-commands '((w todo TODO) (h agenda ((org-agenda-show-all-dates nil))) (W agenda ((org-agenda-ndays 21) (org-agenda-show-all-dates nil))) (A agenda ((org-agenda-ndays 1) (org-agenda-overriding-header Today))) ) org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file ~/Dropbox/Documents/Org/notes.org org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-pretty-entities-include-sub-superscripts nil org-babel-pre-tangle-hook '(save-buffer) 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 setup-org-mode) org-use-speed-commands t org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-directory ~/Dropbox/Documents/Org/ 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-todo-keywords '((type TODO(t!) STARTED(s) WAITING(w@/!) | CANCELLED(c) FUTURE(f) DONE(d!)) (type Note(n)) (type Event(e)) (sequence PROJECT(p) | COMPLETE(c@))) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-latex-preview-ltxpng-directory /tmp/org-ltxpng/ org-html-format-inlinetask-function 'ignore org-agenda-files '(~/Dropbox/Documents/Org/) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
Re: [O] Prepare release 8.2.6
On Fri, Apr 4, 2014 at 7:51 AM, Michael Weylandt michael.weyla...@gmail.com wrote: On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest is scheduled to happen as soon as possible. If you have important bugs you want us to look at, now is the time to point at them. Hi Bastien, Two small usability issues you may want to take a look at: 1) Tell Emacs not to break inline source blocks when filling paragraphs: http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01310.html Small patch in support: diff --git a/lisp/org-src.el b/lisp/org-src.el index f870b2c..32de2a1 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -40,6 +40,7 @@ (declare-function org-do-remove-indentation org (optional n)) (declare-function org-at-table.el-p org ()) (declare-function org-in-src-block-p org (optional inside)) +(declare-function org-in-inline-src-block-p org ()) (declare-function org-in-block-p org (names)) (declare-function org-get-indentation org (optional line)) (declare-function org-switch-to-buffer-other-window org (rest args)) diff --git a/lisp/org.el b/lisp/org.el index 318d95a..2778160 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21536,6 +21536,9 @@ when point is at #+BEGIN_SRC or #+END_SRC. (beginning-of-line) (looking-at .*#\\+\\(begin\\|end\\)_src))) +(defun org-in-inline-src-block-p () + Test if within an inline src block. + (org-in-regexp org-babel-inline-src-block-regexp)) (defun org-context () Return a list of contexts of the current cursor position. If several contexts apply, all are returned. @@ -22246,7 +22249,8 @@ hierarchy of headlines by UP levels before marking the subtree. (org-uniquify (append fill-nobreak-predicate '(org-fill-line-break-nobreak-p - org-fill-paragraph-with-timestamp-nobreak-p) + org-fill-paragraph-with-timestamp-nobreak-p + org-in-inline-src-block-p) (let ((paragraph-ending (substring org-element-paragraph-separate 1))) (org-set-local 'paragraph-start paragraph-ending) (org-set-local 'paragraph-separate paragraph-ending)) 2) Allow =, +, and ; to be entered into org-insert-link. The list of character is org-link-escape-chars seems to be unnecessarily defensive and results in bad links being entered into documents (and then exported). http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00990.html Michael Thanks, -- Bastien
Re: [O] Prepare release 8.2.6
On Fri, Apr 4, 2014 at 10:32 AM, Michael Weylandt michael.weyla...@gmail.com wrote: On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest is scheduled to happen as soon as possible. If you have important bugs you want us to look at, now is the time to point at them. A few more minor things from my .emacs: 1) In ox-latex.el, add a `downcase` around the definition of mint-lang in org-latex-inline-src-block and the sexp `(or (cadr (assq (intern lang) org-latex-minted-langs)) lang)` in org-latex-src-block to respect minted's convention of putting all language names in lowercase. Patches: diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 59e6e83..013c731 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1474,9 +1474,9 @@ contextual information. ;; Use minted package. ((eq org-latex-listings 'minted) (let* ((org-lang (org-element-property :language inline-src-block)) -(mint-lang (or (cadr (assq (intern org-lang) +(mint-lang (downcase (or (cadr (assq (intern org-lang) org-latex-minted-langs)) - org-lang)) + org-lang))) (options (org-latex--make-option-string org-latex-minted-options))) (concat (format \\mint%s{%s} @@ -2116,7 +2116,7 @@ contextual information. (firstnumber ,(number-to-string (1+ num-start org-latex-minted-options))) ;; Language. -(or (cadr (assq (intern lang) org-latex-minted-langs)) lang) +(downcase (or (cadr (assq (intern lang) org-latex-minted-langs)) lang)) ;; Source code. (let* ((code-info (org-export-unravel-code src-block)) (max-width 2) Add a key binding C-c C-v k for org-babel-remove result in ob-keys.el. (Discussed on list but I can't find the reference) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index e8943c6..c73c42b 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2166,6 +2166,15 @@ code the results are extracted in the syntax of the source (goto-char location) (forward-line 1) (delete-region start (org-babel-result-end)) +(defun org-babel-remove-result-one-or-many (x) + Remove the result of the current source block. +If called with a prefix argument, remove all result blocks +in the buffer. + (interactive P) + (if x + (org-babel-map-src-blocks nil (org-babel-remove-result)) +(org-babel-remove-result))) + (defun org-babel-result-end () Return the point at the end of the current set of results. (save-excursion diff --git a/lisp/ob-keys.el b/lisp/ob-keys.el index 90b5196..dc1f437 100644 --- a/lisp/ob-keys.el +++ b/lisp/ob-keys.el @@ -89,6 +89,7 @@ functions which are assigned key bindings, and see (h . org-babel-describe-bindings) (\C-x . org-babel-do-key-sequence-in-edit-buffer) (x . org-babel-do-key-sequence-in-edit-buffer) +(k . org-babel-remove-result-one-or-many) (\C-\M-h . org-babel-mark-block)) Alist of key bindings and interactive Babel functions. This list associates interactive Babel functions I actually wrap it so C-u C-c C-v k calls (org-babel-map-src-blocks nil (org-babel-remove-result)) Thanks, -- Bastien
Re: [O] Images not showing up in PDF output
Hi Mark, On Saturday, 5 Apr 2014 at 05:59, Mark S. wrote: Hello, I was able to export a subtree as PDF, but the images don't show up. The images do export in HTML, and I can see that there is LaTeX code for it. It looks like this: \includegraphics[width=10em]{./Periodicals.org_20140402_202538_4928DjL.png} Are there settings or additional add-ons that I need to produce the images? In addition to Eric's advice, I would recommend that you check that this image is in the right directory, relative to where the .tex file lives, and relative to where LaTeX is being run. (Check the compile log to see if there are errors about not finding the image, or try to compile the exported .tex by hand, without the -interaction nonstopmode option which I believe is Org's default.) I have sometimes run into problems (mostly with BibTeX) when the exported .tex file doesn't exist in the directory where org-latex-pdf-process is run: even though the paths may look right in the .tex file, if the other files used in the compilation (.aux, etc.) don't end up in the right place, relative paths can break. Best, Richard (If possible, please encrypt your reply to me using my PGP key: Key ID: CF6FA646 Fingerprint: 9969 43E1 CF6F A646. See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)
Re: [O] How to simply move footnotes from one org document to another?
Hi Grant, Grant Rettke g...@wisdomandwonder.com writes: Goal: Easily copy and paste sections of text along with footnote references into the new document, and in doing so, add the contents of the previous document to the new document, and let org deal with the new footnote names. As I write this, I realize that it isn't so simple. I'm just looking for a place to start in terms of what is already present and how you deal with it currently. I use the inline footnote syntax [fn:: ...] for just this reason. I think easy migration of non-inline footnotes would be a nice feature to add to Org, though doing it right would be non-trivial. A strategy that another user once described to me for dealing with this problem is the following: 1) Use a regexp search and replace to re-number the footnotes in the region of the text you want to move, giving them high numbers (e.g., prefixing each with ). 2) Use Org to re-sort the footnotes in the original file, so that the newly-renumbered footnotes all appear at the end. 3) Move the text and the footnotes to the new file, which should now be easy, since the footnotes are all grouped together. 4) In the new file, use Org to re-number the footnotes back to something normal. This sounded like a pretty good idea to me, though I haven't had a need to try it myself. Hope that helps! Best, Richard (If possible, please encrypt your reply to me using my PGP key: Key ID: CF6FA646 Fingerprint: 9969 43E1 CF6F A646. See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)
Re: [O] Kill ring contains non-killed output after an export
Hi Konstantin, Konstantin Kliakhandler ko...@slumpy.org writes: Whenever I export an org file to pdf, subsequently my kill-ring contains the tex code of the intermediate latex stage. ... What I would expect to get: the last thing I killed. The behavior you are seeing is as expected, though I agree that this behavior is usually not all that useful. See the variable org-export-copy-to-kill-ring if you want to turn it off. Changing the default value of this variable was recently discussed on this list: http://thread.gmane.org/gmane.emacs.orgmode/84048/focus=84055 Looks like there haven't been any strong objections to changing it, but maybe the subject of this thread will grab some more attention for the issue. Best, Richard (If possible, please encrypt your reply to me using my PGP key: Key ID: CF6FA646 Fingerprint: 9969 43E1 CF6F A646. See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)
[O] [PATCH] Re: Bug: `org-agenda-prepare-buffers' fails at (org-refresh-properties APPT_WARNTIME 'org-appt-warntime) [8.2.5h (8.2.5h-82-gd91d4b-elpaplus @ /home/wgg/.emacs.d/elpa/org-plus-contrib-20
w...@member.fsf.org writes: On the latest `org-plus-contrib' build from the org package.el repo, my Agenda buffers (for any Agenda command) fail to render properly, with these pertinent lines from *Backtrace*: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) put-text-property(28484 nil org-appt-warntime 60) ... I then isolated this to the following lines of function `org-agenda-prepare-buffers': (or (memq 'appt org-agenda-ignore-drawer-properties) (org-refresh-properties APPT_WARNTIME 'org-appt-warntime)) I ran into a similar problem with org-agenda-prepare-buffers and the EFFORT property. This change to org-refresh-properties seems to fix it: diff --git a/lisp/org.el b/lisp/org.el index f8615a2..bd9c05e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9393,7 +9393,7 @@ property to set. (save-excursion (org-back-to-heading t) (put-text-property - (point-at-bol) (outline-next-heading) tprop p + (point-at-bol) (or (outline-next-heading) (point-max)) tprop p Link Stuff The previous version by Bastien used (org-end-of-subtree t t), which had checked for (eobp) in it, but outline-next-heading returns nil if there are no further headings. Sacha Chua
Re: [O] PATCH -- ox-latex.el . sideways figure in latex export
Hello, Greg Tucker-Kellogg gtuckerkell...@gmail.com writes: This is a tiny patch to support a “:float sidewaysfigure” option in LaTeX backend export Thank you for the patch. It makes sense since tables provide sidewaystable. By the way, wouldn't it make sense to use sideways for both, instead of sidewaystable and sidewaysfigure? Also, it needs to be documented in org.texi. Do you want to take care of that part? Regards, -- Nicolas Goaziou
Re: [O] Prepare release 8.2.6
Hello, R. Michael Weylandt michael.weyla...@gmail.com writes: 1) Tell Emacs not to break inline source blocks when filling paragraphs: http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01310.html Small patch in support: Thank you. +(defun org-in-inline-src-block-p () + Test if within an inline src block. + (org-in-regexp org-babel-inline-src-block-regexp)) I suggest not to use `org-in-regexp' here but `org-element-context'. - org-fill-paragraph-with-timestamp-nobreak-p) + org-fill-paragraph-with-timestamp-nobreak-p + org-in-inline-src-block-p) Besides inline source blocks, ISTR there was other places where filling was inappropriate (verbatim, code, export snippet, macro...). A single `org-element-context' will find them all. Another option for the problem at hand is to simply remove newline characters in inline source blocks before executing them. Regards, -- Nicolas Goaziou
Re: [O] Prepare release 8.2.6
Hello, R. Michael Weylandt michael.weyla...@gmail.com writes: A few more minor things from my .emacs: 1) In ox-latex.el, add a `downcase` around the definition of mint-lang in org-latex-inline-src-block and the sexp `(or (cadr (assq (intern lang) org-latex-minted-langs)) lang)` in org-latex-src-block to respect minted's convention of putting all language names in lowercase. Thank you. Would you mind adding a commit message, TINYCHANGE at its end, and send it again with git format-patch? See http://orgmode.org/worg/org-contribute.html for more information. 2) Add a key binding C-c C-v k for org-babel-remove result in ob-keys.el. (Discussed on list but I can't find the reference) [...] Regards, -- Nicolas Goaziou
[O] [OT] Don't use BibTeX! (was: Images not showing up in PDF output)
Dnia 2014-04-05, o godz. 09:46:39 Richard Lawrence richard.lawre...@berkeley.edu napisał(a): I have sometimes run into problems (mostly with BibTeX) when the Sorry for being off-topic, but I can't resist: *please* *don't* *use* *BibTeX*. On the scale of tools that solve problems vs. tools that create problems (cf. http://xkcd.com/1343/ ;)), it is located on the far right. (For instance, to be able to customize its bibliography style, you could (a) give up, (b) use some user-friendly (or not) front-end, having less power than BibTeX itself (obviously!), or (c) learn BibTeX's own, very peculiar, stack-based ad-hoc language grown to describe bibliography styles. Not good. Also, if you're unlucky and you write in some non-English language, well, you're unlucky with BibTeX, especially if e.g. your name starts with a non-Latin letter. Etc.) Use biblatex instead. It's more modern, it's being supported, it knowns that there exist things like UTF-8 and non-English languages, it supports more citation styles etc. Best, Richard Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] org babel question: reference tables in remote file
Hi I would like to reference a table in a different file in some org-babel python code via the :var variables. The manual mentions that you can use #+NAME for tables in the same file or IDs for tables in other files. Is there a reason not to allow link-syntax like remote(file:path::tablename, cellref)? Thanks Arun
[O] Compiling Org Mode on Windows - date Bug?
Hi all, I, for reasons I cannot control, have to use Windows. I've been using emacs and the version of org mode packaged with emacs. However, I've wanted to use org-drill, which as far as I understand requires compiling org-mode from source. I copied local.mk from the Emacs on Windows section here: http://orgmode.org/worg/dev/org-build-system.html. However, when I then run make, it hangs. I've traced the problem to the fact that make is trying to run a temporary batch script with cmd, with the contents: @echo off date +%Y-%m-%d As +%Y-%m-%d is not valid input to the DOS date command, (which, unlike the Linux version, only sets the date), it prompts for acceptable input and the program hangs. Why is this happening, and how can I make it not happen? Thanks, Will Kunkel
Re: [O] Prepare release 8.2.6
Hi there, I reported a regression a few days ago, and I just knew that you are busy preparing a new release. Since the bug I reported is a regression, I think you may want to consider fix it before releasing the new version. Here's the bug report I copied from the other email I had sent to this list: (org-insert-headline '(4)) used to insert new heading before point. But this had broken recently. According to the docstring, this command inserts new heading at the end of the parent subtree ONLY if two universal prefix arguments is given, not one. Here's the reproducer: --8---cut here---start-8--- emacs -Q -L path/to/org-mode/lisp/ --eval \ (let ((buf (get-buffer-create \test-org\))) \ (with-current-buffer buf \ (org-mode) \ (insert \* headline 1\) \ (goto-char (line-beginning-position)) \ (org-insert-heading '(4))) \ (switch-to-buffer buf)) --8---cut here---end---8--- Thanks, York On Sat, Apr 5, 2014 at 3:27 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, R. Michael Weylandt michael.weyla...@gmail.com writes: A few more minor things from my .emacs: 1) In ox-latex.el, add a `downcase` around the definition of mint-lang in org-latex-inline-src-block and the sexp `(or (cadr (assq (intern lang) org-latex-minted-langs)) lang)` in org-latex-src-block to respect minted's convention of putting all language names in lowercase. Thank you. Would you mind adding a commit message, TINYCHANGE at its end, and send it again with git format-patch? See http://orgmode.org/worg/org-contribute.html for more information. 2) Add a key binding C-c C-v k for org-babel-remove result in ob-keys.el. (Discussed on list but I can't find the reference) [...] Regards, -- Nicolas Goaziou
Re: [O] PATCH -- ox-latex.el . sideways figure in latex export
I think this covers it. :float sideways now works for both tables and figures, but :float sidewaystable is kept for backwards compatibility. I updated org.texi, and mentioned that the use of :float sideways will make the :placement option irrelevant. Attached are the two patches; the one from yesterday and the one that updates as described above. Cheers, Greg On Sun, Apr 6, 2014 at 3:03 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Greg Tucker-Kellogg gtuckerkell...@gmail.com writes: This is a tiny patch to support a :float sidewaysfigure option in LaTeX backend export Thank you for the patch. It makes sense since tables provide sidewaystable. By the way, wouldn't it make sense to use sideways for both, instead of sidewaystable and sidewaysfigure? Also, it needs to be documented in org.texi. Do you want to take care of that part? Regards, -- Nicolas Goaziou 0001-ox-latex-sidewaysfigure-export-for-LaTeX-backend.patch Description: Binary data 0002-Documented-and-standardised-sideways-options-for-tab.patch Description: Binary data
[O] Agenda items refer to the wrong headline
Dear all, I am confronted to a weird issue with the agenda. I would like to know if you can reproduce this bug. First of all, my emacs-version is: GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600) of 2013-03-17 on MARVIN I installed Org using ELPA (org repository), my org-version is: Org-mode version 8.2.5h (8.2.5h-94-g91175a-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20140331/) For this test, Org was the only package installed outside vanilla Emacs packages. I have no problem with the version of Org bundled with my Emacs (which is Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ c:/Program Files/Emacs 24.3/lisp/org/). I do not load my init.el file. For the test I used a simple Org file: * TODO task 1:pro: SCHEDULED: 2014-04-01 mar. * TODO task 2:perso: SCHEDULED: 2014-04-02 mer. Then, I displayed the agenda for this file, and filtered it for the 'perso' tag using '/'. I attached the output for reference. The problem is that some tasks in the agenda refers to the wrong headlines in the main file. This is more obvious when activating follow mode: for example, if I put the cursor on the line marked '1' in the attached file, it refers to line '2' in the main file, which is the wrong line. This is obviously a bug, and of course very problematic. Can you reproduce this?! I hope I provided every possible piece of information. Thank you for your feedback, FC attachment: org.png