Re: [Orgmode] Re: Aligning Columns in HTML Export Tables
On Oct 20, 2010, at 7:16 PM, Bernt Hansen wrote: Jeff Horn jrhorn...@gmail.com writes: Is there a way to specify a particular column in org-mode that will be exported right-aligned in HTML? | A | B | C | | 1 | 2 | 3 | For the table above, I would like column C right aligned when I export to HTML, but the other column aligned in the default way (left aligned?). I think this is supposed to work but it seems the exporters do not honour the alignment details. | l | l | r | | A | B | C | | 1 | 2 | 3 | | 12 | 13 | 300 | | 9 | 11 | 4 | I have now fixed this issue, at least for the HTML exporter. 1. The HTML exporter now puts a style attribute onto each individual field to make sure the field is aligned correctly. Many Browsers need this, as pointed out by Sebastian. If you do not like this overhead, you can configure org-export-html-table-align-individual-fields. If you do, the alignment will still be noted in the column tags, handled correctly by Opera, but not by Firefox and Safari. 2. The HTML exporter will also honor a c cookie. Note that this will not change anything inside an Org buffer - this would be complex to implement because of all the extra magic Org does with limited column width etc etc. 3. The LaTeX exporter does not yet honor c, while it does honor l and r. The reason for this is that currently the vector remembering the alignment is a vector of booleans, and larger changes are necessary in order to allow for a third value. This will come, but I do not have the time today. Eric and Dan, please take note of this change and make sure that the Babel routines do not get in trouble by this new cookie. Baoqiu, (or any other users of the docbook exporter) I am not sure if the docbook format has suffered from this change, could you please run a few tests involving tables and report back? Jeff, thanks for kicking this threat off, this is a nice improvement. Cheers - Carsten Cheers Regards, Bernt ___ 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 ___ 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: C-c / r key-setting bug (?)
On Oct 22, 2010, at 9:40 AM, Andreas Röhler wrote: [ ... ] Still an issue: No brand of Emacs org-mode knows org-occur here M-x where-is org-occur == org-occur is not on any key Also when C-c / is pressed, there is no `r'-key displayed, see screenshot. As I have been trying to explain during this thread, Emacs does not know that org-occur is can be reached through `C-c / r'. So where-is cannot give you a reply. This is not a bug, it is in the nature of the dispatcher commands Org-mode uses. - Carsten Hi Carsten, unfortunatly the dispatcher doesn't know either. Missed to attach the sreenshot when reported. Here it is. I see. This is becasue `C-c / /' does the same thing. OK, I'll fix it to thow the r. Thanks BTW think I understand your use of the dispatcher. Think too it's helpful. Would be good if we could reflect how to reconcile this dispatcher with M-x describe-mode and related environment-tools. I think it is perfectly well supported by describe-bindings and describe-mode showing the key that leads to the dispatcher. Lets rest this issue. - 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: RFI -- Which completion system?
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Seb, Before spending a lot of time trying to choose for the best completion mechanism inside Emacs (and sticking to it), setting it up all the way through, I wanted to know if you had had: - particularly good or bad experiences with one of the standard ones? - things to notice regarding the integration with Org? From the many that do exist -- and which conflict in my =.emacs= file! --, I've spotted the following ones of being of real interest: - dabbrev - hippie-expand I use the former through the latter and bound M-/ to `hippie-expand' instead of the normal `dabbrev-expand'. In addition to the dabbrev expand facility, I've teached my hippie-expand to also complete elisp symbols, buffers, file names, and solve mathematical formulas: 3 + 5 * 7 = M-/ 3 + 5 * 7 = 38 Cool! ;-) Here's my config (the math stuff is stolen from someone): --8---cut here---start-8--- (global-set-key (kbd M-/) 'hippie-expand) (defun my-try-complete-with-calc-result (arg) complete `3 + 4 = TAB' to `3 + 4 = 7'. Great stuff by Michele Bini. http://www.emacswiki.org/cgi-bin/emacs-en/MicheleBini; (and (not arg) (eolp) (save-excursion (beginning-of-line) (when (and (boundp 'comment-start) comment-start) (when (looking-at (concat [ \n\t]* (regexp-quote comment-start))) (goto-char (match-end 0)) (when (looking-at [^\n\t ]+) (goto-char (match-end 0) (looking-at .* \\(\\([;=]\\) +$\\))) (save-match-data (require 'calc-ext nil t)) ;;(require 'calc-aent) (let ((start (match-beginning 0)) (op (match-string-no-properties 2))) (save-excursion (goto-char (match-beginning 1)) (if (re-search-backward (concat [\n op ]) start t) (goto-char (match-end 0)) (goto-char start)) (looking-at (concat *\\(.*[^ ]\\) + op \\( +\\)$)) (goto-char (match-end 2)) (let* ((b (match-beginning 2)) (e (match-end 2)) (a (match-string-no-properties 1)) (r (calc-do-calc-eval a nil nil))) (when (string-equal a r) (let ((b (save-excursion (and (search-backward \n\n nil t) (match-end 0 (p (current-buffer)) (pos start) (s nil)) (setq r (calc-do-calc-eval (with-temp-buffer (insert a) (goto-char (point-min)) (while (re-search-forward [^0-9():!^ \t-][^():!^ \t]* nil t) (setq s (match-string-no-properties 0)) (let ((r (save-match-data (save-excursion (set-buffer p) (goto-char pos) (and ;; TODO: support for line indentation (re-search-backward (concat ^ (regexp-quote s) =) b t) (progn (end-of-line) (search-backward = nil t) (and (looking-at =\\(.*\\)$) (match-string-no-properties 1 (if r (replace-match (concat ( r )) t t (buffer-substring (point-min) (point-max))) nil nil (and r (progn (he-init-string b e) (he-substitute-string (concat r)) t))) (setq hippie-expand-try-functions-list '(try-complete-file-name my-try-complete-with-calc-result try-expand-dabbrev try-complete-lisp-symbol try-expand-dabbrev-all-buffers)) --8---cut here---end---8--- - pabbrev - company I've not tried those, but I also have auto-complete enabled globally, which shows nice, unobstrusive overlay completion popups. Basically it's great and I've also written an intelligent completion function for a language we're developing here at my University which was pretty easy to do. But auto-complete has some bugs and glitches which I've reported at its bugtracker. Sadly, it seems to me that its author has no time to fix those, at least he didn't respond to my reports since 5 months... Bye, Tassilo ___
[Orgmode] Re: A few questions about how you write e-mails
Hi Nick, Nick Dokos wrote: Jeff Horn jrhorn...@gmail.com wrote: I use boxquote.el (see http://www.emacswiki.org/emacs/BoxQuote) for the above style, but as Samuel and Bernt point out that's not the best way for quoting material where the recipient is expected to use the quoted material (e.g. code snippets): extracting it from the boxquote is more difficult than it needs to be (even if one has boxquote.el installed).[fn:1] For code, I use the method Bernt described: message-mark-inserted-region, which is similar to the purely textual approach of Samuel's, but does provide nice fontification in my mailer. I bind these functions to keys: C-c q for the boxquote style, C-c m for the message style, but this is very much a matter of personal preference. Sometimes I need boxquote-unbox, but I don't have a key for that: I call the function with M-x ... [fn:1] I used boxquotes for some code once and Seb Vauban (iirc) took me to task. I'm pretty sure I have not repeated the faux-pas. Now, I'd even advice you to use =C-c C-v C-d=, the Babel code markup. I've signed the FSF papers, and its automatic fontifying (using Org mode faces) should be integrated in the Gnus dev code. #+begin_src sh date #+end_src (see a recent thread on that) But the following: --8---cut here---start-8--- date --8---cut here---end---8--- is still good. for code.. ;-) and maybe supported in other emailers than Gnus? 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
Re: [Orgmode] suggesting a new function org-export-string
Looks good to me. - Carsten On Oct 17, 2010, at 11:22 PM, Eric Schulte wrote: The attached patch adds a new functions org-export-as-string. , | org-export-string is a Lisp function in `org-exp.el'. | | (org-export-string STRING FMT optional DIR) | | Export STRING to FMT using existing export facilities. | During export STRING is saved to a temporary file whose location | could vary. Optional argument DIR can be used to force the | directory in which the temporary file is created during export | which can be useful for resolving relative paths. Dir defaults | to the value of `temporary-file-directory'. ` This function should be useful in user code, and can already reduce the amount of code in ob-org.el and org-mime.el. From e51017e4d7051aad31384a470f0a695dca0d6716 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Sun, 17 Oct 2010 15:17:13 -0600 Subject: [PATCH] org-export-string -- exports a string of org-mode markup text * lisp/org-exp.el (org-export-string): new function org-export-string can be used to convert a string of test in org-mode markup to a specified format * contrib/lisp/org-mime.el (org-mime-htmlize): now using new org-export-string function for exportation * lisp/ob-org.el (org-babel-execute:org): now using new org-export-string function for exportation --- contrib/lisp/org-mime.el | 20 +--- lisp/ob-org.el | 27 --- lisp/org-exp.el | 22 ++ 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index 109ec69..0537b9d 100644 --- a/contrib/lisp/org-mime.el +++ b/contrib/lisp/org-mime.el @@ -175,7 +175,7 @@ export that region, otherwise export the entire body. (point-max))) (raw-body (buffer-substring html-start html-end)) (tmp-file (make-temp-name (expand-file-name mail temporary-file-directory))) - (body (org-mime-org-export org raw-body tmp-file)) + (body (org-export-string raw-body org (file-name- directory tmp-file))) ;; because we probably don't want to skip part of our mail (org-export-skip-text-before-1st-heading nil) ;; because we probably don't want to export a huge style file @@ -198,24 +198,6 @@ export that region, otherwise export the entire body. (insert (org-mime-multipart body html) (mapconcat 'identity html-images \n) -(defun org-mime-org-export (fmt body tmp-file) - Org-Export BODY to format FMT with the file name set to -TMP-FILE during export. - (save-excursion -(with-temp-buffer - (insert org-mime-default-header) - (insert body) - (write-file tmp-file) - (org-load-modules-maybe) - (unless org-local-vars -(setq org-local-vars (org-get-local-variables))) - (substring - (eval ;; convert to fmt -- mimicing `org-run-like-in-org-mode' -(list 'let org-local-vars - (list (intern (concat org-export-as- fmt)) -nil nil nil ''string t))) - (if (string= fmt org) (length org-mime-default-header) 0) - (defun org-mime-apply-html-hook (html) (if org-mime-html-hook (with-temp-buffer diff --git a/lisp/ob-org.el b/lisp/ob-org.el index 8b45de8..dcc2ee1 100644 --- a/lisp/ob-org.el +++ b/lisp/ob-org.el @@ -30,8 +30,7 @@ ;;; Code: (require 'ob) -(declare-function org-load-modules-maybe org (optional force)) -(declare-function org-get-local-variables org ()) +(declare-function org-export-string org-exp (string fmt optional dir)) (defvar org-babel-default-header-args:org '((:results . raw silent) (:exports . results)) @@ -50,29 +49,11 @@ This function is called by `org-babel-execute- src-block'. (let ((result-params (split-string (or (cdr (assoc :results params)) ))) (body (replace-regexp-in-string ^, body))) (cond - ((member latex result-params) (org-babel-org-export body latex)) - ((member html result-params) (org-babel-org-export body html)) - ((member ascii result-params) (org-babel-org-export body ascii)) + ((member latex result-params) (org-export-string body latex)) + ((member html result-params) (org-export-string body html)) + ((member ascii result-params) (org-export-string body ascii)) (t body -(defvar org-local-vars) -(defun org-babel-org-export (body fmt) - Export BODY to FMT using Org-mode's export facilities. - (when (get-buffer org-mode-tmp) -(error Nested call to org-export: from org code block exporting results)) - (let ((tmp-file (org-babel-temp-file org-))) -(with-temp-buffer - (insert org-babel-org-default-header) - (insert body) - (write-file tmp-file) - (org-load-modules-maybe) - (unless org-local-vars - (setq org-local-vars (org-get-local-variables))) - (eval ;; convert to fmt -- mimicking `org-run-like-in-org-mode' -
Re: [Orgmode] Re: [PATCH] Alphabetical ordered lists
Hi Nathaniel, I get patch does not apply. Can you please update the patch to the current git master? Thanks - Carsten On Oct 22, 2010, at 7:30 AM, Nathaniel Flath wrote: I think I've fixed the issues brought up with this new patch. Please let me know what you think. On Wed, Oct 20, 2010 at 9:44 PM, Nathaniel Flath flat0...@gmail.com wrote: But I can't help thinking this could lead to unexpected results in some cases (admittedly less than when alpha bullets could be any size long). It definitely will. Here is an alternative idea. Nathaniel, what do you think about this: We could keep the numbering as we have it in the Org file, but introduce something like [...@a] in the first item that will convert the numbering into a,b,... upon export to ASCII, HTML, maybe even LaTeX (even though I think LaTeX demands some consistency here and prefers to have the global setup decide how lists work). Hell, we could even use [...@a] for capitals and [...@i] and [...@i] for roman numbering :) - Carsten Sorry for the late response - got swamped with work for a bit. I'd much prefer the approach I've been going with, mostly since I don't usually export my notes and mostly view them in org-mode. I'll work on the patch tonight - should send a patch either later tonight or tomorow. Thanks, Nathaniel Flath ordered-list.patch - 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] [PATCH] Update all ++ repeaters in an entry (loop variables weren't getting reset)
Applied, thanks. - Carsten On Oct 21, 2010, at 2:28 PM, Andrew J. Korty wrote: See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg30284.html. This patch is against release_7.01h. ajk --- lisp/org.el | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index d33bf4e..52e501e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11369,7 +11369,6 @@ This function is run automatically after each state change to a DONE state. (msg Entry repeats: ) (org-log-done nil) (org-todo-log-states nil) -(nshiftmax 10) (nshift 0) re type n what ts time to-state) (when repeat (if (eq org-log-repeat t) (setq org-log-repeat 'state)) @@ -11416,15 +11415,16 @@ This function is run automatically after each state change to a DONE state. (- (time-to-days (current-time)) (time-to-days time)) 'day)) ((equal (match-string 1 ts) +) - (while (or (= nshift 0) -(= (time-to-days time) (time-to-days (current-time - (when (= (incf nshift) nshiftmax) - (or (y-or-n-p (message %d repeater intervals were not enough to shift date past today. Continue? nshift)) - (error Abort))) - (org-timestamp-change n (cdr (assoc what whata))) - (org-at-timestamp-p t) - (setq ts (match-string 1)) - (setq time (save-match-data (org-time-string-to-time ts + (let ((nshiftmax 10) (nshift 0)) + (while (or (= nshift 0) + (= (time-to-days time) (time-to-days (current-time + (when (= (incf nshift) nshiftmax) + (or (y-or-n-p (message %d repeater intervals were not enough to shift date past today. Continue? nshift)) + (error Abort))) + (org-timestamp-change n (cdr (assoc what whata))) + (org-at-timestamp-p t) + (setq ts (match-string 1)) + (setq time (save-match-data (org-time-string-to- time ts) (org-timestamp-change (- n) (cdr (assoc what whata))) ;; rematch, so that we have everything in place for the real shift (org-at-timestamp-p t) -- 1.7.3.1 ___ 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: Difference between org-footnote.el and footnote.el
Hi all, Eric S Fraga wrote: On Thu, 21 Oct 2010 17:28:20 +0200, Tassilo Horn tass...@member.fsf.org wrote: Charles Philip Chan cpc...@sympatico.ca writes: How does footnote.el find the signature? I presume by looking for the line -- which precedes the signature. That's not completely true. The line has to be -- , i.e. -- followed by exactly one space. indeed. looking at the code in footnode.el, there is a search for the message-signature-separator, which defaults to ^-- $ to find where to insert footnotes. If I sum up this whole thread about footnote.el vs org-footnote.el, the latest one (org-footnote.el) seems better than the original footnote.el in every aspect but for the placement of the footnotes before the signature. Does someone take care of updating it? 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] Re: A few questions about how you write e-mails
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: --8---cut here---start-8--- date --8---cut here---end---8--- is still good. for code.. ;-) and maybe supported in other emailers than Gnus? I'm not sure, but `C-u C-c M-m' inserts verbatim marks that are at least understood by slrn (and Gnus). #v+ date #v- Bye, Tassilo ___ 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] Bug/feature : crypt encrypts empty string.
I was just saving a cleaned up org file as a template for later projects when and a crypt region I had just removed magically reappeared! e.g , | * Domain | ** Registrar:crypt: | -BEGIN PGP MESSAGE- | Version: GnuPG v1.4.10 (GNU/Linux) | | hQEMA7IjL5SkHG4iAQgAgF/BiEMkhfWuohErZy4TulPtq7Tdh+VEBvLP2Eeehash | ylHAVOBzfdApVud5ByfzywPm8/fzPDjCNCsdZ3M6sL/IFtoMa6qrNnG4utpYQFxt | 63Tys9dyEfo7qzbi97LRWrla3DUnJZ3d53PGOg9cxZurq2za3n37xZucFV1HRk7y | sacLdelZ7CaHd1MxfUQcBQo+H9jbUSdkTCldJ/2csm9aL+/ZuUJJfWL0GbgpzJGg | liSbn3S2LsobcEw5fh6T4OFlqMWPkyn7xJugMOnA4CwuZtSmmqumye80MW4hE/kX | TCfRhqrPUuyHNRqxgwiOLZaJan0bueelALnprrWoZ9I7AYmV5UjoV6bIqkVE8rL1 | pLZ/sZE+QzEIpRRzHV6uK1v4BE5SPr5TdA5zA7lBy1UVU2SHnBNJ8K25l6k= | =eE61 | -END PGP MESSAGE- | ` I removed everything after the Registrar line, and then hit C-x C-s to save and the crypt block reappeared. Took me a while to realise that it was probably encrypting nothing. Could it not do that or does that behaviour seem ok? ___ 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: Difference between org-footnote.el and footnote.el
* repos/el/org-mode/lisp/org-footnote.el (org-footnote-create-definition) (org-footnote-goto-local-insertion-point): Add footnotes before signature when in message-mode. --- lisp/org-footnote.el | 26 -- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 36fcfb2..4be0504 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -302,15 +302,20 @@ or new, let the user edit the definition of the footnote. (t (setq re (concat ^ org-footnote-tag-for-non-org-mode-files [ \t]*$)) (unless (re-search-forward re nil t) - (goto-char (point-max)) - (skip-chars-backward \t\r\n) - (insert \n\n) - (delete-region (point) (point-max)) - (insert org-footnote-tag-for-non-org-mode-files \n)) - (goto-char (point-max)) - (skip-chars-backward \t\r\n))) -(insert \n\n) -(insert [ label ] ) + (let ((max (if (and (eq major-mode 'message-mode) + (re-search-forward message-signature-separator nil t)) + (progn (beginning-of-line) (point)) +(goto-char (point-max) + (skip-chars-backward \t\r\n) + (delete-region (point) max) + (insert \n\n) + (insert org-footnote-tag-for-non-org-mode-files \n) +;; Skip existing footnotes +(while (re-search-forward ^[[:space:]]*\\[[^]]+\\] nil t) + (forward-line)) +(insert [ label ] \n) +(goto-char (1- (point))) +(when (org-mode-p) (org-indent-line-function)) (message Edit definition and go back with `C-c ' or, if unique, with `C-c C-c'.))) ;;;###autoload @@ -506,7 +511,8 @@ ENTRY is (fn-label num-mark definition). (beginning-of-line 0)) (if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2)) (end-of-line 1) - (skip-chars-backward \n\r\t )) + (skip-chars-backward \n\r\t ) + (forward-line)) (defun org-footnote-delete (optional label) Delete the footnote at point. -- 1.7.3.1 Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Seb, If I sum up this whole thread about footnote.el vs org-footnote.el, the latest one (org-footnote.el) seems better than the original footnote.el in every aspect but for the placement of the footnotes before the signature. Yep, that sounds correct. Does someone take care of updating it? Above is a patch. It seems to work correctly in both mails and org-files for me, but I was that stupid not to try the original org-footnote.el before implementing that feature. So there could be regressions, or at least not 100% compatible behavior. I'm not sure, but did the original version create a stack of footnote definitions, e.g. was the numbering from latest to oldest footnote? Now it's the other way round, which looks better to me... Please everyone, give it a test drive, and if it works, feel free to commit. Bye, Tassilo ___ 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] [PATCH] Make footnotes work correctly in message-mode (was: Difference between org-footnote.el and footnote.el)
* repos/el/org-mode/lisp/org-footnote.el (org-footnote-create-definition) (org-footnote-goto-local-insertion-point): Add footnotes before signature when in message-mode. --- lisp/org-footnote.el | 25 +++-- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 36fcfb2..ac1305f 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -302,15 +302,19 @@ or new, let the user edit the definition of the footnote. (t (setq re (concat ^ org-footnote-tag-for-non-org-mode-files [ \t]*$)) (unless (re-search-forward re nil t) - (goto-char (point-max)) - (skip-chars-backward \t\r\n) - (insert \n\n) - (delete-region (point) (point-max)) - (insert org-footnote-tag-for-non-org-mode-files \n)) - (goto-char (point-max)) - (skip-chars-backward \t\r\n))) -(insert \n\n) -(insert [ label ] ) + (let ((max (if (and (eq major-mode 'message-mode) + (re-search-forward message-signature-separator nil t)) + (progn (beginning-of-line) (point)) +(goto-char (point-max) + (skip-chars-backward \t\r\n) + (delete-region (point) max) + (insert \n\n) + (insert org-footnote-tag-for-non-org-mode-files \n) +;; Skip existing footnotes +(while (re-search-forward ^[[:space:]]*\\[[^]]+\\] nil t) + (forward-line)) +(insert [ label ] \n) +(goto-char (1- (point))) (message Edit definition and go back with `C-c ' or, if unique, with `C-c C-c'.))) ;;;###autoload @@ -506,7 +510,8 @@ ENTRY is (fn-label num-mark definition). (beginning-of-line 0)) (if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2)) (end-of-line 1) - (skip-chars-backward \n\r\t )) + (skip-chars-backward \n\r\t ) + (forward-line)) (defun org-footnote-delete (optional label) Delete the footnote at point. -- 1.7.3.1 Ups, my previous patch (as reply to Seb) had a bug, so here's a new one. Bye, Tassilo ___ 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: Another possible error for in-line math parsing
On Thu, 21 Oct 2010 22:25:14 +0200, Carsten Dominik carsten.domi...@gmail.com wrote: On Oct 21, 2010, at 7:52 PM, Jeff Horn wrote: Org-mode will never be a perfect TeX scanner, and this is really hard. Help yourself and Org by using \( and \) as math delimiters when you wish to include dollar characters inside Ten-four. What does that mean? :-) this is an expression from CB (citizen's band) radio days and means thanks or okay or a combination of the two. There's a whole lexicon of 10-xx terms for fast communication over CB radio. ___ 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] RFI -- Which completion system?
On Thu, 21 Oct 2010 23:16:19 +0200, Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: Hello, Before spending a lot of time trying to choose for the best completion mechanism inside Emacs (and sticking to it), setting it up all the way through, I wanted to know if you had had: - particularly good or bad experiences with one of the standard ones? I've tried a number over the years. I've yet to reach a situation where I am particularly happy with any of them but the one that seems to work best *for me* so far is hippie. I have the following settings (having just added Tassilo's expansion function for calc which is brilliant!): --8---cut here---start-8--- (setq hippie-expand-try-functions-list '(;;yas/hippie-try-expand th/my-try-complete-with-calc-result try-expand-all-abbrevs try-expand-dabbrev try-expand-dabbrev-all-buffers try-expand-dabbrev-from-kill try-complete-file-name try-complete-lisp-symbol)) --8---cut here---end---8--- I no longer use yasnippets as they interfered too much with completion in general. I have bound hippie-expand to C-; as I find this a lot easier to type than M-/. I also have TAB bound to the following: --8---cut here---start-8--- (defun esf/indent-or-expand (arg) Either indent according to mode, or expand the word preceding point. (interactive *P) (if (and (or (bobp) (= ?w (char-syntax (char-before (or (eobp) (not (= ?w (char-syntax (char-after)) ;;(dabbrev-expand arg) (hippie-expand arg) (indent-according-to-mode))) --8---cut here---end---8--- in most text buffers. This means that TAB no longer does what it should in org mode but I use C-i for that functionality as most of the time I am typing text and not moving things around. HTH, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: Aligning Columns in HTML Export Tables
Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. - Carsten On Oct 22, 2010, at 1:20 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: | l | l | r | | A | B | C | | 1 | 2 | 3 | | 12 | 13 | 300 | | 9 | 11 | 4 | I have now fixed this issue, at least for the HTML exporter. 1. The HTML exporter now puts a style attribute onto each individual field to make sure the field is aligned correctly. Many Browsers need this, as pointed out by Sebastian. If you do not like this overhead, you can configure org-export-html-table-align-individual-fields. If you do, the alignment will still be noted in the column tags, handled correctly by Opera, but not by Firefox and Safari. 2. The HTML exporter will also honor a c cookie. Note that this will not change anything inside an Org buffer - this would be complex to implement because of all the extra magic Org does with limited column width etc etc. 3. The LaTeX exporter does not yet honor c, while it does honor l and r. The reason for this is that currently the vector remembering the alignment is a vector of booleans, and larger changes are necessary in order to allow for a third value. This will come, but I do not have the time today. Hi Carsten, | | A | B|C | |---+-+--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo |4 | | / | ||| now gives me: table border=0 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroup colgroupcol align=left //colgroup colgroupcol align=left //colgroup thead and I have no style attributes in the td tags. Sebastian - 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] capture initial level and refile of capture buffer
What determines the level of a new capture element? e.g I just created one and it started at . feature request : when I added some sub elements to a capture buffer e.g * my new capture ** sub point *** sub sub point 1 *** sub sub point 2 and hit C-c C-w to refile, it only refiled the sub element (where cursor was) and then lost the rest. I would like to suggest that refile from the capture buffer should refile the entire buffer and not only the current nested org item. Or am I missing something in my setup? regards r. ___ 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: [PATCH] Make footnotes work correctly in message-mode
Hi Tassilo, Tassilo Horn wrote: * repos/el/org-mode/lisp/org-footnote.el (org-footnote-create-definition) (org-footnote-goto-local-insertion-point): Add footnotes before signature when in message-mode. --- lisp/org-footnote.el | 25 +++-- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 36fcfb2..ac1305f 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -302,15 +302,19 @@ or new, let the user edit the definition of the footnote. (t (setq re (concat ^ org-footnote-tag-for-non-org-mode-files [ \t]*$)) (unless (re-search-forward re nil t) - (goto-char (point-max)) - (skip-chars-backward \t\r\n) - (insert \n\n) - (delete-region (point) (point-max)) - (insert org-footnote-tag-for-non-org-mode-files \n)) - (goto-char (point-max)) - (skip-chars-backward \t\r\n))) -(insert \n\n) -(insert [ label ] ) + (let ((max (if (and (eq major-mode 'message-mode) + (re-search-forward message-signature-separator nil t)) +(progn (beginning-of-line) (point)) + (goto-char (point-max) + (skip-chars-backward \t\r\n) + (delete-region (point) max) + (insert \n\n) + (insert org-footnote-tag-for-non-org-mode-files \n) +;; Skip existing footnotes +(while (re-search-forward ^[[:space:]]*\\[[^]]+\\] nil t) + (forward-line)) +(insert [ label ] \n) +(goto-char (1- (point))) (message Edit definition and go back with `C-c ' or, if unique, with `C-c C-c'.))) ;;;###autoload @@ -506,7 +510,8 @@ ENTRY is (fn-label num-mark definition). (beginning-of-line 0)) (if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2)) (end-of-line 1) - (skip-chars-backward \n\r\t )) + (skip-chars-backward \n\r\t ) + (forward-line)) (defun org-footnote-delete (optional label) Delete the footnote at point. I tried to use this patch, but failed doing so: --8---cut here---start-8--- [...@mediacenter] ~/src/org-modegit apply patch patch:18: trailing whitespace. (let ((max (if (and (eq major-mode 'message-mode) patch:19: trailing whitespace. (re-search-forward message-signature-separator nil t)) patch:20: trailing whitespace. (progn (beginning-of-line) (point)) patch:21: trailing whitespace. (goto-char (point-max) patch:22: trailing whitespace. (skip-chars-backward \t\r\n) error: patch failed: lisp/org-footnote.el:302 error: lisp/org-footnote.el: patch does not apply [...@mediacenter] ~/src/org-modepatch patch diff: unknown option -- git diff: Try `diff --help' for more information. ./patch: line 2: index: command not found ./patch: line 3: ---: command not found ./patch: line 4: +++: command not found ./patch: line 31: unexpected EOF while looking for matching `'' ./patch: line 44: syntax error: unexpected end of file [...@mediacenter] ~/src/org-modegit apply patch stdin:18: trailing whitespace. (let ((max (if (and (eq major-mode 'message-mode) stdin:19: trailing whitespace. (re-search-forward message-signature-separator nil t)) stdin:20: trailing whitespace. (progn (beginning-of-line) (point)) stdin:21: trailing whitespace. (goto-char (point-max) stdin:22: trailing whitespace. (skip-chars-backward \t\r\n) error: patch failed: lisp/org-footnote.el:302 error: lisp/org-footnote.el: patch does not apply --8---cut here---end---8--- Any help? (I don't know anything of git) FYI, before this, I have pulled Org's latest dev version -- lots of change, BTW (all Babel files or so) -- as last time was a few days ago. 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] Re: A few questions about how you write e-mails
On 10/21/2010 10:10 AM, suvayu ali wrote: On 20 October 2010 20:40, Nick Dokos nicholas.do...@hp.com wrote: Given the mangling that mailers do to replies (e.g. the idiotic default top posting of Thunderbird and its ilk), how they handle signatures, and the non-standard nature of signatures themselves, I'd say this is pretty much hopeless. After our discussion yesterday, I did some research. Didn't find anything +ve. I am considering switching to mutt. :) Hello!! I didn't read the entire thread on this, but I like to add that Thunderbird can be customized in where and how it posts the original message in replies (Account Settings - Composition). AND it has support for an external editor [0]. I'm using Thunderbird 3 + emacs. You even can use a single Profile cross-platform! However, thanks for boxquote.el, it's pretty nice! [0] http://globs.org/articles.php?pg=2lng=en Download and install External Editor and set it to launch a simple emacsclient ___ 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: [PATCH] Make footnotes work correctly in message-mode
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Seb, I tried to use this patch, but failed doing so: [...@mediacenter] ~/src/org-modegit apply patch patch:18: trailing whitespace. (let ((max (if (and (eq major-mode 'message-mode) patch:19: trailing whitespace. (re-search-forward message-signature-separator nil t)) patch:20: trailing whitespace. (progn (beginning-of-line) (point)) patch:21: trailing whitespace. (goto-char (point-max) patch:22: trailing whitespace. (skip-chars-backward \t\r\n) error: patch failed: lisp/org-footnote.el:302 error: lisp/org-footnote.el: patch does not apply Hm, git apply patch is correct. So I guess your patch is bogus. I've just downloaded the patch from http://patchwork.newartisans.com/project/org-mode/list/ by selecting the patch in the summary followed by Download patch. That does apply without problems here. Bye, Tassilo ___ 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] Invisible parent tasks (request)
Dear all, When using Getting Things Done, it would be nice to customize org-mode such that parent tasks are not seen from the agenda view with C-a t... ...unless all subtasks are in a done state! A variable like org-show-parent-tasks could perhaps be introduced. I know that org-enforce-todo-dependencies can make the parents text gray in the agenda view, but I haven't found a way to make the parent tasks not show. Any comments? /Magnus ___ 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] suggesting a new function org-export-string
Applied, Thanks -- Eric Carsten Dominik carsten.domi...@gmail.com writes: Looks good to me. - Carsten On Oct 17, 2010, at 11:22 PM, Eric Schulte wrote: The attached patch adds a new functions org-export-as-string. , | org-export-string is a Lisp function in `org-exp.el'. | | (org-export-string STRING FMT optional DIR) | | Export STRING to FMT using existing export facilities. | During export STRING is saved to a temporary file whose location | could vary. Optional argument DIR can be used to force the | directory in which the temporary file is created during export | which can be useful for resolving relative paths. Dir defaults | to the value of `temporary-file-directory'. ` This function should be useful in user code, and can already reduce the amount of code in ob-org.el and org-mime.el. From e51017e4d7051aad31384a470f0a695dca0d6716 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Sun, 17 Oct 2010 15:17:13 -0600 Subject: [PATCH] org-export-string -- exports a string of org-mode markup text * lisp/org-exp.el (org-export-string): new function org-export-string can be used to convert a string of test in org-mode markup to a specified format * contrib/lisp/org-mime.el (org-mime-htmlize): now using new org-export-string function for exportation * lisp/ob-org.el (org-babel-execute:org): now using new org-export-string function for exportation --- contrib/lisp/org-mime.el | 20 +--- lisp/ob-org.el | 27 --- lisp/org-exp.el | 22 ++ 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index 109ec69..0537b9d 100644 --- a/contrib/lisp/org-mime.el +++ b/contrib/lisp/org-mime.el @@ -175,7 +175,7 @@ export that region, otherwise export the entire body. (point-max))) (raw-body (buffer-substring html-start html-end)) (tmp-file (make-temp-name (expand-file-name mail temporary-file-directory))) - (body (org-mime-org-export org raw-body tmp-file)) + (body (org-export-string raw-body org (file-name- directory tmp-file))) ;; because we probably don't want to skip part of our mail (org-export-skip-text-before-1st-heading nil) ;; because we probably don't want to export a huge style file @@ -198,24 +198,6 @@ export that region, otherwise export the entire body. (insert (org-mime-multipart body html) (mapconcat 'identity html-images \n) -(defun org-mime-org-export (fmt body tmp-file) - Org-Export BODY to format FMT with the file name set to -TMP-FILE during export. - (save-excursion -(with-temp-buffer - (insert org-mime-default-header) - (insert body) - (write-file tmp-file) - (org-load-modules-maybe) - (unless org-local-vars -(setq org-local-vars (org-get-local-variables))) - (substring - (eval ;; convert to fmt -- mimicing `org-run-like-in-org-mode' -(list 'let org-local-vars - (list (intern (concat org-export-as- fmt)) -nil nil nil ''string t))) - (if (string= fmt org) (length org-mime-default-header) 0) - (defun org-mime-apply-html-hook (html) (if org-mime-html-hook (with-temp-buffer diff --git a/lisp/ob-org.el b/lisp/ob-org.el index 8b45de8..dcc2ee1 100644 --- a/lisp/ob-org.el +++ b/lisp/ob-org.el @@ -30,8 +30,7 @@ ;;; Code: (require 'ob) -(declare-function org-load-modules-maybe org (optional force)) -(declare-function org-get-local-variables org ()) +(declare-function org-export-string org-exp (string fmt optional dir)) (defvar org-babel-default-header-args:org '((:results . raw silent) (:exports . results)) @@ -50,29 +49,11 @@ This function is called by `org-babel-execute- src-block'. (let ((result-params (split-string (or (cdr (assoc :results params)) ))) (body (replace-regexp-in-string ^, body))) (cond - ((member latex result-params) (org-babel-org-export body latex)) - ((member html result-params) (org-babel-org-export body html)) - ((member ascii result-params) (org-babel-org-export body ascii)) + ((member latex result-params) (org-export-string body latex)) + ((member html result-params) (org-export-string body html)) + ((member ascii result-params) (org-export-string body ascii)) (t body -(defvar org-local-vars) -(defun org-babel-org-export (body fmt) - Export BODY to FMT using Org-mode's export facilities. - (when (get-buffer org-mode-tmp) -(error Nested call to org-export: from org code block exporting results)) - (let ((tmp-file (org-babel-temp-file org-))) -(with-temp-buffer - (insert org-babel-org-default-header) - (insert body) - (write-file tmp-file) - (org-load-modules-maybe) - (unless
[Orgmode] Re: Was ...questions about...email - orgmode + email + company firewall
On Thu, Oct 21, 2010 at 11:52 PM, Noorul Islam K M noo...@noorul.comwrote: John Hendy jw.he...@gmail.com writes: Hi, I followed the conversation about email writing with org-mode and *loved* it. I would absolutely like to live in emacs for email as it offers so many neat tricks. My problem has to do with how to set up pop/imap access while at work. I can use the web interface just fine, but I've never succeeded in using a client trying to access via pop/imap (like Thunderbird) and have simply figured it was due to firewall. Recently, I was finally able to get Thunderbird working since their webmail extension [1] added gmail support. I just succeeded with pop (I'd prefer imap, though, but apparently it's not possible). My question is whether gnus or some other text-based email program that emacs can use has some method of doing whatever this webmail extention is doing. I think it's somehow going through port 80 and getting messages that way, but I could be mistaken. In the past, I've tried telnet imap.gmail.com993 and telnet pop.gmail.com 995 and never been able to connect. It looks like at you work place they are blocking imaps and pops ports. I think you should be contacting System/Network Admin at your office for this. True... though this is why I referenced the webmail extension. It works. I wondered if there was anything like that for other types of email systems. At a company of 70k employees world-wide and 10k at my location... I'm not planning on asking them to open up some ports for me :) John Thanks and Regards Noorul ___ 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: [PATCH] Make footnotes work correctly in message-mode
Hi Tassilo, Tassilo Horn wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I tried to use this patch, but failed doing so: [...@mediacenter] ~/src/org-modegit apply patch patch:18: trailing whitespace. (let ((max (if (and (eq major-mode 'message-mode) patch:19: trailing whitespace. (re-search-forward message-signature-separator nil t)) patch:20: trailing whitespace. (progn (beginning-of-line) (point)) patch:21: trailing whitespace. (goto-char (point-max) patch:22: trailing whitespace. (skip-chars-backward \t\r\n) error: patch failed: lisp/org-footnote.el:302 error: lisp/org-footnote.el: patch does not apply Hm, git apply patch is correct. So I guess your patch is bogus. I've just downloaded the patch from http://patchwork.newartisans.com/project/org-mode/list/ by selecting the patch in the summary followed by Download patch. That does apply without problems here. Successfully applied, now. The problem was my patch file was in UTF-8-dos, not unix... Thanks. Still need to test it now... 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
Re: [Orgmode] Re: Aligning Columns in HTML Export Tables
Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. I've checked them, but they are not customized: Hide Org Export Table Data Tags: Opening tag: td%s Closing tag: /td State : STANDARD. Hide Org Export Table Header Tags: Opening tag: th scope=%s Closing tag: /th State : STANDARD. The export of the OPs table works as expected. But the table I've sent is different in that it just uses empty `' marks for grouping and creating lines. Sebastian | | A | B|C | |---+-+--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo |4 | | / | ||| now gives me: table border=0 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroup colgroupcol align=left //colgroup colgroupcol align=left //colgroup thead and I have no style attributes in the td tags. ___ 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] Tweaking org-laxtex-export-classes
Dear all, I am planning to write an article using org - most of my notes are = already in org so this seems logical. The journal that I plan to submit = to provides latex class so it just a matter of customizing = org-export-latex-classes, which I have done=20 (add-to-list 'org-export-latex-classes=20 '(pmb \\documentclass[t]{iopart} \\usepackage{graphicx} \\usepackage{graphics} \\usepackage{amssymb,amsmath} \\usepackage{calc} \\usepackage{harvard} \\usepackage{apacite} \\bibliographystyle{apacite} [NO-DEFAULT-PACKAGES] \\renewcommand{\\baselinestretch}{1.5} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) Although this work almost perfect, I can figure out how get the exporter = to to produce (i.e., I want the title, author, address, and \maketilte = after the begin{document} rather than before \HEADERS \begin{document} \title{BLAH BLAH BLAY} \author{ME} \address{WWW} \begin{abstract} Testing one to \end{abstract} \maketitle \section{Introduction} \section{Materials and methods} \section{Results} \section{Discussion} \end{document} My short term fix is to simple cut and paste, but it would be nice to = know if there is more elegant solution Best Wishes, M ___ 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: A few questions about how you write e-mails
Hi Matthias, On 22 October 2010 05:27, Matthias Danzl mdan...@aol.com wrote: On 10/21/2010 10:10 AM, suvayu ali wrote: On 20 October 2010 20:40, Nick Dokos nicholas.do...@hp.com wrote: Given the mangling that mailers do to replies (e.g. the idiotic default top posting of Thunderbird and its ilk), how they handle signatures, and the non-standard nature of signatures themselves, I'd say this is pretty much hopeless. After our discussion yesterday, I did some research. Didn't find anything +ve. I am considering switching to mutt. :) Hello!! I didn't read the entire thread on this, but I like to add that Thunderbird can be customized in where and how it posts the original message in replies (Account Settings - Composition). AND it has support for an external editor [0]. I'm using Thunderbird 3 + emacs. You even can use a single Profile cross-platform! However, thanks for boxquote.el, it's pretty nice! [0] http://globs.org/articles.php?pg=2lng=en Download and install External Editor and set it to launch a simple emacsclient I have been using External Editor, tbemail.el and emacsclient for many months now. Its great, better than before. But still it leaves me wanting for more Emacs integration. My recent search for an emailer started when I realised Thunderbird's attachment facility is pretty much beyond my control. Cheers, -- Suvayu Open source is the future. It sets us free. ___ 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: [PATCH] Make footnotes work correctly in message-mode
Hi Tassilo, Tassilo Horn wrote: * repos/el/org-mode/lisp/org-footnote.el (org-footnote-create-definition) (org-footnote-goto-local-insertion-point): Add footnotes before signature when in message-mode. --- lisp/org-footnote.el | 25 +++-- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 36fcfb2..ac1305f 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -302,15 +302,19 @@ or new, let the user edit the definition of the footnote. (t (setq re (concat ^ org-footnote-tag-for-non-org-mode-files [ \t]*$)) (unless (re-search-forward re nil t) - (goto-char (point-max)) - (skip-chars-backward \t\r\n) - (insert \n\n) - (delete-region (point) (point-max)) - (insert org-footnote-tag-for-non-org-mode-files \n)) - (goto-char (point-max)) - (skip-chars-backward \t\r\n))) -(insert \n\n) -(insert [ label ] ) + (let ((max (if (and (eq major-mode 'message-mode) + (re-search-forward message-signature-separator nil t)) +(progn (beginning-of-line) (point)) + (goto-char (point-max) + (skip-chars-backward \t\r\n) + (delete-region (point) max) + (insert \n\n) + (insert org-footnote-tag-for-non-org-mode-files \n) +;; Skip existing footnotes +(while (re-search-forward ^[[:space:]]*\\[[^]]+\\] nil t) + (forward-line)) +(insert [ label ] \n) +(goto-char (1- (point))) (message Edit definition and go back with `C-c ' or, if unique, with `C-c C-c'.))) ;;;###autoload @@ -506,7 +510,8 @@ ENTRY is (fn-label num-mark definition). (beginning-of-line 0)) (if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2)) (end-of-line 1) - (skip-chars-backward \n\r\t )) + (skip-chars-backward \n\r\t ) + (forward-line)) (defun org-footnote-delete (optional label) Delete the footnote at point. Tested. Works perfectly for me. Fan-tas-tic! 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] exporting a html table with gridlines - is it possible
I don't see any hooks for this. Malcolm Cook Stowers Institute for Medical Research - Bioinformatics Kansas City, Missouri USA ___ 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: [PATCH] Make footnotes work correctly in message-mode
Hi Dan, Dan Davison wrote: Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: error: lisp/org-footnote.el: patch does not apply Any help? (I don't know anything of git) I've been in this situation before! It's quite frustrating. That's why I've suggested previously that we set up a community git repository to which we all have access, then we can try out various different Org development initiatives while they are developed and/or being considered for inclusion. I have this fork of Org git://github.com/dandavison/org-devel.git and I'm happy to give anyone write access so that we can share patches in a more convenient way. This would be an improvement. For example, who knows where to find the most recent version of Nicolas Girard's org-icons project? If things like that were stashed in a community repo then forwards momentum could be more easily maintained. You mean that you would (manually or automatically) apply all coming patches? It doesn't mean maintaining multiple Org repos in different places on your local machine; effectively it would just becomes another branch when you add the community repo using git remote add. What's the difference between both: - 2 repos - 1 repos with 1 trunk and 1 branch? How do you switch between both before re-applying =org-reload=? 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] Re: [PATCH] Make footnotes work correctly in message-mode
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Seb, Tested. Works perfectly for me. Fan-tas-tic! Great! :-) Did you only test `org-footnote-action', or also the delete and normalize stuff? Just to make sure I didn't break that... Bye, Tassilo ___ 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] Possible Calc support for Org-Babel?
A few of us at my institution have started using CALC in our documents (not embedded, which is far too clumsy for most of us, but C-x * u and simple embedded phrases, often to the tune of several pages) to use Emacs text files rather like Maple and Mathematica files. We're starting to use GIT and OrgMode together to format the work and save versions and forks; while there are many CAS packages that can be used to write out memos and reports, the power of Elisp/Emacs was simply too good to pass up. It appears that Calc syntax can be used to assign formulas to spreadsheets, but the result is difficult to read, and unsuitable for a sequence of several dozen lines. Similarly, using embedded Ruby-symbolic code in the text produces excellent results, but we lose the ability to take advantage of Calc, which is significantly stronger for our purposes. Other symbolic packages require more time to learn and are difficult to implement across all of our various platforms, whereas Calc is a universal and extremely flexible tool for this work. My questions are these: * Has there been implemented, or would it be at all difficult to implement, a 'calc' language functionality for Org-Babel allowing the following manner of text: #+begin_src calc :results output Fish = 2 Dog = 2 * Fish sqrt( Dog ) = sqrt( 4 ) = #+end_src #+results: : sqrt( Dog ) = 2 : sqrt( 4 ) = 2 The goal of this exercise would simply be to cut out the text from the code block, feed it to a buffer, run the Emacs Calc mode on it, and then output the appropriate results where = occurs. * Has there been implemented, or would it be at all difficult to implement, a 'running tag' approach to the Calc mode, essentially a #+CALC directive allowing the following manner of text, preferably with auto-update: This is a discussion. #+CALC: Fish = 2 Fish deserves significant commentary; however, we expect that there is some command that would allow us to update the entire buffer's #+CALC sequence. Thus: #+CALC: Dog = 2 * Fish #+CALC: sqrt( Dog ) = #+results: : sqrt( Dog ) = 2 If you need a different result, tweak the 'Fish =' line, above, and request a re-sequencing, either via C-c C-c or via some M-x command, resulting in behavior functionally similar to C-x * u. The goal of this exercise would be, upon updating, to strip all lines beginning with #+CALC and feed them to a buffer, inserting the results of = statements where the respective line occurs. The benefit of this method over the previous is that it allows for assignments (:=) enduring across entire files (though the same could be accomplished if one SRC_BEGIN block could somehow call another.) In conclusion, it seems to me that I cannot possibly be the first person to have done research in OrgMode, and that these problems were likely solved long ago. When searching the manual, however, I find nothing that produces a distinctly clear and encapsulated Calc embed in OrgMode. Do these exist, and if not, would it require mere hours of time to implement them, or weeks? Is there a tutorial on writing OrgMode extensions? - M ___ 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] variables governing archiving gone?
On Oct 17, 2010, at 10:05 PM, Brian van den Broek wrote: Hi all, I've been overhauling my use or orgmode and have also started keeping current with the git repository. From a pull less than 24hrs ago, the documentation refers to the variables: - org-archive-default-command - org-archive-save-context-info I am not autoloading every and all variables. Load org-archive.el and the variables will be visible. The general all time fix for problems like this in Org: C-c C-x ! It loads all Org files. - 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] Org and ido mode
On Oct 19, 2010, at 5:20 PM, Christopher Witte wrote: Hi, I have org-completion-use-ido set to true but when I try and attach a file it doesn't use ido, is there any way to change this? Do you press `C-c a a', or where exactly are you? - 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] Re: 7.01 Xemacs 21.4.22: decompose-region is not known
On Oct 15, 2010, at 3:30 PM, Uwe Brauer wrote: On Fri, 15 Oct Dr. Volker Zell dr.volker.z...@oracle.com wrote: Hi Volker, [snip] Right now with these changes the latest org-mode works fine for me (at least for my usage pattern). This was extremely useful thanks very much, I will test it as soon as possible. Carsten, couldn't Volkers code(patch) be included maybe wrapped with a (if (featurep 'xemacs) Hi Uwe, Does the latest Org-mode git version work for you now? - 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] VISIBILITY property and C-u C-u TAB
On Oct 17, 2010, at 5:41 PM, Gez wrote: I've just discovered the VISIBILITY property, although I had some trouble working out how to apply it .I discovered C-u C-u TAB from reading http://thread.gmane.org/gmane.emacs.orgmode/6623. C-u C-u TAB is documented in the reference card but not in the manual or on worg as far as I can see - Shouldn't it be added? Also shouldn't VISIBILITY be listed with the other special properties in the manual etc? Would you like to make a patch? I'm using it to mark sub-projects (level 2,3 etc) with :VISIBILITY: folded (or :VISIBILITY: content when they also contain a sub-sub- project). When sub-projects are folded into their projects (level 1) I miss out on an overview of all projects. Using C-u C-u TAB I can see all non-level-1 headlines that I've marked because they are parents of tasks, and then I can visit them locally with TAB. It's very useful in conjunction with the counter cookie, and in column view. I have a query about the C-u C-u TAB command. When I've just edited or used S-TAB (no matter which part of the global cycle it's on) C-u C-u TAB works as I would expect. But if I've just used TAB, C-u C-u TAB cycles hrough - CONTENTS - SHOW ALL etc, even while the mini buffer displays startup visibility plus VISIBILITY properties at each stage of the cycle. C-u C-u TAB also cycles when it's repeated. I find it hard to keep track of whether it will cycle or not while I'm using it to view areas of the outline, so in effect, the only way I feel sure I can quickly return to my desired startup visibility is with S-TAB C-u C-u TAB, which is a lot of keystrokes! So my questions are - is this expected behaviour? Can it be changed? I believe I have fixed this, please verify. - 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: RE [Orgmode] Re: Issues with org-mode and LaTeX export.
I do hear you about not wanting to add maintenance overhead to yourself, but when they install the new Emacs, you even then may find you need a more recent recent org-mode release in your home directory. It does come with Emacs, to be sure, but they've been quite conservative about their cutoff dates, so even a brand new Emacs version typically has an org-mode version which has been significantly improved upon. sb On Thu, Oct 21, 2010 at 8:47 PM, Nick Dokos nicholas.do...@hp.com wrote: gerald.j...@dgag.ca wrote: I tried this: #+LATEX_HEADER: \usepackage{longtable} No effects? AFAIK, the quotes are not necessary, but the reason it's not working is indeed that your version of org-mode doesn't know about LATEX_HEADER at all. It was implemented with this commit: commit 20364d043a51c3c71493369c58a43b49566dbdaa Author: Carsten Dominik carsten.domi...@gmail.com Date: Thu Oct 2 15:00:14 2008 +0200 Implement #+LATEX_HEADER special. Proposed by Austin Frank and apparently also by Russel Adams. which I believe appeared in release_6.08 Note that the commit is two years old. I also looked at the manual to selectively export a part of the org file. They talk about the org-export-select-tags and org-export-exclude-tags; these variables don't even exist? They do. Are you still using that old org version 5.x? If so, well, then maybe there were no such variables. And somewhen in org version 6.x the export facilities were completely rewritten, so I guess you are pretty alone with your problems unless you get a recent version. For the time being I am stuck with this version. I am sending a request to our IT group to upgrade Emacs to the most recent version for the version of RedHat we have, this should have a more recent version of org-mode, if I am lucky that should be done in a couple weeks. In the mean time I will manually add, or exclude, what I want from the exported *.tex file. A couple of weeks?!? And you are not even sure which version of emacs and org-mode you are going to get? I'd say, build your own: get emacs/orgmode from the git mirror and build it yourself, install it in your home directory if necessary. Even if it takes you a week or two to get it done, at the end of it you'll be much better off at the end of it. If you have a community of users, this might be more difficult, but maybe you can exercise concerted pressure on your IT dept: they might be more willing to listen to ten people than to one. If you are reasonably comfortable with git and make, it should only take an hour or so to update/build/install; and assuming you stay with released versions, you will only have to do that every couple of months. In addition, depending on what emacs version you have, you might be able to run recent org-mode even if your emas is old (certainly on emacs 23, probably on emacs 22, and just maybe on emacs 21, although I'm not sure about these). That might be enough for your purposes and it reduces time requirements to just a few minutes every month or two. FWIW, the only use I have of whatever emacs gets installed with a system is to bootstrap the latest emacs/orgmode: after that, it's deleted (or at least, never used again). Nick ___ 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 ___ 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: [PATCH] Make footnotes work correctly in message-mode
Tassilo, Tassilo Horn wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Tested. Works perfectly for me. Fan-tas-tic! Great! :-) Did you only test `org-footnote-action', or also the delete and normalize stuff? Just to make sure I didn't break that... Good question... I only tested =org-footnote-action= from the 3 points of view: - adding a new footnote - coming back to the footnote's link (in the message) - going to an already created footnote. I don't know how the other behaved before (never used them). 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] Unbillable clock time
I would like to be able to designate some of my clock time as unbillable such that when using a clockreport the unbillable time is not included. I would also like to compare billable and unbillable time if possible. Currently I either manually change CLOCK: * to UNBILLABLE: * preserving history but it's kind of messy or I just delete the time altogether, losing history. Is there a better way to accomplish this? If not, may I request this feature. :-) Many time-keeping systems have a billable flag for entries. Ross ___ 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: Aligning Columns in HTML Export Tables
Carsten Dominik carsten.domi...@gmail.com writes: On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. I've checked them, but they are not customized: Hide Org Export Table Data Tags: Opening tag: td%s Closing tag: /td State : STANDARD. This does look right. Hide Org Export Table Header Tags: Opening tag: th scope=%s Closing tag: /th State : STANDARD. This does not look right, it should be Opening tag: th scope=%s%s Closing tag: /th The export of the OPs table works as expected. But the table I've sent is different in that it just uses empty `' marks for grouping and creating lines. While I do not think it is particularly nice that you try to fool the parser in this way :-/ it actually behaves quite well :-D Here is what I get when I export this table: --- table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroupcolgroupcol align=left / /colgroupcolgroupcol align=left //colgroup thead trth scope=col style=text-align:rightA/thth scope=col style=text-align:leftB/thth scope=col style=text- align:leftC/th/tr /thead tbody trtd style=text-align:right1/tdtd style=text- align:leftbar/tdtd style=text-align:lefttext/td/tr trtd style=text-align:right12/tdtd style=text- align:lefttest/tdtd style=text-align:left300/td/tr trtd style=text-align:right9/tdtd style=text- align:leftfoo/tdtd style=text-align:left4/td/tr /tbody /table --- The left/right comes from the analysis of the number of numbers in each column... So I must assume that maybe some of your files did not update correctly or you have some old compiled files... ? OK, found it. It was in my .emacs which I didn't use for ages... But: colgroupcol align=right //colgroupcolgroupcol align=left //colgroupcolgroupcol align=left //colgroup must be: colgroupcol align=right /col align=left /col align=left //colgroup i.e. colgroup and /colgroup have to occur only once each and wrap the col ... / definitions. The /colgroup after each col ... / happens only for the second table. The rest is just fine :) Correct: | | A | B|C | |---+-+--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo |4 | | / | l | l | r | Wrong: | | A | B| C| |---++--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo | 4| | / | ||| Thanks for the fix! Sebastian ___ 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: Aligning Columns in HTML Export Tables
Carsten Dominik carsten.domi...@gmail.com writes: On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. I've checked them, but they are not customized: Hide Org Export Table Data Tags: Opening tag: td%s Closing tag: /td State : STANDARD. This does look right. Hide Org Export Table Header Tags: Opening tag: th scope=%s Closing tag: /th State : STANDARD. This does not look right, it should be Opening tag: th scope=%s%s Closing tag: /th The export of the OPs table works as expected. But the table I've sent is different in that it just uses empty `' marks for grouping and creating lines. While I do not think it is particularly nice that you try to fool the parser in this way :-/ it actually behaves quite well :-D Here is what I get when I export this table: --- table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroupcolgroupcol align=left / /colgroupcolgroupcol align=left //colgroup thead trth scope=col style=text-align:rightA/thth scope=col style=text-align:leftB/thth scope=col style=text- align:leftC/th/tr /thead tbody trtd style=text-align:right1/tdtd style=text- align:leftbar/tdtd style=text-align:lefttext/td/tr trtd style=text-align:right12/tdtd style=text- align:lefttest/tdtd style=text-align:left300/td/tr trtd style=text-align:right9/tdtd style=text- align:leftfoo/tdtd style=text-align:left4/td/tr /tbody /table --- The left/right comes from the analysis of the number of numbers in each column... So I must assume that maybe some of your files did not update correctly or you have some old compiled files... ? - Carsten Hi Carsten, one more, sorry. How about this (line-wrapped for readability): tr td class=right1/td td class=leftbar/td td class=lefttext/td tr instead of tr td style=text-align:right1/td td style=text-align:leftbar/td td style=text-align:lefttext/td tr ?? Combined with the ways to add IDs and classes to tables, we could then style the columns better. I would like to set this for right aligned td tags as default: td.right { font-family:monospace;text-align:right; } since most of the time I want fixed width fonts in right aligned cells. Sebastian ___ 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] MobileOrg : Reminders
Hallo Magnus Nilsson, am 21.10.2010 schriebst Du: Hi, Does MobileOrg support reminders, like a buzz from the phone 10 (or a customizable number of) minutes before any appointment from the agenda? As far as I know (and see on my iPhone) it does not yet provide such a feature. But i agree that it would be really useful. Martin ___ 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] TikZ to separate file (babel?) possible?
Hi, I've recently gotten into TikZ and love it. It is simply fantastic for creating neat diagrams and other thingies. One question... I created an org file with a flow chart in it and simply put my TikZ code in between #+begin_latex and #+end_latex. This is fine when the picture is in a document, but what if I want just a .png/jpg/eps/pdf output? Is it possible to use babel or something else so that I can simply generate a picture vs. needing it to be in the PDF output? I can ask the PGF list as well, but this one is far more active and I know some use TikZ here. I ask because sometimes in my notes I'd like to have the code present but also be able to reuse my work elsewhere, like when I have to present using powerpoint. It'd be nice to just grab the picture (like what I do with gnuplot output) rather than generating a pdf just for the TikZ pic, screenshot or gimp it down to size, and then be able to use it. Does that make sense? It seems like babel would be perfect for this. It already allows all the typical handles -- file output, what to export, etc. Or does this already exist and I'm ignorant? Thoughts? John ___ 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] MobileOrg : Reminders
I am definitely also interested in such a feature. -- A. Ryan Reynolds ___ 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] TikZ to separate file (babel?) possible?
John, Does http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.php#sec-4_2 help? There is a tikz example there. The :file argument may be all you're missing, and putting your code in a latex source block. Here is what I do when I have an R code block that generates LaTeX code. Hopefully this can be adapted to your case. #+srcname: R-latex #+begin_src R :results silent :exports code lf - function() { \\LaTeX } lf() #+end_src #+begin_src latex :noweb yes :file (if (and (boundp 'htmlp) htmlp) latex-logo-html.png latex-logo.png) :buffer (if (and (boundp 'htmlp) htmlp) no t) R-latex()~is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. R-latex()~is the de facto standard for the communication and publication of scientific documents. R-latex()~is available as free software. #+end_src That messy :file and :buffer arguments needs some explanation. They are there so that when I eval the code block *in* an org-mode buffer, with C-c C-c, that an image will be generated to be inserted into the buffer. However, this uses my background color in emacs, which I don't actually want when exported to HTML, that's what the :buffer argument controls. Essentially, it's just what arguments get passed to dvipng (if I recall correctly). On Latex export, the actual latex code should be included in the document, so I think all of my use cases are covered. The only issue is that org-mode doesn't display PDFs generated from a :file argument in buffer, but you might not care about that. If you're an R user, you might also check out the tikzDevice package: http://r-forge.r-project.org/projects/tikzdevice/ HTH, --Erik John Hendy wrote: Hi, I've recently gotten into TikZ and love it. It is simply fantastic for creating neat diagrams and other thingies. One question... I created an org file with a flow chart in it and simply put my TikZ code in between #+begin_latex and #+end_latex. This is fine when the picture is in a document, but what if I want just a .png/jpg/eps/pdf output? Is it possible to use babel or something else so that I can simply generate a picture vs. needing it to be in the PDF output? I can ask the PGF list as well, but this one is far more active and I know some use TikZ here. I ask because sometimes in my notes I'd like to have the code present but also be able to reuse my work elsewhere, like when I have to present using powerpoint. It'd be nice to just grab the picture (like what I do with gnuplot output) rather than generating a pdf just for the TikZ pic, screenshot or gimp it down to size, and then be able to use it. Does that make sense? It seems like babel would be perfect for this. It already allows all the typical handles -- file output, what to export, etc. Or does this already exist and I'm ignorant? Thoughts? John ___ 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 ___ 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] TikZ to separate file (babel?) possible?
Hi John, I use blocks like the following to create standalone pdfs. #+begin_src latex :file stuff/epr-logo.pdf :border 1.75em :packages '(( tikz)) :exports none \usetikzlibrary{shapes,arrows,shadows,decorations,decorations.text} \tikzstyle{line} = [draw, ultra thick, -latex'] {\huge \begin{tikzpicture}[scale=0.5] \path [decorate, decoration={text along path, text={main(int argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (0,2) cos (3,0.5); \path [decorate, decoration={text along path, text={argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (4.5,-0.5) sin (8,-2) cos (12,0) sin (16,2) cos (19,0.5); \path [decorate, decoration={text along path, text={main(int argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (0,-2) cos (4,0) sin (8,2) cos (11,0.5); \path [decorate, decoration={text along path, text={[]) int a; int b; if(a!=b) a++1;}}] (12.5,-0.5) sin (16,-2) cos (20,0) sin (24,2); \path [decorate, decoration={text along path, text={if(a!=b) a++1;}}] (20.5,-0.5) sin (24,-2); \end{tikzpicture} } #+end_src I then normally use the convert command if I want to change the resulting pdf into a png or other image type more suitable for web publishing. Best -- Eric John Hendy jw.he...@gmail.com writes: Hi, I've recently gotten into TikZ and love it. It is simply fantastic for creating neat diagrams and other thingies. One question... I created an org file with a flow chart in it and simply put my TikZ code in between #+begin_latex and #+end_latex. This is fine when the picture is in a document, but what if I want just a .png/jpg/eps/pdf output? Is it possible to use babel or something else so that I can simply generate a picture vs. needing it to be in the PDF output? I can ask the PGF list as well, but this one is far more active and I know some use TikZ here. I ask because sometimes in my notes I'd like to have the code present but also be able to reuse my work elsewhere, like when I have to present using powerpoint. It'd be nice to just grab the picture (like what I do with gnuplot output) rather than generating a pdf just for the TikZ pic, screenshot or gimp it down to size, and then be able to use it. Does that make sense? It seems like babel would be perfect for this. It already allows all the typical handles -- file output, what to export, etc. Or does this already exist and I'm ignorant? Thoughts? John ___ 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 ___ 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] TikZ to separate file (babel?) possible?
This is fantastic. Honestly, I had no idea that one could use LaTeX with babel! This is just perfect. I was googling around for export tikz pgf jpg and things like that with no luck. This will do perfectly. Thanks for the help. John On Fri, Oct 22, 2010 at 4:25 PM, Eric Schulte schulte.e...@gmail.comwrote: Hi John, I use blocks like the following to create standalone pdfs. #+begin_src latex :file stuff/epr-logo.pdf :border 1.75em :packages '(( tikz)) :exports none \usetikzlibrary{shapes,arrows,shadows,decorations,decorations.text} \tikzstyle{line} = [draw, ultra thick, -latex'] {\huge \begin{tikzpicture}[scale=0.5] \path [decorate, decoration={text along path, text={main(int argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (0,2) cos (3,0.5); \path [decorate, decoration={text along path, text={argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (4.5,-0.5) sin (8,-2) cos (12,0) sin (16,2) cos (19,0.5); \path [decorate, decoration={text along path, text={main(int argc, char *argv[]) int a; int b; if(a!=b) a++1;}}] (0,-2) cos (4,0) sin (8,2) cos (11,0.5); \path [decorate, decoration={text along path, text={[]) int a; int b; if(a!=b) a++1;}}] (12.5,-0.5) sin (16,-2) cos (20,0) sin (24,2); \path [decorate, decoration={text along path, text={if(a!=b) a++1;}}] (20.5,-0.5) sin (24,-2); \end{tikzpicture} } #+end_src I then normally use the convert command if I want to change the resulting pdf into a png or other image type more suitable for web publishing. Best -- Eric John Hendy jw.he...@gmail.com writes: Hi, I've recently gotten into TikZ and love it. It is simply fantastic for creating neat diagrams and other thingies. One question... I created an org file with a flow chart in it and simply put my TikZ code in between #+begin_latex and #+end_latex. This is fine when the picture is in a document, but what if I want just a .png/jpg/eps/pdf output? Is it possible to use babel or something else so that I can simply generate a picture vs. needing it to be in the PDF output? I can ask the PGF list as well, but this one is far more active and I know some use TikZ here. I ask because sometimes in my notes I'd like to have the code present but also be able to reuse my work elsewhere, like when I have to present using powerpoint. It'd be nice to just grab the picture (like what I do with gnuplot output) rather than generating a pdf just for the TikZ pic, screenshot or gimp it down to size, and then be able to use it. Does that make sense? It seems like babel would be perfect for this. It already allows all the typical handles -- file output, what to export, etc. Or does this already exist and I'm ignorant? Thoughts? John ___ 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 ___ 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: Unbillable clock time
Ross Patterson m...@rpatterson.net writes: I would like to be able to designate some of my clock time as unbillable such that when using a clockreport the unbillable time is not included. I would also like to compare billable and unbillable time if possible. Currently I either manually change CLOCK: * to UNBILLABLE: * preserving history but it's kind of messy or I just delete the time altogether, losing history. Is there a better way to accomplish this? If not, may I request this feature. :-) Many time-keeping systems have a billable flag for entries. Hi Ross, I just clock everything. You can make a level 1 heading of * Billable and * Non-Billable and create tasks under that to clock. Then your clock reports will show summaries and the Billable/Non-Billable stuff should be obvious. Alternatively you can keep separate project files for Billable and non-Billable. I've used both approaches in the past. HTH, Bernt ___ 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] [PATCH] unicode nbsp in org-emphasis-regexp-components
Hi. The Unicode contains a NON-BREAK SPACE character at position 0xA0. IMHO org-mode's emphasis code should by default treat this (any other?) character the same as normal space. When i write: It was a /big bang/. I'd like the big bang to be put in italic especially when exported to HTML. (I don't know if it goes properly through all the mailing systems but I put the \u00A0 between a and / above.) --8---cut here---start-8--- diff --git a/lisp/org.el b/lisp/org.el index 6ea9d25..b8cd38e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3419,7 +3419,7 @@ After a match, the match groups contain these elements: \\([ post ]\\|$\\)) (defcustom org-emphasis-regexp-components - '( \t('\{ - \t.,:!?;'\)}\\ \t\r\n,\' . 1) + '( \t('\{\u00A0 - \t.,:!?;'\)}\\ \t\r\n,\' . 1) Components used to build the regular expression for emphasis. This is a list with 6 entries. Terminology: In an emphasis string like \ *strong word* \, we call the initial space PREMATCH, the final --8---cut here---end---8--- -- 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
Re: [Orgmode] TikZ to separate file (babel?) possible?
On Fri, 22 Oct 2010 16:36:10 -0500, John Hendy jw.he...@gmail.com wrote: This is fantastic. Honestly, I had no idea that one could use LaTeX with babel! This is just perfect. I was googling around for export tikz pgf jpg and things like that with no luck. This will do perfectly. For completeness (and the mailing list archive), if you need to do this directly in latex, you will want to use the minimal document class and the preview package. Check out examples on the tikz examples web site [1]. The preview package is what babel uses. Footnotes: [1] http://www.texample.net/tikz/examples/ -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: [PATCH] Alphabetical ordered lists
Sorry about that - patch attached. Thanks, Nathaniel Flath On Fri, Oct 22, 2010 at 1:13 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Nathaniel, I get patch does not apply. Can you please update the patch to the current git master? Thanks - Carsten On Oct 22, 2010, at 7:30 AM, Nathaniel Flath wrote: I think I've fixed the issues brought up with this new patch. Please let me know what you think. On Wed, Oct 20, 2010 at 9:44 PM, Nathaniel Flath flat0...@gmail.com wrote: But I can't help thinking this could lead to unexpected results in some cases (admittedly less than when alpha bullets could be any size long). It definitely will. Here is an alternative idea. Nathaniel, what do you think about this: We could keep the numbering as we have it in the Org file, but introduce something like [...@a] in the first item that will convert the numbering into a,b,... upon export to ASCII, HTML, maybe even LaTeX (even though I think LaTeX demands some consistency here and prefers to have the global setup decide how lists work). Hell, we could even use [...@a] for capitals and [...@i] and [...@i] for roman numbering :) - Carsten Sorry for the late response - got swamped with work for a bit. I'd much prefer the approach I've been going with, mostly since I don't usually export my notes and mostly view them in org-mode. I'll work on the patch tonight - should send a patch either later tonight or tomorow. Thanks, Nathaniel Flath ordered-list.patch - Carsten org-list.patch 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
[Orgmode] fr: capture to kill buffer if requested
Here is an idea for a minor feature in capture. Sometimes you don't want the buffer to stay around, but you want to capture to it. Perhaps the plist notation could include the possibility of killing the buffer after capturing to it? I didn't find a hook, but maybe this is useful enough for the plist notation. ___ 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: Aligning Columns in HTML Export Tables
On Oct 22, 2010, at 9:30 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. I've checked them, but they are not customized: Hide Org Export Table Data Tags: Opening tag: td%s Closing tag: /td State : STANDARD. This does look right. Hide Org Export Table Header Tags: Opening tag: th scope=%s Closing tag: /th State : STANDARD. This does not look right, it should be Opening tag: th scope=%s%s Closing tag: /th The export of the OPs table works as expected. But the table I've sent is different in that it just uses empty `' marks for grouping and creating lines. While I do not think it is particularly nice that you try to fool the parser in this way :-/ it actually behaves quite well :-D Here is what I get when I export this table: --- table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroupcolgroupcol align=left / /colgroupcolgroupcol align=left //colgroup thead trth scope=col style=text-align:rightA/thth scope=col style=text-align:leftB/thth scope=col style=text- align:leftC/th/tr /thead tbody trtd style=text-align:right1/tdtd style=text- align:leftbar/tdtd style=text-align:lefttext/td/tr trtd style=text-align:right12/tdtd style=text- align:lefttest/tdtd style=text-align:left300/td/tr trtd style=text-align:right9/tdtd style=text- align:leftfoo/tdtd style=text-align:left4/td/tr /tbody /table --- The left/right comes from the analysis of the number of numbers in each column... So I must assume that maybe some of your files did not update correctly or you have some old compiled files... ? OK, found it. It was in my .emacs which I didn't use for ages... But: colgroupcol align=right //colgroupcolgroupcol align=left //colgroupcolgroupcol align=left //colgroup must be: colgroupcol align=right /col align=left /col align=left //colgroup i.e. colgroup and /colgroup have to occur only once each and wrap the col ... / definitions. The /colgroup after each col ... / happens only for the second table. Hi Sebastian, Are you sure about this? Because the is special syntax for Org to define column groups, and I believe it is OK to have multiple column groups in a table. - Carsten Correct: | | A | B|C | |---+-+--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo |4 | | / | l | l | r | Wrong: | | A | B| C| |---++--+--| | | 1 | bar | text | | | 12 | test | 300 | | | 9 | foo | 4| | / | ||| Thanks for the fix! Sebastian ___ 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: Aligning Columns in HTML Export Tables
On Oct 22, 2010, at 9:37 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Sebastian, my guess would be that you have customized the td and th tags? If yes, please reset the customization, you need the new default values (which you then can still modify). Please check the variables org-export-table-header-tags and org-export-table-data-tags. I've checked them, but they are not customized: Hide Org Export Table Data Tags: Opening tag: td%s Closing tag: /td State : STANDARD. This does look right. Hide Org Export Table Header Tags: Opening tag: th scope=%s Closing tag: /th State : STANDARD. This does not look right, it should be Opening tag: th scope=%s%s Closing tag: /th The export of the OPs table works as expected. But the table I've sent is different in that it just uses empty `' marks for grouping and creating lines. While I do not think it is particularly nice that you try to fool the parser in this way :-/ it actually behaves quite well :-D Here is what I get when I export this table: --- table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides caption/caption colgroupcol align=right //colgroupcolgroupcol align=left / /colgroupcolgroupcol align=left //colgroup thead trth scope=col style=text-align:rightA/thth scope=col style=text-align:leftB/thth scope=col style=text- align:leftC/th/tr /thead tbody trtd style=text-align:right1/tdtd style=text- align:leftbar/tdtd style=text-align:lefttext/td/tr trtd style=text-align:right12/tdtd style=text- align:lefttest/tdtd style=text-align:left300/td/tr trtd style=text-align:right9/tdtd style=text- align:leftfoo/tdtd style=text-align:left4/td/tr /tbody /table --- The left/right comes from the analysis of the number of numbers in each column... So I must assume that maybe some of your files did not update correctly or you have some old compiled files... ? - Carsten Hi Carsten, one more, sorry. How about this (line-wrapped for readability): tr td class=right1/td td class=leftbar/td td class=lefttext/td tr instead of tr td style=text-align:right1/td td style=text-align:leftbar/td td style=text-align:lefttext/td tr ?? Combined with the ways to add IDs and classes to tables, we could then style the columns better. I would like to set this for right aligned td tags as default: td.right { font-family:monospace;text-align:right; } OK, fair enough. But I don't think I will make the monospace the Org default, it looks a bit odd. BUt of cause you can change this. I have now in the default style: td, th { vertical-align: top; } th.right { text-align:right; } th.left { text-align:left; } th.center { text-align:center; } td.right { text-align:right; } td.left { text-align:left; } td.center { text-align:center; } Is there a way to write this more compactly? - 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] Invisible parent tasks (request)
On Oct 22, 2010, at 2:46 PM, Magnus Nilsson wrote: Dear all, When using Getting Things Done, it would be nice to customize org- mode such that parent tasks are not seen from the agenda view with C-a t... ...unless all subtasks are in a done state! A variable like org-show-parent-tasks could perhaps be introduced. I know that org-enforce-todo-dependencies can make the parents text gray in the agenda view, but I haven't found a way to make the parent tasks not show. The manual says: If you set the variable org-agenda-dim-blocked-tasks, TODO entries that cannot be closed because of such dependencies will be shown in a dimmed font or even made invisible in agenda views (see Chapter 10 [Agenda Views], page 83). If you look at the mentioned variable, you will find out that you can set it to `invisible'. - 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