Re: [O] Marking/highlighting text temporarily
Vikas Rawal vikasli...@agrarianresearch.org writes: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? Vikas Bookmarks? hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Creating a link to a file using ID
Envoyé de mon iPhone Le 24 avr. 2015 à 00:10, Yuri Niyazov yuri.niya...@gmail.com a écrit : I would like to link to a whole file (rather than a heading in that file), but instead of using the path+name, I would like to use an id, so that it survives renames. I do not think this is easily possible, as I assume you are referring to a renaming of the external file which is done outside emacs. Nevertheless, there are ways of achieving this, which depend on the OS you are using. For Linux (and OSX) you could create a hardlink to your file. This hardlink always links to the file, irrespective if you rename your original file. You could then use the hardlink in your org file. Other option: use a custom function to identify the file based on the ID by using e.g. grep on a the directory where you expect the file to be. But I don' think this can easily be done. Hope this helps, Rainer Is it possible to assign an ID to the whole buffer? I tried doing #+CUSTOM_ID: A948A2E7-F4A0-4F77-8D7A-C6273DA7D734 and #+ID: A948A2E7-F4A0-4F77-8D7A-C6273DA7D734 but a link to such an ID results in an error when clicked. I am going to link to a heading in the file instead for now, but it would be nice to know if this is possible. Thanks!
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi Loris, On 24 April 2015 at 06:48, Loris Bennett loris.benn...@fu-berlin.de wrote: I think you want to look at caching: http://orgmode.org/manual/cache.html Thanks for the tip. Interestingly, caching doesn't seem to work for ditaa blocks. E.g. --8---cut here---start-8--- #+BEGIN_SRC ditaa :file images/hello-world-round.png :cache yes +--+ | | | Hello World! | | | +--+ #+END_SRC --8---cut here---end---8--- Run the ditaa.jar file every time I export to HTML with `C-c C-e h h`. Does `:cache yes` only work for particular source languages? -- Rob
Re: [O] Marking/highlighting text temporarily
On Friday, 24 Apr 2015 at 09:58, Marcin Borkowski wrote: [...] Why use footnotes when you can use todonotes? Good question! It's personal preference: I prefer footnotes as I am often using narrow margins and anything more than a boxed footnote number is too much... However, it is trivial to change the export template to use todonotes if that's what Vikas prefers. The key message I was trying to get across is the use inlinetasks to leverage the capabilities of org for TODO management. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-951-g2f58e3
Re: [O] Marking/highlighting text temporarily
On 2015-04-24, at 09:40, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Friday, 24 Apr 2015 at 11:49, Vikas Rawal wrote: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? I use inline tasks for this. If you are exporting to PDF via LaTeX, the following LaTeX definition for inline tasks is quite useful: #+begin_src emacs-lisp (setq org-inlinetask-export-templates '((latex %s\\footnote{%s %s}\\marginpar{\\fbox{\\thefootnote}} '((unless (eq todo ) (format \\fbox{\\textsc{%s%s}} todo priority)) heading content #+end_src This uses footnotes to put the task information into the document and uses a little margin note to indicate that a TODO task is present in the text. Why use footnotes when you can use todonotes? https://www.ctan.org/pkg/todonotes It can even make a list-of-todo-notes. See also http://tex.stackexchange.com/questions/9796/how-to-add-todo-notes for more options. HTH, eric Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
[O] [bug] Leading spaces aren't preserved in a `verse' special block
Hello, As you can see on http://screencast.com/t/A7yegfql7awg, leading spaces aren't preserved in the HTML export of a verse environment. ECM: --8---cut here---start-8--- * Verse #+begin_verse Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod. Tempor incididunt ut labore? Et dolore magna aliqua? In a verse, indentation should be preserved. #+end_verse --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi Rob, Rob Stewart robstewar...@gmail.com writes: Hi Loris, On 24 April 2015 at 06:48, Loris Bennett loris.benn...@fu-berlin.de wrote: I think you want to look at caching: http://orgmode.org/manual/cache.html Thanks for the tip. Interestingly, caching doesn't seem to work for ditaa blocks. E.g. #+BEGIN_SRC ditaa :file images/hello-world-round.png :cache yes +--+ | | | Hello World! | | | +--+ #+END_SRC Run the ditaa.jar file every time I export to HTML with `C-c C-e h h`. Does `:cache yes` only work for particular source languages? Caching with ditaa works for me with Emacs 24.4.1 and Org 8.2.10-37-gc000e8-elpaplus. What versions of Org/Emacs are you using? Cheers, Loris -- This signature is currently under construction.
[O] ARCHIVE'd trees look like empty headlines
Hello, When exporting to HTML a file such as: --8---cut here---start-8--- * Item 1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod. ** Subitem 1.1 Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. ** Subitem 1.2 :finance: Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo. * Item 2 Consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse. ** Subitem 2.1 :ARCHIVE: Cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non. ** Suitem 2.2 :mail: Proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --8---cut here---end---8--- the HTML shows the ARCHIVE'd headline as it was an regular *empty* one, as you can see on http://screencast.com/t/YmsezCA58. I guess that exporting the tag ARCHIVE would be sufficient to solve this confusion. Best regards, Seb -- Sebastien Vauban
Re: [O] [bug] Leading spaces aren't preserved in a `verse' special block
Nicolas Goaziou wrote: Sebastien Vauban writes: ECM: #+begin_verse In a verse, indentation should be preserved. #+end_verse I cannot reproduce it. The HTML rendering is not correct, IMHO. But, indeed, the spaces are well in the HTML generated by Org, but then eaten by the browser... Not sure what's the solution if one wants the spaces preserved in the displayed page... Best regards, Seb -- Sebastien Vauban
Re: [O] [bug] Leading spaces aren't preserved in a `verse' special block
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: ECM: * Verse #+begin_verse Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod. Tempor incididunt ut labore? Et dolore magna aliqua? In a verse, indentation should be preserved. #+end_verse I cannot reproduce it. Regards, -- Nicolas Goaziou
Re: [O] [bug] Leading spaces aren't preserved in a `verse' special block
Rasmus wrote: Sebastien Vauban writes: The HTML rendering is not correct, IMHO. But, indeed, the spaces are well in the HTML generated by Org, but then eaten by the browser... Not sure what's the solution if one wants the spaces preserved in the displayed page... On my system the spaces are displayed in the browser. Org-mode version 8.3beta (release_8.3beta-1065-g99609a @ /usr/share/emacs/site-lisp/org/) Produced code from emacs -q: p class=verse In a verse,br / #xa0;#xa0;#xa0;indentation should bebr / preserved.br / /p /div The above A0 is the Unicode for `nbsp', right? I do have: --8---cut here---start-8--- p class=verse In a verse,br / indentation should bebr / preserved.br //p --8---cut here---end---8--- instead with Org-mode version 8.3beta (release_8.3beta-1063-g2bdc66). Not sure why this difference, then... Best regards, Seb -- Sebastien Vauban
Re: [O] [bug] Leading spaces aren't preserved in a `verse' special block
Sebastien Vauban sva-n...@mygooglest.com writes: The HTML rendering is not correct, IMHO. But, indeed, the spaces are well in the HTML generated by Org, but then eaten by the browser... Not sure what's the solution if one wants the spaces preserved in the displayed page... On my system the spaces are displayed in the browser. Org-mode version 8.3beta (release_8.3beta-1065-g99609a @ /usr/share/emacs/site-lisp/org/) Produced code from emacs -q: p class=verse In a verse,br / #xa0;#xa0;#xa0;indentation should bebr / preserved.br / /p /div BTW: Is there a reason why org-html-close-tag inserts an extra space at the closing tag, /? —Rasmus -- ツ
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi Loris, Caching with ditaa works for me with Emacs 24.4.1 and Org 8.2.10-37-gc000e8-elpaplus. What versions of Org/Emacs are you using? Org-mode version 8.3beta release_8.3beta-1028-g0865cb GNU Emacs 24.4.1 -- Rob
Re: [O] ARCHIVE'd trees look like empty headlines
Nicolas Goaziou wrote: Sebastien Vauban writes: When exporting to HTML a file such as: [...] * Item 2 Consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse. ** Subitem 2.1 :ARCHIVE: Cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non. ** Suitem 2.2 :mail: Proident, sunt in culpa qui officia deserunt mollit anim id est laborum. the HTML shows the ARCHIVE'd headline as it was an regular *empty* one, Solved in 84e2e1e752692c17c4b7bfb669ab181d431170e0. Thank you. Confirmed. Thanks to *you*! Best regards, Seb -- Sebastien Vauban
Re: [O] Target and link text normalised to `orgtargetn'
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Yeah, I though of that, but that require us to maintain a list of latex math environments, which may or may not be annoying. Well, if an environment is not recognized as a math one, it still gets a label. So, that's not a big deal to miss some of them. If we add such a variable where should it live? org.el or ox-latex.el? ox-latex.el. This is a hack. There's no need to leak it elsewhere. Here's an updated patch. —Rasmus -- Need more coffee. . . From 5442c61a0ab793d0a0cb3507d4355a5d1fb2f623 Mon Sep 17 00:00:00 2001 From: Rasmus ras...@gmx.us Date: Mon, 20 Apr 2015 15:06:55 +0200 Subject: [PATCH] ox-latex: Use standard LaTeX label prefixes * ox-latex.el (org-latex--label): Use standard LaTeX prefixes. (org-latex-math-environments-re): New defconst. --- lisp/ox-latex.el | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2727f1c..2d7ffe5 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -209,6 +209,17 @@ (kbordermatrix . )) Alist between matrix macros and their row ending.) +(defconst org-latex-math-environments-re + (concat (regexp-opt + '(equation eqnarray math displaymath + align gather multline flalign alignat + xalignat xxalignat + subequations + ;; breqn + dmath dseries dgroup darray + ;; empheq + empheq)) *?) + Regexp of LaTeX math environments.) ;;; User Configurable Variables @@ -1067,7 +1078,23 @@ Eventually, if FULL is non-nil, wrap label within \\\label{}\. (and (or user-label force) (if (and user-label (plist-get info :latex-prefer-user-labels)) user-label - (org-export-get-reference datum info) + (concat (case type + (headline sec:) + (table tab:) + (latex-environment + (save-match-data + (let ((string (org-element-property :value datum))) +(string-match + (nth 1 (assoc begin org-latex-regexps)) + string) +(and (org-string-match-p + org-latex-math-environments-re + (match-string 2 string)) + eq: + (paragraph + (and (org-element-property :caption datum) + fig:))) + (org-export-get-reference datum info)) (cond ((not full) label) (label (format \\label{%s}%s label -- 2.3.6
[O] [PATCH] org-timer.el: Use hh:mm:ss format instead of minutes
Hello, I've hacked a patch that use hh:mm:ss format instead of minutes for org-timer-set-timer. I'm really not sure I did it in the right way, any sugestions are welcome. Both tests test-org-timer/set-timer andtest-org-timer/pause-timer where adapted to the new format. Brice. From 18bf5a0c3e2a1101ece7d83a201eb8f6ac19836d Mon Sep 17 00:00:00 2001 From: Brice Waegeneire brice@gmail.com Date: Fri, 24 Apr 2015 14:18:45 +0200 Subject: [PATCH] org-timer.el: Use hh:mm:ss format instead of minutes * lisp/org-timer.el (org-timer-set-timer): Use hh:mm:ss format instead of minutes. * testing/lisp/test-org-timer.el (test-org-timer/set-timer, test-org-timer/pause-timer): Change the arguments to the new format. TINYCHANGE --- lisp/org-timer.el | 11 --- testing/lisp/test-org-timer.el | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index 0593573..4df21d2 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -429,17 +429,14 @@ using three `C-u' prefix arguments. (minutes (or (and (not (equal opt '(64))) effort-minutes (number-to-string effort-minutes)) - (and (numberp opt) (number-to-string opt)) - (and (listp opt) (not (null opt)) - (number-to-string org-timer-default-timer)) + (and (stringp opt) (prin1 opt)) (read-from-minibuffer - How many minutes left? + How many time left? (if (not (eq org-timer-default-timer 0)) - (number-to-string org-timer-default-timer)) + (prin1 org-timer-default-timer)) (if (not (string-match [0-9]+ minutes)) (org-timer-show-remaining-time) - (let* ((mins (string-to-number (match-string 0 minutes))) - (secs (* mins 60)) + (let* ((secs (org-timer-hms-to-secs (org-timer-fix-incomplete minutes))) (hl (org-timer--get-timer-title))) (if (or (not org-timer-countdown-timer) (equal opt '(16)) diff --git a/testing/lisp/test-org-timer.el b/testing/lisp/test-org-timer.el index 7164a5d..a6d5e7a 100644 --- a/testing/lisp/test-org-timer.el +++ b/testing/lisp/test-org-timer.el @@ -175,7 +175,7 @@ Also, mute output from `message'. (equal 0:06:34 (test-org-timer/with-temp-text (test-org-timer/with-current-time test-org-timer/time0 - (org-timer-set-timer 10)) + (org-timer-set-timer 10:00)) (test-org-timer/with-current-time test-org-timer/time1 (org-timer)) (org-trim (buffer-string)) @@ -210,7 +210,7 @@ Also, mute output from `message'. (equal 0:01:39 (test-org-timer/with-temp-text (test-org-timer/with-current-time test-org-timer/time0 - (org-timer-set-timer 10)) + (org-timer-set-timer 10:00)) (test-org-timer/with-current-time test-org-timer/time1 (org-timer-pause-or-continue)) (test-org-timer/with-current-time test-org-timer/time2 -- 2.3.5
Re: [O] ARCHIVE'd trees look like empty headlines
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: When exporting to HTML a file such as: [...] * Item 2 Consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse. ** Subitem 2.1 :ARCHIVE: Cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non. ** Suitem 2.2 :mail: Proident, sunt in culpa qui officia deserunt mollit anim id est laborum. the HTML shows the ARCHIVE'd headline as it was an regular *empty* one, Solved in 84e2e1e752692c17c4b7bfb669ab181d431170e0. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Marking/highlighting text temporarily
Inspired by this conversation, I hacked up this functional comment link: http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ It has a custom link type that exports in html and latex, and when you click on it, it asks if you want to delete the comment. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Fri, Apr 24, 2015 at 5:38 PM, Vikas Rawal vikasli...@agrarianresearch.org wrote: [...] Why use footnotes when you can use todonotes? Good question! It's personal preference: I prefer footnotes as I am often using narrow margins and anything more than a boxed footnote number is too much... However, it is trivial to change the export template to use todonotes if that's what Vikas prefers. The key message I was trying to get across is the use inlinetasks to leverage the capabilities of org for TODO management. Thanks all. It has been lovely to see all the various solutions on offer. I thought I was posting a lame query, and was feeling a little sheepish when I first sent it. But it has been nice to see these various approaches, with their little ingenuities. Wonderful org friends, thank you once again. Vikas
[O] [bug, ox-latex] footnotes with math in narrowed buffer
Hi, Consider the following example: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: foo\footnote{if \alpha \beta \gamma} Somehow org-export-get-footnote-definition knows about math-blocks for footnotes that are within the buffer view, but not outside. The patch fixes the above example, but I doubt it's the Right Wayᵀᴹ to fix this (i.e. there could be a more fundamental bug). —Rasmus -- Bang bang From ce22e0e6d92b79cfec41c1a2295f8e0a21cc3775 Mon Sep 17 00:00:00 2001 From: Rasmus ras...@gmx.us Date: Fri, 24 Apr 2015 18:00:30 +0200 Subject: [PATCH 2/2] ox-latex: Fix footnote bug when narrowed buffer * ox-latex.el (org-latex-footnote-reference): Support math in outside footnotes when narrowed. --- lisp/ox-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2d7ffe5..3b71bfb 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1554,7 +1554,8 @@ CONTENTS is nil. INFO is a plist holding contextual information. \\footnotemark) ;; Otherwise, define it with \footnote command. (t - (let ((def (org-export-get-footnote-definition footnote-reference info))) + (let ((def (org-latex--wrap-latex-math-block + (org-export-get-footnote-definition footnote-reference info) info))) (concat (format \\footnote{%s} (org-trim (org-export-data def info))) ;; Retrieve all footnote references within the footnote and -- 2.3.6
Re: [O] Marking/highlighting text temporarily
John Kitchin jkitc...@andrew.cmu.edu writes: Inspired by this conversation, I hacked up this functional comment link: http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ It has a custom link type that exports in html and latex, and when you click on it, it asks if you want to delete the comment. John Awesome! I was half expecting to get around to this myself, half hoping someone else would do it :) I've saved the code, and am already using it in a new short story translation. If I come up with any substantial improvements, I'll mention them here. Thanks very much! Eric
Re: [O] Marking/highlighting text temporarily
On 25-Apr-2015, at 6:22 am, John Kitchin jkitc...@andrew.cmu.edu wrote: Inspired by this conversation, I hacked up this functional comment link: http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ http://kitchingroup.cheme.cmu.edu/blog/2015/04/24/Commenting-in-org-files/ It has a custom link type that exports in html and latex, and when you click on it, it asks if you want to delete the comment. Nice. One small issue is that when I highlight a text and add comment to it, and then delete the comment, one space following the last word is removed. Also, it would be good to make the comment stand out in LaTeX (and other) exports, preferably by pushing it to the margin (so it does not move everything else). Thanks, Vikas
[O] [bug, org] footnote-action broken with narrowed buffer
Hi, Narrow to h1 in the following example and run org-footnote-action on the footnote-reference. Expected behavior is IMO to go to the definition. This does not happen. Ideally, it should be possible to get back to the narrowed stage again, but I'm not sure how this would work. Perhaps hooking into next C- or org-footnote-action if it's performed from within the [:begin, :end] range of the footnote-definition... * h1 foo[fn:1] * Footnotes [fn:1] bar —Rasmus -- Er du tosset for noge' lårt!
[O] [PATCH] org.el: Remove org-timer-cancel-timer binding
This patch deletes the binding for org-timer-cancel-timer binding, which I should have removed when I merged the two timer APIs (commit 173b0cb6d6d). From bb87c7369dc21cc0e0884171c0672af3b59fa463 Mon Sep 17 00:00:00 2001 From: Kyle Meyer k...@kyleam.com Date: Fri, 24 Apr 2015 12:53:43 -0400 Subject: [PATCH] org.el: Remove org-timer-cancel-timer binding * lisp/org.el (org-mode-map): Remove binding for deleted command org-timer-cancel-timer. The command org-timer-cancel-timer was removed in 173b0cb6d6. --- lisp/org.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 4856ba4..5d0b6a9 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -19887,7 +19887,6 @@ (org-defkey org-mode-map \C-c\C-xE'org-inc-effort) (org-defkey org-mode-map \C-c\C-xo'org-toggle-ordered-property) (org-defkey org-mode-map \C-c\C-xi'org-insert-columns-dblock) (org-defkey org-mode-map [(control ?c) (control ?x) ?\;] 'org-timer-set-timer) -(org-defkey org-mode-map [(control ?c) (control ?x) ?\:] 'org-timer-cancel-timer) (org-defkey org-mode-map \C-c\C-x.'org-timer) (org-defkey org-mode-map \C-c\C-x-'org-timer-item) -- 2.3.5 -- Kyle
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Rasmus ras...@gmx.us writes: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: This also does not seem to work correctly when exporting with ox-html. But there the problem is that the parse-tree does not recognize any latex-fragments. So org-html--build-mathjax-config returns nil rather than the appropriate mathjax setup. BTW: While it's nice to try to make a sensible decision on whether to load mathjax, this rest of pretty fragile assumptions. I could INCLUDE a html file with math. —Rasmus -- Enough with the bla bla!
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Rasmus ras...@gmx.us writes: Rasmus ras...@gmx.us writes: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: This also does not seem to work correctly when exporting with ox-html. But there the problem is that the parse-tree does not recognize any latex-fragments. So org-html--build-mathjax-config returns nil rather than the appropriate mathjax setup. Add to this that the class of p is missing when including footnotes from outside of the narrowed region. E.g. p bar /p (ugly) vs (not ugly): p class=footpara bar /p —Rasmus -- The right to be left alone is a human right
Re: [O] [PATCH] org-timer.el: Use hh:mm:ss format instead of minutes
Brice Waegenire brice@gmail.com wrote: Hello, I've hacked a patch that use hh:mm:ss format instead of minutes for org-timer-set-timer. I'm really not sure I did it in the right way, any sugestions are welcome. [...] Thanks. I think it's nice to be able to specify seconds, but now you have to type 'N:00' (or at least 'N:0') instead of 'N' to get N minutes. Should a plain number default to minutes? I don't use org-timer very much, so I don't have a strong preference. --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -429,17 +429,14 @@ using three `C-u' prefix arguments. (minutes (or (and (not (equal opt '(64))) effort-minutes (number-to-string effort-minutes)) - (and (numberp opt) (number-to-string opt)) - (and (listp opt) (not (null opt)) - (number-to-string org-timer-default-timer)) By removing the listp check, you no longer get the C-u behavior described in the docstring. + (and (stringp opt) (prin1 opt)) Why not `(and (stringp opt) opt)'? (read-from-minibuffer - How many minutes left? + How many time left? s/many/much/. Also, it'd be nice to specify the format in the prompt. (if (not (eq org-timer-default-timer 0)) - (number-to-string org-timer-default-timer)) + (prin1 org-timer-default-timer)) The defcustom for org-timer-default-timer still says it should be a number. If set to a number other than 0, this will fail. Perhaps org-timer-default-timer should be updated to be a string in the hh:mm:ss format. -- Kyle
Re: [O] Visibility cycling at end of headline
On Fri, 24 Apr 2015, Eric S Fraga wrote: On Thursday, 23 Apr 2015 at 21:59, Nikolaus Rath wrote: [...] Well, obviously I meant a way to *automatically* have Tab work at the end of the line I also would really like tab to work at the end of a headline with hidden text as it would anywhere else on the line. I see no benefit from org treating the cursor at the absolute end of the line as being within the hidden text but maybe somebody can explain? This change in org-cycle line 131 seems to have the desired effect: --- 128,134 Original ;; At an item/headline: delegate to `org-cycle-internal-local'. ((and (or (and org-cycle-include-plain-lists (org-at-item-p)) !(save-excursion (beginning-of-line 1) (looking-at org-outline-regexp))) (or (bolp) (not (eq org-cycle-emulate-tab 'exc-hl-bol (org-cycle-internal-local)) *** 128,134 NEW ;; At an item/headline: delegate to `org-cycle-internal-local'. ((and (or (and org-cycle-include-plain-lists (org-at-item-p)) !(save-excursion (move-beginning-of-line 1) (looking-at org-outline-regexp))) (or (bolp) (not (eq org-cycle-emulate-tab 'exc-hl-bol (org-cycle-internal-local)) Caveat: I've not run this thru make test. Having to hit C-a first is annoying... Agree. Less (keystrokes) is more (productivity). HTH, Chuck
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
On Fri, 24 Apr 2015, Rob Stewart wrote: Hi Loris, Caching with ditaa works for me with Emacs 24.4.1 and Org 8.2.10-37-gc000e8-elpaplus. What versions of Org/Emacs are you using? Org-mode version 8.3beta release_8.3beta-1028-g0865cb GNU Emacs 24.4.1 Use org-babel-execute-src-block or org-babel-execute-buffer first to get the results and the cache sha in your buffer. The exporter runs babel in a copy buffer, so caching done there is irrelevant. HTH, Chuck
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Hello, Rasmus ras...@gmx.us writes: Consider the following example: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: foo\footnote{if \alpha \beta \gamma} Somehow org-export-get-footnote-definition knows about math-blocks for footnotes that are within the buffer view, but not outside. The patch fixes the above example, but I doubt it's the Right Wayᵀᴹ to fix this (i.e. there could be a more fundamental bug). It looks good. You can push it. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Hello, Rasmus ras...@gmx.us writes: Rasmus ras...@gmx.us writes: Rasmus ras...@gmx.us writes: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: [...] Add to this that the class of p is missing when including footnotes from outside of the narrowed region. E.g. p bar /p (ugly) vs (not ugly): p class=footpara bar /p This should be fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Hello, Rasmus ras...@gmx.us writes: Rasmus ras...@gmx.us writes: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: This also does not seem to work correctly when exporting with ox-html. But there the problem is that the parse-tree does not recognize any latex-fragments. So org-html--build-mathjax-config returns nil rather than the appropriate mathjax setup. `org-html--build-mathjax-config' needs to check, in addition to parse tree, cdr of all associations in (plist-get info :footnote-definition-alist), and values of all parsed keywords. BTW: While it's nice to try to make a sensible decision on whether to load mathjax, this rest of pretty fragile assumptions. I could INCLUDE a html file with math. What do you suggest instead? Load mathjax every time? Regards, -- Nicolas Goaziou
Re: [O] Marking/highlighting text temporarily
Vikas Rawal vikasli...@agrarianresearch.org writes: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? I use footnotes for this sort of thing, but don't find it very ideal. I've occasionally thought of a link type that operates more like the comment feature of Word Processors That Shall Not Be Named. So you'd do the following: Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. [[Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum.]][#:I hear all this isn't really Latin, but who am I to say?]] Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. I'm making up the #: syntax, but you see what I mean. The comment would disappear, the text would be highlighted somehow, and perhaps it could even be exported to a proper comment in ODT, and turned into a custom container/environment in other export backends. HTML tooltips, marginpars, etc. Just a thought. Eric
Re: [O] Marking/highlighting text temporarily
Eric Abrahamsen e...@ericabrahamsen.net writes: Vikas Rawal vikasli...@agrarianresearch.org writes: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? I use footnotes for this sort of thing, but don't find it very ideal. I've occasionally thought of a link type that operates more like the comment feature of Word Processors That Shall Not Be Named. So you'd do the following: Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. [[Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum.]][#:I hear all this isn't really Latin, but who am I to say?]] Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat. I'm making up the #: syntax, but you see what I mean. The comment would disappear, the text would be highlighted somehow, and perhaps it could even be exported to a proper comment in ODT, and turned into a custom container/environment in other export backends. HTML tooltips, marginpars, etc. Allow me to agree with myself further: I do a lot of translation, and handle temporary notes-to-self with footnotes. I'd much rather use the above syntax to wrap questionable passages and put the original text in the comment. That way I can even share it usefully with editors during the publishing process. That would probably mean ODT/Doc, but how sexy would it be to turn in a PDF with marginpar notes? E
Re: [O] Visibility cycling at end of headline
On Thursday, 23 Apr 2015 at 21:59, Nikolaus Rath wrote: [...] Well, obviously I meant a way to *automatically* have Tab work at the end of the line I also would really like tab to work at the end of a headline with hidden text as it would anywhere else on the line. I see no benefit from org treating the cursor at the absolute end of the line as being within the hidden text but maybe somebody can explain? Having to hit C-a first is annoying... Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-951-g2f58e3
Re: [O] Marking/highlighting text temporarily
Vikas Rawal vikasli...@agrarianresearch.org writes: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? Just insert something like '' [1]at each place. The usual Emacs search will take you through them in order. Delete when the fix has been made. hth Glyn Footnotes: [1] Easier than typing in FIXME !
Re: [O] Marking/highlighting text temporarily
Vikas Rawal wrote: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? Inserting `XXX' which are automatically highlighted in red? See Highlight FIXME notes in https://github.com/fniessen/emacs-leuven/blob/master/emacs-leuven.el for an example. Best regards, Fabrice -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/
Re: [O] Marking/highlighting text temporarily
On Friday, 24 Apr 2015 at 11:49, Vikas Rawal wrote: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? I use inline tasks for this. If you are exporting to PDF via LaTeX, the following LaTeX definition for inline tasks is quite useful: #+begin_src emacs-lisp (setq org-inlinetask-export-templates '((latex %s\\footnote{%s %s}\\marginpar{\\fbox{\\thefootnote}} '((unless (eq todo ) (format \\fbox{\\textsc{%s%s}} todo priority)) heading content #+end_src This uses footnotes to put the task information into the document and uses a little margin note to indicate that a TODO task is present in the text. I've removed the templates for other export targets from this variable to keep the email short. HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-951-g2f58e3
Re: [O] [release_8.3beta-1062-gce4e64] Error when exporting to ODT
Vicente Vera vicente...@gmail.com writes: The patch works. Thank you. Pushed. -- What will be next?
Re: [O] Marking/highlighting text temporarily
On 2015-04-24, at 08:42, Thomas S. Dye t...@tsdye.com wrote: Vikas Rawal vikasli...@agrarianresearch.org writes: I am revising a long book manuscript, and would like to mark parts of text (not just the headlines) just to remind myself that these need to be dealt with. What could be an the easy way of doing it? Bookmarks? No - Bookmark+, with bookmarks that are /highlighted/! hth, Tom Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Hi, Nicolas Goaziou m...@nicolasgoaziou.fr writes: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: This also does not seem to work correctly when exporting with ox-html. But there the problem is that the parse-tree does not recognize any latex-fragments. So org-html--build-mathjax-config returns nil rather than the appropriate mathjax setup. `org-html--build-mathjax-config' needs to check, in addition to parse tree, cdr of all associations in (plist-get info :footnote-definition-alist), and values of all parsed keywords. It seems you did not do this. I will add this over the weekend. BTW: While it's nice to try to make a sensible decision on whether to load mathjax, this rest of pretty fragile assumptions. I could INCLUDE a html file with math. What do you suggest instead? Load mathjax every time? Perhaps. It's a tough call. On the one hand the current behavior very much seems like the famous smart can of worms. On the other hand, unnecessary JS should be avoided at very high costs. Perhaps it's enough to check is mathjax or latex math has been explicitly set for these corner cases. —Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?
Re: [O] Target and link text normalised to `orgtargetn'
Rasmus ras...@gmx.us writes: Here's an updated patch. Thank you. Some comments follow. +(defconst org-latex-math-environments-re + (concat (regexp-opt +'(equation eqnarray math displaymath + align gather multline flalign alignat + xalignat xxalignat + subequations + ;; breqn + dmath dseries dgroup darray + ;; empheq + empheq)) *?) ITYM \\*?, not *?. Moreover, I think it is better to check only first line, i.e., (format \\` *\\begin{%s} (concat (regexp-opt ...) \\*?)) + (save-match-data + (let ((string (org-element-property :value datum))) + (string-match + (nth 1 (assoc begin org-latex-regexps)) + string) + (and (org-string-match-p + org-latex-math-environments-re + (match-string 2 string)) + eq: This is not needed. Choose an appropriate regexp for `org-latex-math-environments-re' and forget about `org-latex-regexps'. Regards,
Re: [O] [bug, org] footnote-action broken with narrowed buffer
Hello, Rasmus ras...@gmx.us writes: Narrow to h1 in the following example and run org-footnote-action on the footnote-reference. Expected behavior is IMO to go to the definition. This does not happen. I disagree. Interactive commands are not expected to break current narrowing (try, e.g., C-c C-n). We might however ask the user if he wants to widen in order to reach footnote definition, or display said definition in the echo area if he doesn't, and maybe introduce a variable to always do one of these. Ideally, it should be possible to get back to the narrowed stage again, but I'm not sure how this would work. Perhaps hooking into next C- or org-footnote-action if it's performed from within the [:begin, :end] range of the footnote-definition... I suggest to stay away from this kind of smart behaviour. Outside of the most trivial case (i.e., jump back and forth between the definition and one of its references) it sounds like it would quickly get in the way. * h1 foo[fn:1] * Footnotes [fn:1] bar Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org.el: Remove org-timer-cancel-timer binding
Hello, Kyle Meyer k...@kyleam.com writes: This patch deletes the binding for org-timer-cancel-timer binding, which I should have removed when I merged the two timer APIs (commit 173b0cb6d6d). Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [bug, org] footnote-action broken with narrowed buffer
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Rasmus ras...@gmx.us writes: Narrow to h1 in the following example and run org-footnote-action on the footnote-reference. Expected behavior is IMO to go to the definition. This does not happen. I disagree. Interactive commands are not expected to break current narrowing (try, e.g., C-c C-n). We might however ask the user if he wants to widen in order to reach footnote definition, or display said definition in the echo area if he doesn't, and maybe introduce a variable to always do one of these. Point is moved, though. If narrow shouldn't be broken then point shouldn't be moved. I.e. no move when the definition is not within the buffer. Ideally, it should be possible to get back to the narrowed stage again, but I'm not sure how this would work. Perhaps hooking into next C- or org-footnote-action if it's performed from within the [:begin, :end] range of the footnote-definition... I suggest to stay away from this kind of smart behaviour. Outside of the most trivial case (i.e., jump back and forth between the definition and one of its references) it sounds like it would quickly get in the way. It would only work for the most trivial case I guess. —Rasmus -- It was you, Jezebel, it was you
Re: [O] [bug, ox-latex] footnotes with math in narrowed buffer
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Rasmus ras...@gmx.us writes: Consider the following example: * h1 foo[fn:1] * Footnotes [fn:1] if \alpha $\beta$ \(\gamma\) Narrow it to h1 and export the buffer. Something like this is exported: foo\footnote{if \alpha \beta \gamma} Somehow org-export-get-footnote-definition knows about math-blocks for footnotes that are within the buffer view, but not outside. The patch fixes the above example, but I doubt it's the Right Wayᵀᴹ to fix this (i.e. there could be a more fundamental bug). It looks good. You can push it. Thank you. Pushed. -- This message is brought to you by the department of redundant departments
[O] Display Agenda in Reverse Order
Looked around some, but could find nothing that helped ... So I ask the list! When I display my agenda, the oldest (scheduled) items are earlier in the buffer, and the newest (today) are at the very end. Is there a simple way to reverse that schedule order? Ideally, my timed appointments (grid) would be displayed first, and then followed by today's scheduled items, yesterday's left over items, and so on until the oldest is shown at the very end. ASIDE As a major procrastinator, I have lines like this: personal: Sched.389x: TODO Work on foobar Yes originally scheduled over a year ago! :( I'd rather those very old items were at the *bottom* of the agenda ... easier to continue to ignore them that way ... ;-) /ASIDE Thanks for any ideas/suggestions! -- Prof Kenneth H Jacker (emeritus) k...@cs.appstate.edu Computer Science Deptwww.cs.appstate.edu/~khj Appalachian State Univ Boone, NC 28608 USA
Re: [O] Display Agenda in Reverse Order
Take a look at org-agenda-sorting-strategy It should help you out. Note though that the timestamp sorting does not work on all agenda types, it's a known bug. -Original Message- From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On Behalf Of Kenneth Jacker Sent: Friday, April 24, 2015 2:18 PM To: Emacs Org Subject: [O] Display Agenda in Reverse Order Looked around some, but could find nothing that helped ... So I ask the list! When I display my agenda, the oldest (scheduled) items are earlier in the buffer, and the newest (today) are at the very end. Is there a simple way to reverse that schedule order? Ideally, my timed appointments (grid) would be displayed first, and then followed by today's scheduled items, yesterday's left over items, and so on until the oldest is shown at the very end. ASIDE As a major procrastinator, I have lines like this: personal: Sched.389x: TODO Work on foobar Yes originally scheduled over a year ago! :( I'd rather those very old items were at the *bottom* of the agenda ... easier to continue to ignore them that way ... ;-) /ASIDE Thanks for any ideas/suggestions! -- Prof Kenneth H Jacker (emeritus) k...@cs.appstate.edu Computer Science Deptwww.cs.appstate.edu/~khj Appalachian State Univ Boone, NC 28608 USA This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you.
Re: [O] Marking/highlighting text temporarily
[...] Why use footnotes when you can use todonotes? Good question! It's personal preference: I prefer footnotes as I am often using narrow margins and anything more than a boxed footnote number is too much... However, it is trivial to change the export template to use todonotes if that's what Vikas prefers. The key message I was trying to get across is the use inlinetasks to leverage the capabilities of org for TODO management. Thanks all. It has been lovely to see all the various solutions on offer. I thought I was posting a lame query, and was feeling a little sheepish when I first sent it. But it has been nice to see these various approaches, with their little ingenuities. Wonderful org friends, thank you once again. Vikas