Re: [O] numbering figure in html ?
Dear Nick, (cc. the list) The following code works correctly to export into LaTeX, but the caption function fails in html. But caption works in html when it is above a table written in org-mode. #+OPTIONS: LaTeX:verbatim #+LaTeX_CLASS: org-article #+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt] #+LaTeX_CLASS_OPTIONS: [times] #+LANGUAGE: en #+OPTIONS: ':t #+OPTIONS: tex:t #+LATEX_HEADER: \usepackage{tikz} #+LaTeX_CLASS_OPTIONS: [captions=tableheading] #+OPTIONS: tex:imagemagick #+CAPTION: Classical square of opposition #+BEGIN_FIGURE \begin{tikzpicture} \draw[-, =latex][thick] (0,0) -- (1.6,0) node[right] {Subcontrary}; \draw[-,=latex] [thick] (3.6,0) -- (5,0) node[right] { \((\mathbf{O})\)~ \(\underset{\land \exists x(Sx)}{\exists x(Sx \land \neg Px)}\)}; \draw[-,=latex] [thick] (1.6,0) -- (0,0) node[left] {\(\underset{\land \exists x(Sx)}{\exists x(Sx \land Px)}\)~ \((\mathbf{I})\)}; \draw[-,=latex][thick] (5,0) -- (0,5) node[left] {\(\underset{\land \exists x(Sx)}{\forall x(Sx \to Px)}\)~ \((\mathbf{A})\)} node[midway] {CONTRADICTORY} ; \draw[-,=latex][thick] (0,0) -- (5,5); \draw[-,=latex][thick] (0,5) -- (0,2.5) node[below] {Subaltern}; \draw[-,=latex][thick] (0,2) -- (0,0); \draw[-,=latex][thick] (5,5) -- (5,2.5) node[below] {Subaltern}; \draw[-,=latex][thick] (0,5) -- (1.7,5) node[right] {Contrary}; \draw[-,=latex][thick] (3.2,5) -- (5,5) node[right]{\((\mathbf{E})\)~ \(\underset{\land \exists x(Sx)}{\forall x(Sx \to \neg Px)}\)}; \draw[-,=latex][thick] (5,2) -- (5,0); \end{tikzpicture} #+END_FIGURE 2014-08-04 21:30 GMT+02:00 Nick Dokos ndo...@gmail.com: Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes: Hello everybody, In org-mode exporting \begin{figure} \begin{tikzpicture} \draw[-, =latex][thick] (0,0) -- (1.6,0) node[right] {Subcontrary}; ... end{tikzpicture} \end{tikzpicture} \caption{Square of opposition} \end{figure} works well with LateX, but fails with html: each Figure has the same number, i.e. 1. What is the best solution to get numbered Figure in html? [Please provide complete examples whenever possible.] How do you produce the figure for HTML export? Perhaps #+caption: Square of opposition on the figure? -- Nick
[O] export quotes
Hi I'm looking for a way to make orgmode export quote signs to LaTeX's \enquote{}. On stackoverflow.com (1) I found a solution that uses (setq org-export-with-smart-quotes t) (add-to-list 'org-export-smart-quotes-alist .) but on my system I find neither the variable org-export-with-smart-quotes nor org-export-smartcodes-alist. Am I missing something or has the procedure been changed in the meanwhile? regards, salome (1) http://stackoverflow.com/questions/9053276/how-can-i-use-csquotes-with-latex-export-in-org-mode
[O] Can't execute the introductory code: take table as input to produce mean
Hello: I want to learn babel-mode so I'm going through http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-blocks-org. I'm trying to execute the basic tutorial's script and for some reason can't do it. I'm suppose to feed a table as input to a function. This is the table: #+name: tbl-example-data() #+begin_src R runif(n=5, min=0, max=1) #+end_src #+RESULTS: tbl-example-data | 0.607781215803698 | | 0.157157169422135 | | 0.675619817571715 | | 0.0488600700628012 | | 0.998780139256269 | The next function is the function to be executed: #+name: R-mean(x) #+begin_src R mean(x) #+end_src When I try to run it by pressing `C-c C-c` I get `variable x in block R-mean must be assigned a default value`. I tried to explicitly run the function R-mean(x) like so. #+call: R-mean(tbl-example-data) Unfortunately I get Reference 'R-mean' not found in this buffer How do I run the function R-mean using the vlaues from tbl-example-data? Thanks in advance. Jenia
Re: [O] bug#17749: 24.3.91; Crash on mwheel-scroll of org file
1. Open emacs-crash-test.org 2. Make the window smaller (e.g. 20 lines tall) 2. Roll the mouse wheel down until you see the end of file, then up. 3. CRASH The specific org file doesn't matter. The window size doesn't matter. This crash happens to me occasionally (2-3 times a week), always on an org file, always on mwheel-up (which invokes mwheel-scroll). Eli, can you tell something from the backtrace here? http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/txtkIBvnmHi_F.txt The critical lines are: die at C:\msys\home\Dani\emacs\build\src/../../emacs-24.3.91/src/alloc.c:6826 pop_it at C:\msys\home\Dani\emacs\build\src/../../emacs-24.3.91/src/xdisp.c:6060 set_iterator_to_next at C:\msys\home\Dani\emacs\build\src/../../emacs-24.3.91/src/xdisp.c:7523 move_it_in_display_line_to at C:\msys\home\Dani\emacs\build\src/../../emacs-24.3.91/src/xdisp.c:8838 ../../emacs-24.3.91/src/xdisp.c:6066: Emacs fatal error: assertion failed: (BUFFERP (it-object) IT_CHARPOS (*it) == it- bidi_it.charpos IT_BYTEPOS (*it) == it-bidi_it.bytepos) || (STRINGP (it-object) IT_STRING_CHARPOS (*it) == it- bidi_it.charpos IT_STRING_BYTEPOS (*it) == it-bidi_it.bytepos) || (CONSP (it-object) it-method == GET_FROM_STRETCH) The code can be seen here: https://github.com/mirrors/emacs/blob/master/src/xdisp.c#L6127 This is an assertion violation, not a crash. The failing assertion causes a crash, so I'm not sure what's the difference. Is there an emacs build that doesn't crash on eassert() failure? Some assumption in the code turned out to be false, but it is not possible to know which one, and whether it's just a wrong assumption or a real problem. It seems the assertion does basic consistency checks of the IT structure. What is it-bidi_p? I don't use BIDI text: this happens on ascii org files. I guess I'll upgrade Emacs and Org and hope for the best...
Re: [O] [Babel] 2 new problems with tangling
Hi Bastien, Bastien wrote: Sebastien Vauban writes: After an update to Org 8.2.7, I have troubles tangling files. Do you still see this? No -- hopefully... Closing this! Best regards, Seb -- Sebastien Vauban
Re: [O] Highlighting text for HTML mark tag export?
'Mash wrote: Just been looking around and I have not come across a way to highlight text in org-mode to be HTML exported as the mark.../mark tags? Anyone know if this exists? You could use org-macros. Or simply: #+HTML: mark ... #+HTML: /mark Best regards, Seb -- Sebastien Vauban
Re: [O] export quotes
Salome Södergran\ wrote: I'm looking for a way to make orgmode export quote signs to LaTeX's \enquote{}. On stackoverflow.com (1) I found a solution that uses (setq org-export-with-smart-quotes t) (add-to-list 'org-export-smart-quotes-alist .) but on my system I find neither the variable org-export-with-smart-quotes nor org-export-smartcodes-alist. Am I missing something or has the procedure been changed in the meanwhile? You don't use Org mode 8, don't you? Well, that'd explain... Best regards, Seb -- Sebastien Vauban
Re: [O] Can't execute the introductory code: take table as input to produce mean
Hello jenia, I want to learn babel-mode so I'm going through http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-blocks-org. I'm trying to execute the basic tutorial's script and for some reason can't do it. I'm suppose to feed a table as input to a function. This is the table: #+name: tbl-example-data() #+begin_src R runif(n=5, min=0, max=1) #+end_src #+RESULTS: tbl-example-data | 0.607781215803698 | | 0.157157169422135 | | 0.675619817571715 | | 0.0488600700628012 | | 0.998780139256269 | The next function is the function to be executed: #+name: R-mean(x) #+begin_src R mean(x) #+end_src When I try to run it by pressing `C-c C-c` I get `variable x in block R-mean must be assigned a default value`. How do I run the function R-mean using the vlaues from tbl-example-data? Add a variable to your code block: #+name: R-mean(x) #+begin_src R :var x=tbl-example-data mean(x) #+end_src Best regards, Seb -- Sebastien Vauban
Re: [O] bug: isearch puts ellipses at top of window
Nicolas Richard theonewiththeevill...@yahoo.fr writes: Samuel Wales samolog...@gmail.com writes: in maint, isearch very often puts ... at the top of the window. is this related to recent ellipsis bugs? If you have a reproducible recipe, it would be very nice ! I think I have something -- not with isearch but certainly related. Unfortunately I'm not sure if this should be considered an emacs bug or if it should be fixed in Outline or in Org, so I'll simply ask about it. I did it on bug#18197. -- Nico.
Re: [O] Tracking time estimates for incomplete tasks
By the way, apologies for the multiple messages. I didn't receive any feedback after sending them so I thought my emails were being silently ignored.
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Dear Eric, On Tuesday, Aug 05 2014, Eric Abrahamsen e...@ericabrahamsen.net wrote: Thanks for this work -- I think this is a nice feature. One concern about the above is that, if you're archiving many FOOs, then you'll get a whole bunch of duplicate A/B parent structures. There are several places in my agenda files where I have the exact structure in your example, and a *whole* lot of FOOs going in and getting archived out. How hard would it be to look for an existing A/B parent structure in the archive file, and put FOO there if it's found? Not a perfect solution, since you might have more than one A/B, but seems like it would help in a majority of cases... if I understand you correctly, then I have already implemented that. If I would like to archive *** Foo, the function (fa/org-struct-subtree) returns the parent headings as a list, e.g. (*A ** B). Inside the archive file, I search for * A and inside that heading I search for ** B. If ** B was not found, it inserts the remaining list that was not found and does not create a new * A again. This means if you have *A and ** B already in your archive file it will not add a new A/B. A problem exists if you have the exact same structure twice in one file like the following example: * A ** B *** FOO * A ** B *** FOO If you would archive both *** FOO, then the archive file would look like this: * A ** B *** FOO *** FOO In order to fix that problem we need a unique id for every heading. My current implementation implies that at least the first heading is unique. Then it should not be a problem. Best regards -- Florian Adamsky http://florian.adamsky.it/
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Florian Adamsky fa-orgm...@haktar.org writes: Dear Eric, On Tuesday, Aug 05 2014, Eric Abrahamsen e...@ericabrahamsen.net wrote: Thanks for this work -- I think this is a nice feature. One concern about the above is that, if you're archiving many FOOs, then you'll get a whole bunch of duplicate A/B parent structures. There are several places in my agenda files where I have the exact structure in your example, and a *whole* lot of FOOs going in and getting archived out. How hard would it be to look for an existing A/B parent structure in the archive file, and put FOO there if it's found? Not a perfect solution, since you might have more than one A/B, but seems like it would help in a majority of cases... if I understand you correctly, then I have already implemented that. If I would like to archive *** Foo, the function (fa/org-struct-subtree) returns the parent headings as a list, e.g. (*A ** B). Inside the archive file, I search for * A and inside that heading I search for ** B. If ** B was not found, it inserts the remaining list that was not found and does not create a new * A again. This means if you have *A and ** B already in your archive file it will not add a new A/B. Excellent! That's just what I meant, and it sounds like you've already taken care of it. Personally I don't mind if items get filed under the wrong parent structure (in case of duplicate parent structures), but if you wanted to do the unique id trick, that would be nice too! Thanks, Eric A problem exists if you have the exact same structure twice in one file like the following example: * A ** B *** FOO * A ** B *** FOO If you would archive both *** FOO, then the archive file would look like this: * A ** B *** FOO *** FOO In order to fix that problem we need a unique id for every heading. My current implementation implies that at least the first heading is unique. Then it should not be a problem. Best regards -- Florian Adamsky http://florian.adamsky.it/
Re: [O] HTML lists are including paragraphs (lip…/p/li)
The code which checks to ensure that paragraph wrappers are only inhibited if they are inhibited for the whole list mistakenly keeps paragraph wrappers if one item of the list is itself a list The location of this bug is the (cdr contents) in line 2899 of ox-html.el. I'd be inclined to remove this form, but I'm not sure what valid case it checks for. Best, Eric Daniel Clemente n142...@gmail.com writes: Hi. With latest org I'm getting lip…/p/li, which makes no sense; it should be li…/li Aren't there tests to find this type of breakages in export? Example: - hola - uno - dos - tres Is exported to: ul class=org-ul lip hola /p /li lip uno /p ul class=org-ul lidos /li /ul /li lip tres /p /li /ul -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)
[O] HTML export of - [ ] does not display box anymore
Hi, doing an html export of * headline - [ ] checkbox - item I do not see the checkbox box anymore as I did in older versions. I tried to find an export setting, tried several settings related to todos but I cannot find a setting stopping the box to be exported. Any hint where I could search for? Regards, Rainer
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Hi Florian, This code looks useful and an improvement over the previous setup I was using. https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01218.html Can you explain what else is needed for your code to work? Currently I have #+BEGIN_SRC emacs-lisp (setq org-archive-location (concat org-directory /archive/%s_archive::)) #+END_SRC But I don't see things archived as subtrees with just this. Do I need new/different configuration to work with your code? Thanks, -k. * On 2014-08-04 at 15:29, Florian Adamsky wrote: Dear all, some of my org-mode files are getting bigger and bigger. So, I decided to use the archive feature to remove old stuff. However, I was not happy with the current archive feature, because it just puts subtrees unorganized in the archive file. I was more looking for a way to archive a subtree, but keep the parent structure. Means, if the point is at the subtree *** FOO in the following example: * A ** B *** FOO then it should copy the heading * A and ** B to the archive file and then move *** Foo to it. The only thing that I found was a feature request from Florian Lindner [fn:1]. A couple of days I was given it a shot and tried to implement that myself. Attached you'll find my attempt. It is a bit hackish, but it works for me. I think the attached code misses two features: 1. it only copies the parent headings with tags, but ignores properties and stuff like that 2. it ignores org-reverse-note-order, but that should not be too hard to add. Before I work on it again, I would like to hear your comments. Have I implemented functions that are already in org-mode? Is this feature useful for other people? Does it in more complicated org-mode files? Best regards Footnotes: [fn:1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01214.html
Re: [O] Highlighting text for HTML mark tag export?
'Mash Thomas Herbert wrote: Sebastien Vauban sva-n...@mygooglest.com writes: 'Mash wrote: Just been looking around and I have not come across a way to highlight text in org-mode to be HTML exported as the mark.../mark tags? Anyone know if this exists? You could use org-macros. Or simply: #+HTML: mark ... #+HTML: /mark Thanks Sebastien, unfortunately this is not that useful if you simply want to highlight words or a sentence in a paragraph. Unfortunately using HTML markup in an org file, org-ruby doesn't parse these tags. Might be an interesting feature request to to coinside with _underline_, *bold*, etc You can always update your definition of `org-emphasis-alist', but I'm not sure Nicolas would say it's the right thing to do. Note that I've always wanted to add such a new marker (marked up by `!') that would be some sort of highlighting `alert' (and seen in red, for example, in my Org buffer). OTOH, having such could allow to have *...* mapped to bold and !...! mapped to alert in both LaTeX and Beamer [1]. Best regards, Seb [1] Right now, *...* is mapped to bold in LaTeX and to alert in Beamer. -- Sebastien Vauban
Re: [O] numbering figure in html ?
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes: The following code works correctly to export into LaTeX, but the caption function fails in html. But caption works in html when it is above a table written in org-mode. #+OPTIONS: LaTeX:verbatim #+LaTeX_CLASS: org-article #+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt] #+LaTeX_CLASS_OPTIONS: [times] #+LANGUAGE: en #+OPTIONS: ':t #+OPTIONS: tex:t #+LATEX_HEADER: \usepackage{tikz} #+LaTeX_CLASS_OPTIONS: [captions=tableheading] #+OPTIONS: tex:imagemagick #+CAPTION: Classical square of opposition #+BEGIN_FIGURE \begin{tikzpicture} ... \end{tikzpicture} #+END_FIGURE Yes, tables and source blocks handle captions in the HTML exporter, but special blocks (which #+(BEGIN|END)_FIGURE is) don't. Captions for special blocks *are* handled correctly in the latex exporter. This shouldn't be too hard to fix: just copy the caption code from org-html-table to org-html-special-block, but I won't have time to try it today. And then there is the question of other exporters... -- Nick
Re: [O] numbering figure in html ?
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes: The following code works correctly to export into LaTeX, but the caption function fails in html. But caption works in html when it is above a table written in org-mode. #+OPTIONS: LaTeX:verbatim #+LaTeX_CLASS: org-article #+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt] #+LaTeX_CLASS_OPTIONS: [times] #+LANGUAGE: en #+OPTIONS: ':t #+OPTIONS: tex:t #+LATEX_HEADER: \usepackage{tikz} #+LaTeX_CLASS_OPTIONS: [captions=tableheading] #+OPTIONS: tex:imagemagick #+CAPTION: Classical square of opposition #+BEGIN_FIGURE ... #+END_FIGURE BTW, the HTML also has the figure wrapped in p.../p which I think is wrong. I wonder if it's an instance of the bug that Daniel Clemente pointed out in http://thread.gmane.org/gmane.emacs.orgmode/89413 although at first glance, it seems distant enough to be unrelated. -- Nick
Re: [O] [RFC] Rewrite `org-entry-properties' using parser
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Thorsten Jolitz tjol...@gmail.com writes: here is my first take of rewriting `org-entry-properties'. Interesting. A first round of comments follows. Thanks for the review and the comments. But this looks like an entirely different function to me, and IMO it does not make much sense that you explain what you want and I type it in (because instead of explaining you could just as well type it yourself in the same time), so I rather leave this to you (or whoever wants to do it). -- cheers, Thorsten
Re: [O] make slim auto-complete work in Org-mode (delete some ac-source in Org-mode).
stardiviner wrote: I setup default =ac-sources= for auto-complete like this: #+BEGIN_SRC emacs-lisp (setq-default ac-sources '(ac-source-yasnippet ac-source-abbrev ac-source-filename ac-source-files-in-current-dir ac-source-dictionary ac-source-words-in-same-mode-buffers )) #+END_SRC And I found =ac-source-dictionary= and =ac-source-words-in-same-mode-buffers= is heavy for Org-mode, So I try to remove them only in Org-mode. Do you have some evidence of this? Profiling with/without? It'd be interesting. Other point: I'm surprised you don't have the source `ac-source-words-in-buffer' (maybe instead of `ac-source-words-in-same-mode-buffers')... Best regards, Seb -- Sebastien Vauban
Re: [O] [RFC] Add commmand for wrapping sexp/region in src-blocks to Org?
Xebar Saram zelt...@gmail.com writes: Hi Xebar, small question. sorry for the late answer i wonder if i could request a tiny related feature (this may be very easy to do already). i would like to assign hotkeys for 2 scenarios: 1) pre selected language for 1 line 2) pre selected language prompting for number of lines to wrap so IE id assign F9-b to auto wrap current line with bash syntax while F9-l would wrap in lisp also F10-b would prompt me how man lines to wrap in bash etc is that possible? I think so, I have some predefined calls to that function with global keybindings in my init file (right now I call it `tj/wrap-in-src-block', you might have to adapt this): (global-set-key (kbd C-c w l) (lambda () (interactive) (let ((current-prefix-arg '(4))) (call-interactively 'tj/wrap-in-src-block (global-set-key (kbd C-c w n) (lambda () (interactive) (let ((current-prefix-arg '(16))) (call-interactively 'tj/wrap-in-src-block (global-set-key (kbd C-c w w) 'tj/wrap-in-src-block) 1) pre selected language for 1 line e.g. (global-set-key (kbd C-c w y) (lambda () (interactive) (tj/wrap-in-src-block shell 1))) 2) pre selected language prompting for number of lines to wrap emacs-lisp is kind of preselected, but you could add this after the ((equal current-prefix-arg '(16)) ...) part ((equal current-prefix-arg '(64)) (list shell (read-number Number of lines to wrap: 1))) and then (global-set-key (kbd C-c w z) (lambda () (interactive) (let ((current-prefix-arg '(64))) (call-interactively 'tj/wrap-in-src-block everything untested, unfortunately ... -- cheers, Thorsten
Re: [O] [RFC] Add commmand for wrapping sexp/region in src-blocks to Org?
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Why limiting it to ... I'll leave it as personnal init.el customization, maybe it evolves over time towards a function that deals with the general case. Thanks for the comments though. -- cheers, Thorsten
Re: [O] HTML export of - [ ] does not display box anymore
On 2014-08-05 08:25, Rainer Stengele wrote: Hi, doing an html export of * headline - [ ] checkbox - item I do not see the checkbox box anymore as I did in older versions. I tried to find an export setting, tried several settings related to todos but I cannot find a setting stopping the box to be exported. Any hint where I could search for? Checkbox export is handled by a constant and a custom variable: - `org-html-checkbox-types' :: A constant defining the output for unicode (entity), ascii, and html (form) versions of the checkboxes. - `org-html-checkbox-type' :: A customizable variable defining which version of the above to use. The default is ascii, which should result in backwards compatible output. Here's the output i get for your list above (using the default ascii option): ul class=org-ul li class=offcode[#xa0;]/code checkbox /li liitem /li /ul which seems correct to me.
[O] How to mark headings to be exclude from inclusion in tangling or weaving?
Good morning, My system is set up to tangle and weave an org file into a .emacs.el file. By ensuring property inheritance is configured like this ╭ │ (setq org-babel-use-quick-and-dirty-noweb-expansion nil) ╰ , each heading takes properties from its parents. Sometimes I don't want that inheritance to occur for one specific sub-heading, though, and I want to know, what is the best way to go about that? My current approach, which works, but is probably wrong, is to give the property to the subheading of: ╭ │ :PROPERTIES: │ :noweb-ref: ignore-r-config │ :END: ╰ which seems to exclude it from export or tangling. Then later when I tangle the file, noweb expansion lets me put this where I want. What is going on here is that I've got a programming configuration section, and it makes sense to keep it all together, but for the fact that 90% of that config goes into the .emacs.el an 10% of goes into another config file, so I do need to exclude and put somewhere else that 10%. emacs GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, Carbon Version 1.6.0 AppKit 1265.2)\n of 2014-07-03 on orion org 8.2.7a Kind regards, Grant Rettke | ACM, ASA, FSF, IEEE, SIAM 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] bug#17749: 24.3.91; Crash on mwheel-scroll of org file
From: Vladimir Alexiev vladimir.alex...@ontotext.com Cc: 17...@debbugs.gnu.org, emacs-orgmode@gnu.org Date: Tue, 5 Aug 2014 11:10:16 +0300 1. Open emacs-crash-test.org 2. Make the window smaller (e.g. 20 lines tall) 2. Roll the mouse wheel down until you see the end of file, then up. 3. CRASH The specific org file doesn't matter. The window size doesn't matter. This crash happens to me occasionally (2-3 times a week), always on an org file, always on mwheel-up (which invokes mwheel-scroll). Eli, can you tell something from the backtrace here? http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/txtkIBvnmHi_F.txt No, sorry. I really need to reproduce this on my machine and run Emacs under a debugger to see what happens and why. Please try to come up with a recipe starting from emacs -Q. It is OK to include customizations and loading of optional packages, but please try to find the minimal set of those, as too many of them complicate debugging. This is an assertion violation, not a crash. The failing assertion causes a crash, so I'm not sure what's the difference. Is there an emacs build that doesn't crash on eassert() failure? If Emacs is configured without --enable-checking (which is what happens in released versions), all the eassert lines compile to nothing. Some assumption in the code turned out to be false, but it is not possible to know which one, and whether it's just a wrong assumption or a real problem. It seems the assertion does basic consistency checks of the IT structure. Yes. But without details, I cannot know what caused it or how to fix it. What is it-bidi_p? I don't use BIDI text: this happens on ascii org files. The display engine always works in bidirectional mode, this has been so since Emacs 24.1.
Re: [O] How to define file-local preamble for graphviz dot?
Vladimir Alexiev vladimir.alexiev at ontotext.com writes: I have a bunch of dot settings that I want to set globally. I hacked it like this: (defadvice org-babel-expand-body:dot (before add-preamble (body params) activate) A better way to hack it is like that, using the header args :prologue and :epilogue (eval-after-load ob-dot ' (progn (add-to-list 'org-babel-default-header-args:dot '(:cache . yes)) (add-to-list 'org-babel-default-header-args:dot '(:prologue . digraph g { rankdir=LR nodesep=0.2 ranksep=0.1 arrowsize=0.2 node [fontname=courier fontsize=10 margin=\0.02,0.01\ shape=box width=0.1 height=0.1] edge [fontname=courier fontsize=8 labelfontname=courier labelfontsize=8])) (add-to-list 'org-babel-default-header-args:dot '(:epilogue . } Unfortunately ob-dot doesn't interpret :prologue and :epilogue, so I adviced it: (defadvice org-babel-expand-body:dot (before prologue-epilogue activate) Interpret :prologue and :epilogue headers, like org-babel-expand-body:generic (let ((pro (cdr-safe (assoc :prologue params))) (epi (cdr-safe (assoc :epilogue params (setq body (mapconcat #'identity (append (when pro (list pro)) (list body) (when epi (list epi))) \n Then in a particular file I can override the :prologue like so: * Local Variables :noexport: Local Variables: eval: (setq-local org-babel-default-header-args:dot (cons '(:prologue . digraph g { rankdir=LR nodesep=0.2 ranksep=0.3 arrowsize=0.1 node [fontname=courier fontsize=8 margin=\0.02,0.01\ shape=circle width=0.25 height=0.25 label=\\] edge [fontname=courier fontsize=8 labelfontname=courier labelfontsize=8]) (cl-remove :prologue org-babel-default-header-args:dot :key 'car :test 'eq))) End: This works, although it asks for confirmation every time the file is loaded. Trying to do it with a code block: #+BEGIN_SRC emacs-lisp :results silent :exports none #+END_SRC didn't work because that code is not executed automatically on export.
[O] ox-reveal cannot export
Hi, after a long time i recently played with ox-reveal (with org-mode release_8.3beta-167-g003edd) While exporting to reveal i get Symbol's function definition is void: org-html-format-headline--wrap What i'm missing? Regards, Robert
[O] Problems with org-export: byte-code: Invalid function: 0
Im doing my first steps trying to publish my org-mode content to HTML and it seems that there is something that causes problems with publishing. I tracked it down to this paragraph which seems to cause the problem: _ Connect at AIIM is a news communication provided by AIIM. 2014 AIIM - The Global Community of Information Professionals 1100 Wayne Avenue, Suite 1100, Silver Spring, MD 20910 USA Phone: 301-587-8202 resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/call_skype_logo.png301-587-8202 The IT Centre, 8 Canalside, Lowesmoor Wharf, Worcestershire, WR1 2RR UK Tel: +44 (0) 1905 727600 resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/call_skype_logo.png+44 (0) 1905 727600 _ (in my org-mode document, the linebreaks are visible only as ^M) Can somebody tell me whats the problem here? When trying C-c C-e h o I get this error message: Invalid function: 0 Kind regards Martin
Re: [O] Filtering org-clock-display
Hello Bastien, I can't get this to work. (org-clock-display '(16)) -- this works fine! (let ((org-clock-display-default-range 'thisweek)) (org-clock-display)) ^ This however just runs org-clock-display for all time without a prompt. I have updated to HEAD and ran `make`. On 28 July 2014 17:45, Bastien b...@gnu.org wrote: Hi Noah, Noah Slater nsla...@tumbolia.org writes: Can I pass in the range when calling it from a function? Not directly. (org-clock-display '(16)) will interactively prompt for a range. (let ((org-clock-display-default-range 'thisweek)) (org-clock-display)) will display the clock with the new option `org-clock-display-default-range' set to thisweek. HTH, -- Bastien
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Dear Ken, On Tuesday, Aug 05 2014, Ken Mankoff wrote: This code looks useful and an improvement over the previous setup I was using. https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01218.html Can you explain what else is needed for your code to work? Currently I have at the moment, I just run the function org-archive-subtree-hierarchical interactively. #+BEGIN_SRC emacs-lisp (setq org-archive-location (concat org-directory /archive/%s_archive::)) #+END_SRC But I don't see things archived as subtrees with just this. Do I need new/different configuration to work with your code? No, just run M-x org-archive-subtree-hierarchical. I tried the code with the latest org-mode version 8.3beta and with emacs -q and in both cases it works without problems. However, if you set the following variable to the new function, it should work with the default keybinding for org-archive: #+BEGIN_SRC emacs-lisp (setq org-archive-default-command 'org-archive-subtree-hierarchical) #+END_SRC If you have any trouble, please give me a note. Best -- Florian Adamsky http://florian.adamsky.it/
[O] [PATCH] Couple of small fixes in exporting node.js and css content.
I've got a toy paper I'm writing where I ran into a couple of issues exporting to html. The first issue is related to exporting the source of a css block that contains proprietary properties. In short, it looks like a list is generated for the font face, where a single value was expected. The second issue may be my fault, so if there is a setting I should change on my end, apologies and I'll set said setting. Basically, there is a cutoff value whereby node.js will insert newlines into the results. This was incredibly frustrating as what was turning into a decent looking table would suddenly become garbage. In both cases, I did not add a test file. If it is enough to just copy an existing test file and trim it down to just these two items, I can certainly do that. Finally, apologies if I am doing this incorrectly. I tried following the directions on how to contribute as well as I could. Thanks! -josh p.s. The toy paper is here: http://taeric.github.io/DancingLinks.html From 0441982a9457f9bbd953a06ab4fa830c6ffc967b Mon Sep 17 00:00:00 2001 From: Josh Berry tae...@gmail.com Date: Mon, 4 Aug 2014 22:45:43 -0400 Subject: [PATCH 1/2] Fix css export when proprietary properties are used * htmlize.el (htmlize-face-size): Check for a list instead of a single font face. `face-attribute' does not act kindly to being given a list of faces. TINYCHANGE --- contrib/lisp/htmlize.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/htmlize.el b/contrib/lisp/htmlize.el index 3bf5949..6654f40 100644 --- a/contrib/lisp/htmlize.el +++ b/contrib/lisp/htmlize.el @@ -1079,7 +1079,7 @@ If no rgb.txt file is found, return nil. (let ((size-list (loop for f = face then (face-attribute f :inherit) - until (or (not f) (eq f 'unspecified)) + until (or (not f) (eq f 'unspecified) (listp f)) for h = (face-attribute f :height) collect (if (eq h 'unspecified) nil h (reduce 'htmlize-merge-size (cons nil size-list -- 1.9.1 From 792b89a0922ee21bd0155f68adb0ce07c2558a51 Mon Sep 17 00:00:00 2001 From: Josh Berry tae...@gmail.com Date: Mon, 4 Aug 2014 22:46:46 -0400 Subject: [PATCH 2/2] Fix javascript exporting of results from node.js * ob-js.el (org-babel-js-read): Expand regexps to account for newlines in output from node.js It may be possible to instruct node.js to not insert line breaks automatically. Was not difficult to fix the regular expressions to account for newlines, though. I did *not* add a test file that goes over this, as I did not see one already for ob-js.el. I can certainly add one, if desired. TINYCHANGE --- lisp/ob-js.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ob-js.el b/lisp/ob-js.el index 7789449..9d956cc 100644 --- a/lisp/ob-js.el +++ b/lisp/ob-js.el @@ -97,13 +97,13 @@ This function is called by `org-babel-execute-src-block' If RESULTS look like a table, then convert them into an Emacs-lisp table, otherwise return the results as a string. (org-babel-read - (if (and (stringp results) (string-match ^\\[.+\\]$ results)) + (if (and (stringp results) (string-match ^\\[[\0-\377[:nonascii:]]*\\]$ results)) (org-babel-read (concat ' (replace-regexp-in-string \\[ ( (replace-regexp-in-string \\] ) (replace-regexp-in-string - ,(replace-regexp-in-string + ,\\W (replace-regexp-in-string ' \ results)) results))) -- 1.9.1
[O] [PATCH] Couple of small fixes in exporting node.js and css content.
I've got a toy paper I'm writing where I ran into a couple of issues exporting to html. The first issue is related to exporting the source of a css block that contains proprietary properties. In short, it looks like a list is generated for the font face, where a single value was expected. The second issue may be my fault, so if there is a setting I should change on my end, apologies and I'll set said setting. Basically, there is a cutoff value whereby node.js will insert newlines into the results. This was incredibly frustrating as what was turning into a decent looking table would suddenly become garbage. In both cases, I did not add a test file. If it is enough to just copy an existing test file and trim it down to just these two items, I can certainly do that. Finally, apologies if I am doing this incorrectly. I tried following the directions on how to contribute as well as I could. Thanks! -josh p.s. The toy paper is here: http://taeric.github.io/DancingLinks.html Feedback welcome!
Re: [O] ox-reveal cannot export
Robert Eckl eck...@gmx.de writes: Hi, after a long time i recently played with ox-reveal (with org-mode release_8.3beta-167-g003edd) While exporting to reveal i get Symbol's function definition is void: org-html-format-headline--wrap What i'm missing? Well, you are missing that function :-) Nicolas removed it in commit c9ca0b6df86de13a5302b5a3c955fb2fb1023d36 a couple of days ago. It's still in the maint branch, so you might want to switch to that in the meantime, if you want to continue experimenting with the reveal exporter. Nick
[O] (Maybe) enhance `org-element-src-block-interpreter'?
Hi, a slight enhancement: #+begin_src emacs-lisp (defun tj/src-block-interpreter (src-block contents) Interpret SRC-BLOCK element as Org syntax. CONTENTS is nil. (let ((lang (org-element-property :language src-block)) (switches (org-element-property :switches src-block)) (params (org-element-property :parameters src-block)) (headers (org-element-property :header src-block)) (value (let ((val (org-element-property :value src-block))) (cond ((or org-src-preserve-indentation (org-element-property :preserve-indent src-block)) val) ((zerop org-edit-src-content-indentation) val) (t (let ((ind (make-string org-edit-src-content-indentation ?\s))) (replace-regexp-in-string \\(^\\)[ \t]*\\S- ind val nil nil 1)) packed-headers) (concat (format %s#+BEGIN_SRC%s\n (progn (while headers (setq packed-headers (concat (format #+HEADER: %s\n (pop headers)) packed-headers))) (or packed-headers )) (concat (and lang (concat lang)) (and switches (concat switches)) (and params (concat params (org-escape-code-in-string value) ;; (save-match-data ;; (if (looking-at ^$) \n)) #+END_SRC))) #+end_src #+results: : tj/src-block-interpreter Parse this src-block (with point at beg of block): , | M-: (setq ptree (org-element-at-point)) ` #+header: :results raw #+begin_src emacs-lisp (message hello world) #+end_src #+results: hello world Then evaluate #+begin_src emacs-lisp (org-element-src-block-interpreter ptree nil) #+end_src #+results: : #+BEGIN_SRC emacs-lisp : (message hello world) : #+END_SRC #+begin_src emacs-lisp (tj/src-block-interpreter ptree nil) #+end_src #+results: : #+HEADER: :results raw : #+BEGIN_SRC emacs-lisp : (message hello world) : #+END_SRC -- cheers, Thorsten
Re: [O] Problems with org-export: byte-code: Invalid function: 0
Martin Beck elwood...@web.de writes: I'm doing my first steps trying to publish my org-mode content to HTML and it seems that there is something that causes problems with publishing. I tracked it down to this paragraph which seems to cause the problem: _ Connect at AIIM is a news communication provided by AIIM. 2014 AIIM - The Global Community of Information Professionals 1100 Wayne Avenue, Suite 1100, Silver Spring, MD 20910 USA Phone: 301-587-8202 resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/call_skype_logo.png301-587-8202 The IT Centre, 8 Canalside, Lowesmoor Wharf, Worcestershire, WR1 2RR UK Tel: +44 (0) 1905 727600 resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/call_skype_logo.png+44 (0) 1905 727600 _ (in my org-mode document, the linebreaks are visible only as ^M) Can somebody tell me what's the problem here? When trying C-c C-e h o I get this error message: Invalid function: 0 This may be a problem in your setup. Please set the variable debug-on-error to t, try to publish and post the resulting backtrace. Alternatively, try restarting your emacs: it may have acquired a setting inadvertently that causes problems. You might also try without most of your customizations (emacs -q), but loading a minimal file that just sets up org and the publishing project. Nick
[O] (Maybe) refactor `org-babel-insert-header-arg'?
Hi, maybe make parts of `org-babel-insert-header-arg' reusable by a refactoring like this? ;; refactored org-babel-insert-header-arg (part 1) #+begin_src emacs-lisp (defun tj/prompt-for-header-arg (optional lang) Prompt for header argument selecting from lists of common args and values. Optional argument LANG specifies the Org Babel language. (interactive) (let* ((curr-block (ignore-errors (org-babel-goto-src-block-head) (org-element-src-block-parser (point-max) nil))) (lang (or lang (condition-case err (org-element-property :language curr-block) (error Cannot determine language (lang-headers (intern (concat org-babel-header-args: lang))) (headers (org-babel-combine-header-arg-lists org-babel-common-header-args-w-values (when (boundp lang-headers) (eval lang-headers (header-arg (org-icompleting-read Header Arg: (mapcar (lambda (header-spec) (symbol-name (car header-spec))) headers))) (vals (cdr (assoc (intern header-arg) headers))) (value (cond ((eq vals :any) (read-from-minibuffer value: )) ((listp vals) (mapconcat (lambda (group) (let ((arg (org-icompleting-read Value: (cons default (mapcar #'symbol-name group) (if (and arg (not (string= default arg))) (concat arg ) ))) vals ) (cons header-arg value))) #+end_src ;; refactored org-babel-insert-header-arg (part 2) #+begin_src emacs-lisp (defun tj/insert-header-arg (header-arg optional value keyword-p) Insert HEADER-ARG with (optional) VALUE on header line. If optional arg KEYWORD-P is non-nil, insert as separate '#+header:' line on top of src-block. (when (ignore-errors (org-babel-goto-src-block-head)) (if keyword-p (progn (newline) (forward-line -1) (insert (format #+header: :%s%s header-arg (if value (concat value) (save-excursion (goto-char (point-at-eol)) (unless (= (char-before (point)) ?\ ) (insert )) (insert : header-arg) (when value (insert value)) #+end_src -- cheers, Thorsten
Re: [O] Cannot build documentation (release_8.3beta-155-g82b64d)
Hello. Started another clean cloned local repository to try building the documentation again and the errors persist. 'M-x org-version' gives: Org-mode version 8.3beta (release_8.3beta-167-g003edd @ /usr/local/share/emacs/site-lisp/org/). I installed everything except documentation. Here's the output of 'make doc': make -C doc info make[1]: Entering directory `/home/vicente/descarga/org-master-git-20140804/org-mode/doc' makeinfo --no-split org.texi -o org /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:16382: Cross reference to nonexistent node `Using multiple #+TBLFM lines' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:16073: Cross reference to nonexistent node `External links' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:15543: Cross reference to nonexistent node `Code evaluation security' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:15284: Cross reference to nonexistent node `Property inheritance' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14501: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14219: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14214: Cross reference to nonexistent node `Code evaluation security' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14164: Cross reference to nonexistent node `Library of Babel' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:13386: Cross reference to nonexistent node `HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12927: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12214: Cross reference to nonexistent node `Column width and alignment' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12095: Cross reference to nonexistent node `Configuring a document converter' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:11247: Cross reference to nonexistent node `Radio targets' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10783: Cross reference to nonexistent node `Export settings' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10499: Cross reference to nonexistent node `In-buffer settings' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10344: Cross reference to nonexistent node `Literal examples' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10173: Cross reference to nonexistent node `Math formatting in HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10013: Cross reference to nonexistent node `Generating an index' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9918: Cross reference to nonexistent node `Text areas in HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9846: Cross reference to nonexistent node `Plain lists' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9609: Cross reference to nonexistent node `Document structure' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8779: Cross reference to nonexistent node `Filtering/limiting agenda items' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8134: Cross reference to nonexistent node `Property inheritance' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8012: Cross reference to nonexistent node `Agenda commands' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:7816: Cross reference to nonexistent node `Agenda commands' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:7719: Cross reference to nonexistent node `Matching tags and properties' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:7197: Cross reference to nonexistent node
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Hi Florian, * On 2014-08-05 at 11:32, Florian Adamsky wrote: This code looks useful and an improvement over the previous setup I was using. https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01218.html Can you explain what else is needed for your code to work? Currently I have No, just run M-x org-archive-subtree-hierarchical. I tried the code with the latest org-mode version 8.3beta and with emacs -q and in both cases it works without problems. However, if you set the following variable to the new function, it should work with the default keybinding for org-archive: #+BEGIN_SRC emacs-lisp (setq org-archive-default-command 'org-archive-subtree-hierarchical) #+END_SRC If you have any trouble, please give me a note. You are correct that M-x org-archive-subtree-hierarchical works just fine. But I can't get it to work with the default keybinding as you show above. C-c C-x C-s is my (the?) default keybinding for archiving trees/subtrees. Is this the correct keybinding? When I describe that with C-h k C-c C-x C-s I see: C-c C-x C-s runs the command org-advertized-archive-subtree, which is an alias for `org-archive-subtree' in `org.el'. It is bound to C-c C-x C-s, menu-bar Org Archive Move Subtree to Archive file. (org-advertized-archive-subtree optional FIND-DONE) So I have tried mapping all of those to call the new function: (setq org-archive-default-command 'org-archive-subtree-hierarchical) (setq org-archive-subtree 'org-archive-subtree-hierarchical) (setq org-advertized-archive-subtree 'org-archive-subtree-hierarchical) But it still doesn't work. I can bind org-archive-subtree-hierarchical directly to C-c C-x C-s, which will work. Is that the correct solution? Thanks, -k.
Re: [O] Cannot build documentation (release_8.3beta-155-g82b64d)
Vicente Vera vicente...@gmail.com writes: Hello. Started another clean cloned local repository to try building the documentation again and the errors persist. 'M-x org-version' gives: Org-mode version 8.3beta (release_8.3beta-167-g003edd @ /usr/local/share/emacs/site-lisp/org/). I installed everything except documentation. Here's the output of 'make doc': make -C doc info make[1]: Entering directory `/home/vicente/descarga/org-master-git-20140804/org-mode/doc' makeinfo --no-split org.texi -o org /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:16382: Cross reference to nonexistent node `Using multiple #+TBLFM lines' (perhaps incorrect sectioning?). ... I can't reproduce it. What version of makeinfo are you using? Mine says: , | $ makeinfo --version | makeinfo (GNU texinfo) 5.1 | | Copyright (C) 2013 Free Software Foundation, Inc. | License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. ` Nick
Re: [O] Emacs-orgmode Digest, Vol 102, Issue 5
Salome S?dergran\ wrote: I'm looking for a way to make orgmode export quote signs to LaTeX's \enquote{}. On stackoverflow.com (1) I found a solution that uses (setq org-export-with-smart-quotes t) (add-to-list 'org-export-smart-quotes-alist .) but on my system I find neither the variable org-export-with-smart-quotes nor org-export-smartcodes-alist. Am I missing something or has the procedure been changed in the meanwhile? You don't use Org mode 8, don't you? Well, that'd explain... Best regards, Seb -- Sebastien Vauban With M-x org-version I get: Org-mode version 8.2.7b (8.2.7b-2-g798733-elpaplus @ /home/salome/.emacs.d/elpa/org-plus-contrib-20140721/) So the version ought to be ok. What else could be the reason for the missing variables? Best, Salome
Re: [O] numbering figure in html ?
2014-08-05 14:43 GMT+02:00 Nick Dokos ndo...@gmail.com: Yes, tables and source blocks handle captions in the HTML exporter, but special blocks (which #+(BEGIN|END)_FIGURE is) don't. Captions for special blocks *are* handled correctly in the latex exporter. This shouldn't be too hard to fix: just copy the caption code from org-html-table to org-html-special-block, but I won't have time to try it today. And then there is the question of other exporters... Dear Nick, I leave the question open to developers; I am not able to find the solution by myself, I have to much to learn. Sorry. It is not a hurry, and it is not a real problem for me. I hope that this email will help to improve org-mode again. Best wishes Jo.
Re: [O] Emacs-orgmode Digest, Vol 102, Issue 5
Salome Södergran\ salome.soederg...@gmx.ch writes: Salome S?dergran\ wrote: I'm looking for a way to make orgmode export quote signs to LaTeX's \enquote{}. On stackoverflow.com (1) I found a solution that uses (setq org-export-with-smart-quotes t) (add-to-list 'org-export-smart-quotes-alist .) but on my system I find neither the variable org-export-with-smart-quotes nor org-export-smartcodes-alist. Am I missing something or has the procedure been changed in the meanwhile? You don't use Org mode 8, don't you? Well, that'd explain... Best regards, Seb -- Sebastien Vauban With M-x org-version I get: Org-mode version 8.2.7b (8.2.7b-2-g798733-elpaplus @ /home/salome/.emacs.d/elpa/org-plus-contrib-20140721/) So the version ought to be ok. What else could be the reason for the missing variables? The variable is defined in ox.el. Try M-x locate-library RET ox RET and if that shows the right provenance, try M-x load-library RET ox-le RET and see if the variable is defined. But note that you *should not have* to do this: it should work right off the bat. If the problem persists (even after you restart emacs), I would suspect a mixed installation (search the list for this). Nick
Re: [O] Cannot build documentation (release_8.3beta-155-g82b64d)
Vicente Vera writes: Hello. Started another clean cloned local repository to try building the documentation again and the errors persist. The error is quite likely on your side. What is the output of which makeinfo file `which makeinfo` makeinfo --version as I suspect that you pick up some makeinfo along your PATH that really is a wrapper script (or maybe a _really_ old version). 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] Archive subtrees hierarchical (keep the parent structure)
Dear Ken, On Tuesday, Aug 05 2014, Ken Mankoff mank...@gmail.com wrote: You are correct that M-x org-archive-subtree-hierarchical works just fine. But I can't get it to work with the default keybinding as you show above. C-c C-x C-s is my (the?) default keybinding for archiving trees/subtrees. Is this the correct keybinding? according to the documentation the default keybinding to archive the current entry is C-c C-x C-a. Could you try that instead? [...] Best -- Florian Adamsky http://florian.adamsky.it/
Re: [O] Archive subtrees hierarchical (keep the parent structure)
Yes that works perfectly. Not sure why I had memorized a different keystroke. Thank you! On Tue, Aug 5, 2014 at 1:46 PM, Florian Adamsky fa-orgm...@haktar.org wrote: Dear Ken, On Tuesday, Aug 05 2014, Ken Mankoff mank...@gmail.com wrote: You are correct that M-x org-archive-subtree-hierarchical works just fine. But I can't get it to work with the default keybinding as you show above. C-c C-x C-s is my (the?) default keybinding for archiving trees/subtrees. Is this the correct keybinding? according to the documentation the default keybinding to archive the current entry is C-c C-x C-a. Could you try that instead? [...] Best -- Florian Adamsky http://florian.adamsky.it/
Re: [O] R code block produces only partial output
Eric Schulte schulte.eric at gmail.com writes: Andreas Kiermeier andreas.kiermeier at gmail.com writes: On 4 August 2014 21:23, Eric Schulte schulte.eric at gmail.com wrote: Why are you setting the output type to graphics when you are trying to Hi Andreas, I can't reproduce your problem. I get the following from your minimal example when run in an Org-mode file, and from the command line. They are identical. Are you using the latest version of Org-mode? Best, Eric [snip] [Previously saved workspace restored] x - rnorm(100) y - quantile(x, probs=seq(0,1,0.1)) names(y) - as.character(c(0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1)) y 0 .1 .2 .3 .4 .5 -2.53624773 -1.30846042 -0.70659822 -0.43565010 -0.24318346 -0.01034625 .6 .7 .8 .9 1 0.24125644 0.49945059 0.92032314 1.36423669 2.83357915 Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? HTH, Chuck
Re: [O] R code block produces only partial output
Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: Andreas Kiermeier andreas.kiermeier at gmail.com writes: On 4 August 2014 21:23, Eric Schulte schulte.eric at gmail.com wrote: Why are you setting the output type to graphics when you are trying to Hi Andreas, I can't reproduce your problem. I get the following from your minimal example when run in an Org-mode file, and from the command line. They are identical. Are you using the latest version of Org-mode? Best, Eric [snip] [Previously saved workspace restored] x - rnorm(100) y - quantile(x, probs=seq(0,1,0.1)) names(y) - as.character(c(0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1)) y 0 .1 .2 .3 .4 .5 -2.53624773 -1.30846042 -0.70659822 -0.43565010 -0.24318346 -0.01034625 .6 .7 .8 .9 1 0.24125644 0.49945059 0.92032314 1.36423669 2.83357915 Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? I don't know. The Babel R support needs a dedicated maintainer. This was a role Dan Davison originally filled. I've partially filled in since, but as a *very* light R user I'm not the best person. HTH, Chuck -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)
Re: [O] Repeat task a fixed number of times
Bastien b...@gnu.org writes: SabreWolfy sabrewo...@gmail.com writes: How do I indicate that the event should be repeated monthly for 6 months only? Time-shift? FWIW, this is a frequently requested feature and I will propose something other than cloning headlines for the next major Org version. I entirely agree. Thus far I have been pulling my hair out getting diary sexp statements to work. They do, but unless you understand how to write them, it is time consuming searching the web for instructions. Thanks, Aric -- ~O /\_, ###-\ |_ (*) / (*)
Re: [O] R code block produces only partial output
On Tue, Aug 5, 2014 at 2:02 PM, Eric Schulte schulte.e...@gmail.com wrote: Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: [snip] Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? I don't know. I'm not sure either, but was curious if someone could translate the regex into plain language. Maybe I could observe some typical outputs and chime in since I use R regularly? From noob-level regex stuff, it's looking for a new line followed by some number of spaces, a and at least one period and numbers? If I'm recalling correctly, I also noticed that babel spit out the output from loading the rms package on the first run with :session, but I don't think it did it with non-session. I'll have to try that again to be sure. Re-running the block removed the package load message. John The Babel R support needs a dedicated maintainer. This was a role Dan Davison originally filled. I've partially filled in since, but as a *very* light R user I'm not the best person. HTH, Chuck -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)
[O] Agenda, Deadline, DONE
Greetings. I'm new to OrgMode, and I'm still working my way through. It has a lot of the old functionality and features of the PalmPilot Bonsai program, which I miss terribly, and I hope you take that as a compliment. Anyway, I'm not sure if I'm doing something wrong or I just don't yet understand the OrgMode way. I have a TODO that looks like this (I had to pull out the details, of course): ** DONE task number 3 SCHEDULED: 2014-07-30 - State DONE from TODO [2014-07-30 Wed 14:47] DEADLINE: 2014-08-08 In my Agenda, I see this: Friday 8 August 2014 file: Deadline: DONE task number 3 It seems to me that, if the task is already completed, then I no longer care about the deadline. It's done. So I'd rather not see it in the Agenda. I guess I could just remove the deadline from the task itself, but I kinda like having the historical info (that I finished a week and a half early). Is there a way to remove deadlines for DONE tasks from the Agenda? hymie! hy...@lactose.homelinux.net
Re: [O] R code block produces only partial output
John Hendy jw.he...@gmail.com writes: On Tue, Aug 5, 2014 at 2:02 PM, Eric Schulte schulte.e...@gmail.com wrote: Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: [snip] Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? I don't know. I'm not sure either, but was curious if someone could translate the regex into plain language. Maybe I could observe some typical outputs and chime in since I use R regularly? From noob-level regex stuff, it's looking for a new line followed by some number of spaces, a and at least one period and numbers? It says[fn:1] ^ anchor the match at the beginning of the line \\([ ]*[+\\.][ ]?\\)+ match any number of spaces followed by one of the three characters , + or . (a literal period) followed by 0 or 1 space. If there is a match, remember what is matched as group 1 (that's what the escaped parentheses \\(...\\) do). Match one or more of these (that's what the + at the end does). \\([[0-9]+\\|[ ]\\)match either an emtpy space or a sequence of one or more of the characters [ or 0-9 i.e. an opening square bracket or a digit. remember what is matched as group 2. The latter will match [0[1[2[3 e.g. which does not sound right. The best way to find out what a regexp will match is to start with a buffer containing example strings that you are trying to match and example string that you are trying *not* to match, then invoke M-x regexp-builder and paste the regexp inside the empty set of quotes, then check the highligted matches to see if they agree with your expectations. Footnotes: [fn:1] Crossing fingers and toes, hoping I've got it right... -- Nick
Re: [O] R code block produces only partial output
Nick Dokos ndo...@gmail.com writes: John Hendy jw.he...@gmail.com writes: On Tue, Aug 5, 2014 at 2:02 PM, Eric Schulte schulte.e...@gmail.com wrote: Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: [snip] Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? I don't know. I'm not sure either, but was curious if someone could translate the regex into plain language. Maybe I could observe some typical outputs and chime in since I use R regularly? From noob-level regex stuff, it's looking for a new line followed by some number of spaces, a and at least one period and numbers? It says[fn:1] ^ anchor the match at the beginning of the line \\([ ]*[+\\.][ ]?\\)+ match any number of spaces followed by one of the three characters , + or . (a literal period) followed by 0 or 1 space. If there is a match, remember what is matched as group 1 (that's what the escaped parentheses \\(...\\) do). Match one or more of these (that's what the + at the end does). \\([[0-9]+\\|[ ]\\)match either an emtpy space or a sequence of one or more of the characters [ or 0-9 i.e. an opening square bracket or a digit. remember what is matched as group 2. The latter will match [0[1[2[3 e.g. which does not sound right. The best way to find out what a regexp will match is to start with a buffer containing example strings that you are trying to match and example string that you are trying *not* to match, then invoke M-x regexp-builder and paste the regexp inside the empty set of quotes, then check the highligted matches to see if they agree with your expectations. Footnotes: [fn:1] Crossing fingers and toes, hoping I've got it right... Bah, got it wrong: backslash is not special within a character class, so [+\\.] matches or + or \ or . (a period - which is also not special in a character class). I'm not sure what the regexp is supposed to match, but I'm almost sure that it is wrong :-) -- Nick
Re: [O] Agenda, Deadline, DONE
hymie! hy...@lactose.homelinux.net writes: Greetings. I'm new to OrgMode, and I'm still working my way through. It has a lot of the old functionality and features of the PalmPilot Bonsai program, which I miss terribly, and I hope you take that as a compliment. Welcome. I have a TODO that looks like this (I had to pull out the details, of course): ** DONE task number 3 SCHEDULED: 2014-07-30 - State DONE from TODO [2014-07-30 Wed 14:47] DEADLINE: 2014-08-08 In my Agenda, I see this: Friday 8 August 2014 file: Deadline: DONE task number 3 It seems to me that, if the task is already completed, then I no longer care about the deadline. It's done. So I'd rather not see it in the Agenda. I guess I could just remove the deadline from the task itself, but I kinda like having the historical info (that I finished a week and a half early). Is there a way to remove deadlines for DONE tasks from the Agenda? I also like to keep the historical info, but in order to keep my tasks.org file clean (and save some time while building the agenda) I keep it in a separate file. Probably the simplest way is something like this: #+BEGIN_SRC emacs-lisp (setq org-archive-location ~/org/archive.org::) #+END_SRC Now when you do not want to see something anymore, you can press C-c C-x C-a from the org file or the agenda to move the item to the archive.org file. Check the documentation of org-archive-location or (info (org) Archiving) for more details. Best, -- Jorge.
Re: [O] Agenda, Deadline, DONE
hymie! hymie at lactose.homelinux.net writes: Is there a way to remove deadlines for DONE tasks from the Agenda? Add this to your .emacs: ,- | (setq org-agenda-skip-deadline-if-done nil) `-
Re: [O] Agenda, Deadline, DONE
Correction: ,- | (setq org-agenda-skip-deadline-if-done t) `-
Re: [O] Agenda, Deadline, DONE
In our last episode, the evil Dr. Lacto had captured our hero, SabreWolfy sabrewo...@gmail.com, who said: (setq org-agenda-skip-deadline-if-done t) Perfect! Thanks! --hymie!http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net
Re: [O] org-ref in action
Hi, it got moved in a re-organization to https://github.com/jkitchin/jmax/blob/master/org/org-ref.org. Sorry for the inconvenience! Xebar Saram zelt...@gmail.com writes: Hi all the github link seems dead, anyone knows where one could get and try org-ref from? z On Mon, Jun 30, 2014 at 2:27 PM, Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com wrote: Thanks Eric, it works now, with the latest version of org-mode. Best wishes Jo. 2014-06-30 12:22 GMT+02:00 Eric Schulte schulte.e...@gmail.com: Thanns to the default cite action, I get for example in my org file: [[cite:(119–136)johansson36:_minim_formal]] and it creates no reference at al, because via the export I get: \cite{(119–136)johansson36:_minim_formal} Using the latest version of Org-mode from the git repository, this is a very new feature and requires usage of the git version of Org-mode, I am seeing the desired behavior. After simply requiring ox-bibtex, the following * H1 [[cite:(119–136)johansson36:_minim_formal]] exports to \begin{document} \maketitle \tableofcontents \section{H1} \label{sec-1}~\cite[119–136]{johansson36:_minim_formal} % Emacs 24.4.50.2 (Org mode beta_8.3) \end{document} As expected. I hope this helps, Eric -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw) -- --- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
[O] How to change color of (part of) agenda header
Hello, I'm trying to get part of the agenda header in another color, here TODAY: --8---cut here---start-8--- (add-to-list 'org-agenda-custom-commands `(f Today (;; list of all TODO entries with deadline today (tags-todo DEADLINE=\+0d\ ((org-agenda-overriding-header (concat DUE #(TODAY 0 4 (face (:foreground red) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notdeadline) ((org-agenda-format-date ))) t) --8---cut here---end---8--- The goal is to make what's unique and different from the next agenda blocks very outstanding. Though, it does not work: text is simply copied, as if text properties did not exist. Am I missing something, or writing it in a buggy way? Best regards, Seb PS- I tried strings with `propertize' as well, with no more success. -- Sebastien Vauban
[O] [PATCH] org.el: make org-paragraph-fill ignore \[...\] regions starting and ending a line
The current proposal is to make them elements instead of objects in Org syntax (i.e, a `latex-environment' instead of a `latex-fragment'). In a nutshell: - Pros: + conform to LaTeX intent, + impossible to fill. - Cons: - documents containing \[...\] mid-line will be broken (such constructs will not be recognized anymore). ... If this is always the case for you, you can fix this behavior by always putting it in a new paragraph and using a filter. OK, I understand that the Cons above is a serious issue and nobody wants it. For this reason I went back to my original idea and modified the `org-fill-paragraph' function. This provides the two Pros above without having to introduce the undesired Cons. The behavior is a follows: - if \[...\] is inline, behave as before. - if \[ is the first non space character of a line and the closing \] is the last non space character of a line (possibly spanning several lines), then do not fill this region of the paragraph. Attached you find a patch with the proposed modification. I would greatly appreciate if you could consider it for inclusion in org-mode and provide feedback. I understand that if you are willing to make use of this patch, I will have to sign a copyright assignment form. This is not a problem, but please do not make me waste time with forms if you do not want to include the patch in org-mode. Please provide instructions on how to proceed. Regards, Federico. 0001-org.el-make-org-paragraph-fill-ignore-.-regions-star.patch Description: Binary data
Re: [O] How to change color of (part of) agenda header
Sebastien Vauban sva-n...@mygooglest.com writes: Hello, I'm trying to get part of the agenda header in another color, here TODAY: (add-to-list 'org-agenda-custom-commands `(f Today (;; list of all TODO entries with deadline today (tags-todo DEADLINE=\+0d\ ((org-agenda-overriding-header (concat DUE #(TODAY 0 4 (face (:foreground red) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notdeadline) ((org-agenda-format-date ))) t) The goal is to make what's unique and different from the next agenda blocks very outstanding. Though, it does not work: text is simply copied, as if text properties did not exist. Am I missing something, or writing it in a buggy way? The limits should be 0 and 5 to get the whole word, but that's not the problem here: if you do C-c a f to display the agenda and then do C-u C-x = on (say) the T of Today, you will see that the face is org-agenda-structure. Doing a grep for that in the org lisp directory will quickly lead you to this: , | (if org-agenda-overriding-header | (insert (org-add-props (copy-sequence org-agenda-overriding-header) | nil 'face 'org-agenda-structure) \n) ` so it doesn't matter what face property the header had to begin with: what is inserted into the buffer is given a different face property. -- Nick
Re: [O] R code block produces only partial output
On Tue, 5 Aug 2014, John Hendy wrote: On Tue, Aug 5, 2014 at 2:02 PM, Eric Schulte schulte.e...@gmail.com wrote: Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: [snip] Eric, As noted by Andreas and John this is a problem for session output. org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? I don't know. I'm not sure either, but was curious if someone could translate the regex into plain language. Maybe I could observe some typical outputs and chime in since I use R regularly? From noob-level regex stuff, it's looking for a new line followed by some number of spaces, a and at least one period and numbers? One of or + or . and then some more. You can get the 'English' at http://www.myezapp.com/apps/dev/regexp/show.ws But a better approach IMO is to open an R transcript, then M-x regex-builder and paste that regex into the window in place of the . The matches should highlight. Or use M-x occur (and edit the string to rid quotes and extra backslashes). But that will not show what you are missing. Chuck
Re: [O] Cannot build documentation (release_8.3beta-155-g82b64d)
Yes, i had an old makeinfo (4.13) that lives in the debian wheezy repository. Just now got the latest version and it worked. Didn't thought about this since some commits ago the documentation was built just fine with makeinfo 4.13. Thank you very much Nick Achim. 2014-08-05 12:33 GMT-04:00 Vicente Vera vicente...@gmail.com: Hello. Started another clean cloned local repository to try building the documentation again and the errors persist. 'M-x org-version' gives: Org-mode version 8.3beta (release_8.3beta-167-g003edd @ /usr/local/share/emacs/site-lisp/org/). I installed everything except documentation. Here's the output of 'make doc': make -C doc info make[1]: Entering directory `/home/vicente/descarga/org-master-git-20140804/org-mode/doc' makeinfo --no-split org.texi -o org /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:16382: Cross reference to nonexistent node `Using multiple #+TBLFM lines' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:16073: Cross reference to nonexistent node `External links' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:15543: Cross reference to nonexistent node `Code evaluation security' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:15284: Cross reference to nonexistent node `Property inheritance' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14501: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14219: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14214: Cross reference to nonexistent node `Code evaluation security' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:14164: Cross reference to nonexistent node `Library of Babel' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:13386: Cross reference to nonexistent node `HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12927: Cross reference to nonexistent node `Evaluating code blocks' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12214: Cross reference to nonexistent node `Column width and alignment' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:12095: Cross reference to nonexistent node `Configuring a document converter' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:11247: Cross reference to nonexistent node `Radio targets' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10783: Cross reference to nonexistent node `Export settings' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10499: Cross reference to nonexistent node `In-buffer settings' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10344: Cross reference to nonexistent node `Literal examples' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10173: Cross reference to nonexistent node `Math formatting in HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:10013: Cross reference to nonexistent node `Generating an index' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9918: Cross reference to nonexistent node `Text areas in HTML export' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9846: Cross reference to nonexistent node `Plain lists' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:9609: Cross reference to nonexistent node `Document structure' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8779: Cross reference to nonexistent node `Filtering/limiting agenda items' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8134: Cross reference to nonexistent node `Property inheritance' (perhaps incorrect sectioning?). /home/vicente/descarga/org-master-git-20140804/org-mode/doc//org.texi:8012: Cross reference to nonexistent node `Agenda commands' (perhaps incorrect sectioning?).
[O] Org equivalent to \chapter*
I'm sure this has been asked before, but I can't seem to find it. Is there an org markup that produces a starred latex heading? In a book, for example, I want the Preface to be at chapter level, but not included in the numbering. Same for HTML export, of course. Thanks for any pointers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:typh...@iptel.org
Re: [O] Org equivalent to \chapter*
Alan L Tyree alanty...@gmail.com writes: I'm sure this has been asked before, but I can't seem to find it. Is there an org markup that produces a starred latex heading? In a book, for example, I want the Preface to be at chapter level, but not included in the numbering. Same for HTML export, of course. ,[ C-h v org-latex-classes RET ] | org-latex-classes is a variable defined in `ox-latex.el'. | Its value is shown below. | | Documentation: | Alist of LaTeX classes and associated header and structure. | If #+LATEX_CLASS is set in the buffer, use its value and the | associated information. Here is the structure of each cell: | | (class-name | header-string | (numbered-section . unnumbered-section) | ...) | | The header string | - | | The HEADER-STRING is the header that will be inserted into the | LaTeX file. It should contain the \documentclass macro, and | anything else that is needed for this setup. To this header, the | following commands will be added: | | - Calls to \usepackage for all packages mentioned in the | variables `org-latex-default-packages-alist' and | `org-latex-packages-alist'. Thus, your header definitions | should avoid to also request these packages. | | - Lines specified via #+LATEX_HEADER: and | #+LATEX_HEADER_EXTRA: keywords. | | If you need more control about the sequence in which the header | is built up, or if you want to exclude one of these building | blocks for a particular class, you can use the following | macro-like placeholders. | | [DEFAULT-PACKAGES] \usepackage statements for default packages | [NO-DEFAULT-PACKAGES] do not include any of the default packages | [PACKAGES] \usepackage statements for packages | [NO-PACKAGES] do not include the packages | [EXTRA] the stuff from #+LATEX_HEADER(_EXTRA) | [NO-EXTRA] do not include #+LATEX_HEADER(_EXTRA) stuff | | So a header like | | \documentclass{article} | [NO-DEFAULT-PACKAGES] | [EXTRA] | \providecommand{\alert}[1]{\textbf{#1}} | [PACKAGES] | | will omit the default packages, and will include the | #+LATEX_HEADER and #+LATEX_HEADER_EXTRA lines, then have a call | to \providecommand, and then place \usepackage commands based | on the content of `org-latex-packages-alist'. | | If your header, `org-latex-default-packages-alist' or | `org-latex-packages-alist' inserts \usepackage[AUTO]{inputenc}, | AUTO will automatically be replaced with a coding system derived | from `buffer-file-coding-system'. See also the variable | `org-latex-inputenc-alist' for a way to influence this mechanism. | | Likewise, if your header contains \usepackage[AUTO]{babel}, | AUTO will be replaced with the language related to the language | code specified by `org-export-default-language', which see. Note | that constructions such as \usepackage[french,AUTO,english]{babel} | are permitted. | | The sectioning structure | | | The sectioning structure of the class is given by the elements | following the header string. For each sectioning level, a number | of strings is specified. A %s formatter is mandatory in each | section string and will be replaced by the title of the section. | | Instead of a cons cell (numbered . unnumbered), you can also | provide a list of 2 or 4 elements, | | (numbered-open numbered-close) | | or | | (numbered-open numbered-close unnumbered-open unnumbered-close) | | providing opening and closing strings for a LaTeX environment | that should represent the document section. The opening clause | should have a %s to represent the section title. | | Instead of a list of sectioning commands, you can also specify | a function name. That function will be called with two | parameters, the (reduced) level of the headline, and a predicate | non-nil when the headline should be numbered. It must return | a format string in which the section title will be added. | | You can customize this variable. | | Value: ((koma-book \\documentclass{scrbook} | (\\part{%s} . \\part*{%s}) | (\\chapter{%s} . \\chapter*{%s}) | (\\section{%s} . \\section*{%s}) | (\\subsection{%s} . \\subsection*{%s}) | (\\subsubsection{%s} . \\subsubsection*{%s}) | (\\paragraph{%s} . \\paragraph*{%s}) | (\\subparagraph{%s} . \\subparagraph*{%s})) | (koma-article \\documentclass{scrartcl} | (\\section{%s} . \\section*{%s}) | (\\subsection{%s} . \\subsection*{%s}) | (\\subsubsection{%s} . \\subsubsection*{%s}) | (\\paragraph{%s} . \\paragraph*{%s}) | (\\subparagraph{%s} . \\subparagraph*{%s})) | (article \\documentclass[11pt]{article} | (\\section{%s} . \\section*{%s}) | (\\subsection{%s} . \\subsection*{%s}) | (\\subsubsection{%s} . \\subsubsection*{%s}) | (\\paragraph{%s} . \\paragraph*{%s}) | (\\subparagraph{%s} . \\subparagraph*{%s})) | (report \\documentclass[11pt]{report} | (\\part{%s} . \\part*{%s}) | (\\chapter{%s} . \\chapter*{%s}) |
Re: [O] R code block produces only partial output
On 6 August 2014 03:35, Charles Berry ccbe...@ucsd.edu wrote: [snip] org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. This does not match the ` 0', but matches the ` .6' in the output you show above, so if that had been in a session, all the output up to and including the '.' before the '6' would be clipped by the following (substring line (match-end 1)) as Andreas output showed. Deleting the \\. fixes Andreas case, but what are the circumstances requiring the \\. ? Thanks Charles for finding this. I do use R quite a bit, and I can only think of (at beginning of the line) as the command prompt, along with + (at beginning of the line) as a continuation prompt for multi-line commands. I don't know what \ or . provide (I don't think this has changed over the various R versions) . A complication might be that the user can change the command prompt (and continuation prompt) to something else they like ( see here: http://cran.r-project.org/doc/manuals/r-release/R-intro.html#Customizing-the-environment ). For the time being I've taken the \\. out of my local version of ob-R.el (then byte compiled and loaded) and it seems to work fine. Maybe this is a question for the ESS developers who use R extensively and probably might be able to provide some more definitive guidance on this than I can? Thanks, Andreas
Re: [O] [BUG] src_blocks - :results raw and replace don't work together
Eric Schulte schulte.e...@gmail.com writes: In general checking the manual before posting to the ML is a good idea. You (voluntarily) write a meaningless one-liner and then complain I wasted 10sec of you lifetime by not ReadingTFM - come on ... -- cheers, Thorsten
Re: [O] R code block produces only partial output
On Tue, 5 Aug 2014, Andreas Kiermeier wrote: On 6 August 2014 03:35, Charles Berry ccbe...@ucsd.edu wrote: [snip] org-babel-R-evaluate-session uses (string-match ^\\([ ]*[+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\) line) to find the start of R output in the session. [snip] Thanks Charles for finding this. I do use R quite a bit, and I can only think of (at beginning of the line) as the command prompt, along with + (at beginning of the line) as a continuation prompt for multi-line commands. I don't know what \ or . provide (I don't think this has changed over the various R versions) . A complication might be that the user can change the command prompt (and continuation prompt) to something else they like ( see here: http://cran.r-project.org/doc/manuals/r-release/R-intro.html#Customizing-the-environment ). For the time being I've taken the \\. out of my local version of ob-R.el (then byte compiled and loaded) and it seems to work fine. Maybe this is a question for the ESS developers who use R extensively and probably might be able to provide some more definitive guidance on this than I can? Here is the docstring from ESS's inferior-S-prompt: inferior-S-prompt is a variable defined in `ess-custom.el'. Its value is []a-zA-Z0-9.[]*\\([+.] \\)* Documentation: Regexp used in S and R inferior and transcript buffers for prompt navigation. Customise it to make `comint-previous-prompt' quiqly navigate to interesting portions of the buffer. You can customize this variable. Note that there is a space *required* after the [+.], but the hard coded regex in `org-babel-R-evaluate-session' lets the space be optional. I am guessing the a-zA-Z stuff is there to strip 'Browse[1] ' prompts and such, which probably isn't an issue for babel. Just before the defcustom for inferior-S-prompt, I see this comment in ess-custom.el: ;; need to recognise + + + ;; and + . + in tracebug prompt Ha! The '.' seems to be for ess-tracebug. I am guessing that nobody will need to output tracebug sessions from babel. So maybe it is safe to delete the . after all - or at least require the space after it. Maybe the regex should be put in a defcustom. p.s. There is also `inferior-ess-prompt' which on my system is the same as inferior-S-prompt (in an R buffer - its buffer local) HTH, Chuck
Re: [O] Org equivalent to \chapter*
Thorsten Jolitz tjol...@gmail.com writes: Alan L Tyree alanty...@gmail.com writes: I'm sure this has been asked before, but I can't seem to find it. Is there an org markup that produces a starred latex heading? In a book, for example, I want the Preface to be at chapter level, but not included in the numbering. Same for HTML export, of course. ,[ C-h v org-latex-classes RET ] | org-latex-classes is a variable defined in `ox-latex.el'. | Its value is shown below. | ... ` How does org-latex-classes help with the OP's question? AFAIK, org-latex-classes works together with :section-numbers (org-export-with-section-numbers or #+OPTIONS: num: t|nil|N) to allow the first N [fn:1] levels of headlines to be numbered while lower levels are unnumbered. It does not allow selectively turning on/off numbers for a given level: they are either all on or all off. And it cannot possibly affect HTML export. To the best of my knowledge, the answer to the OP's question is that it cannot be done from org: you have to tweak the export output. Footnotes: [fn:1] If set to t, then N is set from the value of org-export-headline-levels (3 by default). -- Nick
Re: [O] publishing to gihub gh-pages branch
Bastien b...@gnu.org writes: regcl re...@channing.harvard.edu writes: Thanks, but I guess I didn't find the solutions you have mentioned. Could you please point them out? I'm thinking of this for example: http://orgmode.org/worg/org-tutorials/org-jekyll.html This is not a complete solution for the problem at hand, but a start for looking further. I'm just reading this, maybe this Python tool: https://github.com/davisp/ghp-import could be useful to the OP.
Re: [O] R code block produces only partial output
Hi Chuck, 2014ko abuztuak 5an, Charles C. Berry-ek idatzi zuen: [...] Here is the docstring from ESS's inferior-S-prompt: inferior-S-prompt is a variable defined in `ess-custom.el'. Its value is []a-zA-Z0-9.[]*\\([+.] \\)* Documentation: Regexp used in S and R inferior and transcript buffers for prompt navigation. Customise it to make `comint-previous-prompt' quiqly navigate to interesting portions of the buffer. You can customize this variable. Note that there is a space *required* after the [+.], but the hard coded regex in `org-babel-R-evaluate-session' lets the space be optional. I am guessing the a-zA-Z stuff is there to strip 'Browse[1] ' prompts and such, which probably isn't an issue for babel. Why doesn’t org just use the value of inferior-S-prompt? (which would then need to have the bit concatenated to the end that matches e.g. [1]). Another way of putting this might be “does the space that ESS requires ever turn up missing?” Just before the defcustom for inferior-S-prompt, I see this comment in ess-custom.el: ;; need to recognise + + + ;; and + . + in tracebug prompt Ha! The '.' seems to be for ess-tracebug. I am guessing that nobody will need to output tracebug sessions from babel. So maybe it is safe to delete the . after all - or at least require the space after it. Tracebug is on by default in ESS – C-h v ess-use-tracebug. Tracebug even has babel support: see e.g. line 148 in ess.tracebug.el https://github.com/emacs-ess/ESS/blob/4283f1304a54502c42707b6a4ba347703f0992dd/lisp/ess-tracebug.el#L148. Maybe the regex should be put in a defcustom. Why? The current mismatch between babel and ESS seems like a bug, but once that’s fixed I don’t see the use case for configurability here. (But maybe you have something in mind...) -- Aaron Ecay
Re: [O] R code block produces only partial output
Hi Eric, 2014ko abuztuak 5an, Eric Schulte-ek idatzi zuen: [...] I don't know. The Babel R support needs a dedicated maintainer. This was a role Dan Davison originally filled. I've partially filled in since, but as a *very* light R user I'm not the best person. I use babel’s R support (almost) every day for my work, and I know enough elisp to be getting along. I’ve not had tons of time for org/emacs development lately, but I think I can make enough time to maintain ob-R.el. There are others who could probably do just as good (if not indeed better) a job. Rainer’s name springs to mind as someone who has submitted several patches for ob-R lately, but there are probably others who I’m not calling to mind immediately. I’d be happy to share with other willing volunteers, either as a joint maintainership or (perhaps preferably) alternating the position in a 3- to 6-month rota. -- Aaron Ecay
Re: [O] (Maybe) enhance `org-element-src-block-interpreter'?
Hi Thorsten, 2014ko abuztuak 5an, Thorsten Jolitz-ek idatzi zuen: [...] Parse this src-block (with point at beg of block): , | M-: (setq ptree (org-element-at-point)) ` #+header: :results raw #+begin_src emacs-lisp (message hello world) #+end_src #+results: hello world Then evaluate #+begin_src emacs-lisp (org-element-src-block-interpreter ptree nil) #+end_src #+results: : #+BEGIN_SRC emacs-lisp : (message hello world) : #+END_SRC #+begin_src emacs-lisp (tj/src-block-interpreter ptree nil) #+end_src #+results: : #+HEADER: :results raw : #+BEGIN_SRC emacs-lisp : (message hello world) : #+END_SRC Indeed this seems like an improvement on the status quo. But other elements of org syntax (not just src blocks) can have a valid #+header (and indeed other affiliated keywords, like #+attr_latex), so the fix probably should be more general. -- Aaron Ecay
Re: [O] [FR] fill caption
Hi Bastien, 2014ko uztailak 27an, Bastien-ek idatzi zuen: Hi Aaron, Aaron Ecay aarone...@gmail.com writes: There’s a warning in the Org manual about using filladapt with org, but I’ve never noticed any problems. Interesting -- was it always like this? Or is it due to the recent improvements Nicolas made to the filling mechanisms? If the manual needs to remove the warning, let's do so. This warning was introduced on Sep 21 2012 in commit 6cb676f6. AFAIK, that predates Nicolas’s work. I will let you make the decision about whether the warning should be removed. -- Aaron Ecay
Re: [O] proposal to have ignoreheading tags/properties
Hi Mark, 2014ko abuztuak 2an, Mark Edgington-ek idatzi zuen: Hi Bastien, I've attached a patch for ox-extra which doesn't yet include the option for choosing specific tag names (the 'ignore' tag is currently hard-coded). Feel free to modify / commit it. Regards, Mark Thanks for the patch. It is committed (with light modifications). -- Aaron Ecay
Re: [O] #+header: :post - Symbol's value as variable is void: *this*
Hi Thorsten, 2014ko uztailak 27an, Thorsten Jolitz-ek idatzi zuen: Thorsten Jolitz tjol...@gmail.com writes: Hi List, whats wrong with this :post header arg: #+header: :post (format #+attr_latex :float :placement {c}{scale=.6}\n%s *this*) #+begin_src emacs-lisp (+ 2 2) #+end_src When I understand , | http://orgmode.org/manual/post.html ` correctly, *this* should hold the block results, but I get , | Symbol's value as variable is void: *this* ` This works: #+name: myconcat #+header: :var x= #+begin_src emacs-lisp (format Do %sx then quit x) #+end_src #+header: :post myconcat(x=*this*) #+begin_src emacs-lisp (+ 2 2) #+end_src #+results: : Do 4x then quit but how do I interpret the following sentence from the manual: , | This variable [*this*] may then be included in header argument forms | such as those used in var header argument specifications allowing | passing of results to other code blocks, or direct execution via Emacs | Lisp. ` What is meant by 'direct execution via Emacs Lisp' here? I think the above construct with two src-blocks is a bit heavy for the rather small task and hoped I could just give an Emacs Lisp expression containing *this* as value to the :post header arg, but apparently not? #+header: :post (format Do %sx then quit *this*) #+begin_src emacs-lisp (+ 2 2) #+end_src - eval: Symbol's value as variable is void: *this* The value of :post should be a babel call (in the same format as e.g. a #+call line), not an elisp form. If babel sees something that looks like elisp, it will attempt to ‘eval’ it when parsing the src block, before *this* is bound (which happens only upon execution, after parsing). -- Aaron Ecay
Re: [O] [BUG] :header-args+:
Hi Thorsten, 2014ko uztailak 6an, Thorsten Jolitz-ek idatzi zuen: Hi List, doing C-c C-c on the first src_block , | * A | ** B | :PROPERTIES: | :header-args: :var name=dblock-name | :header-args+: :var prms=dblock-params | :END: | | #+begin_src emacs-lisp | (format \n#+begin: %s %s\n#+end:\n name prms) | #+end_src | | #+name: dblock-params | #+begin_src emacs-lisp | foo | #+end_src | | #+name: dblock-name | #+begin_src emacs-lisp | bar | #+end_src ` You have an infinite regress. In order to compute the result of the dblock-name block, we need to resolve each of its :vars, which includes dblock-name, so we try to resolve the same block again... Converting the second and third src blocks to example blocks (leaving in place the #+names) gives what you seem to be aiming for. -- Aaron Ecay