[O] Putting a todo item to the end of this level
Hello, how can I move a specific TODO item to the end of the level it currently sits? Example a) before the command was executed * TODO Level 1 ** TODO something to do a ** DONE something to do b ** TODO something to do c ** TODO something to do d * TODO Level 1 again b) after the command was executed (TODO is moved to the end of the TODO Level 1 items) * TODO Level 1 ** TODO something to do a ** TODO something to do c ** TODO something to do d ** DONE something to do b * TODO Level 1 again Thanks a lot in advance, Uwe
Re: [O] org-mode for knowledge management
[…] uniformity, extruder/die temperature, cooling time, holding pressure, etc. I think this is awesome general knowledge. But I'm documenting our learning in an experimental report for export and upload to my company's internal technical report repo. I find it very different to write notes for yourself and to write for an audience. In a report you need to follow a structure, you need to choose a particular natural language, you need to explain things that might be obvious for you, you cannot change topic, … Whereas in notes, you're free. Therefore I think it makes sense to have two different places for both. What I'm often torn about is re-writing the learning/understanding/summary in a more general way since how it usually arises is laden with specific details for *this* product/project, whereas the information I want to retain is about how I see the new understanding more generally. … However, I don't consider that rewriting (specific→general) you mention as a necessary task or a burden (I don't do it), because in your notes (generic knowledge) you can simply refer to the specific one (e.g.: „see what I did in this case ([[link_to_the_report]])“.). A header with 1 or 2 or N links to specific reports is a good start before continue focusing on other generic-knowledge topics. So you decide where you will work the most (either in the specific reports or in the generic knowledge) and then the other can refer to it. I do it like that. E.g. I'm not writing in my generic notes a „code style guide“ because I did it already in project X, so I add knowledge in projectX.org and just link to it. If some particular knowledge grows too big for that projectX_code_style, I develop it in my generic notes (another file, project-unrelated). Of course copy+paste is a nightmare to maintain (see: DRY). I am still forced to do it with some org tables which do complex calculations. I think org offers dynamic tables to apply the same process to different data sources, but it gets complex. I think there's no such thing as „templates“ where you change the base one and all uses of it (in all files) are automatically updated. About links: in org-mode they all look the same, but semantically there are many types, like: - *is-a*: „this is a concrete implementation of [[that generic knowledge]]“ - *related*: „related to this is: [[that]]“ - *same-as*: „this and [[that]] are exactly the same topic, so write only under that header, not here“ ← this is poor man's transclusion, or more like „symbolic links“ in ext4. With it, a header seems to be present in many places at the same time; in reality the content is only in one place and the rest are links. The good thing is, it doesn't really matter /where/ exactly is that tree, because you'll find it anyway by following maximum 1 link. X can link to Y, or Y can link the X; what's important is that reading both X or Y you'll find exactly the same thing (not copy+pasted contents). So, it's all about finding a manual algorithm to organize things This is generally what I've tried to do, though I find this is cumbersome as I often use subtrees for more report-style/narrative analyses of data and experiments. Thus I don't find it as simple as your example to Brady with the PDF/HTML info, which is more basic. As I write this, I'm thinking I could probably still do this... For an example, let's say I'm making plastic widgets and we've been running a series of injection mold trials with a manufacturer. Some really novel understanding comes about with respect to part uniformity, extruder/die temperature, cooling time, holding pressure, etc. I think this is awesome general knowledge. But I'm documenting our learning in an experimental report for export and upload to my company's internal technical report repo. My initial thought was that links this way would get in the way... but I suppose now I could be writing along and create a link to the nearest headline in the report, then go to some other tree and insert a link to that headline with some note about the gist of the understanding or keywords for the future me trying to re-find that tidbit. Note that: - I don't suggest you abuse links and link every header. You can link to interesting topics. Like in Wikipedia: you /could/ link every word, but it makes sense to link only interesting information (only: in WP they link too much because they don't know what exactly will be interesting to the reader; but in your notes, you know already which links will you need in the future). - In my example, the link meant „this is the same as that“, and I think this is always a basic concept, even in complex scenarios. In your case, your link may mean something different (like: „this heading is a specific wording of that knowledge“) - That header with empty contents that says „for this, don't look here but look there: [[there]]“
[O] Math formatting in HTML export - The Org Manual
http://orgmode.org/manual/Math-formatting-in-HTML-export.html Hello the list, Unfortunately, I do not know how to use Mathjax in order to convert any mathematical symbol or any proof in html. Therefore the only solution that I see is to use imagemagick. But the line #+OPTIONS: tex:imagemagick in my setup gives always corrupted png images and I do not succeed to understand why. I would be thankful if someone could tell me how to configure my emacs in order to use imagemagick to convert any proof in png image to export it in html. Thanks ! Jo.
Re: [O] Adding new table rows/cols in a formula update
Hello, Dima Kogan d...@secretsauce.net writes: Here's the same patch without the TINYCHANGE marker, if that's helpful. Applied. Thank you for this work. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] key-binding for all plotting styles
Hello, Thierry Banel tbanelweb...@free.fr writes: Here is a patch which bindskeys: C-c a orgtbl-ascii-plot(creates an ascii plot for the column where the cursor is) C-c g org-plot/gnuplot (nicely launches Gnuplot for all columns) It also adds a sub-menu named Plot in the Tbl menu with those two entries. Applied. Thank you. Would you mind providing some documentation about the feature in the manual, and updating ORG-NEWS? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] key-binding for all plotting styles
Le 12/10/2014 11:28, Nicolas Goaziou a écrit : Applied. Thank you. Would you mind providing some documentation about the feature in the manual, and updating ORG-NEWS? Regards, Sure! Will do that shortly.
Re: [O] Adding new table rows/cols in a formula update
Hi, Nicolas Goaziou m...@nicolasgoaziou.fr writes: Here's the same patch without the TINYCHANGE marker, if that's helpful. Applied. Thank you for this work. Indeed, thanks. I double-checkedd and found the copyright assignment for Dima. Can one of you add Dima to http://orgmode.org/worg/org-contribute.html#contributors_with_fsf_papers ? Thanks! -- Bastien
Re: [O] Putting a todo item to the end of this level
Hello Uwe, On 2014-10-12 09:37 Uwe Ziegenhagen wrote: how can I move a specific TODO item to the end of the level it currently sits? Example a) before the command was executed * TODO Level 1 ** TODO something to do a ** DONE something to do b ** TODO something to do c ** TODO something to do d * TODO Level 1 again b) after the command was executed (TODO is moved to the end of the TODO Level 1 items) * TODO Level 1 ** TODO something to do a ** TODO something to do c ** TODO something to do d ** DONE something to do b * TODO Level 1 again If you always want to move DONE headlines to the end you might want to consider org-sort. It is usually bound to `C-c ^' so with point on the first headline, doing `C-c ^ o' would produce the example b). HTH, -- Alexander Baier
Re: [O] [PATCH] `file-name-base' missing in Emacs 24.3
Hi Nicolas, Nicolas Berthier nbe...@member.fsf.org writes: A recent patch introduced a call to `file-name-base' in contributed ox-bibtex.el; however, this function was only introduced in Emacs version 24.3. The attached patch is a basic fix for that. Can you write a compatibility function named `org-file-name-base' instead and put it in org-compat.el? Thanks in advance, -- Bastien
Re: [O] Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa @ /home/will/.emacs.d/elpa/org-20140616/)]
Hi Thierry, Thierry Banel tbanelweb...@free.fr writes: Here is a patch to fix the issue. Applied, thanks! -- Bastien
Re: [O] Adding new table rows/cols in a formula update
Hello, Bastien b...@altern.org writes: Can one of you add Dima to http://orgmode.org/worg/org-contribute.html#contributors_with_fsf_papers ? Done. Regards, -- Nicolas Goaziou0x80A93738
Re: [O] help
Moritz Kiefer moritz.kie...@gmail.com writes: help You're being a bit brief, perhaps you could go into detail. -- M-x emacs-doctor RET
[O] bug#18401: 24.4.50; emerge-files fails for org files
Glenn Morris r...@gnu.org writes: Detlev Zundel wrote: org-overview: `recenter'ing a window that does not display current-buffer. This was apparently fixed in the Org repository months ago, but still not in the Emacs one. Ref: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17724#26 (We now have 4 separate Emacs reports for this.) I'm closing this one, thanks. -- Bastien
[O] bug#18430: 24.4.50; org-mode: File mode specification error: (error `recenter'ing a window that does not display current-buffer.)
Glenn Morris r...@gnu.org writes: In a recent build of emacs trunk, I constantly getting this error whenever I open a .org file. Could this be fixed? Thanks, Leo See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18401#10 Closing. -- Bastien
Re: [O] Help with column formula in radiotable
Hi Thorsten, Thorsten Grothe i...@th-grothe.de writes: No one an idea? Let's have a habit of waiting at least two days before bumping a thread. Thanks! -- Bastien
Re: [O] Adding new table rows/cols in a formula update
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Bastien b...@altern.org writes: Can one of you add Dima to http://orgmode.org/worg/org-contribute.html#contributors_with_fsf_papers ? Done. Thanks! -- Bastien
Re: [O] [babel, R] Commands are not copied in the iESS buffer upon evaluation
Hi Sébastien, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: But it may be OK to allow a user to override. But I really find we should be able to override it, yes! Can you provide a patch for this? -- Bastien
Re: [O] Downloadable mailing list archive?
Hi Rainer, Rainer M Krug rai...@krugs.de writes: is there a downloadable mailing list archive in maildir format for org-mode? ftp://lists.gnu.org/emacs-orgmode/ HTH, -- Bastien
Re: [O] [PATCH] org-passwords.el: Do not insert `org-passwords-generate-password-with-symbols`
Hi Jonathan, Jonathan Leech-Pepin jonathan.leechpe...@gmail.com writes: Patch attached and inlined (to ensure gmail does not mangle) Applied, thanks! -- Bastien
Re: [O] [PATCH] org-passwords.el: Improvements
Hi Jorge, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: Some development in the password manager. Can you resend the patch as an attachment? If you have commit access, feel free to push your commit directly. Thanks! -- Bastien
Re: [O] Proposal to replace the prefix repetition with whitespace during expansion of noweb references
Hi Aaron, Aaron Ecay aarone...@gmail.com writes: FWIW, I also think the present behavior is too magical, and am in favor of the proposed change. Feel free to push this change. Thanks! -- Bastien
Re: [O] [PATCH] key-binding for all plotting styles
Le 12/10/2014 11:28, Nicolas Goaziou a écrit : Would you mind providing some documentation about the feature in the manual, and updating ORG-NEWS? Done. To see the result: - cd to org-mode tree root - make info - launch Emacs - C-u C-h i doc/org RET - search for Org-Plot chapter Have fun Thierry From 916f974ed4597e3d03124089d6ce90ccd3d235cf Mon Sep 17 00:00:00 2001 From: Thierry Banel tbanelweb...@free.fr Date: Sun, 12 Oct 2014 15:23:12 +0200 Subject: [PATCH] Document ascii art plot * doc/org.texi: Extend Gnuplot chapter to ascii art plotting. * etc/ORG-NEWS: Document ascii art plot. --- doc/org.texi | 56 +++- etc/ORG-NEWS | 2 ++ 2 files changed, 53 insertions(+), 5 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index ad872a8..91fa211 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -3258,11 +3258,16 @@ functions. @cindex plot tables using Gnuplot @cindex #+PLOT -Org-Plot can produce 2D and 3D graphs of information stored in org tables -using @file{Gnuplot} @uref{http://www.gnuplot.info/} and @file{gnuplot-mode} +Org-Plot can produce graphs of information stored in org tables, either +graphically or in ascii-art. + +@subheading Graphical plots using @file{Gnuplot} + +Org-Plot produces 2D and 3D graphs using @file{Gnuplot} +@uref{http://www.gnuplot.info/} and @file{gnuplot-mode} @uref{http://xafs.org/BruceRavel/GnuplotMode}. To see this in action, ensure that you have both Gnuplot and Gnuplot mode installed on your system, then -call @code{org-plot/gnuplot} on the following table. +call @kbd{C-c g} or @code{M-x org-plot/gnuplot RET} on the following table. @example @group @@ -3280,8 +3285,8 @@ call @code{org-plot/gnuplot} on the following table. Notice that Org Plot is smart enough to apply the table's headers as labels. Further control over the labels, type, content, and appearance of plots can be exercised through the @code{#+PLOT:} lines preceding a table. See below -for a complete list of Org-plot options. For more information and examples -see the Org-plot tutorial at +for a complete list of Org-plot options. The @code{#+PLOT:} lines are +optional. For more information and examples see the Org-plot tutorial at @uref{http://orgmode.org/worg/org-tutorials/org-plot.html}. @subsubheading Plot Options @@ -3337,6 +3342,47 @@ may still want to specify the plot type, as that can impact the content of the data file. @end table +@subheading Ascii bar plots + +While the cursor is on a column, typing @kbd{C-c a} or +@code{M-x orgtbl-ascii-plot RET} create a new column containing an ascii-art +bars plot. The plot is implemented through a regular column formula. When +the source column changes, the bar plot may be updated by refreshing the +table, for example typing @kbd{C-u C-c *}. + +@example +@group +| Sede | Max cites | | +|---+---+--| +| Chile |257.72 | | +| Leeds |165.77 | WWWh | +| Sao Paolo | 71.00 | WWW; | +| Stockholm |134.19 | WW: | +| Morelia |257.56 | WWWH | +| Rochefourchat | 0.00 | | +#+TBLFM: $3='(orgtbl-ascii-draw $2 0.0 257.72 12) +@end group +@end example + +The formula is an elisp call: +@lisp +(orgtbl-ascii-draw COLUMN MIN MAX WIDTH) +@end lisp + +@table @code +@item COLUMN + is a reference to the source column. + +@item MIN MAX + are the minimal and maximal values displayed. Sources values + outside this range are displayed as @code{too small} + or @code{too large}. + +@item WIDTH + is the width in characters of the bar-plot. It defaults to @code{12}. + +@end table + @node Hyperlinks @chapter Hyperlinks @cindex hyperlinks diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 0a5af68..a29eec6 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -96,6 +96,8 @@ would throw an error. A new variable ~org-table-formula-create-columns~ was added to adjust this behavior. It is now possible to silently add new columns, to do so with a warning or to explicitly ask the user each time. +*** Ascii plot +Ability to plot values in a column through ascii-art bars. ** Miscellaneous *** File names in links accept are now compatible with URI syntax Absolute file names can now start with =///= in addition to =/=. E.g., -- 1.9.1
[O] [PATCH RFC] subtree archive hook?
I think it would be useful to have a hook that runs before archiving a subtree. I'm attaching two patches: one that includes a hook in the archive process, and another (by way of an example) that adds a function to that hook for the org-attach library. You can set the option `org-attach-archive-delete' to a non-nil value to have org-attach delete a subtree's attachments when you archive it. Let me know what you think! Eric From 1bfc84570f29dd884c2759dfe19116f09228ed4e Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Sun, 12 Oct 2014 22:01:29 +0800 Subject: [PATCH 2/3] Provide a hook during the archive process * lisp/org-archive.el (org-archive-hook): New hook. (org-archive-subtree): Run hook. --- lisp/org-archive.el | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 700e59b..c7f02b9 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -119,6 +119,13 @@ information. (const :tag Outline path olpath) (const :tag Local tags ltags))) +(defvar org-archive-hook nil + Hook run after successfully archiving a subtree. + +Hook functions are called with point on the subtree in the +original file. At this stage, the subtree has been added to the +archive location, but not yet deleted from the original file.) + (defun org-get-local-archive-location () Get the archive location applicable at point. (let ((re ^[ \t]*#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$) @@ -366,8 +373,10 @@ this heading. ;; Save and kill the buffer, if it is not the same buffer. (when (not (eq this-buffer buffer)) (save-buffer - ;; Here we are back in the original buffer. Everything seems to have - ;; worked. So now cut the tree and finish up. + ;; Here we are back in the original buffer. Everything seems + ;; to have worked. So now run hooks, cut the tree and finish + ;; up. + (run-hooks 'org-archive-hook) (let (this-command) (org-cut-subtree)) (when (featurep 'org-inlinetask) (org-inlinetask-remove-END-maybe)) -- 2.1.2 From f6b9bc0e2cef23b87ec77ddb9003c0791f992a2f Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Sun, 12 Oct 2014 22:02:38 +0800 Subject: [PATCH 3/3] Maybe delete heading attachments when archiving * lisp/org-attach.el (org-attach-archive-delete): New option controlling what to do with attachments when archiving. (org-attach-archive-delete-maybe): New function that runs as a hook on org-attach-hook. Checks the value of org-attach-archive-delete, and behaves accordingly. --- lisp/org-attach.el | 32 1 file changed, 32 insertions(+) diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 5c341a5..cc077c4 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -120,6 +120,18 @@ lns create a symbol link. Note that this is not supported (const :tag Link to origin location t) (const :tag Link to the attach-dir location attached))) +(defcustom org-attach-archive-delete nil + If a subtree is archived, should its attachments be deleted? + +Set to nil to never delete attachments, t to always delete +attachments, and the symbol query to ask. + :group 'org-attach + :version 24.1 + :type '(choice + (const :tag Never delete attachments nil) + (const :tag Always delete attachments t) + (const :tag Query the user query))) + ;;;###autoload (defun org-attach () The dispatcher for attachment commands. @@ -475,6 +487,26 @@ Basically, this adds the path to the attachment directory, and a \file:\ prefix. (concat file: (org-attach-expand file))) +(defun org-attach-archive-delete-maybe () + Maybe delete subtree attachments when archiving. + +This function is called by `org-archive-hook'. The option +`org-attach-archive-delete' controls its behavior. + (let (delete-p) +(setq delete-p + (cond + ((eq org-attach-archive-delete 'query) + (y-or-n-p Delete all attachments?)) + ((null org-attach-archive-delete) + nil) + (org-attach-archive-delete + t) + (t nil))) +(when delete-p + (org-attach-delete-all t + +(add-hook 'org-archive-hook 'org-attach-archive-delete-maybe) + (provide 'org-attach) ;; Local variables: -- 2.1.2
[O] inline constant substitution
Suppose I have: #+CONSTANTS: foo=42 How can I make inline references to a constant on export in regular text, rather than in a table? I want to be able to write something like: The value of foo is $foo in my org file, and then end up with: The value of foo is 42 when I export to LaTeX. TIA.
Re: [O] clock-in and clock-out columns for clock-table
Bastien b...@gnu.org writes: Hi Paul, Paul Rudin p...@rudin.co.uk writes: Is there a way to coerce a clock table to include the clock in and clock out information? Can you give a literal example of the desired table output? The kind of thing I have in mind is we have a file containing: * Task 1 CLOCK: [2014-10-12 Sun 15:20]--[2014-10-12 Sun 15:25] = 0:05 CLOCK: [2014-10-12 Sun 15:15]--[2014-10-12 Sun 15:20] = 0:05 Then at the moment we can get a clock table like: #+BEGIN: clocktable :maxlevel 2 :scope subtree #+CAPTION: Clock summary at [2014-10-12 Sun 15:23] | Headline | Time | |--+| | *Total time* | *0:10* | |--+| | Task 1 | 0:10 | #+END: But what I was after was a table something like this: #+BEGIN: clocktable :maxlevel 2 :scope subtree #+CAPTION: Clock summary at [2014-10-12 Sun 15:23] | Headline | Start time | Stop time| Elapsed time | |--+--+--+--| | *Total time* | | | *0:10* | |--+--+--+--| | Task 1 | 2014-10-12 Sun 15:15 | 2014-10-12 Sun 15:20 | 0:05 | | Task 1 | 2014-10-12 Sun 15:20 | 2014-10-12 Sun 15:25 | 0:05 | #+END: So, rather than aggregating the time from each separate time range associated with a task into one row, we get a different row for each time range.
Re: [O] inline constant substitution
Hello, Paul Rudin paul-sqpymovxoov10xsdtd+...@public.gmane.org writes: Suppose I have: #+CONSTANTS: foo=42 How can I make inline references to a constant on export in regular text, rather than in a table? I want to be able to write something like: The value of foo is $foo in my org file, and then end up with: The value of foo is 42 when I export to LaTeX. Constants are for tables only. You can use a macro instead: #+MACRO: foo 42 The value of foo is {{{foo}}}. Regards, -- Nicolas Goaziou
Re: [O] [PATCH RFC] subtree archive hook?
Hi Eric, Looks like a sensible feature. One comment: 2014ko urriak 12an, Eric Abrahamsen-ek idatzi zuen: I think it would be useful to have a hook that runs before archiving a subtree. I'm attaching two patches: one that includes a hook in the archive process, and another (by way of an example) that adds a function to that hook for the org-attach library. You can set the option `org-attach-archive-delete' to a non-nil value to have org-attach delete a subtree's attachments when you archive it. Let me know what you think! Eric From 1bfc84570f29dd884c2759dfe19116f09228ed4e Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Sun, 12 Oct 2014 22:01:29 +0800 Subject: [PATCH 2/3] Provide a hook during the archive process * lisp/org-archive.el (org-archive-hook): New hook. (org-archive-subtree): Run hook. --- lisp/org-archive.el | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 700e59b..c7f02b9 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -119,6 +119,13 @@ information. (const :tag Outline path olpath) (const :tag Local tags ltags))) +(defvar org-archive-hook nil + Hook run after successfully archiving a subtree. + +Hook functions are called with point on the subtree in the +original file. At this stage, the subtree has been added to the +archive location, but not yet deleted from the original file.) + (defun org-get-local-archive-location () Get the archive location applicable at point. (let ((re ^[ \t]*#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$) @@ -366,8 +373,10 @@ this heading. ;; Save and kill the buffer, if it is not the same buffer. (when (not (eq this-buffer buffer)) (save-buffer - ;; Here we are back in the original buffer. Everything seems to have - ;; worked. So now cut the tree and finish up. + ;; Here we are back in the original buffer. Everything seems + ;; to have worked. So now run hooks, cut the tree and finish + ;; up. + (run-hooks 'org-archive-hook) (let (this-command) (org-cut-subtree)) (when (featurep 'org-inlinetask) (org-inlinetask-remove-END-maybe)) Can the above inlinetask thing also be moved into the hook? That seems cleaner, and gives another demonstration of the usefulness of the feature. -- Aaron Ecay
[O] bug#18663: 25.0.50; Org agenda broken due to removed fancy-diary-display alias
Hello, I'm not anymore able to view the org agenda. I have been told that this issue has been fixed in the org repo, Commit 4a872ae3... [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda Date: Sat Oct 11 18:16:36 2014 +0200 Dunno when this change will arrive in Emacs and who is responsible for that. Meanwhile users that are affected can fix this by adding the old obsolete alias to their configuration: (define-obsolete-function-alias 'fancy-diary-display 'diary-fancy-display 23.1) Michael.
Re: [O] [ox-latex] How to force ALL captions below their referents?
Hi Nicolas, 2014ko urriak 5an, Nicolas Goaziou-ek idatzi zuen: Hello, James Harkins jamshar...@qq.com writes: Something like that would do it, I think. I hesitate about breaking backward compatibility, but at the same time, I'm hard-pressed to imagine why one would want captions to be differently placed in the same document. This wouldn't break compatibility. We would just mark `org-latex-table-caption-above' as an obsolete alias for `org-latex-caption-above'. I suppose, if somebody needs to move a caption to the top or bottom overriding the default, it could be an attribute, hypothetically: #+name: blah #+caption: blah blah #+attr_latex: :captionpos t #+begin_figure ... #+end_figure t would put it at the top, :captionpos b at the bottom and :captionpos nil (or not specified) would use the default from the configuration variable. Reasonable? I don't think we need to go that far at the moment. Implementing `org-latex-caption-above' is a reasonable start. I add it to my ToDo list. There’s at least some notion in the Latex community that captions atop tables but below figures is sensible style: https://tex.stackexchange.com/questions/3243/why-should-a-table-caption-be-placed-above-the-table. In that light, does it make sense to instead implement this setting as an alist with separate settings for tables, images, src blocks, etc.? (Of course, there could be separate variables org-latex-{table,figure,src-block}-caption-above, but a single alist seems simpler) Thanks, -- Aaron Ecay
Re: [O] Proposal to replace the prefix repetition with whitespace during expansion of noweb references
Hi Bastien, 2014ko urriak 12an, Bastien-ek idatzi zuen: Hi Aaron, Aaron Ecay aarone...@gmail.com writes: FWIW, I also think the present behavior is too magical, and am in favor of the proposed change. Feel free to push this change. Thanks! AFAIK this was just an idea and a patch never materialized, but I will put it on my todo list. I’ll send an update to this thread when it’s done. (But anyone else who feels a more pressing need should feel free to go ahead and do it, of course.) -- Aaron Ecay
Re: [O] [RFC] [PATCH] Warn about unexpanded macros on export
Hi Nicolas, 2014ko irailak 28an, Nicolas Goaziou-ek idatzi zuen: Hello, Aaron Ecay aarone...@gmail.com writes: Attached is a revised patch. WDYT? Looks good. Some small comments follow. +(if value +(progn + (push signature record) + (delete-region + begin + ;; Preserve white spaces after the macro. + (progn (goto-char (org-element-property :end object)) + (skip-chars-backward \t) + (point))) + ;; Leave point before replacement in case of recursive + ;; expansions. + (save-excursion (insert value))) + (when finalize +(error Macro %s was undefined at line %s + (org-element-property :key object) + (line-number-at-pos Nitpick: I find the following more readable (cond (value (push signature record) ...) (finalize (error ...))) Also, don't provide error line as macro are replaced after include keywords are expanded. IOW, in some cases, the line number will be misleading. The key is sufficient, e.g., (error Undefined Org macro: %s. Aborting (org-element-property :key object)) You can commit it once this is fixed. Thank you for the patch. Pushed; thanks for the feedback. -- Aaron Ecay
Re: [O] [RFC] [PATCH] Warn about unexpanded macros on export
2014ko irailak 28an, Nicolas Goaziou-ek idatzi zuen: Hello, Aaron Ecay aarone...@gmail.com writes: This turned out to be very easy to change; attached is a patch. Thank you. Please apply it. Pushed. -- Aaron Ecay
[O] [PATCH] org.el: Use normalized names in org-agenda-file-p
Hi, attached is a patch that fixes a bug where `org-agenda-file-p' doesn't recognize files when, for example, `org-agenda-files' contains entries that involve symlinks. Thanks Yann -- Seek freedom and become captive of your desires. Seek discipline and find your liberty. -- The Coda From 5cf4603cfacd3fb2a3569ed2ea14081631a11024 Mon Sep 17 00:00:00 2001 From: Yann Hodique yann.hodi...@gmail.com Date: Sun, 12 Oct 2014 08:42:04 -0700 Subject: [PATCH] org.el: Use normalized names in org-agenda-file-p * lisp/org.el (org-agenda-file-p): Make sure all filenames are normalized before performing comparison. --- lisp/org.el | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index d702cf5..8ac4780 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -18181,8 +18181,10 @@ used by the agenda files. If ARCHIVE is `ifmode', do this only if Return non-nil, if FILE is an agenda file. If FILE is omitted, use the file associated with the current buffer. - (member (or file (buffer-file-name)) - (org-agenda-files t))) + (let ((fname (or file (buffer-file-name +(and fname + (member (file-truename fname) + (mapcar #'file-truename (org-agenda-files t)) (defun org-edit-agenda-file-list () Edit the list of agenda files. -- 2.1.2
Re: [O] [PATCH RFC] subtree archive hook?
Aaron Ecay aarone...@gmail.com writes: Hi Eric, Looks like a sensible feature. One comment: 2014ko urriak 12an, Eric Abrahamsen-ek idatzi zuen: I think it would be useful to have a hook that runs before archiving a subtree. I'm attaching two patches: one that includes a hook in the archive process, and another (by way of an example) that adds a function to that hook for the org-attach library. You can set the option `org-attach-archive-delete' to a non-nil value to have org-attach delete a subtree's attachments when you archive it. Let me know what you think! Eric From 1bfc84570f29dd884c2759dfe19116f09228ed4e Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Sun, 12 Oct 2014 22:01:29 +0800 Subject: [PATCH 2/3] Provide a hook during the archive process * lisp/org-archive.el (org-archive-hook): New hook. (org-archive-subtree): Run hook. --- lisp/org-archive.el | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 700e59b..c7f02b9 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -119,6 +119,13 @@ information. (const :tag Outline path olpath) (const :tag Local tags ltags))) +(defvar org-archive-hook nil + Hook run after successfully archiving a subtree. + +Hook functions are called with point on the subtree in the +original file. At this stage, the subtree has been added to the +archive location, but not yet deleted from the original file.) + (defun org-get-local-archive-location () Get the archive location applicable at point. (let ((re ^[ \t]*#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$) @@ -366,8 +373,10 @@ this heading. ;; Save and kill the buffer, if it is not the same buffer. (when (not (eq this-buffer buffer)) (save-buffer -;; Here we are back in the original buffer. Everything seems to have -;; worked. So now cut the tree and finish up. +;; Here we are back in the original buffer. Everything seems +;; to have worked. So now run hooks, cut the tree and finish +;; up. +(run-hooks 'org-archive-hook) (let (this-command) (org-cut-subtree)) (when (featurep 'org-inlinetask) (org-inlinetask-remove-END-maybe)) Can the above inlinetask thing also be moved into the hook? That seems cleaner, and gives another demonstration of the usefulness of the feature. Here's a patch that does it, though I'm a little more cautious about this since I only did a minimal test. Two things that worry me: 1) why is it called remove-END-maybe when it appears to remove the whole inlinetask, and 2) it its original habitat in org-attach, it came after the call to org-cut-subtree, meaning that it couldn't have operated on the subtree to be archived at all! Or am I misunderstanding something? I tried it on a test subtree, and the org-cut-subtree took out the included inlinetask as well. Anyway, it's a little mysterious, and I'm less confident about this bit. From 3236ba94c92c021311f7ffb128686f9c2751d4e1 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Sun, 12 Oct 2014 23:48:49 +0800 Subject: [PATCH 4/4] Move deletion of inlinetasks to archive hook * lisp/org-archive.el (org-archive-subtree): Remove org-inlinetask specific code. * lisp/org-inlinetask.el: Add org-inlinetask-remove-END-maybe to the org-archive-hook. --- lisp/org-archive.el| 2 -- lisp/org-inlinetask.el | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index c7f02b9..6d07f5a 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -378,8 +378,6 @@ this heading. ;; up. (run-hooks 'org-archive-hook) (let (this-command) (org-cut-subtree)) - (when (featurep 'org-inlinetask) - (org-inlinetask-remove-END-maybe)) (setq org-markers-to-move nil) (message Subtree archived %s (if (eq this-buffer buffer) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index 9e0aadb..206ddf3 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -325,6 +325,8 @@ If the task has an end part, also demote it. org-inlinetask-min-level)) (replace-match ))) +(add-hook 'org-archive-hook 'org-inlinetask-remove-END-maybe) + (eval-after-load org '(add-hook 'org-font-lock-hook 'org-inlinetask-fontify)) -- 2.1.2
Re: [O] inline constant substitution
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Paul Rudin p...@rudin.co.uk writes: Suppose I have: #+CONSTANTS: foo=42 How can I make inline references to a constant on export in regular text, rather than in a table? I want to be able to write something like: The value of foo is $foo in my org file, and then end up with: The value of foo is 42 when I export to LaTeX. Constants are for tables only. You can use a macro instead: #+MACRO: foo 42 The value of foo is {{{foo}}}. Thanks. If I *also* want to use that value in a table is there a way to do that? I experimented with: #+TBLFM: @1$1={{{foo}}} and #+TBLFM: @1$1={{{foo}}} But neither of those work.
Re: [O] [RFC] [PATCH] Warn about unexpanded macros on export
Hello, Aaron Ecay aarone...@gmail.com writes: Pushed. Thanks. -- Nicolas Goaziou0x80A93738
Re: [O] [PATCH RFC] subtree archive hook?
Hi Eric, 2014ko urriak 12an, Eric Abrahamsen-ek idatzi zuen: Can the above inlinetask thing also be moved into the hook? That seems cleaner, and gives another demonstration of the usefulness of the feature. Here's a patch that does it, though I'm a little more cautious about this since I only did a minimal test. Two things that worry me: 1) why is it called remove-END-maybe when it appears to remove the whole inlinetask, and 2) it its original habitat in org-attach, it came after the call to org-cut-subtree, meaning that it couldn't have operated on the subtree to be archived at all! Or am I misunderstanding something? No, you’re not misunderstanding – I was. Indeed, the inline task stuff has to come after the call to org-cut-subtree, so it’s not a candidate for inclusion in the new hook. (What happens is that org-cut-subtree removes the inline task headline and any contents, leaving a bare *** END line. The latter is subsequently cleaned up by the org-inlinetask-remove-END-maybe call.) Sorry for the noise, -- Aaron Ecay
[O] export simple HTML?
Has anyone created an HTML exporter that just exports simple HTML with no fancy CSS stuff, just normal tags like hN and table and i and b and li? Basically something that could be pasted into an email or a larger document. The current HTML export is beautiful, but it adds all kinds of divs, spans, CSS tags, and other extraneous stuff. -- Gary
Re: [O] [PATCH RFC] subtree archive hook?
Aaron Ecay aarone...@gmail.com writes: Hi Eric, 2014ko urriak 12an, Eric Abrahamsen-ek idatzi zuen: Can the above inlinetask thing also be moved into the hook? That seems cleaner, and gives another demonstration of the usefulness of the feature. Here's a patch that does it, though I'm a little more cautious about this since I only did a minimal test. Two things that worry me: 1) why is it called remove-END-maybe when it appears to remove the whole inlinetask, and 2) it its original habitat in org-attach, it came after the call to org-cut-subtree, meaning that it couldn't have operated on the subtree to be archived at all! Or am I misunderstanding something? No, you’re not misunderstanding – I was. Indeed, the inline task stuff has to come after the call to org-cut-subtree, so it’s not a candidate for inclusion in the new hook. (What happens is that org-cut-subtree removes the inline task headline and any contents, leaving a bare *** END line. The latter is subsequently cleaned up by the org-inlinetask-remove-END-maybe call.) Yup, I figured it out after another few minutes of staring at it. No harm done, I guess!
Re: [O] export simple HTML?
Gary Oberbrunner ga...@oberbrunner.com writes: Has anyone created an HTML exporter that just exports simple HTML with no fancy CSS stuff, just normal tags like hN and table and i and b and li? Basically something that could be pasted into an email or a larger document. The current HTML export is beautiful, but it adds all kinds of divs, spans, CSS tags, and other extraneous stuff. Try the body only export option: in the export dispatcher, hit C-b to toggle. That should give you clean HTML with no file template, and no bells and whistles.
Re: [O] [PATCH] org-passwords.el: Improvements
Bastien writes: Can you resend the patch as an attachment? Sure, it is attached. If you have commit access, feel free to push your commit directly. I do not have commit access. Best, -- Jorge. From 4b1b7f291af29b94919620f9a824c2da1ce09458 Mon Sep 17 00:00:00 2001 From: Jorge A. Alfaro Murillo jorge@jabberwocky Date: Sun, 12 Oct 2014 16:14:34 -0400 Subject: [PATCH] Improve functionality of org-passwords.el * contrib/lisp/org-passwords.el (org-passwords-default-password-size): New variable. (org-passwords-default-random-words-number): New variable. (org-passwords-copy-username, org-passwords-copy-password): Use `org-entry-get' to obtain the property value. (org-passwords-open-url): New function. (org-passwords): Can be called with universal argument. (org-passwords-generate-password): Use default size given by `org-passwords-default-password-size'. (org-passwords-random-words): Use default number given by `org-passwords-default-random-words-number'. (org-passwords-concat-this-with-string): Fix bug. The patch adds several functionality: Open the URL property directly from the mode. URLs can be inherit. Universal argument in org-passwords allows for longer browsing. Two arguments is used for editing. There is a default password size and random-words number for faster password generating. Fix bug in C-u M-x org-passwords-generate-password. Commentary in file has more information. --- contrib/lisp/org-passwords.el | 144 +++--- 1 file changed, 93 insertions(+), 51 deletions(-) diff --git a/contrib/lisp/org-passwords.el b/contrib/lisp/org-passwords.el index 9c3a916..4ebd5a6 100644 --- a/contrib/lisp/org-passwords.el +++ b/contrib/lisp/org-passwords.el @@ -23,12 +23,14 @@ ;;; Commentary: ;; This file contains the code for managing your passwords with -;; Org-mode. +;; Org-mode. It is part of org/contrib (see http://orgmode.org/). If +;; you want to contribute with development, or have a problem, do it +;; here: https://bitbucket.org/alfaromurillo/org-passwords.el ;; A basic setup needs to indicate a passwords file, and a dictionary ;; for the random words: -;; (require org-passwords) +;; (require 'org-passwords) ;; (setq org-passwords-file ~/documents/passwords.gpg) ;; (setq org-passwords-random-words-dictionary /etc/dictionaries-common/words) @@ -54,13 +56,12 @@ ;; `org-passwords-random-words-substitutions'. ;; It is also useful to set up keybindings for the functions -;; `org-passwords-copy-username' and -;; `org-passwords-copy-password' in the -;; `org-passwords-mode', to easily make the passwords and usernames -;; available to the facility for pasting text of the window system -;; (clipboard on X and MS-Windows, pasteboard on Nextstep/Mac OS, -;; etc.), without inserting them in the kill-ring. You can set for -;; example: +;; `org-passwords-copy-username', `org-passwords-copy-password' and +;; `org-passwords-open-url' in the `org-passwords-mode', to easily +;; make the passwords and usernames available to the facility for +;; pasting text of the window system (clipboard on X and MS-Windows, +;; pasteboard on Nextstep/Mac OS, etc.), without inserting them in the +;; kill-ring. You can set for example: ;; (eval-after-load org-passwords ;; '(progn @@ -69,12 +70,15 @@ ;; 'org-passwords-copy-username) ;;(define-key org-passwords-mode-map ;; (kbd C-c p) -;; 'org-passwords-copy-password))) +;; 'org-passwords-copy-password) +;; (kbd C-c o) +;; 'org-passwords-open-url))) -;; Finally, to enter new passwords, you can use `org-capture' and a minimal template like: +;; Finally, to enter new passwords, you can use `org-capture' and a +;; minimal template like: ;; (p password entry (file ~/documents/passwords.gpg) -;;* %^{Title}\n %^{PASSWORD}p %^{USERNAME}p) +;;* %^{Title}\n %^{URL}p %^{USERNAME}p %^{PASSWORD}p) ;; When asked for the password you can then call either ;; `org-passwords-generate-password' or `org-passwords-random-words'. @@ -87,6 +91,7 @@ (require 'org) +;;;###autoload (define-derived-mode org-passwords-mode org-mode org-passwords-mode Mode for storing passwords @@ -97,12 +102,17 @@ :group 'org) (defcustom org-passwords-password-property PASSWORD - Name of the property for password entry password. + Name of the property for password entry. :type 'string :group 'org-passwords) (defcustom org-passwords-username-property USERNAME - Name of the property for password entry user name. + Name of the property for user name entry. + :type 'string + :group 'org-passwords) + +(defcustom org-passwords-url-property URL + Name of the property for URL entry. :type 'string :group 'org-passwords) @@ -117,6 +127,12 @@ string, a number followed by units. :type 'str :group 'org-passwords) +(defcustom org-passwords-default-password-size 20 + Default number of characters to use in +org-passwords-generate-password. It has to be a string. +
Re: [O] Other editors supporting Org-Mode
Sorry for the late response from me. I read all your ideas on how to solve that. For now I made them to use the org-mode syntax. We'll see if that works out tho. To your suggestions: @Jorge: I also had the idea of an emacs configuration which restricts to org mode only. The good thing is that this editor would not need any update whenever org mode changes, due to the fact that the real org mode is used. A quite good argument. Unfortunately, I don't have the time to create such a configuration right now. So I will postpone this solution. @Albert: Yes, using markdown mode could also be a solution. However, then we always got the converting back and forth which might cause trouble. So it is not as satisfying as I wish it was, but still it could work out. @Paul: Trello seems quite interesting. However, I want to create documents, which then are converted to latex and pdf. Due to the fact that Trello is for task management, this doesn't really work out. @Stefan: This Sublime extension might be the solution. Thanks for that input. @All others: Thanks for your inputs. So I will try to let them use sublime with the orgmode plugin, and see if it that works out. One more thing: This semester I got a class at university which is called Advanced C/C++ Programming. In that class we will develop some project (which we can pick on our own). So I will make the suggesting of creating an editor which is capable of displaying org mode files (with the main focus on text files and not task managment), similar to org mode and possibly even tex/pdf conversion. The language for the program will of course be C++ and obviously this is not negotiable. Thanks for your input guys. Manuel -- To reply secure use GnuPG encryption: Key Block to use (http://www.pinselzone.com/pgp/public_gpg_key.asc) What is GnuPG? (http://www.gnupg.org/)
[O] properties search compact view
Hello, I keep a list of books and use something like: * Book title :PROPERTIES: :Title: Book title :Author: Book author :END: ... When searching with C-c / then p, then Author, then Book author, I get the same book list with the correct books highlighted (all other books are still in the list). I was expecting an output where only the matching books would be present (and highlighted). I could not find any org-mode variable or command to change the behavior. I did find an example on the web of the desired behavior http://almostconnecticut.net/linuxismylife/2012/03/emacs-org-mode-database/;, but the blog seems to be inactive. Any thoughts? Thanks, Gerald
[O] bug#18663: 25.0.50; Org agenda broken due to removed fancy-diary-display alias
Hi Michael, Michael Heerdegen michael_heerde...@web.de writes: Commit 4a872ae3... [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda Date: Sat Oct 11 18:16:36 2014 +0200 Dunno when this change will arrive in Emacs and who is responsible for that. The change arrived in both emacs-24 and the trunk. Thanks, -- Bastien
Re: [O] [PATCH] org-passwords.el: Improvements
Hi Jorge, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: Bastien writes: Can you resend the patch as an attachment? Sure, it is attached. Applied, thanks! If you have commit access, feel free to push your commit directly. I do not have commit access. Please send me your public key if you want commit access. Best, -- Bastien
Re: [O] Math formatting in HTML export - The Org Manual
What version of Emacs and org mode are you using? What is your configuration? What action did you perform on what document? What did you want and expect to have happen with that action? What happened instead? On Sun, Oct 12, 2014 at 3:17 AM, Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com wrote: http://orgmode.org/manual/Math-formatting-in-HTML-export.html Hello the list, Unfortunately, I do not know how to use Mathjax in order to convert any mathematical symbol or any proof in html. Therefore the only solution that I see is to use imagemagick. But the line #+OPTIONS: tex:imagemagick in my setup gives always corrupted png images and I do not succeed to understand why. I would be thankful if someone could tell me how to configure my emacs in order to use imagemagick to convert any proof in png image to export it in html. Thanks ! Jo. -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] inline constant substitution
Should a noweb-ref be expanded as imagined inside of a table for this case? Eg pseudo code: , | #+NAME: foo | #+begin_src emacs-lisp | 42 | #+end_src | | | #+NAME: ns | | n | | |---| | | 1 | | | 2 | | | foo | | | | ` On Sun, Oct 12, 2014 at 10:05 AM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Paul Rudin paul-sqpymovxoov10xsdtd+...@public.gmane.org writes: Suppose I have: #+CONSTANTS: foo=42 How can I make inline references to a constant on export in regular text, rather than in a table? I want to be able to write something like: The value of foo is $foo in my org file, and then end up with: The value of foo is 42 when I export to LaTeX. Constants are for tables only. You can use a macro instead: #+MACRO: foo 42 The value of foo is {{{foo}}}. Regards, -- Nicolas Goaziou -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] export simple HTML?
If it is an easy answer, how would one do this in batch mode? On Sun, Oct 12, 2014 at 1:46 PM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Gary Oberbrunner ga...@oberbrunner.com writes: Has anyone created an HTML exporter that just exports simple HTML with no fancy CSS stuff, just normal tags like hN and table and i and b and li? Basically something that could be pasted into an email or a larger document. The current HTML export is beautiful, but it adds all kinds of divs, spans, CSS tags, and other extraneous stuff. Try the body only export option: in the export dispatcher, hit C-b to toggle. That should give you clean HTML with no file template, and no bells and whistles. -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] export simple HTML?
Grant Rettke g...@wisdomandwonder.com writes: If it is an easy answer, how would one do this in batch mode? I've never actually exported anything in batch mode, so I won't be able to provide a real recipe, but body-only is one of the main export options, usually given as an argument to org-export-as (and family). If you're calling any one of those export functions directly as part of the batch export, you can just set that argument to t. Hope that's enough to get you there... On Sun, Oct 12, 2014 at 1:46 PM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Gary Oberbrunner ga...@oberbrunner.com writes: Has anyone created an HTML exporter that just exports simple HTML with no fancy CSS stuff, just normal tags like hN and table and i and b and li? Basically something that could be pasted into an email or a larger document. The current HTML export is beautiful, but it adds all kinds of divs, spans, CSS tags, and other extraneous stuff. Try the body only export option: in the export dispatcher, hit C-b to toggle. That should give you clean HTML with no file template, and no bells and whistles.
Re: [O] org-mode for knowledge management
John Hendy jw.he...@gmail.com writes: On Fri, Oct 10, 2014 at 9:53 PM, Eric Abrahamsen e...@ericabrahamsen.net wrote: John Hendy jw.he...@gmail.com writes: On Fri, Oct 10, 2014 at 10:46 AM, Daniel Clemente n142...@gmail.com wrote: I've been using org-mode for a variety of purposes for a few years. I find that it suffers from the same problem that other such tools do. The problem is me. I can't remember week to week how I may have classified some scrap of information. Did I drop it into notes/someproduct.org or was it procedures/someprocess.org? 1. Every information should have a single location, not two. Mix sections fast if you detect repetitions. Use links extensively (C-c l) to connect one header with another, specially after you get lost once. Don't bother too much about finding the right place at the first time, you'll eventually reorder or move headers to the correct place. I'm curious about this. Is this a well-known recommendation/best practice? I actually struggle with this a great deal. Often a bit of research or testing for a specific project at work is very possibly relevant to any number of future projects. So, working in product development, I find it hard to decide what the best single location is, and would love for it to act as though it were in multiple locations. Isn't this what tags are good for, though? Sort of providing a secondary structure to your information, orthogonal to Org's subtree structure? Agreed, and have tried that, though that has issues as well, unless I'm missing something (see below). When the current project is done, I'd like to archive everything specifically related to it while keeping around the general knowledge I've accumulated for use with future efforts. You could organize a project by subtree, but put generally-useful research elsewhere, and tag that research by theme. Then give the project subtree its own tag, but also add tags to the relevant research themes. Open an Agenda with a projecttag|themetag tag search to see both general research and project-specific stuff. When the time comes, the project subtree gets archived, but the thematic stuff stays. This is the bit I'm not sure about... * project_a ** experiment about blah :proj_name:theme: [2014-10-11] Did x, y, and z today. Will analyze results tomorrow. [2014-10-12] Wow. Interesting finding. This will help a lot and may be relevant to future projects! So... when I archive project_a, don't I lose the thematic information from my experiment? This is sort of the conundrum I often find myself in. I work in product development, and many of the difficulties, experimental findings, or even contacts/information for a given project seem like they'd be really helpful to recall/go back to for future projects. The learning is uncovered only because I'm working on launching *this* product... but isn't inherently relevant *only* to this project. I guess my assumption is that the interesting finding bit would be its own heading, and would *not* live in the project_a subtree at all, but rather in a different subtree that was dedicated to whatever the theme is. So the heading for the experiment would just be about the experiment itself, and you'd make a new note about the generally-useful finding elsewhere. Perhaps both links and tags are what you're after then: you could leave a link to the general finding inside experiment about blah (to remind yourself you took that note), but also use the tags to open Agendas on both project and theme, so you can see all the relevant information in one place. Dunno! I've migrated from one file per project like I used to do to the big 'ol one-file method (except for a contacts.org file and miscellany). Thus, I tend to like to archive, but for whatever reason have an aversion to agenda-ing on archived stuff. I find I only look in archives when someone asks something really specific about a past project and I think I have notes on it. Anyway, that was my thought. I saw Daniel replied as well; you both understand my struggle -- you tackle it with tags and he's suggesting lots of links (more on that in a sec). Thanks! John Anyway, I'm sure you've considered all this, just curious what your thoughts on tags are... Or is this what you mean by using links? Are you just saying that individuals should not be copying the same text around in multiple places? Thanks, John [snip]
Re: [O] org-mode for knowledge management
El Mon, 13 Oct 2014 10:42:28 +0800 Eric Abrahamsen va escriure: This is the bit I'm not sure about... * project_a ** experiment about blah :proj_name:theme: [2014-10-11] Did x, y, and z today. Will analyze results tomorrow. [2014-10-12] Wow. Interesting finding. This will help a lot and may be relevant to future projects! … Perhaps both links and tags are what you're after then: you could leave a link to the general finding inside experiment about blah (to remind yourself you took that note), but also use the tags to open Agendas on both project and theme, so you can see all the relevant information in one place. * project_a ** experiment about blah :proj_name:theme: I think it's crazy to use topics as tags. How many topics/themes are there? Wikipedia counts many million. Names of topic are very subjective. Topics are often mixed, split apart, refined, renamed, grouped in supertopics, … In org it's easy to remodel hierarchical headers but it's not easy to remodel tags (much less, hierarchical tags). So rather than: ** some construction :plastics_engineering: I would have: Engineering.org: * Plastics * Houses * … I understand you use tags and „tag search“ to be able to look for bits of a particular topic in a file which is not related to the topic. It would be better to have a tag that in addition links to a particular tree. With that you'd have the freedom of tagging anything and the flexibility of headers. Some brainstorming about how to link tags with headers: Two options: 1) There is a main tag in a header, and the other tags link to it (with C-c C-o you navigate to the main tag). proj1.org: ** some construction :plastics_engineering: Engineering.org: :plastics_engineering: * Plastics * Houses * … 2) You use links and you ask for backlinks proj1.org: ** some construction [link to P] Engineering.org: * Plastics :ID: 1231212311122 * Houses * … And then… a key to *search for links to a header* („backlinks“). Can org do this now?. E.g. you go to „Plastics“ and you search „all the backlinks found in proj1.org“. Then you have the generic knowledge and in addition all the bits of specific knowledge about that topic. Maybe this is already possible… Whether it's useful, I don't know.
Re: [O] org-mode for knowledge management
(defun alpha-org-what-links-here () Show all links that point to the current node. Also show the node itself. This makes id links quasi-bidirectional. (interactive) (let ((org-agenda-files (alpha-org-all-org-files :archive t :text-search-extra t)) ;; turn off redundancy ;; fixme probably going to be redone org-agenda-text-search-extra-files) (org-search-view nil (org-entry-get nil ID t On 10/12/14, Daniel Clemente n142...@gmail.com wrote: El Mon, 13 Oct 2014 10:42:28 +0800 Eric Abrahamsen va escriure: This is the bit I'm not sure about... * project_a ** experiment about blah :proj_name:theme: [2014-10-11] Did x, y, and z today. Will analyze results tomorrow. [2014-10-12] Wow. Interesting finding. This will help a lot and may be relevant to future projects! … Perhaps both links and tags are what you're after then: you could leave a link to the general finding inside experiment about blah (to remind yourself you took that note), but also use the tags to open Agendas on both project and theme, so you can see all the relevant information in one place. * project_a ** experiment about blah :proj_name:theme: I think it's crazy to use topics as tags. How many topics/themes are there? Wikipedia counts many million. Names of topic are very subjective. Topics are often mixed, split apart, refined, renamed, grouped in supertopics, … In org it's easy to remodel hierarchical headers but it's not easy to remodel tags (much less, hierarchical tags). So rather than: ** some construction :plastics_engineering: I would have: Engineering.org: * Plastics * Houses * … I understand you use tags and „tag search“ to be able to look for bits of a particular topic in a file which is not related to the topic. It would be better to have a tag that in addition links to a particular tree. With that you'd have the freedom of tagging anything and the flexibility of headers. Some brainstorming about how to link tags with headers: Two options: 1) There is a main tag in a header, and the other tags link to it (with C-c C-o you navigate to the main tag). proj1.org: ** some construction :plastics_engineering: Engineering.org: :plastics_engineering: * Plastics * Houses * … 2) You use links and you ask for backlinks proj1.org: ** some construction [link to P] Engineering.org: * Plastics :ID: 1231212311122 * Houses * … And then… a key to *search for links to a header* („backlinks“). Can org do this now?. E.g. you go to „Plastics“ and you search „all the backlinks found in proj1.org“. Then you have the generic knowledge and in addition all the bits of specific knowledge about that topic. Maybe this is already possible… Whether it's useful, I don't know. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.