[O] CDLaTeX in Org document
Hello, I'm using CDLaTeX with Org documents and with LaTeX ones (AUCTeX major mode). I configured cdlatex to insert closing brackets and dollar ( '$({[' ) and this works fine in AUCTeX major mode. Is it possible to use similar feature in combination Org+cdlatex? I tested with following settings 8 (add-to-list 'load-path /usr/share/emacs/site-lisp/org) (add-to-list 'load-path /usr/share/emacs/site-lisp/auctex) (setq cdlatex-simplify-sub-super-scripts nil) (setq cdlatex-paired-parens $([{) (require 'org) (add-hook 'org-mode-hook 'turn-on-org-cdlatex) (setq org-use-sub-superscripts '{}) 8 And it didn't work. --- WBR, Vladimir Lomov -- There's no heavier burden than a great potential.
Re: [O] Beamer export: one question and one bug
Greetings! Nicolas Goaziou n.goaz...@gmail.com writes: 1. First the question: when I export the org file below as Beamer (C-c C-e l O), I get an empty outline. How do I fix this? I cannot reproduce it. What happens with -q? The same thing: an empty outline. To be exact, I ran emacs -q and the executed the following commands before loading the org-file, in order to use the newest version of org: (setq load-path (cons /home/jarmo/addons/emacs-packages/org/lisp load-path)) (require 'org) (require 'ox-beamer) Maybe this is related to TeX version? Mine is TeX 3.1415926 (TeX Live 2013) 2. Then the bug. If you remove the comment character in the second slide, Beamer export gives an error, while a regular LaTeX export (C-c C-e l o) produced output. The export process doesn't unencode hexified links, so the problem doesn't come from the equality sign but from the percent one. Ok. This problem was discussed recently (look for a thread named Encoding Problem in export? on the ML), but, IIRC, no solution was found. I will read through the thread, but at the moment I don't understand why the Beamer export behaves differently than the regular LaTeX export. All the best, Jarmo
Re: [O] [Bug] Removing scheduled/deadline shows Entry repeats:... which is not true
* Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Dnia 2013-04-18, o godz. 10:53:30 Karl Voit devn...@karl-voit.at napisał(a): * Bastien b...@gnu.org wrote: Hi Karl, Karl Voit devn...@karl-voit.at writes: Sorry for the late reply. This is because I do have troubles to come up with a minimal example. Starting Emacs with debug-init does not show this issue. I guess I have to strip down my config until this behavior changes (or add el-configs step by step). I'll report. Thanks. The bug looks pretty bad, so I hope this is just a problem in your configuration. But still, I hope this is not a problem in the way Org allows you to combine several options. I'm a bit puzzled since this issue seem to have disappeared. Yesterday, I was facing this message but today (without upgrading Org-mode!) I can not reproduce it either :-O Let's say it was something deeply related to my config which changed meanwhile. Just a few seconds ago I experienced something similar (I was changing the TODO state, and there was *no* SCHEDULED keyword anywhere (!) in the file). I diffed the only buffer that changed (the current one) to the saved version, and found nothing suspicious. It's too late for me to analyse this (it's 00:40 here;)), but if the problem persists, I'll try to report (if I'm able to prepare an ECM). From time to time I recognize this strange issue. However, since there were no reports of other people, I thought that this is some issue related to my own set-up[1] and ignored it. So: at my side, it appears from time to time and I still do not have that much Emacs knowledge to debug it. 1. https://github.com/novoid/dot-emacs -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Custom forwarding for a scheduled task
Dear all, In case someone would be interested, I came up with an ugly hack, nor robust or elegant, but it works... It iterates over all headings, check if the current heading has a property reschedule and a TODO state, and if the number of days passed in the current year for today is greater than the number of days passed in the current year when the task was scheduled (quite clumsy, but I couldn't find another way to do it...). If these conditions are met, the task get cancelled. #+BEGIN_SRC emacs-lisp (defun fc/org-forward-task-if-not-done () (interactive) (save-excursion (goto-char (point-max)) (while (outline-previous-heading) (when (and (org-entry-get (point) reschedule) (equal TODO (cdar (org-entry-properties))) ( (string-to-number (format-time-string %j)) (string-to-number (format-time-string %j (org-get-scheduled-time (point)) (org-todo CANCELLED) (global-set-key (kbd s-f) 'fc/org-forward-task-if-not-done) #+END_SRC When used on a task like this... * TODO test :PROPERTIES: :reschedule: yes :LOGGING: CANCELLED(!) :END: SCHEDULED: 2013-10-24 jeu. ++1w ...when I press s-f, the task is automatically scheduled to the next thursday (from today) if it was not done starting from 2013-10-25. Best regards, FC On Wed, Oct 23, 2013 at 3:37 PM, Fletcher Charest fletcher.char...@gmail.com wrote: Dear Sébastien, Thank you for your answer, it is useful. Now I can see that I already worked on a task even if I reschedule it and don't see the Sched. 2x mention. But I still have to manually reschedule the task to the next week, which is what I *really* want to avoid, even at the price of not seeing what I already did either in the form of clocking time or with the Sched. 2x mention (maybe this wasn't clear in my first message). I will try to write something with my very poor level of emacs-lisp. My reasoning would be something like: if a task that has this particular property was scheduled for being done x days ago (with x 0), and if it is not marked DONE, then reschedule it (7 - x) days later. I could maybe include a comment saying that this task was automatically rescheduled, with a timestamp. I just hope I'm not reinventing the wheel somewhere in that process. Best regards On Mon, Oct 21, 2013 at 9:15 PM, Sebastien Vauban sva-n...@mygooglest.com wrote: Hello Fletcher, Fletcher Charest wrote: First of all, apologies if I'm doing something wrong - I'm not used to posting in mailing lists. I read in the Org manual, about scheduled tasks : A reminder that the scheduled date has passed will be present in the compilation for today, until the entry is marked DONE, i.e., the task will automatically be forwarded until completed. Sometimes, I schedule a task but can only carry out my second day of work on that task one week later (or my first day if I couldn't work on it on the scheduled day). I would like to know if it is possible to schedule a task, for example, on a Sunday, and see it appear in the agenda the next Sunday with the mention Sched. 2x: TODO my task. This way I know I have to carry out my second day of work on that task on that day. I tried to use delays for this but couldn't obtain anything. I'm sorry if this is standard functionality or if it has been answered somewhere. I usually find all my answers about org-mode online but this time I couldn't find any info. This hasn't been answered yet, neither is it a common request. FWIW, I removed such scheduling info (2x, 3x...) because it scared me to hell when it went over 99 days delay. But, to answer you, no, I don't think it's doable in the current system. Though, you could get more or less the same functionality by clocking time, rescheduling your task for the available Sunday, and clock again. On that day, you would see that you're clocking hours 8 to 15 of your work. Best regards, Seb -- Sebastien Vauban
Re: [O] Babel issue after upgrade to Org 8?
Hi Eric! Thanks for the help. Your command was quite useful. It turns out that on emacs23, you get defined? nil However, on emacs24 you get defined? t So it seems I just need to use the newest emacs version! Thanks! Rasmus 2013-10-25 03:48, Eric Schulte skrev: The `org-babel-do-load-languages' function is defined in the current version of Emacs and with the current Org-mode. Maybe the debian package is screwed up in some way? I get the following $ emacs --batch --eval '(message defined? %S (functionp (quote org-babel-do-load-languages)))' defined? t with the following version of Emacs $ emacs --version GNU Emacs 24.3.1 Copyright (C) 2013 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Best, Rasmus rasm...@kth.se writes: SabreWolfy sabrewolfy at gmail.com writes: I've recently updated my Debian unstable installation and Emacs now reports this on startup: Symbol's function definition is void: org-babel-do-load-language My .emacs includes: (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) I've searched for a solution and read the notes about upgrading to Org 8 (which may have occurred during the update?), but have not found a solution. Can someone point me in the right direction, please? Thanks. I just had this problem after upgrading from Ubuntu 13.04 to 13.10. I have not changed my .emacs file, and the part which loads babel in my .emacs file reads (org-babel-do-load-languages 'org-babel-load-languages '((python . t) )) The error I get reads, Symbol's function definition is void: org-babel-do-load-languages I'm on org-mode 8.0.6 (Ubuntu package: https://launchpad.net/ubuntu/+source/org-mode/8.0.6-3 ), and I believe this package is straight from the Debian packages. Did this problem ever get resolved? Needless to say, everything worked before the upgrade. Thanks, Rasmus -- Rasmus Karlsson, PhD student Applied Electrochemistry School of Chemical Science and Engineering KTH Royal Institute of Technology SE-100 44 Stockholm Sweden
Re: [O] Problem with automatic recursive adding of org-agenda-files
Follow up: at almost the end of my previous message I meant to say that: ...by: changing the name of the file, updating agenda with g and pressing * R[emove]*. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. Sorry for any confusion. /Tor 2013/10/23 Tor Eriksson teriksson2...@gmail.com Hello all, I have searched the web without finding a solution to the following problem: I am using this snippet in my .emacs.d (using emacs starterkit) to dynamically and recursively load all org files in the directory important-directory and any subdirectory of this directory: (load-library find-lisp) (setq org-agenda-files (find-lisp-find-files /home/user/important-directory \.org$)) The snippet comes from http://orgmode.org/worg/org-faq.html This set-up has worked fine for more than two years; every time I add a new subdirectory with an .org file, this file gets picked up for the agenda. My problem is that now suddenly, one subdirectory with an .org file does not get picked up and I can not for the world figure out what is wrong. I had a file important-directory/sd/file.org that was picked up by the snippet. Then, without restarting, I changed the name to file-2.org. When refreshing the agenda with g it complains that the file is missing: Non-existent agenda file /file.org. [R]emove from list or [A]bort?. I chose Remove, thinking that restarting emacs with the snippet would pick up the new file name instead. However, what happens is that the new file name is not picked up. If I restart/run snippet, org-agenda-files is built but without the new file. I tested to see if some other code were responsible by commenting out the snippet with ;;. Upon restart org-agenda-files was not built/created as expected. Uncommenting the snippet and org-agenda-files was back but still without the new file file2.org. In fact, now I can not get the snippet to pick up *any *new .org file in the directory .../important-directory or subdiretory! Even when the new .org file sits adjacent to a file that is picked up by the snippet. Also, if I do the same procedure again to another file that is picked up by the snippet by: changing the name of the file, updating agenda with g and pressing Abort. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. This is causing serious trouble to me, since I use this system to keep track of deadlines that are really important. Does anybody have any ideas? Kind regards, Tor
[O] org-slidy in org 8.x?
Hey everyone, I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy) to create HTML-based slideshows using org-mode, but it doesn't seem to be working. I'm not sure, but I suspect this is because the syntax for org's HTML export may have changed? Here are the options used by org-slidy. https://gist.github.com/7129945 I tried to fix it by taking out the -export from the commands, but it didn't work. Does anyone know the new correct syntax for these options? I'm having similar issues trying to use Takumi Kinjo's org-html5presentation (https://github.com/kinjo/org-html5presentation.el) and org-impress-js (https://github.com/kinjo/org-impress-js.el). I get errors like void-variable org-export-html-special-string-regexps, but I don't know enough to change the commands into org-8ese. Does anyone know how to do this? Finally, are there good HTML-based slideshows that are compatible with org 8.x? Thanks! #+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t #+BIND: org-export-html-style-include-default nil #+BIND: org-export-html-style-include-scripts t #+BIND: org-export-html-auto-preamble nil #+BIND: org-export-html-auto-postamble nil #+BIND: org-export-html-style !-- configuration parameters -- meta name='duration' content='5' / meta name='font-size-adjustment' content='2' / !-- style sheet links -- link rel='stylesheet' href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script src='htmlslidy-slides.js' type='text/javascript'/script script src='slidy.js' type='text/javascript'/script script src='jquery.js' type='text/javascript'/script script src='org-slidy-slides.js' type='text/javascript'/script #+BIND: org-export-html-style-extra #+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function #+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function jaydixit.com newyorkwritersintensive.com follow @jaydixit https://twitter.com/jaydixit/ Jay Dixit
[O] Problem with automatic recursive adding of org-agenda-files
Hello all, I have searched the web without finding a solution to the following problem: I am using this snippet in my .emacs.d (using emacs starterkit) to dynamically and recursively load all org files in the directory important-directory and any subdirectory of this directory: (load-library find-lisp) (setq org-agenda-files (find-lisp-find-files /home/user/important-directory \.org$)) The snippet comes from http://orgmode.org/worg/org-faq.html This set-up has worked fine for more than two years; every time I add a new subdirectory with an .org file, this file gets picked up for the agenda. My problem is that now suddenly, one subdirectory with an .org file does not get picked up and I can not for the world figure out what is wrong. I had a file important-directory/sd/file.org that was picked up by the snippet. Then, without restarting, I changed the name to file-2.org. When refreshing the agenda with g it complains that the file is missing: Non-existent agenda file /file.org. [R]emove from list or [A]bort?. I chose Remove, thinking that restarting emacs with the snippet would pick up the new file name instead. However, what happens is that the new file name is not picked up. If I restart/run snippet, org-agenda-files is built but without the new file. I tested to see if some other code were responsible by commenting out the snippet with ;;. Upon restart org-agenda-files was not built/created as expected. Uncommenting the snippet and org-agenda-files was back but still without the new file file2.org. In fact, now I can not get the snippet to pick up *any *new .org file in the directory .../important-directory or subdiretory! Even when the new .org file sits adjacent to a file that is picked up by the snippet. Also, if I do the same procedure again to another file that is picked up by the snippet by: changing the name of the file, updating agenda with g and pressing Abort. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. This is causing serious trouble to me, since I use this system to keep track of deadlines that are really important. Does anybody have any ideas? Kind regards, Tor
[O] org-slidy in org 8.x?
Hey everyone, I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy) to create HTML-based slideshows using org-mode, but it doesn't seem to be working. I'm not sure, but I suspect this is because the syntax for org's HTML export may have changed? Here are the options used by org-slidy. https://gist.github.com/7129945 Are these commands still correct? If not, does anyone know the new correct syntax? Thanks! #+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t #+BIND: org-export-html-style-include-default nil #+BIND: org-export-html-style-include-scripts t #+BIND: org-export-html-auto-preamble nil #+BIND: org-export-html-auto-postamble nil #+BIND: org-export-html-style !-- configuration parameters -- meta name='duration' content='5' / meta name='font-size-adjustment' content='2' / !-- style sheet links -- link rel='stylesheet' href='slidy.css' type='text/css' / !-- HTMTLSLIDY JS -- script src='htmlslidy-slides.js' type='text/javascript'/script script src='slidy.js' type='text/javascript'/script script src='jquery.js' type='text/javascript'/script script src='org-slidy-slides.js' type='text/javascript'/script #+BIND: org-export-html-style-extra #+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function #+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function Jay Dixit jaydixit.com newyorkwritersintensive.com (646) 355-8001 follow @jaydixit https://twitter.com/jaydixit/ Jay Dixit
Re: [O] make new links show as figures?
I realize that. I offered this approach as an alternative, as I believe I can add the functionality to expand inline images in the description portion, but i don't see a way to make the link portion accept aliases for the file: protocol without major changes to link handling. Even then, it seems a bit like a hack. [many use cases omitted] Those are what I was thinking about for using other links as images. Other than having to repeat yourself, wouldn't the [[custom:file.ext][file:file.**png]] syntax allow for most/all of the use cases mentioned? rick Yes, I think [[custom:file.ext][file:file.png]] would cover all those cases.
[O] generating ToC for existing PDF?
Hi all, I have an existing PDF, along with a text file table of contents. Is it possible to use org to generate a new PDF which includes a ToC at the beginning, where each item in the ToC is hyperlinked to its corresponding page in the original PDF? I see that org understands hyperlinks like: docview:papers/last.pdf::NNN but I'm not sure if exporting to PDF would preserve those hyperlinks, and even if so, when merging the generated ToC with the original PDF, there would need to be a way to adjust them to point within the new merged file. Thanks, Adam
Re: [O] Problem with automatic recursive adding of org-agenda-files
Tor Eriksson wrote: In fact, now I can not get the snippet to pick up *any *new .org file in the directory .../important-directory or subdiretory! Even when the new .org file sits adjacent to a file that is picked up by the snippet. Also, if I do the same procedure again to another file that is picked up by the snippet by: changing the name of the file, updating agenda with g and pressing Abort. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. This is causing serious trouble to me, since I use this system to keep track of deadlines that are really important. Does anybody have any ideas? Check you don't have a customize-variables section at the end of your .emacs file. If you once did `[' or `]' or some such to add one Org file, Org adds a line in your .emacs file. And that one will override your settings!! Really hard to find, if we don't think at such... Best regards, Seb -- Sebastien Vauban
[O] Setting the PDF viewer
If I have a file:./paper.pdf link in an Org document, the PDF opens using GV when I click on the link. I like GV, but it doesn't support links. How do I change the PDF viewer for file:./paper.pdf external links? Scott Randby
Re: [O] Setting the PDF viewer
The variable to set is `org-file-apps'. Here's what I have currently: (setq org-file-apps '((auto-mode . emacs) (\\.x?html?\\' . firefox %s) (\\.pdf\\' . evince \%s\) (\\.pdf::\\([0-9]+\\)\\' . evince \%s\ -p %1) (\\.pdf.xoj . xournal %s))) Just change evince to your favorite viewer. And make sure that you're calling `org-return' to open (it's bound to C-m). Oleh On Sat, Oct 26, 2013 at 5:14 PM, Scott Randby sran...@gmail.com wrote: If I have a file:./paper.pdf link in an Org document, the PDF opens using GV when I click on the link. I like GV, but it doesn't support links. How do I change the PDF viewer for file:./paper.pdf external links? Scott Randby
[O] Giving priority to overdue habits that repeat more frequently
Dear Org mode hackers, Here is a patch to give priority to overdue habits that repeat more frequently. The number of times a habit would have been done if it had always been on time is made a factor in its urgency score. I'm not sure if this is true for everyone but my more frequently repeating habits are generally the ones I give priority to, so this behavior seems to fit. Thanks, Thomas From cc25d929f6eafeda89c75364068572d0aed3502d Mon Sep 17 00:00:00 2001 From: Thomas Morgan t...@ziiuu.com Date: Sun, 28 Jul 2013 17:43:19 +0200 Subject: [PATCH] Give priority to overdue habits that repeat more frequently. lisp/org-habit.el (org-habit-get-priority): Take into account the frequency of overdue habits. Weight those that repeat often higher than those that repeat infrequently. --- lisp/org-habit.el | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lisp/org-habit.el b/lisp/org-habit.el index eba9037..23713cf 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -230,20 +230,30 @@ This must take into account not just urgency, but consistency as well. (let ((pri 1000) (now (if moment (time-to-days moment) (org-today))) (scheduled (org-habit-scheduled habit)) - (deadline (org-habit-deadline habit))) + (deadline (org-habit-deadline habit)) + (s-repeat (org-habit-scheduled-repeat habit)) + (d-repeat (org-habit-deadline-repeat habit))) ;; add 10 for every day past the scheduled date, and subtract for every ;; day before it (setq pri (+ pri (* (- now scheduled) 10))) +;; if overdue, add 20 for every time it would have been done if +;; consistently performed on scheduled date +(when ( scheduled now) + (setq pri (+ pri (* (/ (- now scheduled) s-repeat) 20 ;; add 50 if the deadline is today (if (and (/= scheduled deadline) (= now deadline)) (setq pri (+ pri 50))) -;; add 100 for every day beyond the deadline date, and subtract 10 for -;; every day before it (let ((slip (- now (1- deadline + ;; add 100 for every day beyond the deadline date, and subtract 10 for + ;; every day before it (if ( slip 0) (setq pri (+ pri (* slip 100))) - (setq pri (+ pri (* slip 10) + (setq pri (+ pri (* slip 10 + ;; if overdue, add 200 for every time it would have been done if + ;; consistently performed the day before deadline + (when ( slip 0) + (setq pri (+ pri (* (/ slip d-repeat) 200) pri)) (defun org-habit-get-faces (habit optional now-days scheduled-days donep) -- 1.7.10.4
Re: [O] Setting the PDF viewer
On 10/26/2013 11:26 AM, Oleh wrote: The variable to set is `org-file-apps'. Here's what I have currently: (setq org-file-apps '((auto-mode . emacs) (\\.x?html?\\' . firefox %s) (\\.pdf\\' . evince \%s\) (\\.pdf::\\([0-9]+\\)\\' . evince \%s\ -p %1) (\\.pdf.xoj . xournal %s))) Just change evince to your favorite viewer. And make sure that you're calling `org-return' to open (it's bound to C-m). Oleh This is exactly what I need and it has the added benefit of showing me how to open XOJ files in Xournal via an external link in an Org file. Many thanks. Scott On Sat, Oct 26, 2013 at 5:14 PM, Scott Randby sran...@gmail.com wrote: If I have a file:./paper.pdf link in an Org document, the PDF opens using GV when I click on the link. I like GV, but it doesn't support links. How do I change the PDF viewer for file:./paper.pdf external links? Scott Randby
Re: [O] Can't get listings to work
Apologies for the noise. I'm exporting two documents with different requirements and put the configuration in the wrong place. Now that it is in the right place, all works as it should. Is the docstring for org-latex-listing-options correct? I had to use double backslashes instead of the single backslashes shown in the docstring. Tom t...@tsdye.com (Thomas S. Dye) writes: Aloha all, I've set org-latex-listings-options so: org-latex-listings-options is a variable defined in `ox-latex.el'. Its value is ((frame lines) (basicstyle \footnotesize) (numbers left)) But I'm getting this in the LaTeX output: \lstset{language=Lisp,label=load-age-relation-data,numbers=none} I'm expecting: \lstset{language=Lisp,label=load-age-relation-data,numbers=none,frame=lines,basicstyle=\footnotesize,numbers=left} Perhaps I'm setting org-latex-listings-options wrong? I'm trying to use file-local variables: # Local Variables: # eval: (require 'ox-latex) # eval: (setq org-export-async-init-file (expand-file-name init-plos.el)) # org-export-in-background: t # org-export-async-debug: t # org-fontify-quote-and-verse-blocks: t # org-entities-user: nil # org-latex-listings: 'listings # eval: (setq org-latex-listings-options #'((frame lines) # (basicstyle \footnotesize) # (numbers left))) ... # End: Also, when I tried to add the following pair to the options, the \t was interpreted as a TAB. (numberstyle \tiny) I tried \\tiny, but that didn't work, either. Any help much appreciated. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Problem with automatic recursive adding of org-agenda-files
On Oct 26, 2013, at 10:12 AM, Sebastien Vauban sva-n...@mygooglest.com wrote: Tor Eriksson wrote: In fact, now I can not get the snippet to pick up *any *new .org file in the directory .../important-directory or subdiretory! Even when the new .org file sits adjacent to a file that is picked up by the snippet. Also, if I do the same procedure again to another file that is picked up by the snippet by: changing the name of the file, updating agenda with g and pressing Abort. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. This is causing serious trouble to me, since I use this system to keep track of deadlines that are really important. Does anybody have any ideas? Check you don't have a customize-variables section at the end of your .emacs file. If you once did `[' or `]' or some such to add one Org file, Org adds a line in your .emacs file. And that one will override your settings!! Really hard to find, if we don't think at such… I add the follow to my setup to avoid any possibility of this: (add-hook 'org-mode-hook '(lambda () (org-defkey org-mode-map \C-c['undefined) (org-defkey org-mode-map \C-c]'undefined)) 'append)
Re: [O] Can't get listings to work
Hello, t...@tsdye.com (Thomas S. Dye) writes: Is the docstring for org-latex-listing-options correct? I had to use double backslashes instead of the single backslashes shown in the docstring. You're right. I fixed it. Thank you. Regards, -- Nicolas Goaziou
[O] Capture templates with function type
Hi, I'm trying to set up a capture template of type function in order to produce a daily log file named after today's date. It mostly works. However, after doing the C-cC-c to close the capture buffer the window is left holding the daily log file which the capture just updated instead of going back to whatever buffer I was in when I initiated the capture. This returning-to-previous-buffer behavior is what I see when I use the file+headline capture type. Can someone say how I might get this behavior for the function capture type as well? Here is my setup: (defun bv-daily-log-file () (find-file (concat ~/org/web/notes/ (format-time-string %Y-%m-%d) .org)) (goto-char (point-max)) (newline 2) ) (setq org-capture-templates (quote ( (n Note entry (function bv-daily-log-file) \* %U %^{title}\n %a\n\n%? :empty-lines 1) ))) Thanks, -Brett. pgp3fjuT9LesZ.pgp Description: PGP signature
Re: [O] org babel before excute hook
I have confirmed that this works. Thank you. On 10/14/13, Eric Schulte schulte.e...@gmail.com wrote: I just pushed up a change so that `org-confirm-babel-evaluate' will always be called from the head of the code block being evaluated. So the info can always be reached with something like the following. (setf org-confirm-babel-evaluate (lambda (rest args) (message info: %S (org-babel-get-src-block-info 'light)) nil)) -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
[O] [PATCH] Add \endifrsthead to longtable export
Aloha all, Previously, export of LaTeX longtables that spanned a page break generated a caption on each page, resulting in multiple entries in the table of contents. The attached patch for ox-latex.el implements the \endfirsthead command so the caption only appears once, at the top of the table. Subsequent pages of the table start with Continued from previous page. All the best, Tom From 1e205d7e2a5913580934ddee5285cc8ab0ff6f35 Mon Sep 17 00:00:00 2001 From: Thomas Dye t...@tsdye.com Date: Sat, 26 Oct 2013 13:52:05 -1000 Subject: [PATCH] Add \endfirsthead to longtable export --- lisp/ox-latex.el | 13 + 1 file changed, 13 insertions(+) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index aa1a36c..6426d55 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2624,11 +2624,24 @@ a communication channel. ;; Special case for long tables. Define header and footers. ((and longtablep (org-export-table-row-ends-header-p table-row info)) (format %s +\\endfirsthead +\\multicolumn{%d}{l}{Continued from previous page} +%s +%s \n +%s \\endhead %s\\multicolumn{%d}{r}{Continued on next page} \\endfoot \\endlastfoot (if booktabsp \\midrule \\hline) + (cdr (org-export-table-dimensions + (org-export-get-parent-table table-row) info)) + (cond ((and booktabsp (memq 'top borders)) \\toprule\n) + ((and (memq 'top borders) + (memq 'above borders)) \\hline\n) + (t )) + contents + (if booktabsp \\midrule \\hline) (if booktabsp \\midrule \\hline) ;; Number of columns. (cdr (org-export-table-dimensions -- 1.8.3.3 -- T.S. Dye Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com
[O] [PATCH] Longtable continuation strings customizable
Aloha all, The attached patch should be applied on top of the earlier patch. It makes the continuation strings customizable. All the best, Tom From 2b3fbcf9a8ea64ef6207237ef48b9c62cded01ff Mon Sep 17 00:00:00 2001 From: Thomas Dye t...@tsdye.com Date: Sat, 26 Oct 2013 14:37:30 -1000 Subject: [PATCH] Longtable continuation strings customizable --- lisp/ox-latex.el | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 6426d55..6bca7a3 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -525,6 +525,19 @@ When nil, no transformation is made. (string :tag Format string) (const :tag No formatting))) +(defcustom org-latex-longtable-continued-on Continued on next page + String to indicate table continued on next page. + :group 'org-export-latex + :version 24.4 + :package-version '(Org . 8.0) + :type 'string) + +(defcustom org-latex-longtable-continued-from Continued from previous page + String to indicate table continued from previous page. + :group 'org-export-latex + :version 24.4 + :package-version '(Org . 8.0) + :type 'string) Text markup @@ -2625,17 +2638,18 @@ a communication channel. ((and longtablep (org-export-table-row-ends-header-p table-row info)) (format %s \\endfirsthead -\\multicolumn{%d}{l}{Continued from previous page} +\\multicolumn{%d}{l}{%s} %s %s \n %s \\endhead -%s\\multicolumn{%d}{r}{Continued on next page} +%s\\multicolumn{%d}{r}{%s} \\endfoot \\endlastfoot (if booktabsp \\midrule \\hline) (cdr (org-export-table-dimensions (org-export-get-parent-table table-row) info)) + org-latex-longtable-continued-from (cond ((and booktabsp (memq 'top borders)) \\toprule\n) ((and (memq 'top borders) (memq 'above borders)) \\hline\n) @@ -2645,7 +2659,8 @@ a communication channel. (if booktabsp \\midrule \\hline) ;; Number of columns. (cdr (org-export-table-dimensions - (org-export-get-parent-table table-row) info + (org-export-get-parent-table table-row) info)) + org-latex-longtable-continued-on)) ;; When BOOKTABS are activated enforce bottom rule even when ;; no hline was specifically marked. ((and booktabsp (memq 'bottom borders)) \\bottomrule) -- 1.8.3.3 -- T.S. Dye Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com
Re: [O] Beamer export: one question and one bug
Jarmo Hurri jarmo.hu...@syk.fi writes: Greetings! Nicolas Goaziou n.goaz...@gmail.com writes: 1. First the question: when I export the org file below as Beamer (C-c C-e l O), I get an empty outline. How do I fix this? I cannot reproduce it. What happens with -q? The same thing: an empty outline. Seems to work fine for me with the older version that I was running, but I upgraded to latest and I get the beamer presentation I expected. To be exact, I ran emacs -q and the executed the following commands before loading the org-file, in order to use the newest version of org: (setq load-path (cons /home/jarmo/addons/emacs-packages/org/lisp load-path)) (require 'org) (require 'ox-beamer) Maybe this is related to TeX version? Mine is TeX 3.1415926 (TeX Live 2013) My TeX says This is TeX, Version 3.1415926 (TeX Live 2009/Debian) but I don't know whether that explains it. 2. Then the bug. If you remove the comment character in the second slide, Beamer export gives an error, while a regular LaTeX export (C-c C-e l o) produced output. The export process doesn't unencode hexified links, so the problem doesn't come from the equality sign but from the percent one. Ok. This problem was discussed recently (look for a thread named Encoding Problem in export? on the ML), but, IIRC, no solution was found. I will read through the thread, but at the moment I don't understand why the Beamer export behaves differently than the regular LaTeX export. Export to Latex produces \section{And this is the second slide} \label{sec-2} \begin{itemize} \item with one commented item\ldots{} \item \ldots{} containing a \href{https://www.google.com/#q%3Dorg%2Bmode}{link} that will amaze the reader \end{itemize} Export to beamer produces \begin{frame}[label=sec-2]{And this is the second slide} \begin{itemize} \item with one commented item\ldots{} \item \ldots{} containing a \href{https://www.google.com/#q%3Dorg%2Bmode}{link} that will amaze the reader \end{itemize} \end{frame} so the link is treated exactly the same in the two cases. Probably the enclosing environment (\section vs \frame) is what causes the different behavior. -- Nick
[O] Setting properties when scrolling around buffer puts property in wrong headline
Greetings, I'm supposing there's no way around this... but I'm creating a taskjuggler document that's fairly wrong. I often find myself in a situation where I go to set a :depends: property to reference another headline and need to go see what it's task_id is. So, I scroll down, look at the task, then enter the correct task_id in the minibuffer (which is still active after doing C-c C-x p property-name RET), and then find that it's been inserted in a different headline since scrolling moves the point/cursor to a different headline. Again, I'm thinking that Emacs just works differently than other programs in that the cursor appears to move to stay in the view of the current buffer vs. staying at the existing point regardless of where I'm looking in the file. Is there a way around this issue? Almost like remembering the MARK where either 1) the command was initiated or 2) where it was when the property name was typed, followed by RET (but prior to setting the value) vs. wherever the cursor ends up between setting the property name and actually setting the value? Thanks! John P.S. if the issue is unclear, open up a longer Org document and unfold enough headlines so that the entire file cannot be viewed within the height. Go a headline near the top and do C-c C-x p. Type a property name and press RET. Now scroll down a bit in the buffer and then type in the name of the property and press RET. The property will be inserted in whatever headline you're cursor scrolled down to, not the headline in which you initiated the command.