Re: [O] [bug][ox-latex] Captions in equations
Hello, Rasmus ras...@gmx.us writes: This example produces invalid LaTeX code: #+CAPTION: test #+ATTR_LATEX: :mode math :environment pmatrix | \alpha | \beta | \gamma | Namely, \begin{equation} \caption{test text} \mathbf{H}=\begin{pmatrix} \vdots 0 \vdots \\ \vdots H \vdots \\ \vdots 0 \vdots \\ \end{pmatrix}. \end{equation} But an equation cannot have a caption. I'm not sure what the desired behavior is. (i) To silently drop the caption, (ii) to wrap the equation in some sort of float and give it a caption; or (iii) to print the text sans the \caption{·}. (iii) can be archived with math-prefix. (ii) is a bit weird, but could be archived relatively easy, but it's not really what one would expect; it's consistent with how captions work for tables (turned into a float when a caption is present). (i) is also a bit weird, but seems the most reasonable to me. Since I don't know what the correct behavior is, I don't have a patch right now. As a short term solution, I think the (i) is the best. That's exactly what happens to LaTeX environments: in `org-latex-latex-environment', the caption is dropped and only the label, if any, is inserted in the environment. As a long term solution, it would be interesting to be able to do (ii), for both tables in math mode (but not in inline-math) and LaTeX environments: captioning an equation is a reasonable request. Regards, -- Nicolas Goaziou
Re: [O] Making org-agenda-list hide items scheduled for the future
Hello Michael, Michael Hoffman wrote: I use the weekly/daily agenda and want to be able to use the SCHEDULED keyword to hide items until the scheduled time comes up. I don't want to think about them until then. How can I set up org-agenda-list to do this? This is the list of agenda items, not the TODO list. I already have org-agenda-todo-ignore-scheduled set to future. It does not help. See my answer on StackOverflow. Fabrice Niessen -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/
Re: [O] Making org-agenda-list hide items scheduled for the future
Hi Fabrice, Fabrice Niessen fni-news-TA4HMoP+1wHrZ44/dzw...@public.gmane.org writes: Michael Hoffman wrote: I use the weekly/daily agenda and want to be able to use the SCHEDULED keyword to hide items until the scheduled time comes up. I don't want to think about them until then. How can I set up org-agenda-list to do this? This is the list of agenda items, not the TODO list. I already have org-agenda-todo-ignore-scheduled set to future. It does not help. See my answer on StackOverflow. Can you post it here too? It's good to be able to point at the solution directly on the mailing list, it encourages people to join the mailing list. -- Bastien
Re: [O] subtree export title w/ tags
Hi Bastien, Sebastien, `org-export-with-tags' doesn't seem to work at all when a headline is made title of a subtree export. When using the appended configuration and org-file; point on the line point is here; I'm subtree exporting using C-c C-e C-s h H and I get #+begin_example ... head titlesecond heading :mytag:/title !-- 2014-01-19 Sun 10:42 -- meta http-equiv=Content-Type content=text/html;charset=utf-8 / ... #+end_example I suspect the `org-todo-line-regexp' in org-export--get-subtree-options doesn't like/understand tags. Note: I'm rolling my own blog-exporter as a html-derived one (didn't understand org2blog enough to be able to enhance it). For posting a subtree it would be `natural' to use the heading (without tags) as title and tags (if any) as blog tags. Best regards Robert On 01/15/2014 01:31 PM, Robert Klein wrote: Bastien, Sebastien, thank you both for your help. I'll check out `org-export-with-tags'. I do need the tags, but only in the -export-as- function of a derived exporter. Probably I still can get them. Thanks a lot Best regards Robert On 01/15/2014 12:53 PM, Bastien wrote: Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: `org-export-with-tags' seems to be the option to do that, nope? ╭ org-export-with-tags │ │ If nil, do not export tags, just remove them from headlines. ╰ I think the OP wants to remove tags just from the titles. ; no startup message (setq inhibit-startup-message t) ;; I'm feeling religious about this: (setq-default indent-tabs-mode nil) ;; ask y or n instead of yes or no (fset 'yes-or-no-p 'y-or-n-p) ;; indent after enter; I want this most of the time. (global-set-key (kbd RET) 'newline-and-indent) ;; use emacs with IME (avoid 'no dead-acute' error messages) (load-library iso-transl) ;; change number of newlines for empasized blocks (setq org-emphasis-regexp-components '( \t('\{ - \t.,:!?;'\)}\\ \t\r\n,\' . 10)) (setq org-export-with-tags nil) (setq load-path (cons ~/.emacs.d/org-mode/lisp load-path)) (add-to-list 'load-path ~/.emacs.d) (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode)) (require 'org-loaddefs) (setq org-export-with-tags nil) tag-test.org Description: Lotus Organizer
Re: [O] subtree export title w/ tags
Hello, Robert Klein rokl...@roklein.de writes: `org-export-with-tags' doesn't seem to work at all when a headline is made title of a subtree export. When using the appended configuration and org-file; point on the line point is here; I'm subtree exporting using C-c C-e C-s h H and I get #+begin_example ... head titlesecond heading :mytag:/title !-- 2014-01-19 Sun 10:42 -- meta http-equiv=Content-Type content=text/html;charset=utf-8 / ... #+end_example I suspect the `org-todo-line-regexp' in org-export--get-subtree-options doesn't like/understand tags. The current behaviour is to keep tags of the root node when you export a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE: property in the same node. Note that `org-export-with-tags' isn't expected to do anything in that situation. Regards, -- Nicolas Goaziou
Re: [O] [RFC] Move ox-koma-letter into core?
Carsten Dominik carsten.domi...@gmail.com writes: ox-koma-letter is an export back-end living in contrib, which, as you may know, allows to easily produce letters from Org. I think this is a nice feature to have[fn:1]. Should we have it in core? I like the koma-letter class and have no objections to move it onto core. Shouldn't we ask Emacs maintainers about this? ox-koma-letter.el into core means that bug reports will hit them first, then us. I have no objection against this move but I'd like to consider it move from a wider perspective/proposal, then decide afterwards. My suggestion: convert contrib/lisp/ libraries into Org ELPA packages and expurge the the contrib/ Git history from Org's repo. The benefits: - Org's core = 1 repo which contains only Org's core - It will ease the sync between Org and Emacs when Emacs will use Git. - We can handle Org ELPA the same way GNU ELPA is currently handled (giving a separate write access to Org ELPA contributors.) Then installing Org external packages is as easy as using the `list-packages'. If we were using the setup described above, would we still need to move ox-koma-letter.el into core? Independantly of that question, do you think it would make sense to move toward the above setup? If so, we would need some Git guru (Achim?) to help with filtering the Org repo, and I could help with setting up the Org ELPA packages. -- Bastien
Re: [O] Italicise block of text
Hello, On 01/15/2014 01:20 PM, Alexander Baier wrote: Hello Roger, when answering a mail/post from the list, please Cc the list in your response, so other members of the list can see your mail to. On 2014-01-15 14:30 Roger Mason wrote: But this does not: /Perhaps, but [...] to replacement./ I just get a block of text bounded by / and / in the resulting pdf. Maybe the markup gets escaped somehow by special characters in the text. I do not know enough about the markup of org to help you here. I think Nicolas can give you a more satisfying answer. Regards, -- Alexander Baier Thanks again for your help. It is easy to fix using a regex to insert / at line beginnings and ends, so not a big deal for me. Sorry about the botched reply-to-list: twitchy trigger-finger. Roger
Re: [O] [PATCH] Fix org-outline-overlay-data marker insertion-type
Well seen, here is the new patch, working as well. Thanks -- Sylvain 2014/1/18 Nicolas Goaziou n.goaz...@gmail.com Sylvain Chouleur sylvain.choul...@gmail.com writes: But beg and end are positions, not markers, I am wrong? BEG and END are positions, but `copy-marker' accepts an integer as its first argument. See its docstring. Regards, -- Nicolas Goaziou From a956097b88088422bbbf1aa06dc3921cebbe7ad9 Mon Sep 17 00:00:00 2001 From: Sylvain Chouleur sylvain.choul...@gmail.com Date: Sun, 19 Jan 2014 14:18:45 +0100 Subject: [PATCH] Fix org-outline-overlay-data marker insertion-type * org.el: Set the insertion-type of end bound marker of org-outline-overlay-data to t (means marker advances when you insert text at it) This is to conserve outline visibility property when changes are made at the end bound of the data. For example: try org-babel-execute-subtree on a folded outline: The new result will be shown after the folded part of the outline whereas the outline body should not be visible. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a53597e477e2..50e652160566 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7191,8 +7191,8 @@ If USE-MARKERS is set, return the positions as markers. end (overlay-end o)) (and beg end ( end beg) (if use-markers - (cons (move-marker (make-marker) beg) - (move-marker (make-marker) end)) + (cons (copy-marker beg) + (copy-marker end t)) (cons beg end) (overlays-in (point-min) (point-max -- 1.8.5.2
Re: [O] Making org-agenda-list hide items scheduled for the future
Fabrice Niessen fni-n...@pirilampo.org writes: Hello Michael, Michael Hoffman wrote: I use the weekly/daily agenda and want to be able to use the SCHEDULED keyword to hide items until the scheduled time comes up. I don't want to think about them until then. How can I set up org-agenda-list to do this? This is the list of agenda items, not the TODO list. I already have org-agenda-todo-ignore-scheduled set to future. It does not help. See my answer on StackOverflow. It would be useful if you could post a link to your answer. -- Nick
Re: [O] [RFC] Move ox-koma-letter into core?
Bastien writes: Shouldn't we ask Emacs maintainers about this? ox-koma-letter.el into core means that bug reports will hit them first, then us. Debbugs has facilities to redirect such reports to this mailing list should that become an issue. Gnus is using this approach AFAIK. My suggestion: convert contrib/lisp/ libraries into Org ELPA packages and expurge the the contrib/ Git history from Org's repo. That probably wouldn't work for some of the things in contrib and given the state of other things I'd question anyone would spend the effort to properly package them for ELPA. If you're suggesting to build a separate ELPA infrastructure just for Org, I don't see this happening — there'd be a lot of churn for no discernible benefit. Folks wanting to develop their stuff as external packages can already do that. The benefits: - Org's core = 1 repo which contains only Org's core I don't see what you're getting at here, you'll have to explain. - It will ease the sync between Org and Emacs when Emacs will use Git. Not. You keep looking for silver bullets, there are none. Even if it were the case, it probably shouldn't influence the decision about what to do with contrib. - We can handle Org ELPA the same way GNU ELPA is currently handled (giving a separate write access to Org ELPA contributors.) We could already do that by restricting commits from certain committers to contrib/… but that would suggest there are lesser committers and I think Org shouldn't segregate in that manner. Then installing Org external packages is as easy as using the `list-packages'. If we were using the setup described above, would we still need to move ox-koma-letter.el into core? Independantly of that question, do you think it would make sense to move toward the above setup? The first question is what do we want contrib to be? If it's a staging area for things that are not-quite-ready yet, then these things should either be removed if they aren't getting finished or moved into core when they are. Plus, since maint goes to Emacs, but master is not, it should be in master as soon as the copyright questions are resolved. If it's becoming a dump of stuff that will never make it into core because it isn't acceptable for Emacs proper for whatever reason, then I'd reason that it should be removed as well, independently of whether it's kept alive outside of Org or not. If so, we would need some Git guru (Achim?) to help with filtering the Org repo, and I could help with setting up the Org ELPA packages. If you are suggesting to remove the history of contrib from Org's repo, then I'm against it. Duplicating the history of contrib into a hypothetical new Git repo is possible, but then why split off contrib in the first place? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
Re: [O] [bug][ox-latex] Captions in equations
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Rasmus ras...@gmx.us writes: This example produces invalid LaTeX code: #+CAPTION: test #+ATTR_LATEX: :mode math :environment pmatrix | \alpha | \beta | \gamma | Namely, \begin{equation} \caption{test text} \mathbf{H}=\begin{pmatrix} \vdots 0 \vdots \\ \vdots H \vdots \\ \vdots 0 \vdots \\ \end{pmatrix}. \end{equation} But an equation cannot have a caption. I'm not sure what the desired behavior is. (i) To silently drop the caption, (ii) to wrap the equation in some sort of float and give it a caption; or (iii) to print the text sans the \caption{·}. (iii) can be archived with math-prefix. (ii) is a bit weird, but could be archived relatively easy, but it's not really what one would expect; it's consistent with how captions work for tables (turned into a float when a caption is present). (i) is also a bit weird, but seems the most reasonable to me. Since I don't know what the correct behavior is, I don't have a patch right now. As a short term solution, I think the (i) is the best. That's exactly what happens to LaTeX environments: in `org-latex-latex-environment', the caption is dropped and only the label, if any, is inserted in the environment. OK. I can prepare a patch. As a long term solution, it would be interesting to be able to do (ii), for both tables in math mode (but not in inline-math) and LaTeX environments: captioning an equation is a reasonable request. Indeed this seems long-term. I have only rarely seen math-floats. It is, however, sometimes used in elsarticle.cls from the Elsevier publishing house. See this example: http://bayimg.com/aAHDfAAFE Here the caption can be seen as the text below the equation, (Where Λ(·) is...) and (16) is the reference. The attached file play around with some preliminary LaTeX styles for this. In LaTeX the floating would be kind of odd, I think. At the very least math floats shouldn't be Figure or Tables (IMO); unfortunately the Internets seem to suggest that you usually create additional floats via packages such as newfloat of caption. HTML should also be considered... –Rasmus -- This space is left intentionally blank \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} first equation \begin{equation} x=1 \end{equation} Second equation \par\noindent\fbox{\parbox{\textwidth}{ \begin{equation} x=2\Lambda(x) \end{equation} Here, $\Lambda(\cdot)$ is \dots}} \begin{figure} \fbox{\parbox{\textwidth}{\[g=3\]}}\caption{Third caption} \end{figure} \end{document}
Re: [O] [bug][ox-latex] Captions in equations
Vladimir Lomov lomov...@gmail.com writes: Hello, ** Rasmus [2014-01-18 20:36:35 +0100]: Hi, This example produces invalid LaTeX code: #+CAPTION: test #+ATTR_LATEX: :mode math :environment pmatrix | \alpha | \beta | \gamma | Namely, \begin{equation} \caption{test text} \mathbf{H}=\begin{pmatrix} \vdots 0 \vdots \\ \vdots H \vdots \\ \vdots 0 \vdots \\ \end{pmatrix}. \end{equation} But an equation cannot have a caption. I'm not sure what the desired behavior is. (i) To silently drop the caption, (ii) to wrap the equation in some sort of float and give it a caption; or (iii) to print the text sans the \caption{·}. (iii) can be archived with math-prefix. (ii) is a bit weird, but could be archived relatively easy, but it's not really what one would expect; it's consistent with how captions work for tables (turned into a float when a caption is present). (i) is also a bit weird, but seems the most reasonable to me. Since I don't know what the correct behavior is, I don't have a patch right now. IMHO, this is wrong approach. I don't understand. I would consider this example as a special way to generate a matrix when exporting to LaTeX, then CAPTION is useless here. Also, HTML export will give differently looking result. But it shouldn't. It should produce a matrix as well, e.g. via MathJax. –Rasmus -- Summon the Mothership!
Re: [O] [RFC] Move ox-koma-letter into core?
Achim Gratz strom...@nexgo.de writes: The first question is what do we want contrib to be? So let's start with this one. contrib/ *was* a staging area for stuff that were meant to go into core at some point---i.e. when they get mature enough and when the copyright assignments are sorted out. For most libraries, contrib/ *is not* a staging area anymore. So for now, having stuff in contrib/ means something like These libraries are contributed by Org users and you can get their latest version by downloading the .tar.gz, the .zip, by cloning Org repo or by install org-plus-contrib from Org ELPA. The core idea is that stuff from contrib get more love than random github Org libraries: Org maintainers do fix stuff in there from time to time (compiler warnings, etc.) I think: 1) this core idea is fine, but I'm for applying it to Org ELPA instead of the Org contrib/ directory. 2) it would be cleaner if org-in-emacs and org-repo would be the same. My point of view is that of the users, who get easily lost in those distinctions. If it's a staging area for things that are not-quite-ready yet, then these things should either be removed if they aren't getting finished or moved into core when they are. Plus, since maint goes to Emacs, but master is not, it should be in master as soon as the copyright questions are resolved. It is *not* a staging area only. If it's becoming a dump of stuff that will never make it into core because it isn't acceptable for Emacs proper for whatever reason, then I'd reason that it should be removed as well, independently of whether it's kept alive outside of Org or not. I'm against dumping not-for-core libraries. And that precisely because it's good to have libraries close to Org's list/devs that I'd prefer the Org ELPA solution. If so, we would need some Git guru (Achim?) to help with filtering the Org repo, and I could help with setting up the Org ELPA packages. If you are suggesting to remove the history of contrib from Org's repo, then I'm against it. Why? -- Bastien
Re: [O] subtree export title w/ tags
Hi Nicolas and Robert, Nicolas Goaziou n.goaz...@gmail.com writes: The current behaviour is to keep tags of the root node when you export a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE: property in the same node. I think we should only consider the bare heading: we already get rid of the TODO keyword so I see no reason not to get rid of the tags too. I just pushed a fix for this. -- Bastien
Re: [O] Bug: documentation typo for org-format-latex-options [8.2.5 (release_8.2.5-417-g455fbc @ c:/users/977315/documents/.emacs.d/elisp/org/)]
Hi Mirko and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Thank you for the report. However, I don't think it is possible to fix it, because \[ in a docstring is treated specially. See: (info (elisp) Keys in Documentation). I fixed this by using \=\[ --- which is a trick I just discovered in the doc, so thanks for pointing to this! And thanks Mirko for the report. -- Bastien
Re: [O] M-right does not demote some subheadings in a region
Hi Samuel, Samuel Wales samolog...@gmail.com writes: It seems to work. Thank you, Bastien. I wasn't sure if this was the same bug as Susan's, but it seems to be. Yes it is. Why does folding affect semantics? Folding affects any function that has to deal with the visibility state of the text. When promoting or demoting a (set of) subtree, tags get re-aligned automatically. Re-aligning tags possibly manipulates invisible text (for example when the headline contains a bracket link), so that's where the bug came from: after aligning the tags, the point was not left where it should be, and some subtrees where skipped instead of being promoted/demoted. -- Bastien
Re: [O] org-mode + icicles, avoid key binding redefinitions?
Hi John, John Kitchin jkitc...@andrew.cmu.edu writes: I am trying it out, and icicles seems to have clobbered a few key bindings like C-c ' to open source blocks. It doesn't seem to matter which order I load these packages. Does anyone do this without clobbering org bindings? Thanks, I suggest to ask Drew directly, the author of icicle. Since C-c ' is officially an Emacs keybinding, he may consider using another keybinding for icicle (or not.) -- Bastien
Re: [O] [Orgmode] POLL: the 40 variables project
Manish mailtomanish.sha...@gmail.com writes: manishsharma:org-mode/ (master) $ grep defcustom lisp/*el |wc -l 808 Ouch. That's nearly half of the 1792 Emacs options! It certainly says something, but I don't know what :) -- Bastien
Re: [O] Feature Request: Allow Tangling Named INCLUDEs
Hi Nick, Nick Daly nick.m.d...@gmail.com writes: Hi folks, I have a situation where I have many named code snippets currently available in external files, and would like to tangle them into an Org mode file. Is it currently possible to tangle included files? I just wanted to confirm this is not currently possible... If not, could that feature be added to a new version of Org mode? I'm not the one who would undertake this, so my opinion on this should not matter much... but I think #+INCLUDE is well suited for exporting, not for tangling. I'm not able to say why, this is just an intuition. -- Bastien
Re: [O] Bug: Org-babel export of c++11 code to Latex does not work properly [7.9.4 (7.9.4-elpa @ /home/lipari/.emacs.d/elpa/org-20130401/)]
Hi Giuseppe, Giuseppe Lipari giulip...@gmail.com writes: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Dear all, I have a problem with org-babel and the export of C++11 code to LaTeX. I report below a simple example of a problem file: I can reproduce this bug -- maybe Eric will have time to fix it, otherwise I will have a look next week. Thanks, -- Bastien
Re: [O] Slight misbehaviour with `C-x r t' in Org
Hi François, François Pinard pin...@iro.umontreal.ca writes: Now, in this mode, if I put the mark on the `a' letter and the point on the `d' letter, and type `C-x r t SPC SPC RET', I then see: , | * Trying blue | anormal | = b= normal | * c*blue | / d/ normal ` Yes -- this is a problem with `move-to-column' ignoring invisible text at the beginning of the line. I reported this to the Emacs developers with a minimal example. Thanks! -- Bastien
Re: [O] please. Hekp me to start
Hi Nick! This is an awesome response! Great job!! Regards, Bernt Nick Dokos ndo...@gmail.com writes: Renato renato.pontef...@gmail.com writes: Hi, I know, ther's a lot of doc around there. But: can someone show me the best road map to start using (and learning) org-mode? Org is a swiss army knife: if you open up all the blades and try to use them at once, you are going to hurt yourself. Start with one or two things that are interesting to you and ignore everything else: e.g. agenda and TODO lists for organizing your life; writing up notes for latex or html export. I mention these two because they account for about 95% of my personal usage, but you will have to adjust to taste. Resist the temptation to learn everything at once. Once you've used org for a while for the things that matter to *you*, extensions and further uses will come naturally. For example, learning about tables comes naturally in the note-taking process; then you learn about the spreadsheet and doing data analysis in org; then you go on to babel and reproducible research. That might lead to citations (a field of active research on the list currently). Then you might want to publish your notes so others can read them; or start a blog... Or you decide to organize your life even more and start clocking all your activities; track your habits; go on to quantify your life... All of these things and more are possible with org, but just because they are possible does not mean that you have to do them all (and certainly not all at once) in order to use org productively. Just remember: one blade at a time. I've past the few days, learning emacs, and now, I think I'm able to start using org-mode. TIA Renato
[O] minimizing mixed installs
After my recent encounters with mixed installs, I poked around a bit and found this line (around line 80) in org.el (load org-loaddefs.el t t t) It seems to me (with very scant knowledge of course :D) - the noerror (first 't' ) makes this fail silently - to load another org-loaddefs in the path if it exists Ive replaced this with these 3 lines: (setq vv (concat (file-name-directory load-file-name) org-loaddefs.el)) (message (format vv is %s vv)) (load vv nil t t) This ensures that - only a sibling org-loaddefs of org.el will be loaded - if this file -- org-loaddefs -- not found then fail noisily [The setq and the vv are of course a hack to see whats going on] On my setup I could check these 4 cases 1 emacs23 2 emacs24 a with org-loaddefs works b without org-loaddefs gives explicit errors
[O] References in Org mode
Hi list, In LaTeX, I can reference quite a lot of things using the \label/\ref mechanism. Is there anything like this in Org? Grepping the docs for reference didn't help. In particular, I'd like to be able to reference to some item on a numbered list without hardcoding the number. Is that possible? (Of course, I accept that the reference might be rendered only after exporting to LaTeX or HTML, for instance.) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
Re: [O] org-mode + icicles, avoid key binding redefinitions?
John Kitchin jkitc...@andrew.cmu.edu writes: I am trying it out, and icicles seems to have clobbered a few key bindings like C-c ' to open source blocks. I used to have the same problem with C-c ' at one point in time, but not anymore. This was the only binding which got in the way. Using customize-option on icicle-top-level-key-bindings, I see that C-c ' is no longer bound to icicle-occur, not sure if Drew changed that binding at one point, or I disabled it. Be sure to require icicles as late as possible; do you see this problem when you load icicles not from your init.el but by hand with - M-x load library RET icicles RET - M-x icy-mode RET ? Current Version of icicles from emacswiki, or some prepackaged (debian) version? Mem -- /---\ | SDF and SDF-EU Public Access UNIX System | | http://sdf.org || http://sdf-eu.org | =
Re: [O] References in Org mode
Hello, Marcin Borkowski mb...@wmi.amu.edu.pl writes: In LaTeX, I can reference quite a lot of things using the \label/\ref mechanism. Is there anything like this in Org? Grepping the docs for reference didn't help. In particular, I'd like to be able to reference to some item on a numbered list without hardcoding the number. Is that possible? (Of course, I accept that the reference might be rendered only after exporting to LaTeX or HTML, for instance.) This is done with foo and [[foo]] syntax: 1. one item 2. targetanother item Here we refer to item [[target]]. For more information, see (info (org) Internal links). Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Fix org-outline-overlay-data marker insertion-type
Hello, Sylvain Chouleur sylvain.choul...@gmail.com writes: Well seen, here is the new patch, working as well. Thank you. If you haven't signed FSF papers, could you add TINYCHANGE at the end of your commit message so I can apply it? Regards, -- Nicolas Goaziou
Re: [O] [bug][ox-latex] Captions in equations
Hello, Rasmus ras...@gmx.us writes: OK. I can prepare a patch. Great. Thank you. In LaTeX the floating would be kind of odd, I think. At the very least math floats shouldn't be Figure or Tables (IMO); unfortunately the Internets seem to suggest that you usually create additional floats via packages such as newfloat of caption. HTML should also be considered... IIRC there is a caption package that can add captions to objects without making them floats. We could support it, but without requiring that package by default. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Fix org-outline-overlay-data marker insertion-type
Done 2014/1/19 Nicolas Goaziou n.goaz...@gmail.com Hello, Sylvain Chouleur sylvain.choul...@gmail.com writes: Well seen, here is the new patch, working as well. Thank you. If you haven't signed FSF papers, could you add TINYCHANGE at the end of your commit message so I can apply it? Regards, -- Nicolas Goaziou From 96efa14d318550e002b1c43e94cdaab108ddb78c Mon Sep 17 00:00:00 2001 From: Sylvain Chouleur sylvain.choul...@gmail.com Date: Sun, 19 Jan 2014 14:18:45 +0100 Subject: [PATCH] Fix org-outline-overlay-data marker insertion-type * org.el: Set the insertion-type of end bound marker of org-outline-overlay-data to t (means marker advances when you insert text at it) This is to conserve outline visibility property when changes are made at the end bound of the data. For example: try org-babel-execute-subtree on a folded outline: The new result will be shown after the folded part of the outline whereas the outline body should not be visible. TINYCHANGE --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a53597e477e2..50e652160566 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7191,8 +7191,8 @@ If USE-MARKERS is set, return the positions as markers. end (overlay-end o)) (and beg end ( end beg) (if use-markers - (cons (move-marker (make-marker) beg) - (move-marker (make-marker) end)) + (cons (copy-marker beg) + (copy-marker end t)) (cons beg end) (overlays-in (point-min) (point-max -- 1.8.5.2
Re: [O] most robust linking practices?
thanks for the ideas. I put together a new kind of link that takes you to files inside of emacs packages, or to paths relative to where a library is installed. http://kitchingroup.cheme.cmu.edu/blog/2014/01/19/Making-org-mode-links-to-files-in-Emacs-packages/ basically I find where the library or package is installed, and then construct an org-link relative to that. from the tests at the post above, it seems to work pretty well! John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Fri, Jan 17, 2014 at 10:47 AM, Nick Dokos ndo...@gmail.com wrote: John Kitchin jkitc...@andrew.cmu.edu writes: The files are all on a unix file system served over nfs, so everyone has the same / root. the users (students) have read access to my files. I am working towards creating packages of notes in org-mode (they might even be installed as emacs packages) for the courses that I teach. Having relative paths within a package certainly makes sense. I would like to link to notes in other packages too, as the courses are related, and build on each other. but I won't know in advance where those get installed. It sounds like those packages will have to have some variables configured to make that work out. IIUC, everybody sees the same namespace (students in read-only mode, you in rw: but /a/b/c/foo.org is the same file for everybody). If that's the case, then all methods (absolute or relative pathnames and/or ids) should work, no? I'd still do relative pathnames for individual packages. For interpackage links, you might want to do a sort of double indirection[fn:1]: for each package, create a directory with a symlink farm where the symlinks point off-package: package1: /p1/c/foo.org contains an org link to file:../farm/bar.org /p1/farm/bar.org - /p2/c/bar.org (- means symlink) package2: /p2/c/bar.org It should be possible to construct the symlink farms mechanically (and if not, see [fn:1] :-).) Assuming that the indirections are not too onerous, it should be possible to arrange things so that installation consists of setting one symlink in each package: package1: /p1/c/foo.org contains an org link to file:../farm/bar.org /p1/farm/bar.org - ./bar/bar.org /p1/farm/bar - /p2/c package2: /p2/c/bar.org Only /p1/farm/bar needs to be adjusted. Or just go whole-hog with ids (but take good care of the id file: double and triple backups would not be excessive imo). Since only you can modify the file, it should work OK. Footnotes: [fn:1] http://en.wikipedia.org/wiki/Indirection - the David Wheeler quote :-) Nick
Re: [O] org-mode + icicles, avoid key binding redefinitions?
I got icicles via ELPA. The version from describe-package is Version: 20140118.1856. although in icicles.el it says ;; Version: 2013.07.23. Thanks for the tip about the binding variable. I am content with this in my init file: (require 'icicles) ;; reclaim C-c ' for org-mode (setq icicle-top-level-key-bindings (remove '(' icicle-occur t) icicle-top-level-key-bindings)) (icy-mode 1) which seems to get me back the org-binding. (Note, in the pair of double quotes there is a ^C control character that did not appear in the email window I am using). Is there a convenient way to update icicles from emacs? John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Sun, Jan 19, 2014 at 12:31 PM, Memnon Anon memnon+use...@freeshell.orgwrote: John Kitchin jkitc...@andrew.cmu.edu writes: I am trying it out, and icicles seems to have clobbered a few key bindings like C-c ' to open source blocks. I used to have the same problem with C-c ' at one point in time, but not anymore. This was the only binding which got in the way. Using customize-option on icicle-top-level-key-bindings, I see that C-c ' is no longer bound to icicle-occur, not sure if Drew changed that binding at one point, or I disabled it. Be sure to require icicles as late as possible; do you see this problem when you load icicles not from your init.el but by hand with - M-x load library RET icicles RET - M-x icy-mode RET ? Current Version of icicles from emacswiki, or some prepackaged (debian) version? Mem -- /---\ | SDF and SDF-EU Public Access UNIX System | | http://sdf.org || http://sdf-eu.org | =
Re: [O] [PATCH] Fix org-outline-overlay-data marker insertion-type
Sylvain Chouleur sylvain.choul...@gmail.com writes: Done Applied. Thank you. Regards, -- Nicolas Goaziou
[O] bibtex org-capture says Target buffer .notes for file+headline should be in Org mode
I am having difficult creating an org entry from a bibtex file entry. Here is what I am doing: 1) open .bib file 2) position point in entry 3) M-x org-capture 4) respond to prompt: 'Template key:' with: t Instead of an link in the .org file, I get the message: 'Target buffer .notes for file+headline should be in Org mode' I believe I am running the latest emacs and org-mode releases (please see details below). BTW, is there a general discussion anywhere of how to use emacs/org-mode/reftex for reference management that comports with the latest release? And... given this interest, should I switch to bleeding edge? Many thanks, George ... from the *Messages* buffer ... (emacs) Loading /etc/emacs/site-start.d/00debian-vars.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [2 times] enabling speedbar support `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [2 times] For information about GNU Emacs and the GNU system, type C-h C-a. Loading vc-git...done Template key: (New file) org-capture-set-target-location: Target buffer .notes for file+headline should be in Org mode GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6) of 2013-12-22 on brahms, modified by Debian Org-mode version 8.2.5c (release_8.2.5c @ /home/regcl/.emacs.d/lisp/org-mode/lisp/)
Re: [O] bibtex org-capture says Target buffer .notes for file+headline should be in Org mode
regcl re...@channing.harvard.edu writes: Oops, my error... Once I did this ... (setq org-default-notes-file (concat org-directory /notes.org)) ... everything works great! ... sorry for the false alarm! Best, George I am having difficult creating an org entry from a bibtex file entry. Here is what I am doing: 1) open .bib file 2) position point in entry 3) M-x org-capture 4) respond to prompt: 'Template key:' with: t Instead of an link in the .org file, I get the message: 'Target buffer .notes for file+headline should be in Org mode' I believe I am running the latest emacs and org-mode releases (please see details below). BTW, is there a general discussion anywhere of how to use emacs/org-mode/reftex for reference management that comports with the latest release? And... given this interest, should I switch to bleeding edge? Many thanks, George ... from the *Messages* buffer ... (emacs) Loading /etc/emacs/site-start.d/00debian-vars.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [2 times] enabling speedbar support `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [2 times] For information about GNU Emacs and the GNU system, type C-h C-a. Loading vc-git...done Template key: (New file) org-capture-set-target-location: Target buffer .notes for file+headline should be in Org mode GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6) of 2013-12-22 on brahms, modified by Debian Org-mode version 8.2.5c (release_8.2.5c @ /home/regcl/.emacs.d/lisp/org-mode/lisp/)
Re: [O] [bug][ox-latex] Captions in equations
Hello, ** Rasmus [2014-01-19 15:19:40 +0100]: Vladimir Lomov lomov...@gmail.com writes: Hello, ** Rasmus [2014-01-18 20:36:35 +0100]: Hi, This example produces invalid LaTeX code: #+CAPTION: test #+ATTR_LATEX: :mode math :environment pmatrix | \alpha | \beta | \gamma | Namely, \begin{equation} \caption{test text} \mathbf{H}=\begin{pmatrix} \vdots 0 \vdots \\ \vdots H \vdots \\ \vdots 0 \vdots \\ \end{pmatrix}. \end{equation} [...] IMHO, this is wrong approach. I don't understand. As I said, this is IMHO. I would consider this example as a special way to generate a matrix when exporting to LaTeX, then CAPTION is useless here. Also, HTML export will give differently looking result. But it shouldn't. It should produce a matrix as well, e.g. via MathJax. At first, I wanted to write the following: And would will be if one doesn't use MathJax? For example, I prefer to use dvipng to generate PNG images (there are several reasons for this). So, basically, this is a special case, and an user evidently knows about this. But then I tried to export this example document to HTML with MathJax and it fails. Consider these two examples: 'ex-tbl.org' and 'ex-tbl2.org' (attached to the message). After exporting first to html I get 'ex-tbl.html' without MathJax, the second has MathJax but only for formula. As I expected, problem occurs only for LaTeX export, due to a bit weird combination. I'm not a mathematician but I read many books on mathematics and theoretical physics (I'm a physicist) and don't remember examples of use an equation with a caption. Equation enclosed into a frame, yes, I see and use that, numbered or tagged equations, even placed into a float (though didn't try yet). Again, this was my IMHO. And I can't imagine situation when I would need a caption for equation, because there are other ways to emphasize an equation. What I see from this special example is how it is convenient to create a matrix for math mode in Org document. –Rasmus --- WBR, Vladimir Lomov -- Monotheism is a gift from the gods. ex-tbl.org Description: Lotus Organizer ex-tbl2.org Description: Lotus Organizer Title: ex-tbl ex-tbl Table 1: test Author: Vladimir Lomov Created: 2014-01-20 Пн 09:38 Emacs 24.3.50.1 (Org mode 8.2.5d) Validate Title: ex-tbl2 ex-tbl2 Table 1: test This is the Euler formula \(\exp^{\imath\phi}=\cos{\phi}+\imath\sin{\phi}\). Author: Vladimir Lomov Created: 2014-01-20 Пн 09:40 Emacs 24.3.50.1 (Org mode 8.2.5d) Validate
Re: [O] [Orgmode] POLL: the 40 variables project
Von: Bastien b...@gnu.org Datum: Sun, 19 Jan 2014 16:54:55 +0100 An: Manish mailtomanish.sha...@gmail.com Cc: emacs org-mode mailing list emacs-orgmode@gnu.org, Carsten Dominik domi...@science.uva.nl Betreff: Re: [O] [Orgmode] POLL: the 40 variables project Manish mailtomanish.sha...@gmail.com writes: manishsharma:org-mode/ (master) $ grep defcustom lisp/*el |wc -l 808 Ouch. That's nearly half of the 1792 Emacs options! It certainly says something, but I don't know what :) -- Bastien Well, you can use that for marketing: it's the best proof, that it is not a lie, if you call org-mode highly configurable :-) Martin p.s. for a new user, the large choice of options can really be quite confusing
Re: [O] org-mode + icicles, avoid key binding redefinitions?
John Kitchin jkitc...@andrew.cmu.edu writes: I got icicles via ELPA. The version from describe-package is Version: 20140118.1856. although in icicles.el it says ;; Version: 2013.07.23. That is the current version. Icicles isn't only icicle.el, Drew has actually a whole bunch of elisp addon packages. Some I use, some I don't. Thanks for the tip about the binding variable. I am content with this in my init file: (require 'icicles) ;; reclaim C-c ' for org-mode (setq icicle-top-level-key-bindings (remove '(^C' icicle-occur t) icicle-top-level-key-bindings)) (icy-mode 1) which seems to get me back the org-binding. Okay. As I said, I found this the only one conflicting with org (or other packages). Just remember to require icicles at the very end of your config, and everything should work. Is there a convenient way to update icicles from emacs? I use icicles-install.el, which simply downloads files from emacswiki and optionally byte compiles them. AFAIK, that is still the main repo, I wasn't aware of the elpa package, good to know. If you are interested, I changed some keybindings, see: http://memnon.sdf-eu.org/emacs.org in Section Icicles. Essential for me are these changes to the icicle completion keymap: ;; C-o is next to C-i. S-Tab doesn't work on tty. (define-key map \C-o 'icicle-apropos-complete) ; S-Tab ;; Narrowing is isearch in a sense. C-s in minibuffer is rarely ;; used. M-* is a horror to type for something I use so often. (define-key map \C-s 'icicle-narrow-candidates) ; M-* ;; History search is isearch-backward chronologically:-) (define-key map \C-r 'icicle-history) ; M-h ; again, tty friendly version. (define-key map \C-t 'icicle-help-on-candidate) ; C-M-RET With that 4 bindings adjusted, icicles is really fun to use. Takes some time getting used to, but I think it is worth it. Memnon -- /---\ | SDF and SDF-EU Public Access UNIX System | | http://sdf.org || http://sdf-eu.org | =
Re: [O] [Orgmode] POLL: the 40 variables project
Manish mailtomanish.sha...@gmail.com writes: manishsharma:org-mode/ (master) $ grep defcustom lisp/*el |wc -l 808 Ouch. That's nearly half of the 1792 Emacs options! It certainly says something, but I don't know what :) Maybe it says it's still a long way to go ;) cd gnus_git grep defcustom lisp/*.el | wc -l 1204
[O] How to write medical journal articles with org-mode
I am looking for advice regarding how to write medical journal articles using org-mode. My primary motivations are the desire to ... automate the flow of data from computation to publication, avoid clerical errors, speed up the conversion of computational results to manuscript, and do 99.9% of my typing in emacs ;) My primary computation platform is linux clusters with OS X desktops. I have used org-mode for project management and HTML export of provisional computational results in working papers for ~1 year. I recently started using org-mode/babel/ESS/R to export computation results to HTML. It looks like the medical journals require MS word submissions. I have used the scheme shown below to get MSword to/from my collaborators for comments corrections ... doc.org--+ || v| M-x org-odt-export-to-odt| || v| Open office | || v| MS Word | || v| doc.docx | || v| colaborator | || v| doc.docx | || v| /http://docx2txt.sourceforge.net/| || v| doc.docx.txt | || v| ediff---+ | v doc.org I am hopeful of using a similar approach for journal submission, but I need references. I have endnote, and have used it a bit, but I feel like I would be happier using ... https://github.com/wash/pubmode ... for bibtex pubmed search results + reftex + org-mode as reference manager. I have experimented with this approach to feed references into HTML via ox-bibtex.el and it looks encouraging. So here are my questions... 1) Has anyone out there used org-mode to produce medical journal articles (other than demonstration of reproducible research)? 2) I am mystified by all of these org-reftex-... functions. Can someone please point me to an overview of how to use bibtex/reftex/orgmode/emacs/etc as reference manager? 3) How do I get references into MS word? Any other comments or suggestions would be most welcome. Many thanks, george