Re: [Orgmode] Bug: can't insert new headline on top of file with `org-insert-headline-respect-content' [6.33trans]
Fixed, thanks. - Carsten On Nov 23, 2009, at 8:48 AM, David Maus wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. If `org-insert-heading-respect-content' is set to t Orgmode refuses to insert a new headline above the first headline. - create a new buffer called *test* (C-x b *test* RET) - turn on org-mode (M-x org-mode RET) - call `org-insert-heading-respect-content' *Messages* , | byte-code: Before first headline at position 1 in buffer *test* ` This is slightly annoying as I cannot insert a headlines in a brand new orgfile with M-Ret when the customization variable `org-insert-heading-respect-content' is set to t. Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-15 on elegiac, modified by Debian Package: Org-mode version 6.33trans current state: == (setq org-export-latex-default-class scrartcl org-clock-in-switch-to-state STARTED org-todo-keyword-faces '((TODO :foreground red :weight bold) (STARTED :foreground orange red :weight bold) (DONE :foreground light green) (MAYBE :foreground tomato) (WAITING :foreground tan2 :weight bold) (CANCELLED :foreground firebrick)) org-expiry-insert-created-only-if-todo t org-agenda-custom-commands '((r Refile New Notes and Tasks tags LEVEL=1+REFILE ((org-agenda-todo-ignore-with-date nil))) (s Started Tasks todo STARTED ((org-agenda-todo-ignore-scheduled nil) (org-agenda-todo- ignore-deadlines nil) (org-agenda-todo-ignore-with-date nil)) ) ) org-agenda-files '(XXX) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-agenda-tags-column -120 org-checklist-export-function 'org-export-as-ascii org-completion-use-ido t org-expiry-created-property-name Created org-after-todo-state-change-hook '(org-clock-out-if-current org- expiry-insert-created org-checklist) org-expiry-expiry-timestamp-active nil org-agenda-todo-ignore-scheduled t org-todo-state-tags-triggers '((todo (NOTE)) ( (NOTE . t))) org-log-redeadline 'time org-expiry-created-timestamp-active nil org-export-preprocess-hook '(org-export-blocks-preprocess) org-tags-exclude-from-inheritance '(NOTE ATTACH APPT) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO(t) STARTED(s) | DONE(D@)) (sequence MAYBE(m) WAITING(w@/!) | CANCELLED(C@))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-directory ~/Org org-log-reschedule 'time org-insert-heading-hook '(org-expiry-insert-created) org-after-tags-change-hook '(org-expiry-insert-created) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist '((private-dynamic :base-directory ~/ Org/www :base-extension org :publishing-directory ~/www/private :publishing-function (org-publish-org-to- html) :recursive t :author David Maus :email maus.da...@gmail.com) (private-static :base-directory ~/Org/www :base- extension css :publishing-directory ~/www/private :publishing-function org-publish- attachment :recursive t) (private :components (private-dynamic private-static))) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5]) org-refile-targets '((org-agenda-files :maxlevel . 3)) org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-expiry-wait +3m org-log-into-drawer LOGBOOK org-agenda-todo-ignore-with-date t org-enforce-todo-dependencies t org-insert-heading-respect-content t org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\David Maus\\ org-tags-column -120 org-remember-templates '((todo 116 * TODO %^{Description} %^G \n :PROPERTIES:\n :Created: %U\n :Ref: %a\n :END: refile.org bottom nil) (appt 97 * %^{Description} :APPT:%^G\n %^T\n :PROPERTIES: \n :Created: %U\n :Ref: %a\n :END: refile.org bottom nil) (note 110 * %^{Description} %^G:NOTE:\n :PROPERTIES: \n :Created: %U\n :Ref: %a\n :END: refile.org bottom nil) (mail 109 * TODO %^{Action} %:fromaddress: %:subject %^G\n :PROPERTIES: \n :Created: %U\n :Ref:
Re: [Orgmode] Re: err... looking-back not defined in xemacs either
On Nov 21, 2009, at 6:15 PM, Andreas Gösele wrote: Wes Hardaker wjhns209 at hardakers.net writes: Is there going to be a patch for that? Or is there at least a work- around? I cannot find enough context here, can someone please summarize for me what this is about? Thanks. - Carsten Thanks Andreas Gösele ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
At Sun, 22 Nov 2009 23:52:50 +0100, Carsten Dominik wrote: Hi Eric, I have tried to fix this, please verify, and be on the look-out if this patch breaks something else. This is indeed working now! Thanks. However, a similar layout (using Matt's recent suggestion of enclosing the image in a center block): --8---cut here---start-8--- - This slide consists of a bullet point #+begin_center [[file:mip.png]] #+end_center - a figure (above this point) --8---cut here---end---8--- doesn't work. The same problem arises: the \end{itemize} falls between the \begin{center} and \end{center} statements. Thanks again, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: err... looking-back not defined in xemacs either
Carsten Dominik carsten.dominik at gmail.com writes: Is there going to be a patch for that? Or is there at least a work- around? I cannot find enough context here, can someone please summarize for me what this is about? The new functions org-cycle-level (org.el) and org-cycle-item-indentation (org-list.el) use looking-back which doesn't exit in XEmacs. So if I use tab to indent I get an error instead. As a matter of fact already org-mouse-end-headline, org-mouse-insert-item and org-mouse-context-menu in org-mouse.el use it, but I never encountered an error because of that. Thanks Andreas Gösele ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Wrapped links with long descriptions
Carsten Dominik carsten.domi...@gmail.com writes: Hi Matt, yes. The fact that this has not been reported earlier shows that this is not a frequent case. Fixed now, 2 lines are now allowed. Is that enough? Yes, I believe two should be enough. Thanks! - Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: err... looking-back not defined in xemacs either
Hi Andreas, thanks, I have just pused some compatibility code for this. - Carsten On Nov 23, 2009, at 12:18 PM, Andreas Gösele wrote: Carsten Dominik carsten.dominik at gmail.com writes: Is there going to be a patch for that? Or is there at least a work- around? I cannot find enough context here, can someone please summarize for me what this is about? The new functions org-cycle-level (org.el) and org-cycle-item- indentation (org-list.el) use looking-back which doesn't exit in XEmacs. So if I use tab to indent I get an error instead. As a matter of fact already org-mouse-end-headline, org-mouse-insert- item and org-mouse-context-menu in org-mouse.el use it, but I never encountered an error because of that. Thanks Andreas Gösele ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Single digit hours part in timestamps [6.33f (release_6.33f.16.ge103)]
Hi Andreas, time stamps have a fixed format, single-digit hours are not allowed. - Carsten On Nov 21, 2009, at 12:07 AM, Andreas Burtzlaff wrote: A single digit hours part like 9:00 is changed to 00:00 by org-clone-subtree-with-time-shift and when using S-arrow up on it: * Subtree to shift +1d with org-clone-subtree-with-time-shift ** An entry 2009-11-20 Fri 9:00 Results in: * Shifted subtree ** An entry 2009-11-21 Sat 00:00 The same also happens with S-arrow up on the time part of the stamp. I'm not quite sure a single digit hour is really according to the specification, but it is displayed correctly in the agenda. Andreas Emacs : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6) of 2009-11-18 on fluxx Package: Org-mode version 6.33f (release_6.33f.16.ge103) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Agenda: Column View and Filtering
Memnon Anon gegendosenflei...@googlemail.com writes: Hi! I am still working on making orgmode a more usefull tool for me :), how do you guys handle this problem: I schedule and reschedule tasks pretty often. (Thats why I, too, think a history of scheduling would be a nice addition to have.). Whenever a task comes up, I schedule it for some day in the future and handle it when it appears in my agenda. However, I try to keep a balance of several aspects in my life, mainly - duties like vacuum the flat - studium everything related to work at university - fun like reading a book, watching a dvd etc. and - sports: get in shape ;) Okay, as I frequently schedule and reschedule, I work from my agenda to keep these aspects of my life in a certain balance I predefined: studium: at least 6 hours a day, fun (I really need to make some place for it) at least 1 hour a day etc. So, as I added Efforts and Tags to each item, it would be very convenient to keep scheduling, then filter the agenda for certain aspects to get a feeling, if I keep my personal balance up on this specific day. However, using ColumnView on a filtered agenda, say show me only my 'duties', does not summarize the filtered agenda items, but everything, id est even everything that is hidden. I understand this is due to how filtering and columnview works, but Has anyone an idea/workflow how I can work on this? I tried to lock myself up into fixed times, repeating items etc. but I am not that kind of person: A new day, I want to know whats up, but I also want to stay free enough to shape things according to my (day) taste. I rather do a daily (each morning) and a weekly review and reschedule accordingly. I am a student, so I (still) have the possibility to do so; and I would like to keep it that way, but nevertheless want to have an eye on the general tendency, the balance of the several aspects I want to keep. I hope this is clear enough, Thanks for any suggestions! Hi Memnon, Yes, column view does not update its summaries based on filtering. But perhaps you could create a custom agenda block that shows separate agendas for each tag (duties, studium, etc.). E.g., --8---cut here---start-8--- (setq org-agenda-custom-commands '((b Balance ((agenda ((org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp :duties: (agenda ((org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp :studium:) ;; add more agenda views here ((org-agenda-view-columns-initially t) --8---cut here---end---8--- Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Column summaries no longer displayed in agenda
I recently attempted to view summaries of effort estimates in the agenda. When I invoke column view with C-c C-x C-c, however, there is no summary of the effort estimates or CLOCKSUM. Summaries do appear within an org file. Here are the relevant settings: --8---cut here---start-8--- (setq org-global-properties '((Effort_ALL . 0:05 0:10 0:15 0:30 0:45 1:00 1:30 2:00 3:00 4:00 5:00 6:00 7:00 8:00))) (setq org-columns-default-format %40ITEM(Task) %8Effort(Estimate){:} %8CLOCKSUM %20SCHEDULED %20DEADLINE) --8---cut here---end---8--- And here is a sample file to illustrate the problem: --8---cut here---start-8--- * Testing ** STARTED One item:NEXT: SCHEDULED: 2009-11-23 Mon :LOGBOOK: CLOCK: [2009-11-23 Mon 06:55]--[2009-11-23 Mon 07:03] = 0:08 :END: :PROPERTIES: :Effort: 2:00 :END: ** TODO Another item SCHEDULED: 2009-11-23 Mon :PROPERTIES: :Effort: 1:00 :END: --8---cut here---end---8--- Thanks, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] html export of inline tasks
Hi, would it be possible to add some tags to the html-exporter for inline tasks? I'd like to be able to show the todo keyword in a different color as it is possible for normal tasks. Normal task: span class=todo TODO TODO/span task description Inline task: dl dtTODO task description/dtdd /dd /dl Perhaps one could add a span tag to the keyword of inline tasks, too? Regards, Karl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] RFC: sort subtree by most recently clocked in and most time spend on
Hey there, I wrote a bit of code to do the things in the subject. I'm interested if someone has a better way to deal with the subtree copying thing I'm doing. I'm not really happy with using the kill-ring like that. `org-narrow-subtree' won't work, because `save-excursion' doesn't revert it to the previous state and the org-sort already uses it. Thanks in advance for looking over it! (defun ba/org-heading-clock-times () Return alist of clocktimes from current heading. (let* ((re (concat ^\\(\\*+\\)[ \t]\\|^[ \t]* org-clock-string [ \t]*\\(?:\\(\\[.*?\\]\\)-+\\(\\[.*?\\]\\)\\|=[ \t]+\\([0-9]+\\):\\([0-9]+\\)\\))) t1 ts te tsf tef dt results) (save-excursion ;; shut up about copying (flet ((message (rest ignored) nil)) (org-copy-subtree)) (with-temp-buffer (yank) (while (re-search-backward re nil t) (when (match-end 2) ;; Two time stamps (setq ts (match-string-no-properties 2) te (match-string-no-properties 3) tsf (org-float-time (apply 'encode-time (org-parse-time-string ts))) tef (org-float-time (apply 'encode-time (org-parse-time-string te))) dt (- tef tsf) t1 (floor (/ dt 60))) (add-to-list 'results `(,ts . ,t1)) results)) (defun ba/org-sort-most-time-spend () (let ((org-ts-w/mins (ba/org-heading-clock-times))) (- (apply '+ (mapcar '(lambda (a) (cdr a)) org-ts-w/mins) (defun ba/org-sort-most-recently-clocked () (let ((org-ts-w/mins (ba/org-heading-clock-times))) (if (not org-ts-w/mins) (org-float-time) (- (org-float-time) (org-float-time (apply 'encode-time (org-parse-time-string (caar org-ts-w/mins br, benny ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Blorgit Adding PDF export
Eric, Also, rather than using a shell script, would it be possible to use the built in `org-export-as-pdf' function. This may obviate the need for a shell script at all. In this case you probably wouldn't need to remove the leading . in the file names, and if you did, it could be done in elisp right around export with the `rename-file' function. Regarding the addition of an extra link in order to get the PDF export, I took your remarks into account and here's what I finally went to. First, add the .pdf link to the page: --8---cut here---start-8--- diff --git a/blorgit.rb b/blorgit.rb index 077b5d9..93bea47 100644 --- a/blorgit.rb +++ b/blorgit.rb @@ -197,6 +197,8 @@ __END__ %a{ :href = path_for(@blog, :format = 'org'), :title = 'download as org-mode' } .org %li %a{ :href = path_for(@blog, :format = 'tex'), :title = 'download as LaTeX' } .tex + %li +%a{ :href = path_for(@blog, :format = 'pdf'), :title = 'download as PDF' } .pdf #title_separator @@ sidebar --8---cut here---end---8--- In acts_as_org.rb, call a org-file-to-pdf emacs function: --8---cut here---start-8--- diff --git a/lib/acts_as_org.rb b/lib/acts_as_org.rb index 458741d..8e027fc 100644 --- a/lib/acts_as_org.rb +++ b/lib/acts_as_org.rb @@ -80,6 +80,24 @@ PREAMBLE l_path = self.latex_path(path) File.exist?(l_path) and File.mtime(l_path) File.mtime(path) end + +def pdf_path(path) + File.join(File.dirname(path), +ActiveFile::Acts::Org::EXP_PREFIX + File.basename(path) + .pdf) +end + +def to_pdf(path, options = {}) + p_path = self.pdf_path(path) + options = {:postamble = false}.merge(options) + self.emacs_run((org-file-to-pdf \#{path}\)) unless self.clean_pdf?(path) + return nil unless File.exist?(p_path) + html = File.read(p_path) +end + +def clean_pdf?(path) + p_path = self.pdf_path(path) + File.exist?(p_path) and File.mtime(p_path) File.mtime(path) +end end module InstanceMethods @@ -107,6 +125,19 @@ PREAMBLE self.class.to_latex(self.full_path, options) end alias :to_tex :to_latex + +def pdf_path + self.class.pdf_path(self.full_path) +end + +def clean_pdf? + self.class.clean_pdf?(self.full_path) +end + +def to_pdf(options = {}) + self.class.to_pdf(self.full_path, options) +end + end end end --8---cut here---end---8--- In org-interaction.el, added the org-file-to-pdf function: --8---cut here---start-8--- diff --git a/elisp/org-interaction.el b/elisp/org-interaction.el index 2311156..9b0d695 100644 --- a/elisp/org-interaction.el +++ b/elisp/org-interaction.el @@ -24,6 +24,7 @@ evaluating BODY. ,temp-result))) (defvar org-interaction-prefix .exported_) +(defvar tmp-prefix exported_) (defun org-file-to-html (file-path) Open up an org file, publish it to html, and then return the @@ -65,6 +66,31 @@ latex as a string. (write-file latex-path) (kill-buffer (current-buffer))) +(defun org-file-to-pdf (file-path) + Open up an org file and export it as pdf. + (let* ((file-name (file-name-nondirectory file-path)) +(file-dir (file-name-directory file-path)) +(org-tmp-path (expand-file-name (concat tmp-prefix file-name .org) /tmp/)) +(pdf-tmp-path (expand-file-name (concat tmp-prefix file-name .pdf) /tmp/)) +(tex-tmp-path (expand-file-name (concat tmp-prefix file-name .tex) /tmp/)) +(pdf-path (expand-file-name (concat org-interaction-prefix file-name .pdf) file-dir))) +(if (and (file-exists-p pdf-path) +( 0 (time-to-seconds + (time-subtract + (nth 5 (file-attributes pdf-path)) + (nth 5 (file-attributes file-path)) + pdf-path + (with-temp-filebuffer + file-path + (write-file org-tmp-path) + (org-mode) + (save-window-excursion +(org-export-as-pdf nil) +(rename-file pdf-tmp-path pdf-path) +(delete-file org-tmp-path) +(delete-file tex-tmp-path) +(kill-buffer (current-buffer))) + ;; customization (setq org-export-blocks-witheld '(hidden comment)) --8---cut here---end---8--- Note that I use the /tmp folder to store temporary files without the leading dot (the export do PDF does not work with a leading dot). What do you think? Thanks for your feedback. Regards, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org
[Orgmode] org-export-as-pdf Removing log files
Hi, When removing log files, the org-export-as-pdf function should also delete the .idx files: --8---cut here---start-8--- diff --git a/lisp/org-latex.el b/lisp/org-latex.el index ad45a21..17e038c 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -720,7 +720,7 @@ when PUB-DIR is set, use this as the publishing directory. (error PDF file was not produced) (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles - (dolist (ext '(aux log out toc)) + (dolist (ext '(aux idx log out toc)) (setq file (concat base . ext)) (and (file-exists-p file) (delete-file file (message Exporting to PDF...done) --8---cut here---end---8--- Regards, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-export-as-pdf Removing log files
Applied, thanks. - Carsten On Nov 23, 2009, at 2:04 PM, Francesco Pizzolante wrote: Hi, When removing log files, the org-export-as-pdf function should also delete the .idx files: --8---cut here---start-8--- diff --git a/lisp/org-latex.el b/lisp/org-latex.el index ad45a21..17e038c 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -720,7 +720,7 @@ when PUB-DIR is set, use this as the publishing directory. (error PDF file was not produced) (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles - (dolist (ext '(aux log out toc)) + (dolist (ext '(aux idx log out toc)) (setq file (concat base . ext)) (and (file-exists-p file) (delete-file file (message Exporting to PDF...done) --8---cut here---end---8--- Regards, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex export and beamer columns
Hi Eric, I am now getting interested in beamer support. I think this is interesting enough to implement special support for making beamer slides. Can I ask you to think about it in general terms, what would be useful to have? One of the problems with your most recent solution for the columns problem is that the document no longer exports really well to a normal LaTeX document - or is this no issue because beamer has its own way to produce handouts, so that the LaTeX export of a document intended for beamer is not so interesting? But also in a broader sense: What would be useful? I think making slides in this way, through org, could be extremely fast and useful. - Carsten On Nov 22, 2009, at 4:15 PM, Eric S Fraga wrote: At Sat, 21 Nov 2009 14:34:18 +0100, Carsten Dominik wrote: Anything missing in Org that we should implement to support this better? Actually, going through the set of lectures I am currently preparing, I am finding that there is one thing missing that I haven't needed before in latex export: the ability to centre a figure without having to use a float environment. Back in September, early October, there was a thread about image placement in latex export: http://article.gmane.org/gmane.emacs.orgmode/18174/ There was a number of use cases discussed: inline placement versus float placement. There is one use case missing, one that is particularly useful for presentations, although not often necessary for articles say, namely a figure centred on a line without a caption and without floating. This seemed to be present at some point in the past but has disappeared, unless I have misunderstood the state of play... Basically, I would like to do something like: , | In a double pipe heat exchanger, | | [[file:images/double-pipe-heat-exchanger.png]] | | the heat transfer etc. ad nauseum... ` and have that figure centred on the line instead of left aligned as it would currently appear. If I add a #+label: the image does appear centred but as this is done by using a latex figure environment, a Figure: caption (empty) is added which isn't particularly useful in this case! There *is* a solution, but it's a bit messy, e.g.: , | | \hfill | #+attr_latex: width=0.6\textwidth | [[file:images/double-pipe-heat-exchanger.png]] | \hspace*{\fill} \\ | ` By the way, an \hfill at the end is not sufficient to centre the image. I have no solution to propose for incorporating something like this into org-mode other than possibly making use of a placement=centre (oops, center if you prefer american spelling) option on attr_latex which would put the includegraphics within a \centerline or \centering environment. Thanks, eric - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-export-as-pdf Deleting the pdf file
Hi, When working with LaTeX files (and now with org files as well), we are used to open the resulting PDF files with Sumatra PDF viewer. It is very handy because it does not lock the file (like Adobe Reader) and thus enables us to recompile it while it is still open. It is then refreshed automatically at the end of the compilation. While using the org-export-as-pdf function, we are not able to get the same behavior as the function deletes the pdf file before the compilation. The deletion fails because the pdf file is opened in the viewer. Would it be possible to avoid deleting the pdf file before compilation? --8---cut here---start-8--- diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 5aa6409..6e1356d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -698,7 +698,6 @@ when PUB-DIR is set, use this as the publishing directory. (re-search-forward bibliography{ nil t cmd) (with-current-buffer outbuf (erase-buffer)) -(and (file-exists-p pdffile) (delete-file pdffile)) (message Processing LaTeX file...) (if (and cmds (symbolp cmds)) (funcall cmds file) --8---cut here---end---8--- Thanks, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-export-as-pdf Deleting the pdf file
Applied, thanks. - Carsten On Nov 23, 2009, at 3:14 PM, Francesco Pizzolante wrote: Hi, When working with LaTeX files (and now with org files as well), we are used to open the resulting PDF files with Sumatra PDF viewer. It is very handy because it does not lock the file (like Adobe Reader) and thus enables us to recompile it while it is still open. It is then refreshed automatically at the end of the compilation. While using the org-export-as-pdf function, we are not able to get the same behavior as the function deletes the pdf file before the compilation. The deletion fails because the pdf file is opened in the viewer. Would it be possible to avoid deleting the pdf file before compilation? --8---cut here---start-8--- diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 5aa6409..6e1356d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -698,7 +698,6 @@ when PUB-DIR is set, use this as the publishing directory. (re-search-forward bibliography{ nil t cmd) (with-current-buffer outbuf (erase-buffer)) -(and (file-exists-p pdffile) (delete-file pdffile)) (message Processing LaTeX file...) (if (and cmds (symbolp cmds)) (funcall cmds file) --8---cut here---end---8--- Thanks, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Blorgit Adding PDF export
Francesco Pizzolante f...@missioncriticalit.com writes: Eric, Also, rather than using a shell script, would it be possible to use the built in `org-export-as-pdf' function. This may obviate the need for a shell script at all. In this case you probably wouldn't need to remove the leading . in the file names, and if you did, it could be done in elisp right around export with the `rename-file' function. Regarding the addition of an extra link in order to get the PDF export, I took your remarks into account and here's what I finally went to. [snip] Note that I use the /tmp folder to store temporary files without the leading dot (the export do PDF does not work with a leading dot). What do you think? First off this looks great. Rather than explicitly using the /tmp directory i would recommend using the `make-temp-file' function, which should work across a wider range of systems. Additionally if you need to get the directory from a path, or combine a file-name and a directory name into a path I'd recommend the `expand-file-name' and `file-name-directory' functions respectively. With those change I would love to include this new feature into the main blorgit repository. Much Thanks -- Eric Thanks for your feedback. Regards, Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: latex export and beamer columns
Hi Eric and Carsten, Eric S Fraga wrote: At Sat, 21 Nov 2009 14:34:18 +0100, Carsten Dominik wrote: Anything missing in Org that we should implement to support this better? At the moment, the only thing that is missing in org-mode to beamer is some way to specify arguments to the \frame command, options such as [shrink] or [t]. At the moment, there is no mechanism that supports this. Something like attr_frame may be necessary just as we do with figures. I think another needed feature is for source code insertion. Then, one needs to set the frames as fragile. This could be best supported on a frame per frame basis. For the rest, I'm more than glad that Beamer will become an official target for Org. This is clearly wonderful. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Latex export to A4
As I understand it, orgmode defaults to A4, but I seem to be exporting to PDF via Latex in letter. And I have never had a problem before, but I am now exporting to PDF and when viewed the bottom of the page is cut off. Its strange because usually the viewer adjusts to the page size, but Acrobat is identifying the page as being letter size but only showing an A4 window of the text. The last line is listed in the hyperlinks, but not viewable. A4 is my normal default for everything Any one any idea what is going on here, I have the same problem with other viewers (Okular) Its 6.31a on Ubuntu 9.04 Thanks, Graham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Blorgit Adding PDF export
Eric, First off this looks great. Thanks. Rather than explicitly using the /tmp directory i would recommend using the `make-temp-file' function, which should work across a wider range of systems. Additionally if you need to get the directory from a path, or combine a file-name and a directory name into a path I'd recommend the `expand-file-name' and `file-name-directory' functions respectively. With those change I would love to include this new feature into the main blorgit repository. I tried to take your remarks into account as much as possible. I only changed org-interaction.el. Here's the diff: --8---cut here---start-8--- diff --git a/elisp/org-interaction.el b/elisp/org-interaction.el index 2311156..9b785e2 100644 --- a/elisp/org-interaction.el +++ b/elisp/org-interaction.el @@ -65,6 +65,31 @@ latex as a string. (write-file latex-path) (kill-buffer (current-buffer))) +(defun org-file-to-pdf (file-path) + Open up an org file and export it as pdf. + (let* ((file-name (file-name-nondirectory file-path)) +(file-dir (file-name-directory file-path)) +(org-tmp-path (make-temp-file org-file-to-pdf-)) +(pdf-tmp-path (concat org-tmp-path .pdf)) +(tex-tmp-path (concat org-tmp-path .tex)) +(pdf-path (expand-file-name (concat org-interaction-prefix file-name .pdf) file-dir))) +(if (and (file-exists-p pdf-path) +( 0 (time-to-seconds + (time-subtract + (nth 5 (file-attributes pdf-path)) + (nth 5 (file-attributes file-path)) + pdf-path + (with-temp-filebuffer + file-path + (write-file org-tmp-path) + (org-mode) + (save-window-excursion +(org-export-as-pdf nil) +(rename-file pdf-tmp-path pdf-path t) +(delete-file org-tmp-path) +(delete-file tex-tmp-path) +(kill-buffer (current-buffer))) + ;; customization (setq org-export-blocks-witheld '(hidden comment)) --8---cut here---end---8--- Is this better? Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Blorgit Adding PDF export
Thanks Francesco, These changes should now all be applied to the git repository. -- Eric Francesco Pizzolante f...@missioncriticalit.com writes: Eric, First off this looks great. Thanks. Rather than explicitly using the /tmp directory i would recommend using the `make-temp-file' function, which should work across a wider range of systems. Additionally if you need to get the directory from a path, or combine a file-name and a directory name into a path I'd recommend the `expand-file-name' and `file-name-directory' functions respectively. With those change I would love to include this new feature into the main blorgit repository. I tried to take your remarks into account as much as possible. I only changed org-interaction.el. Here's the diff: diff --git a/elisp/org-interaction.el b/elisp/org-interaction.el index 2311156..9b785e2 100644 --- a/elisp/org-interaction.el +++ b/elisp/org-interaction.el @@ -65,6 +65,31 @@ latex as a string. (write-file latex-path) (kill-buffer (current-buffer))) +(defun org-file-to-pdf (file-path) + Open up an org file and export it as pdf. + (let* ((file-name (file-name-nondirectory file-path)) +(file-dir (file-name-directory file-path)) +(org-tmp-path (make-temp-file org-file-to-pdf-)) +(pdf-tmp-path (concat org-tmp-path .pdf)) +(tex-tmp-path (concat org-tmp-path .tex)) +(pdf-path (expand-file-name (concat org-interaction-prefix file-name .pdf) file-dir))) +(if (and (file-exists-p pdf-path) +( 0 (time-to-seconds + (time-subtract + (nth 5 (file-attributes pdf-path)) + (nth 5 (file-attributes file-path)) + pdf-path + (with-temp-filebuffer + file-path + (write-file org-tmp-path) + (org-mode) + (save-window-excursion +(org-export-as-pdf nil) +(rename-file pdf-tmp-path pdf-path t) +(delete-file org-tmp-path) +(delete-file tex-tmp-path) +(kill-buffer (current-buffer))) + ;; customization (setq org-export-blocks-witheld '(hidden comment)) Is this better? Francesco ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] time ranged notes on the agenda
Hello. Isn't it wrong when a note like this: * A very interesting meeting 11:15-12:00 2009-11-30 Mon--2009-12-01 Tue Shows up in the agenda time gird only on monday while being untimed on tuesday? To make it right I do * A very interesting meeting 2009-11-30 Mon 11:15--2009-11-30 Mon 12:00 2009-12-01 Tue 11:15--2009-12-01 Tue 12:00 or simply * A very interesting meeting 11:15-12:00 2009-11-30 Mon 2009-12-01 Tue Which works but doesn't show the recurrence counter. Is it a bug or a feature? -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] text ignoring page breaks (was Latex export to A4)
Well this seems to be nothing to do with the page size as other files are working fine. I have now opened a new file and typed everything in from scratch and still getting the same problem. I have looked at the tex file and can't see anything obvious, but as a PDF the text runs over the page number and off the bottom of the page. I have attached the file in the hope someone can tell me what I am doing wrong. For now I have transferred it to Open Office to finish it, but really need to sort this out. I have upgraded to OrgMode 6.33f, still Ubuntu 9.04 Many thanks, Graham LatexTest.org Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] text ignoring page breaks (was Latex export to A4)
On Mon, Nov 23, 2009 at 9:27 AM, Graham Smith myotis...@gmail.com wrote: Well this seems to be nothing to do with the page size as other files are working fine. I have now opened a new file and typed everything in from scratch and still getting the same problem. I have looked at the tex file and can't see anything obvious, but as a PDF the text runs over the page number and off the bottom of the page. I have attached the file in the hope someone can tell me what I am doing wrong. For now I have transferred it to Open Office to finish it, but really need to sort this out. I have upgraded to OrgMode 6.33f, still Ubuntu 9.04 I think the problem is that you have no paragraphs, just headers. I hacked your file to have some random junk in a few of the sections and it turned out a lot better. I've noticed this about LaTeX in the past. Just an outline (section headers only) often turns out badly. Once you get some content, everything starts to lay itself out nicely. Hope this helps, Ed ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] text ignoring page breaks (was Latex export to A4)
Ed, I think the problem is that you have no paragraphs, just headers. I hacked your file to have some random junk in a few of the sections and it turned out a lot better. Indeed, I have just done the same, added a bit of text and it is working fine. I guess I haven't had a file of all headings before. Many thanks. That was a big help. Graham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
Dear Steve and All, Was this additional instance of emacs problem resolved? I am having the same problem also on windows XP. I wonder whether emacsclient or emacsclientw need to be called instead of a new instance of emacs. I am using: org-mode ver 6.33f emacs 22.2.1 windows XP Thanks, Stoph On Wed, Nov 18, 2009 at 7:38 PM, Charles Sebold csebold at gmail.com wrote: On Wed, Nov 18, 2009 at 9:19 AM, *Steve* *Brown* *steve*.*steve**brown* at gmail.com That does seem odd. Could you maybe do a M-x org-submit-bug-report, and if you aren't doing email in Emacs, copy and paste the output (with your org-mode configuration, it will prompt you to include it) into an email to emacs-orgmode at gnu.org? I'm running Emacs 23 on Windows, and using MobileOrg, and I haven't seen that problem. But we might have a start on it if you could send along your configuration and customizations per the above. This one seems strange enough that maybe it might even be worthwhile to send along the .emacs file, just in case (properly sanitized for personal info, of course). I'll do both of the above when I return to work. Best, *Steve* ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: org-mobile Bad file encoding [6.33trans]
I added the following lines (to my ~/.emacs file), as suggested by Richard and they work immediately. For what it's worth, I am running on Mac OS X 10.5.8 on an Intel MacBook, and I've had it for a few years and tweaked any number of little things. This may be a 'default' problem, but it might also be just because I've copied old customization buffers forward from other machines. Thanks, Richard, for the tip, and thanks to all the rest of you for the org-mode community. -Ben On 2009-Nov-23, at 02:37, Richard Moreland wrote: Hi Ben, I'm replying off-list because I'm not sure this is the answer, but: (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (setq default-buffer-file-coding-system 'utf-8) Between that mess of options, it seems that you be able to have your files default to UTF-8 (which is the encoding MobileOrg is looking for). If this works for you, would please let the list know so the solution is archived? I'll also update the website with the appropriate details. Thanks! Richard On Nov 22, 2009, at 3:20 PM, Ben Alexander wrote: Thanks for org-mode and MobileOrg! I'm very grateful for all the helpful hints I've seen on the mailing list too. I an have a small problem with MobileOrg. After doing an org-mobile-push and syncing the results to the iPod touch, the agendas.org file doesn't appear on the iPod. Instead, it appears as if the only heading is Bad file encoding and the body text is Unable to detect file encoding, please re-save this file using the proper encoding. At first I thought it was because I've got things like the pounds-sterling, t-with-a-comma, a-with-breve, and i-with-circumflex characters in my text (some of which contains Romanian, hence the especially odd t-with-a-comma). But I'm pretty sure I've expunged those characters from my files, and anyway, the agendas.org file should only contain the characters that my original org files contain. So, I'm happy enough to use the proper encoding, but I don't know what that is, and I don't save the adgendas.org file myself: org-mobile- push must do that on my behalf. If it is relevant, I am using a 5dollarhosting.com website for my webdav server, not my local machine, so I don't have complete control over the webserver configuration. I'm stumped as to what I should try next. Any pointers will be appreciated, Ben Alexander == Emacs : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version 1.6.0) of 2009-06-07 on scarlett.local - Aquamacs Distribution 1.8c Package: Org-mode version 6.33trans current state: == (setq org-remember-default-headline Remember Tasks org-todo-keyword-faces '((PROJECT :foreground blue :weight bold)) org-special-ctrl-a/e t org-agenda-custom-commands '((b Buy tags #(+TODO=\BUY\ 0 11 (face org-warning)) nil) (A Angella related questions tags #(angella 0 7 (face org-warning)) nil) (u unscheduled todo #(TODO|DEFER 0 10 (face org-warning)) ((org-agenda-skip-function (lambda nil (org-agenda-skip-entry-if (quote scheduled) (quote deadline) (quote regexp) [^\n]+))) (org-agenda-overriding-header Unscheduled TODO entries: ) (org-agenda-sorting-strategy (quote (todo-state-up ) ) org-agenda-files '(/Users/ben/Reference/GTD/Reference.org /Users/ ben/Reference/GTD/birthdays.org /Users/ben/Reference/GTD/ craiova.org /Users/ben/Reference/GTD/diary.org /Users/ben/ Reference/GTD/filetabs.org /Users/ben/Reference/GTD/projects.org) org-agenda-include-diary t org-agenda-window-setup 'current-window org-hide-leading-stars t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-skip-timestamp-if-done t org-after-todo-state-change-hook '(org-clock-out-if-current) org-agenda-todo-ignore-scheduled t org-odd-levels-only t org-log-state-notes-insert-after-drawers t org-special-ctrl-k t org-agenda-sorting-strategy '((agenda time-up tag-up) (todo category-keep priority-down) (tags category-keep priority-down) (search category-keep)) org-deadline-warning-days 7 org-stuck-projects '(/PROJECT (TODO BUY) nil ) org-export-preprocess-hook '(org-export-blocks-preprocess) org-mobile-inbox-for-pull ~/Reference/GTD/from-mobile.org org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide- block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-cycle-global-at-bob t org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO(t) WAITING(w) DONE(d!)) (type PROJECT(p) CLOSED(c!)) (sequence BUY(b) BOUGHT(B!))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/Reference/GTD/projects.org org-directory ~/Reference/GTD/ org-tag-alist '((:startgroup) (#(ben 0 3 (face nil)) .
[Orgmode] Re: Scheduling of 2-day events
Bernt Hansen wrote: Markus Heller helle...@gmail.com writes:, Bernt Hansen wrote: Markus Heller helle...@gmail.com writes: Bernt Hansen wrote: Markus Heller helle...@gmail.com writes: Hello, subject says it all. Is this the appropriate way of doing scheduling a 2-day event (couldn't find an example in the manual): * TODO Career/Training/Courses ** TODO Project Management Workshop SCHEDULED: 2009-11-19 Thu 9:00-16:30--2009-11-20 Fri 9:00-16:30 The agenda out put (C-c a a) looks like this: Thursday 19 November 2009 ABC: 9:00-16:30 Scheduled: TODO Project Management Workshop ABC: 9:00-16:30 (1/2): TODO Project Management Workshop Friday 20 November 2009 ABC: (2/2): TODO Project Management Workshop I would just drop the SCHEDULED: part ** TODO Project Management Workshop 2009-11-19 Thu 9:00-16:30--2009-11-20 Fri 9:00-16:30 so you don't get a duplicate entry. I'd also drop the TODO since it's scheduled for a block of time and when the time is gone it's done - whether you mark it DONE or not. Thanks for your reply, Bernt. The TODO changes to STARTED when I clock this task in, which I do when I'm working on my preparation. I could have a sub-task for preparation and clock this, but in the end, this doesn't really matter too much to me. Yes mine does too - but then I just move it back to no TODO keyword and keep the clock running. I don't normally clock in 'events', I clock in todo tasks - so if there's something to do to prepare for the event I would normally stick that in another task and clock that instead. Bernt, just curious, how do you bill for the time you spent at an event? My goal here is to try to catch all the time I spend on this workshop project'' (it's professional development so I have to bill all the time I spend on it) in my time table, that's why I'm clocking it. This should include preparation and the time I actually spend at the work shop. If I followed your example, I'd create a level-3 task (presumably) called ``Preparation'' and clock that, and the time spend on this task will show up in my time table. But what about the actual work shop? Say you were in the same situation, how would you go about this? Maybe a hidden org-mode gem that I haven't discovered yet? Hi Marcus Sorry if this reply is a bit late ... I just noticed your workshop is _today_. I would probably create a task something like this ,[ diary.org ] | ** Project Management Workshop 09:00-16:30 |2009-11-19 Thu--2009-11-20 Fri |[2009-11-19 Thu 07:57] ` to record the actual booked event with time. This blocks off a time in my calendar on the days of the event so I know I'm busy then. I would create separate todo tasks for clocking whatever I did during the workshop. ,[ work.org ] | * Training | ** TODO Project Management Workshop | *** TODO Preparation | [2009-11-19 Thu 08:03] | TODO clocked item 1 | [2009-11-19 Thu 08:03] | TODO clocked Item 2 | [2009-11-19 Thu 08:03] | *** TODO Day 1 (clocked) | [2009-11-19 Thu 08:01] | miscellaneous clocked time goes here | TODO subitem 1 | [2009-11-19 Thu 08:02] | TODO subitem 2 | [2009-11-19 Thu 08:02] | *** TODO Day 2 (clocked) | [2009-11-19 Thu 08:02] | TODO subitem 1 | [2009-11-19 Thu 08:02] | TODO subitem 2 | [2009-11-19 Thu 08:02] ` If it's a 2 day workshop I'm paid to attend then I'd clock the Day 1 and Day 2 items and just record subitems with details for the day (creating the subitems should create an inactive timestamp) so you know when you did it but you don't need to clock how long each subitem took. I would leave the clock on the Day entries and keep the detail under it. I tend to use remember tasks for miscellaneous unplanned tasks I need to do - like respond to this email - and clock it in when I start work on it (which may be the same time I create the task or it may not). If I'm clocking a Day 1 type task then I'll use remember mode to record new items and file under the current running clock. Each subitem records when it was created (via a hook or remember template) More detail is better than not enough - but you don't want to waste time trying to figure out what needs to be clocked - keep it as simple as you need. Bernt, thanks a lot for your detailed explanation, I'm sure it'll be helpful to me :) Thanks and Cheers Markus ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: time ranged notes on the agenda
lukasz.stelm...@iem.pw.edu.pl (Łukasz Stelmach) writes: Isn't it wrong when a note like this: * A very interesting meeting 11:15-12:00 2009-11-30 Mon--2009-12-01 Tue It's funny Markus has asked the same question few days ago in: he1hm3$5h...@ger.gmane.org What's more ausing is that in fact I also have Project Management Workshop :-) EOT. -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Scheduling of 2-day events
Bernt Hansen be...@norang.ca writes: Markus Heller helle...@gmail.com writes: Bernt Hansen wrote: Markus Heller helle...@gmail.com writes: Bernt Hansen wrote: Markus Heller helle...@gmail.com writes: Hello, subject says it all. Is this the appropriate way of doing scheduling a 2-day event (couldn't find an example in the manual): * TODO Career/Training/Courses ** TODO Project Management Workshop SCHEDULED: 2009-11-19 Thu 9:00-16:30--2009-11-20 Fri 9:00-16:30 The agenda out put (C-c a a) looks like this: Thursday 19 November 2009 ABC: 9:00-16:30 Scheduled: TODO Project Management Workshop ABC: 9:00-16:30 (1/2): TODO Project Management Workshop Friday 20 November 2009 ABC: (2/2): TODO Project Management Workshop I would just drop the SCHEDULED: part ** TODO Project Management Workshop 2009-11-19 Thu 9:00-16:30--2009-11-20 Fri 9:00-16:30 so you don't get a duplicate entry. I'd also drop the TODO since it's scheduled for a block of time and when the time is gone it's done - whether you mark it DONE or not. Thanks for your reply, Bernt. The TODO changes to STARTED when I clock this task in, which I do when I'm working on my preparation. I could have a sub-task for preparation and clock this, but in the end, this doesn't really matter too much to me. Yes mine does too - but then I just move it back to no TODO keyword and keep the clock running. I don't normally clock in 'events', I clock in todo tasks - so if there's something to do to prepare for the event I would normally stick that in another task and clock that instead. Bernt, just curious, how do you bill for the time you spent at an event? My goal here is to try to catch all the time I spend on this workshop project'' (it's professional development so I have to bill all the time I spend on it) in my time table, that's why I'm clocking it. This should include preparation and the time I actually spend at the work shop. If I followed your example, I'd create a level-3 task (presumably) called ``Preparation'' and clock that, and the time spend on this task will show up in my time table. But what about the actual work shop? Say you were in the same situation, how would you go about this? Maybe a hidden org-mode gem that I haven't discovered yet? Hi Marcus Sorry if this reply is a bit late ... I just noticed your workshop is _today_. I would probably create a task something like this ,[ diary.org ] | ** Project Management Workshop 09:00-16:30 |2009-11-19 Thu--2009-11-20 Fri |[2009-11-19 Thu 07:57] ` to record the actual booked event with time. This blocks off a time in my calendar on the days of the event so I know I'm busy then. I created something lik this (see: 878wdx1ajo@dasa3.iem.pw.edu.pl) -=-=-=- * Zarządzanie projektami 09:00-17:00 :POLITECHNIKA: 2009-12-02 śro --2009-12-03 czw -=-=-=- but I still get the second day below the time grid. Wednesday 2 December 2009 Projekty:9:00-17:00 (1/2): Zarządzanie projektami :POLITECHNIKA: Thursday3 December 2009 Projekty: (2/2): Zarządzanie projektami 09:00-17:00 :POLITECHNIKA: I get the proper result when I enumerate dates -=-=-=- * Zarządzanie projektami 09:00-17:00 :POLITECHNIKA: 2009-12-02 śro 2009-12-03 czw -=-=-=- but this makes the recurrence counters dissappear. -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [babel] editing LaTeX source code blocks
Aloha all, It is very convenient in org-babel to open a new buffer on a source code block with C-c ' and edit in that buffer using the appropriate Emacs major/minor modes. Currently, the LaTeX source code buffer doesn't have access to labels defined in other source code blocks. Outside of org-babel, when editing multi-file documents, reftex (or auctex, I'm not sure which) scans all the files referenced in the master file for labels and makes these available when adding a cross reference. It would be nice if C-c ' on a LaTeX source code block did something similar, perhaps by finding LaTeX source code blocks with a :tangle header argument and evaluating the noweb references to find label definitions. If it is the case that the Org-mode file contains more than one LaTeX source code block with a :tangle header argument, then perhaps the user could be given a choice of which one to search for label definitions. There are easy workarounds for this, so it isn't a big deal. It would be deluxe to leverage the full power of reftex while editing org-babel LaTeX source code blocks, though. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex export and beamer columns
At Mon, 23 Nov 2009 14:55:53 +0100, Carsten Dominik wrote: Hi Eric, I am now getting interested in beamer support. I think this is interesting enough to implement special support for making beamer slides. Excellent! Can I ask you to think about it in general terms, what would be useful to have? I've been using org-mode for my presentations for a few months now and intensively the past week or so for a set of lectures (70+ slides) I have to give starting tomorrow (yikes! had better get them finished...!). It's working remarkably well. Beamer has many many features and I think it would violate the ethos of org-mode if we attempted to support the majority of them. Although I can suggest a number of features I think would be nice to support, I'm sure others will have a different subset they think is critical... however, I will give it a go: 1. being able to easily specify columns. I've proposed a solution works well for me but it is a bit clumsy and does impose a meaning on the 3rd and 4th level headings. This might conflict with other potential uses for these headings obviously (cf. next point). Also, please see my response to your comment on the impact of this on normal latex export below. The nice thing about using headings to indicate columns is the ease with which the columns can be re-ordered. 2. it would be nice to support the block environment in beamer. The obvious way would be to use 3rd level headings to indicate blocks. In my case, I use these less frequently than columns which is why I chose to use 3rd level headings to indicate columns. However, a solution that catered for both would be great. one solution I am playing with, given that I often have blocks within columns, is to use the 5th level headings for block headings: --8---cut here---start-8--- (\\section{%s} . \\section*{%s}) (\\begin{frame}\\frametitle{%s} \\end{frame} \\begin{frame}\\frametitle{%s} \\end{frame}) (\\begin{columns} \% %s \\end{columns} \\begin{columns} \% %s \\end{columns}) (\\begin{column}{%s\\textwidth} \\end{column} \\begin{column}{%s\\textwidth} \\end{column}) (\\begin{block}{%s} \\end{block} \\begin{block}{%s} \\end{block}) --8---cut here---end---8--- For example, the following would generate a block within a full width column on the slide: --8---cut here---start-8--- *** Another slide * columns *** 1.0 * My proposition - work better - work faster - have a life --8---cut here---end---8--- Although clumsy, it works! (set H:5 of course) 3. support for animation, typically through the special N tags on items and blocks (and more generally on most latex environments), would be nice. This can be used to selectively display different parts of a slide. One way to implement this, at least for itemized lists, would be through a new bullet point syntax, as in: 1- item to display from first virtual slide onwards 2-3 display on second and third views of the slide -4 display up to 4th view which would translate to \begin{itemize} \item1- item to display from first virtual slide onwards \item2-3 display on second and third views of the slide \item-4 display up to 4th view \end{itemize} I have no idea how hard it would be to incorporate this into the current list handling however... although I can imagine it could be quite difficult. 4. as already mentioned in another email, passing arguments to the frame environment would also be quite useful. This could be done with an attribute type of framework as done for figures and tables. I don't use many options to frame but I do find the need to use [shrink=20] or similar often (because my default font setting for beamer is bigger and so slides with more than a few bullet points or equations quickly overflow the slide). 5. finally, I use tikz a great deal in my presentations. However, this is probably best handled by the normal embedded latex features already present. Again, this list is based on the features I find I use in beamer and others will have other requirements unfortunately. One of the problems with your most recent solution for the columns problem is that the document no longer exports really well to a normal LaTeX document - or is this no issue because beamer has its own way to produce handouts, so that the LaTeX export of a document intended for beamer is not so interesting? Yes, beamer provides a very nice handout mode (option handout to the beamer document class). But also in a broader sense: What would be useful? I think making slides in this way, through org, could be extremely fast and useful. It is indeed fast and very useful. It's made preparing my slides much less
[Orgmode] How to get visual-line-mode keep indentation on extra lines?
Laurent Bedubourg lbedubourg at gmail.com writes: Hello, First of all thank you very much for org-mode, it made me switch from vim to emacs and I really enjoy the trip :) There is this little thing which bother me and I am not sure if it's related to this thread or not: Re: [Orgmode] Re: org-indent-mode and visual-line-mode http://www.mail-archive.com/emacs-orgmode at gnu.org/ msg19713.html Here my little problem: When visual-line-mode is active and you resize your window (ubuntu karmic, official emacs 23 package) you often see something like this: * My list * Some thing this is longer back to line which is really anoying * Other thing which is truncated * Sub items with blah to line I would like to keep the indentation on these extra lines and get something like that: * My list * Some thing this is longer back to line which is really anoying * Other thing which is truncated * Sub items with blah to line Which I find more readable (no offence if someone prefers the former form, may be it's a question of taste :). Is there some way to achieve this with my current packages? Will installing org-mode using GIT sources provide the feature through org-indent-mode? Thank you for your help! PS: I also posted this question on stackoverflow in case the answer came up quickly http://stackoverflow.com/questions/1771981/how-to-keep-indentation -with-emacs-org-mode- visual-line-mode Dear all, i have a similar Problem with checkboxes. * TODO fix checkboxes in visual line mode - [-] thanks for org-mode [1/3] - [ ] i love lists - [X] an checkboxes - [ ] for example the next line begins to far to the left in emacs 23.1 with org-mode 6.33f - [X] The next line should start here. Thanks for all the good work! i use org-mode at work on an PC to organize, document and sort my projects. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: How to get visual-line-mode keep indentation on extra lines?
jan jan01s at gmx.de writes: sorry, my first example was not exact. * correct Example: * TODO fix checkboxes in visual line mode - [-] thanks for org-mode [1/3] - [ ] i love lists - [X] an checkboxes - [ ] for example the next line begins to far to the left in emacs 23.1 with org-mode 6.33f - [X] The next line should start here. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex export and beamer columns
Eric listed all (or almost all) requirements for exporting Beamer. Some of the mI encountered a few days ago. I decided to export the lists into latex and then converting by hand the rest of the presentation. I am also very happy that Beamer is becoming an official directive of org-mode. Carsten converted us to org-mode and we converted him to Beamer! Daniel 2009/11/23 Eric S Fraga ucec...@ucl.ac.uk: At Mon, 23 Nov 2009 14:55:53 +0100, Carsten Dominik wrote: Hi Eric, I am now getting interested in beamer support. I think this is interesting enough to implement special support for making beamer slides. Excellent! Can I ask you to think about it in general terms, what would be useful to have? I've been using org-mode for my presentations for a few months now and intensively the past week or so for a set of lectures (70+ slides) I have to give starting tomorrow (yikes! had better get them finished...!). It's working remarkably well. Beamer has many many features and I think it would violate the ethos of org-mode if we attempted to support the majority of them. Although I can suggest a number of features I think would be nice to support, I'm sure others will have a different subset they think is critical... however, I will give it a go: 1. being able to easily specify columns. I've proposed a solution works well for me but it is a bit clumsy and does impose a meaning on the 3rd and 4th level headings. This might conflict with other potential uses for these headings obviously (cf. next point). Also, please see my response to your comment on the impact of this on normal latex export below. The nice thing about using headings to indicate columns is the ease with which the columns can be re-ordered. 2. it would be nice to support the block environment in beamer. The obvious way would be to use 3rd level headings to indicate blocks. In my case, I use these less frequently than columns which is why I chose to use 3rd level headings to indicate columns. However, a solution that catered for both would be great. one solution I am playing with, given that I often have blocks within columns, is to use the 5th level headings for block headings: --8---cut here---start-8--- (\\section{%s} . \\section*{%s}) (\\begin{frame}\\frametitle{%s} \\end{frame} \\begin{frame}\\frametitle{%s} \\end{frame}) (\\begin{columns} \% %s \\end{columns} \\begin{columns} \% %s \\end{columns}) (\\begin{column}{%s\\textwidth} \\end{column} \\begin{column}{%s\\textwidth} \\end{column}) (\\begin{block}{%s} \\end{block} \\begin{block}{%s} \\end{block}) --8---cut here---end---8--- For example, the following would generate a block within a full width column on the slide: --8---cut here---start-8--- *** Another slide * columns *** 1.0 * My proposition - work better - work faster - have a life --8---cut here---end---8--- Although clumsy, it works! (set H:5 of course) 3. support for animation, typically through the special N tags on items and blocks (and more generally on most latex environments), would be nice. This can be used to selectively display different parts of a slide. One way to implement this, at least for itemized lists, would be through a new bullet point syntax, as in: 1- item to display from first virtual slide onwards 2-3 display on second and third views of the slide -4 display up to 4th view which would translate to \begin{itemize} \item1- item to display from first virtual slide onwards \item2-3 display on second and third views of the slide \item-4 display up to 4th view \end{itemize} I have no idea how hard it would be to incorporate this into the current list handling however... although I can imagine it could be quite difficult. 4. as already mentioned in another email, passing arguments to the frame environment would also be quite useful. This could be done with an attribute type of framework as done for figures and tables. I don't use many options to frame but I do find the need to use [shrink=20] or similar often (because my default font setting for beamer is bigger and so slides with more than a few bullet points or equations quickly overflow the slide). 5. finally, I use tikz a great deal in my presentations. However, this is probably best handled by the normal embedded latex features already present. Again, this list is based on the features I find I use in beamer and others will have other requirements unfortunately. One of the problems with your most recent solution for the columns problem is that the document no longer exports really well to a normal LaTeX document - or is this no issue because beamer has its
[Orgmode] mobile org capable devices
Hello, I am interested in using mobile org. I currently use an ancient nokia phone because I was never sure what feature set I wanted. Mobileorg may well be the app that pushes me to upgrade but to what?? The mobileorg site seems to say that this works for iphones - period Whereas the org-mobile.el has the following comment ;; The code is not specific for the iPhone, however. ;; Any external viewer/flagging/editing application that uses the same ;; conventions could be used It would be nice to list somewhere ein more or less generic terms what kind of phones can sync with mobileorg Thanks Rustom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex export and beamer columns
On Nov 23, 2009, at 11:15 PM, Eric S Fraga wrote: At Mon, 23 Nov 2009 14:55:53 +0100, Carsten Dominik wrote: Hi Eric, I am now getting interested in beamer support. I think this is interesting enough to implement special support for making beamer slides. Excellent! Can I ask you to think about it in general terms, what would be useful to have? I've been using org-mode for my presentations for a few months now and intensively the past week or so for a set of lectures (70+ slides) I have to give starting tomorrow (yikes! had better get them finished...!). It's working remarkably well. Beamer has many many features and I think it would violate the ethos :-) of org-mode if we attempted to support the majority of them. Although I can suggest a number of features I think would be nice to support, I'm sure others will have a different subset they think is critical... however, I will give it a go: 1. being able to easily specify columns. I've proposed a solution works well for me but it is a bit clumsy and does impose a meaning on the 3rd and 4th level headings. This might conflict with other potential uses for these headings obviously (cf. next point). Also, please see my response to your comment on the impact of this on normal latex export below. The nice thing about using headings to indicate columns is the ease with which the columns can be re-ordered. 2. it would be nice to support the block environment in beamer. The problem I see here is that one might want to have blocks inside a column, and maybe columns inside blocks. Is both allowed/practical/often-used? The obvious way would be to use 3rd level headings to indicate blocks. In my case, I use these less frequently than columns which is why I chose to use 3rd level headings to indicate columns. However, a solution that catered for both would be great. one solution I am playing with, given that I often have blocks within columns, is to use the 5th level headings for block headings: --8---cut here---start-8--- (\\section{%s} . \\section*{%s}) (\\begin{frame}\\frametitle{%s} \\end{frame} \\begin{frame}\\frametitle{%s} \\end{frame}) (\\begin{columns} \% %s \\end{columns} \\begin{columns} \% %s \\end{columns}) (\\begin{column}{%s\\textwidth} \\end{column} \\begin{column}{%s\\textwidth} \\end{column}) (\\begin{block}{%s} \\end{block} \\begin{block}{%s} \\end{block}) --8---cut here---end---8--- For example, the following would generate a block within a full width column on the slide: --8---cut here---start-8--- *** Another slide * columns *** 1.0 * My proposition - work better - work faster - have a life --8---cut here---end---8--- Although clumsy, it works! (set H:5 of course) 3. support for animation, typically through the special N tags on items and blocks (and more generally on most latex environments), would be nice. This can be used to selectively display different parts of a slide. One way to implement this, at least for itemized lists, would be through a new bullet point syntax, as in: 1- item to display from first virtual slide onwards 2-3 display on second and third views of the slide -4 display up to 4th view which would translate to \begin{itemize} \item1- item to display from first virtual slide onwards \item2-3 display on second and third views of the slide \item-4 display up to 4th view \end{itemize} I have no idea how hard it would be to incorporate this into the current list handling however... although I can imagine it could be quite difficult. I think you can just write - 1- item to display from first virtual slide onwards - 2-3 display on second and third views of the slide - -4 display up to 4th view Beamer seems to allow a space between \item and the animation specification. But maybe we should allow the itemize environment to be fitted with the cookie to invoke default animation... 4. as already mentioned in another email, passing arguments to the frame environment would also be quite useful. This could be done with an attribute type of framework as done for figures and tables. I don't use many options to frame but I do find the need to use [shrink=20] or similar often (because my default font setting for beamer is bigger and so slides with more than a few bullet points or equations quickly overflow the slide). Yes, I can see that this would be useful. 5. finally, I use tikz a great deal in my presentations. However, this is probably best handled by the normal embedded latex features already present. Again, this list is based on the features I find I use in beamer and others will have other requirements unfortunately. One of the problems with your most recent solution for the columns problem is that the document no longer