Re: [O] How do I chain babel blocks with arguments?
Hi Eric, On 2014-04-20 03:41, Eric Schulte schulte.e...@gmail.com writes: --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src #+results: test4 : bar #+call: test4(z=BAZ) ^ The above line has an error, your z should be an x. I tried this change, and the argument is not taken into account: --8---cut here---start-8--- #+call: test4(x=BAZ) #+results: : bar --8---cut here---end---8--- I'm not sure I mentioned it earlier, but I found a workaround using `org-sbe'. Thanks, Alan
Re: [O] HTML export to just a single file?
Hi, sorry for the delay - easter weekend, and the machine in question is at work. On Apr 17, 2014, at 6:25 PM, Bastien wrote: Diez B. Roggisch de...@web.de writes: I don't want that. I don't want HELP/Toggle View headers, or navigational links. There is no HELP/Toggle header in the default configuration I don't need to navigate the document using key-commands. Just all the content laid out in a large document. Maybe you can show what is the output of C-c C-e h h with emacs -Q and what you don't want in there? This is the output: https://www.dropbox.com/s/ok8d6ig5gihhz6g/test.html This is the input: https://www.dropbox.com/s/e7vj13bl5qlisfn/test.org I started Emacs -Q. But it comes with it's own version of org-mode, so I had to do (setq load-path (cons ~/projects/private/emacs/lib/org/contrib/lisp load-path)) (setq load-path (cons ~/projects/private/emacs/lib/org/lisp load-path)) (require 'org) Then I opened my test.org, and did C-c C-e h o And I do not want any of the org-manager-JS-stuff in it. Cheers, Diez signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] HTML export to just a single file?
Hi Diez, Diez B. Roggisch de...@web.de writes: sorry for the delay - easter weekend, and the machine in question is at work. No problem, bug fixed, thanks. Next time please try to find the minimal file where the bug happens: that way you won't have to put example files in Dropbox (those files will not be accessible one day), and you would have been able to give more useful information on what is wrong. Thanks in advance, -- Bastien
Re: [O] org-hide-block-all
Hi David, David Masterson dsmaster...@gmail.com writes: Not sure what's going on here. I can use org-show-block-all to show all of an Org file, but using org-hide-block-all to reverse it seems to do nothing. `org-show-block-all' and `org-hide-block-all' apply to blocks and it works fine here. What is the proper way to open the outline completely and then close it completely up? Show all: M-x show-all RET Show overview: M-x org-overview RET C-u S-TAB will switch back to the startup display status. If you want blocks to be displayed when unfolding everything in the buffer, either you create a custom command that combines `show-all' and `org-show-block-all', or you simply rely on `org-cycle' (using TAB) and add `org-show-block-all' to `org-cycle-hook'. HTH, -- Bastien
Re: [O] showing up twice in customize group, Org Agenda Match View
Hi Brady, Brady Trainor algeb...@uw.edu writes: at bottom you will find two appearances of subgroup `Org Agenda Match View', which I assume is not desired result. Indeed, fixed, thanks, -- Bastien
Re: [O] end-of-defun odd behaviour in org mode
Hi Leo, Leo Liu sdl@gmail.com writes: Seems there is another bug after this change: C-M-e moves forward 1 and C-M-a moves back 0. org-back-to-heading does not fully satisfy the protocol of beginning-of-defun-function. Yeah -- I pushed a fix, relying back again on `org-forward-element' and `org-backward-element'. Thanks, -- Bastien
Re: [O] (org-insert-headline '(4)) should insert new headline before point
Hi York, thanks for coming back to this. York Zhao gtdplatf...@gmail.com writes: What I meant was that with one prefix argument, the command `org-insert-heading' should insert a new heading *before* the current heading, not after. Actually, this has little to do with the prefix argument: when at the beginning of a heading or a list item, M-RET should add a new heading/item *before* the current heading/item. This is fixed now, thanks for reporting this, PS: Using C-u M-RET will force `org-insert-heading-respect-content' to `t', i.e. add the headline at the end of the subtree. As Nicolas noted, this is the same than C-RET. -- Bastien
[O] org-open-file with xdg-open not working?
I'm trying to open files externally (via org-attach), with a mailcap that funnels most everything to xdg-open. I notice that doing this with org-open-file gives me: Running xdg-open /home/me/path/to/file.PDF...done But no actual open file. Doing a similar thing in gnus, with the `gnus-mime-view-part-externally' command, gives me a similar message about xdg-open, but then the file actually opens. Presumably that's because the gnus version (eventually `mm-display-external') calls xdg-open with `call-process' and org does it with `start-process-shell-command'. The first is synchronous, the second asynchronous, and I do remember seeing something on one of these lists about difficulties with xdg-open because the process returns before the file actually opens, or *doesn't* return, or some similar thing the details of which I'm forgetting. Have other people run into this difficulty? How are you solving it? Thanks! Eric
Re: [O] HTML export to just a single file?
Hi, On Apr 22, 2014, at 10:44 AM, Bastien wrote: Hi Diez, Diez B. Roggisch de...@web.de writes: sorry for the delay - easter weekend, and the machine in question is at work. No problem, bug fixed, thanks. Cool! Where can I get the fix? Next time please try to find the minimal file where the bug happens: that way you won't have to put example files in Dropbox (those files will not be accessible one day), and you would have been able to give more useful information on what is wrong. I could have attached them - but I didn't know the policies here. Also, I thought they were quite minimal ;) The .org is one KB ;) What could be stripped? Diez signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] HTML export to just a single file?
Hi Diez, Diez B. Roggisch de...@web.de writes: Cool! Where can I get the fix? From the maint branch of the Git repository. Or just wait for the new release. Next time please try to find the minimal file where the bug happens: that way you won't have to put example files in Dropbox (those files will not be accessible one day), and you would have been able to give more useful information on what is wrong. I could have attached them - but I didn't know the policies here. Also, I thought they were quite minimal ;) The .org is one KB ;) What could be stripped? Nearly everything :) I attach the minimal file that produces the bug. Had you send this, I'd have (and you'd have) immediately seen the problem comes from the empty #+INFOJS_OPT line. Anyway, next time! test.org Description: Lotus Organizer -- Bastien
[O] Org release 8.2.6
Dear all, I'm releasing Org 8.2.6. Thanks to everyone who contributed. Enjoy! -- Bastien
Re: [O] How do I chain babel blocks with arguments?
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Eric, On 2014-04-20 03:41, Eric Schulte schulte.e...@gmail.com writes: --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src #+results: test4 : bar #+call: test4(z=BAZ) ^ The above line has an error, your z should be an x. I tried this change, and the argument is not taken into account: --8---cut here---start-8--- #+call: test4(x=BAZ) #+results: : bar --8---cut here---end---8--- Sorry, that's because the x should be z. See the following. --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+RESULTS: test3 : foo #+name:test4 #+begin_src emacs-lisp :var y=test3(x=z) y #+end_src #+results: test4 : bar #+call: test4(y=BAZ) #+RESULTS: : BAZ --8---cut here---end---8--- I'm not sure I mentioned it earlier, but I found a workaround using `org-sbe'. Yes, I had noticed, but simple argument passing is also sufficient. Best, Thanks, Alan -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] end-of-defun odd behaviour in org mode
On 2014-04-22 10:51 +0200, Bastien wrote: Yeah -- I pushed a fix, relying back again on `org-forward-element' and `org-backward-element'. Thanks. seems to work fine now. Leo
Re: [O] latex export of \ce question
John Kitchin jkitc...@andrew.cmu.edu writes: Hi all, I often have to use the mhchem latex package to write chemical formulas, and I have teh following export issue. If I have this in an org file: \ce{ABO_3} \ce{ABO_{3-\delta}} this exports as \ce{ABO_3} \ce\{ABO$_{\text{3-}\delta}$\} The first one is fine, but the second one is not. The nested {} seems to mess it up. Is there a way to get this to export correctly? You could use snippets. If you prefer the macro syntax you could also use that. . . #+MACRO: ce @@latex:ce($1)@@ @@latex:ce{ABO_{3-\delta}}@@ {{{ce(ABO_{3-\delta})}}} -- This is the kind of tedious nonsense up with which I will not put
[O] putting a element +UWa in table
The first item in my table should say '+UWa'. This seems to upset the org table gods, who draw a line through my entry. How do I put such an item in a table without org table misinterpreting it?
Re: [O] How do I chain babel blocks with arguments?
Hi Eric, On 2014-04-22 13:30, Eric Schulte schulte.e...@gmail.com writes: Sorry, that's because the x should be z. See the following. #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+RESULTS: test3 : foo #+name:test4 #+begin_src emacs-lisp :var y=test3(x=z) y #+end_src #+results: test4 : bar #+call: test4(y=BAZ) #+RESULTS: : BAZ I'm afraid I'm not being clear: I want to use the result of `test3' in the computation done to test4. Intuitively, I want test4 to be something like: (lambda (x) (... (test3 x) ...)). This is why I was writing a header of the form: #+begin_src emacs-lisp :var x=foo :var y=test3(x) where x would be given by the call to the block, and y would only be used internally. Thanks, Alan
Re: [O] putting a element +UWa in table
Neal Becker ndbeck...@gmail.com writes: How do I put such an item in a table without org table misinterpreting it? You can't. -- Bastien
Re: [O] org-open-file with xdg-open not working?
Eric Abrahamsen e...@ericabrahamsen.net writes: I'm trying to open files externally (via org-attach), with a mailcap that funnels most everything to xdg-open. I notice that doing this with org-open-file gives me: Running xdg-open /home/me/path/to/file.PDF...done But no actual open file. Doing a similar thing in gnus, with the `gnus-mime-view-part-externally' command, gives me a similar message about xdg-open, but then the file actually opens. Presumably that's because the gnus version (eventually `mm-display-external') calls xdg-open with `call-process' and org does it with `start-process-shell-command'. The first is synchronous, the second asynchronous, and I do remember seeing something on one of these lists about difficulties with xdg-open because the process returns before the file actually opens, or *doesn't* return, or some similar thing the details of which I'm forgetting. Have other people run into this difficulty? Yes. How are you solving it? By not using xdg-open: I tend to add explicit entries in my .mailcap instead. -- Nick
Re: [O] org-open-file with xdg-open not working?
Nick Dokos ndo...@gmail.com writes: Eric Abrahamsen e...@ericabrahamsen.net writes: I'm trying to open files externally (via org-attach), with a mailcap that funnels most everything to xdg-open. I notice that doing this with org-open-file gives me: Running xdg-open /home/me/path/to/file.PDF...done But no actual open file. Doing a similar thing in gnus, with the `gnus-mime-view-part-externally' command, gives me a similar message about xdg-open, but then the file actually opens. Presumably that's because the gnus version (eventually `mm-display-external') calls xdg-open with `call-process' and org does it with `start-process-shell-command'. The first is synchronous, the second asynchronous, and I do remember seeing something on one of these lists about difficulties with xdg-open because the process returns before the file actually opens, or *doesn't* return, or some similar thing the details of which I'm forgetting. Have other people run into this difficulty? Yes. How are you solving it? By not using xdg-open: I tend to add explicit entries in my .mailcap instead. Well pooh... not the answer I was hoping for!
[O] beamer: need to add latex for footnote citation
If I edit the latex, this will do what I want: - Extend differential detection to exploit differences over different symbol intervals (spans) \footfullcite{gpdi} This adds a biblatex citation as a footnote on the frame. How can I do this within emacs org?
Re: [O] org-open-file with xdg-open not working?
Eric Abrahamsen e...@ericabrahamsen.net writes: Presumably that's because the gnus version (eventually `mm-display-external') calls xdg-open with `call-process' and org does it with `start-process-shell-command'. The first is synchronous, the second asynchronous, and I do remember seeing something on one of these lists about difficulties with xdg-open because the process returns before the file actually opens, or *doesn't* return, or some similar thing the details of which I'm forgetting. Have other people run into this difficulty? How are you solving it? I remember having problems which I was able to solve by changing the value of process-connection-type to nil. Does that work for you ? -- Nico.
Re: [O] beamer: need to add latex for footnote citation
Neal Becker ndbecker2 at gmail.com writes: If I edit the latex, this will do what I want: - Extend differential detection to exploit differences over different symbol intervals (spans) \footfullcite{gpdi} This adds a biblatex citation as a footnote on the frame. How can I do this within emacs org? #+BEAMER_HEADER: \usepackage[style=nejm, url=false, backend=biber]{biblatex} ...in the header works for me. Regards,
Re: [O] Org release 8.2.6
Bastien b...@gnu.org writes: Dear all, I'm releasing Org 8.2.6. Thanks to everyone who contributed. thanks a lot for your job! -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] beamer: need to add latex for footnote citation
Otto Pichlhöfer wrote: Neal Becker ndbecker2 at gmail.com writes: If I edit the latex, this will do what I want: - Extend differential detection to exploit differences over different symbol intervals (spans) \footfullcite{gpdi} This adds a biblatex citation as a footnote on the frame. How can I do this within emacs org? #+BEAMER_HEADER: \usepackage[style=nejm, url=false, backend=biber]{biblatex} ...in the header works for me. Regards, My problem is how to add the citation? If I put #+Latex: \footfullcite{gpdi} Then the footnotemark (1) will appear on the start of a newline, not at the end of the previous sentence where it belongs.
Re: [O] Org release 8.2.6
That we will; thank you-all for your efforts. Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gret...@acm.org | 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 On Tue, Apr 22, 2014 at 5:17 AM, Bastien b...@gnu.org wrote: Dear all, I'm releasing Org 8.2.6. Thanks to everyone who contributed. Enjoy! -- Bastien
Re: [O] beamer: need to add latex for footnote citation
Neal Becker wrote: Otto Pichlhöfer wrote: Neal Becker ndbecker2 at gmail.com writes: If I edit the latex, this will do what I want: - Extend differential detection to exploit differences over different symbol intervals (spans) \footfullcite{gpdi} This adds a biblatex citation as a footnote on the frame. How can I do this within emacs org? #+BEAMER_HEADER: \usepackage[style=nejm, url=false, backend=biber]{biblatex} ...in the header works for me. Regards, My problem is how to add the citation? If I put #+Latex: \footfullcite{gpdi} Then the footnotemark (1) will appear on the start of a newline, not at the end of the previous sentence where it belongs. Looks like what I needed was: 1. install emacs-bib 2. in .emacs: (org-add-link-type ebib 'ebib) (org-add-link-type footfullcite 'ebib (lambda (path desc format) (cond ((eq format 'html) (format (cite%s/cite) path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search footfullcite: desc))) (format \\footfullcite{%s} path) (format \\footfullcite[%s][%s]{%s} (cadr (split-string desc ;)) (car (split-string desc ;)) path)) Then I can use [[fullfootcite:gpdi]] to get my footnote citation
Re: [O] org-open-file with xdg-open not working?
Nicolas Richard theonewiththeevill...@yahoo.fr writes: Eric Abrahamsen e...@ericabrahamsen.net writes: Presumably that's because the gnus version (eventually `mm-display-external') calls xdg-open with `call-process' and org does it with `start-process-shell-command'. The first is synchronous, the second asynchronous, and I do remember seeing something on one of these lists about difficulties with xdg-open because the process returns before the file actually opens, or *doesn't* return, or some similar thing the details of which I'm forgetting. Have other people run into this difficulty? How are you solving it? I remember having problems which I was able to solve by changing the value of process-connection-type to nil. Does that work for you ? Brilliant, that did it! Very glad there was a semi-simple solution. Thanks, Eric
Re: [O] Export arrays for 'sh' code blocks when using bash
Test 80/480 fails when I use make up2 with Mac OS X GNU Emacs 24.3.1 (x86_64-apple-darwin12.5.0, Carbon Version 1.6.0 AppKit 1187.4) of 2014-03-05: executing Bash code block... Wrote /var/folders/dt/9hkw2mj50dd566y5qs2s4b8sq962bh/T/tmp-orgtest/ob-input-32986Ogm Code block evaluation complete. Test ob-shell/bash-uses-assoc-arrays backtrace: signal(ert-test-failed (((should (equal 20 cm (org-babel-execute-s ert-fail(((should (equal 20 cm (org-babel-execute-src-block))) :fo (if (unwind-protect (setq value-984 (apply fn-982 args-983)) (setq f (let (form-description-986) (if (unwind-protect (setq value-984 (app (let ((value-984 (quote ert-form-evaluation-aborted-985))) (let (for (let ((fn-982 (function equal)) (args-983 (list 20 cm (org-babel-e (save-restriction (org-babel-next-src-block 2) (let ((fn-982 (functi (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d3ff87) (setq to (unwind-protect (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d (let ((save-match-data-internal (match-data))) (unwind-protect (prog (progn (let ((save-match-data-internal (match-data))) (unwind-protec (unwind-protect (progn (let ((save-match-data-internal (match-data)) (let ((wconfig (current-window-configuration))) (unwind-protect (pro (unwind-protect (let ((wconfig (current-window-configuration))) (unw (let* ((id-location (org-id-find 82320a48-3409-49d7-85c9-5de1c6d3ff (lambda nil (let* ((id-location (org-id-find 82320a48-3409-49d7-85c byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 ert-run-test([cl-struct-ert-test ob-shell/bash-uses-assoc-arrays Ba ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306 ert-run-tests-batch(\\(org\\|ob\\)) ert-run-tests-batch-and-exit(\\(org\\|ob\\)) (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests(\\(org\\|ob\\)) eval((org-test-run-batch-tests org-test-select-re)) command-line-1((--eval (setq vc-handled-backends nil org-startup- command-line() normal-top-level() Test ob-shell/bash-uses-assoc-arrays condition: (ert-test-failed ((should (equal 20 cm (org-babel-execute-src-block))) :form (equal 20 cm 50 dl) :value nil :explanation (array-elt 0 (different-atoms (50 #x32 ?2) (53 #x35 ?5) FAILED 80/480 ob-shell/bash-uses-assoc-arrays
Re: [O] latex export of \ce question
Thanks. I was going crazy looking for the snippet syntax! On Tue, Apr 22, 2014 at 8:32 AM, Rasmus ras...@gmx.us wrote: #+MACRO: ce @@latex:ce($1)@@ @@latex:ce{ABO_{3-\delta}}@@ {{{ce(ABO_{3-\delta})}}} John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] Org release 8.2.6
Work fine, but =org-export-time-stamp-file: nil= don't work [0] Adding =#+OPTIONS: timestamp:nil= to every file work fine. Now my blog is updated to 8.2.6 (release_8.2.6-898-g69700e) Thanks! [0] http://lists.gnu.org/archive/html/emacs-orgmode/2013-06/msg00460.html -- :: Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C http://www.osiux.com.ar http://www.altermundi.net signature.asc Description: Digital signature
Re: [O] Export arrays for 'sh' code blocks when using bash
Skip Collins skip.coll...@gmail.com writes: Test 80/480 fails when I use make up2 with Mac OS X GNU Emacs 24.3.1 (x86_64-apple-darwin12.5.0, Carbon Version 1.6.0 AppKit 1187.4) of 2014-03-05: executing Bash code block... Wrote /var/folders/dt/9hkw2mj50dd566y5qs2s4b8sq962bh/T/tmp-orgtest/ob-input-32986Ogm Code block evaluation complete. Test ob-shell/bash-uses-assoc-arrays backtrace: ^^^ I'm not aware of such a test -- where did you get it from? -- Bastien
Re: [O] Org release 8.2.6
OSiUX xu...@osiux.com.ar writes: Work fine, but =org-export-time-stamp-file: nil= don't work [0] Adding =#+OPTIONS: timestamp:nil= to every file work fine. Did you try #+BIND: org-export-time-stamp-file nil ? Now my blog is updated to 8.2.6 (release_8.2.6-898-g69700e) That's from the master branch, but that's even better! -- Bastien
[O] Package shadowing?
I'm using GNU Emacs 24.3.1 on Windows 7. I just did an elpa-install (M-x list-packages, hit 'i' on the 'org' line, and then hit 'x'. In my .emacs file I had (require 'package) (add-to-list 'package-archives '(org . http://orgmode.org/elpa/;) t) Everything seemed to go fine. Then when I quit relaunch emacs, I check the version and I see this: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ c:/Users/kwilliams/.emacs.d/elpa/org-20140422/) Is that messed up? I'm supposed to have version 8.2.6 at this point, right? -- Ken Williams, Senior Research Scientist WindLogics http://windlogics.com CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Package shadowing?
Williams, Ken ken.willi...@windlogics.com writes: Is that messed up? I’m supposed to have version 8.2.6 at this point, right? Please carefully read the Installation instructions in the manual: http://orgmode.org/manual/Installation.html#Installation When installing from ELPA, you need to make sure your packages are activated before any Org function has been loaded, otherwise this will load the previously available Org version. HTH, -- Bastien
[O] export latex align to html?
I have an align environment: #+begin_latex \begin{align*} \Lambda= \max_{k,l}\left| \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| \\ \approx \max_{k,l}\left| \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| \end{align*} #+end_latex That exports fine to latex, but not html. Is there a way to do this?
Re: [O] export latex align to html?
Neal Becker ndbeck...@gmail.com writes: I have an align environment: #+begin_latex \begin{align*} \Lambda= \max_{k,l}\left| \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| \\ \approx \max_{k,l}\left| \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| \end{align*} #+end_latex That exports fine to latex, but not html. Is there a way to do this? Sure - I get perfect output by just leaving out the #+begin_latex/#+end_latex markers. Underneath, mathjax is being used, but I don't think I have done any customization: it should work right out of the box. Nick
Re: [O] Export arrays for 'sh' code blocks when using bash
As I wrote at the top of the report, the test fails when running make up2. I am using the unmodified master branch. -- skip collins 240 687 7802 On Tue, Apr 22, 2014 at 11:37 AM, Bastien b...@gnu.org wrote: Skip Collins skip.coll...@gmail.com writes: Test 80/480 fails when I use make up2 with Mac OS X GNU Emacs 24.3.1 (x86_64-apple-darwin12.5.0, Carbon Version 1.6.0 AppKit 1187.4) of 2014-03-05: executing Bash code block... Wrote /var/folders/dt/9hkw2mj50dd566y5qs2s4b8sq962bh/T/tmp-orgtest/ob-input-32986Ogm Code block evaluation complete. Test ob-shell/bash-uses-assoc-arrays backtrace: ^^^ I'm not aware of such a test -- where did you get it from? -- Bastien
Re: [O] Package shadowing?
-Original Message- From: Bastien Guerry [mailto:bastiengue...@gmail.com] Williams, Ken ken.willi...@windlogics.com writes: Is that messed up? I’m supposed to have version 8.2.6 at this point, right? Please carefully read the Installation instructions in the manual: http://orgmode.org/manual/Installation.html#Installation Thanks, got it now. Perhaps this could be more clearly linked from http://orgmode.org/elpa.html ? I was looking at that (got there from 1 click on the home page) and it wasn't clear to me there was anything else I had to do during installation or config. In addition, the /elpa.html page makes no mention of the session where no .org file has been visited text I see on the /Installation.html page, maybe those two sections need to be reconciled/consolidated? -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] export latex align to html?
On Tuesday, 22 Apr 2014 at 12:55, Neal Becker wrote: I have an align environment: #+begin_latex \begin{align*} \Lambda= \max_{k,l}\left| \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| \\ \approx \max_{k,l}\left| \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| \end{align*} #+end_latex That exports fine to latex, but not html. Is there a way to do this? The attached works for me. You can have conditional code on the latex src block to generate raw latex when exporting to latex and an image when exporting to html. Check out http://thread.gmane.org/gmane.emacs.orgmode/74474/focus=74762 HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-1027-g4c0a29 * Intro I have an align environment: #+begin_src latex :file alignedequation.png :results raw \begin{align*} \Lambda= \max_{k,l}\left| \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| \\ \approx \max_{k,l}\left| \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| \end{align*} #+end_src That exports fine to latex, but not html. Is there a way to do this? * settings # Local Variables: # org-export-allow-bind-keywords: t # org-format-latex-options: (:foreground black :background white :matchers '(begin) :scale 1.0 ) # org-latex-create-formula-image-program: imagemagick # End:
[O] observations on updating to recent org
I use org for the usual notes-to-self and TODO - nothing super fancy. I had been running from master of the git repo, but in 2013-01 stopped updating, probably because I had some issue. The recent release provoked me to try again, and this note reports some issues. I had been running (for no really good reason) commit 3a1c27060792fc095435efcaf270a6207d5d8d27 Author: Bastien Guerry b...@altern.org Date: Mon Jan 7 00:25:58 2013 +0100 and just updated to the head of maint: commit 1fa6ccab10c9f97dc9317f9c3eedea82c4cdc357 Author: Bastien Guerry b...@altern.org Date: Tue Apr 22 15:24:14 2014 +0200 which is just a docstring fix past release_8.2.6. I then did an org-mobile-push, and that was as fast as I remembered. I noticed two things: Exporting to ical as a single file took a really long time, perhaps a whole minute, whereas it used to take a second to a few seconds. The resulting export did seem ok. I used to get an ID PROPERTIES entries for nodes that were exported to the calendar, which was basically nodes that had an active timestamp. But now I had a huge number of changes, adding ID to every node, even those with no real content and just children. Is this a feature? pgpM3JS2cm3tw.pgp Description: PGP signature
Re: [O] bash alias and history in code block (again)
El jue, 17 abr 2014, Bastien decía: OSiUX xu...@osiux.com.ar writes: #+BEGIN_SRC sh :cmdline -i :session :results output From a quick look, this should rather be: #+BEGIN_SRC sh :cmdline -i :session session_name :results output Can you test this? Don't Work :-( ** DONE test =bash -i= CLOSED: [2014-04-22 mar 14:56] :LOGBOOK: - State DONE from NEXT [2014-04-22 mar 14:56] CLOCK: [2014-04-22 mar 14:51]--[2014-04-22 mar 14:54] = 0:03 :END: #+BEGIN_SRC sh :cmdline -i :session xyz :results output export | grep -i shell alias | wc -l history | wc -l #+END_SRC #+RESULTS: : declare -x SHELL=/bin/bash : 0 : 0 #+BEGIN_SRC sh :session :results output export | grep -i shell alias | wc -l history | wc -l #+END_SRC #+RESULTS: : export SHELL=/bin/bash : 0 : 0 -- :: Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C http://www.osiux.com.ar http://www.altermundi.net signature.asc Description: Digital signature
Re: [O] bash alias and history in code block (again)
OSiUX xu...@osiux.com.ar writes: Hi, in the past I ask *How to use alias and bash builtin functions?* http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00205.html The solution: (setq org-babel-sh-command bash -i) But now don't work anymore :-( Works for me: (setq org-babel-sh-command bash -i) bash -i --8---cut here---start-8--- #+BEGIN_SRC sh :results output history | wc -l alias | wc -l #+END_SRC #+RESULTS: : 1000 : 6 --8---cut here---end---8--- Org-mode version 8.2.6 (release_8.2.6-901-g91da1b @ /home/nick/elisp/org-mode/lisp/) My Org-mode version: 8.2.5h release_8.2.5h-660-gef207f -- Nick
Re: [O] org-hide-block-all
Bastien b...@gnu.org writes: Hi David, David Masterson dsmaster...@gmail.com writes: Not sure what's going on here. I can use org-show-block-all to show all of an Org file, but using org-hide-block-all to reverse it seems to do nothing. `org-show-block-all' and `org-hide-block-all' apply to blocks and it works fine here. What is the proper way to open the outline completely and then close it completely up? Show all: M-x show-all RET Show overview: M-x org-overview RET C-u S-TAB will switch back to the startup display status. If you want blocks to be displayed when unfolding everything in the buffer, either you create a custom command that combines `show-all' and `org-show-block-all', or you simply rely on `org-cycle' (using TAB) and add `org-show-block-all' to `org-cycle-hook'. Ah, I think I see now. Thanks. -- David Masterson Programmer At Large
Re: [O] [BUG] Cannot open load file: ob-sh
I tried to update my org-mode using make up2 but got an error that looks similar. -- install -m 755 -d /tmp/tmp-orgtest TMPDIR=/tmp/tmp-orgtest emacs -Q -batch --eval '(setq vc-handled-backends nil org-startup-folded nil)' --eval '(add-to-list '''load-path (concat default-directory lisp))' --eval '(add-to-list '''load-path (concat default-directory testing))' -l org-batch-test-init --eval '(setq org-batch-test t org-babel-load-languages (quote ( (awk . t) (C . t) (fortran . t) (maxima . t) (lilypond . t) (octave . t) (python . t) (sh . t) (perl . t) (emacs-lisp . t) (shell . t) (org . t))) org-test-select-re \\(org\\|ob\\) )' -l org-loaddefs.el -l cl -l testing/org-test.el -l ert -l org -l ox --eval '(org-test-run-batch-tests org-test-select-re)' `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. Cannot open load file: ob-sh make[1]: *** [test-dirty] Error 255 make: *** [up2] Error 2 -- Where does it load the list of babel languages from? Vikas On Tue, Jan 21, 2014 at 5:53 PM, Eric Schulte schulte.e...@gmail.comwrote: Bastien b...@gnu.org writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Yes, ob-sh has been renamed to ob-shell, the above should be changed to (shell . t). Can you not it in ORG-NEWS as an incompatible change in master? These things tend to get easily forgotten. Thanks! Done. Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.
* lisp/ob-core.el (org-babel-generate-file-param): New function. (org-babel-get-src-block-info): Use it. --- lisp/ob-core.el | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) This patch allows the autogeneration of result file names from source block names. Thus, instead of: #+name: one #+begin_src R :results file graphics :file one.png ... #+end_src One can write (with the same result, that one.png is generated): #+name: one #+begin_src R :results file graphics :file png ... #+end_src The benefit comes from the reduced duplication of information in the file. It also becomes possible to use the usual property inheritance mechanisms (via #+PROPERTY lines or :PROPERTY: drawers) to specify result file types for multiple source blocks at once. This patch also introduces the :output-dir property, which can be used to redirect all the output from blocks in a (file/subtree) to a subdirectory. The patch treats any :file args containing a period as before, so backwards compatibility with old files should in most cases be maintained. If this patch looks good, I can provide tests and documentation. Aaron diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 1348f04..2defabf 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -282,7 +282,9 @@ Returns a list (setq info (org-babel-parse-inline-src-block-match ;; resolve variable references and add summary parameters (when (and info (not light)) - (setf (nth 2 info) (org-babel-process-params (nth 2 info + (setf (nth 2 info) (org-babel-generate-file-param + name + (org-babel-process-params (nth 2 info) (when info (append info (list name indent head) (defvar org-babel-exp-reference-buffer nil @@ -2890,6 +2892,35 @@ For the format of SAFE-LIST, see `org-babel-safe-header-args'. (member (cdr pair) (cdr entry))) (t nil))) +(defun org-babel-generate-file-param (src-name params) + Calculate the filename for source block results. + +The directory is calculated from the :output-dir property of the +source block; if not specified, use the current directory. + +If the source block has a #+NAME and the :file parameter does not +contain any period characters, then the :file parameter is +treated as an extension, and the output file name is the +concatenation of the directory (as calculated above), the block +name, a period, and the parameter value as a file extension. +Otherwise, the :file parameter is treated as a full file name, +and the output file name is the directory (as calculated above) +plus the parameter value. + (let* ((file-cons (assq :file params)) +(file (cdr-safe file-cons)) +(dir (or (cdr-safe (assq :output-dir params)) ))) +(when (and file (not (string= dir ))) + (make-directory dir t) + (unless (string-match /\\' dir) + (setq dir (concat dir / +(cond + ((not file) nil) + ((or (string-match \\. file) (not src-name)) + ;; Either the file name already has an extension, or there is no + ;; name for this source block - we cannot do anything + (setcdr file-cons (concat dir file))) + (t (setcdr file-cons (concat dir src-name . file +params)) ;;; Used by backends: R, Maxima, Octave. (defun org-babel-graphical-output-file (params) -- 1.9.2
Re: [O] [BUG] Cannot open load file: ob-sh
I am running emacs on os-x, if that is relevant. Vikas On Tue, Apr 22, 2014 at 9:52 PM, Vikas Rawal vikasli...@agrarianresearch.org wrote: I tried to update my org-mode using make up2 but got an error that looks similar. -- install -m 755 -d /tmp/tmp-orgtest TMPDIR=/tmp/tmp-orgtest emacs -Q -batch --eval '(setq vc-handled-backends nil org-startup-folded nil)' --eval '(add-to-list '''load-path (concat default-directory lisp))' --eval '(add-to-list '''load-path (concat default-directory testing))' -l org-batch-test-init --eval '(setq org-batch-test t org-babel-load-languages (quote ( (awk . t) (C . t) (fortran . t) (maxima . t) (lilypond . t) (octave . t) (python . t) (sh . t) (perl . t) (emacs-lisp . t) (shell . t) (org . t))) org-test-select-re \\(org\\|ob\\) )' -l org-loaddefs.el -l cl -l testing/org-test.el -l ert -l org -l ox --eval '(org-test-run-batch-tests org-test-select-re)' `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. Cannot open load file: ob-sh make[1]: *** [test-dirty] Error 255 make: *** [up2] Error 2 -- Where does it load the list of babel languages from? Vikas On Tue, Jan 21, 2014 at 5:53 PM, Eric Schulte schulte.e...@gmail.comwrote: Bastien b...@gnu.org writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Yes, ob-sh has been renamed to ob-shell, the above should be changed to (shell . t). Can you not it in ORG-NEWS as an incompatible change in master? These things tend to get easily forgotten. Thanks! Done. Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] [BUG] Cannot open load file: ob-sh
Vikas Rawal vikasli...@agrarianresearch.org writes: I am running emacs on os-x, if that is relevant. Vikas On Tue, Apr 22, 2014 at 9:52 PM, Vikas Rawal vikasli...@agrarianresearch.org wrote: I tried to update my org-mode using make up2 but got an error that looks similar. -- install -m 755 -d /tmp/tmp-orgtest TMPDIR=/tmp/tmp-orgtest emacs -Q -batch --eval '(setq vc-handled-backends nil org-startup-folded nil)' --eval '(add-to-list '''load-path (concat default-directory lisp))' --eval '(add-to-list '''load-path (concat default-directory testing)) ' -l org-batch-test-init --eval '(setq org-batch-test t org-babel-load-languages (quote ( (awk . t) (C . t) (fortran . t) (maxima . t) (lilypond . t) (octave . t) (python . t) (sh . t) (perl . t) (emacs-lisp . t) (shell . t) (org . t))) org-test-select-re \\(org\\|ob\\) )' -l org-loaddefs.el -l cl -l testing/org-test.el -l ert -l org -l ox --eval ' (org-test-run-batch-tests org-test-select-re)' `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. Cannot open load file: ob-sh make[1]: *** [test-dirty] Error 255 make: *** [up2] Error 2 -- Where does it load the list of babel languages from? Check local.mk for BTEST_OB_LANGUAGES: delete sh if present. Vikas On Tue, Jan 21, 2014 at 5:53 PM, Eric Schulte schulte.e...@gmail.com wrote: Bastien b...@gnu.org writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Yes, ob-sh has been renamed to ob-shell, the above should be changed to (shell . t). Can you not it in ORG-NEWS as an incompatible change in master? These things tend to get easily forgotten. Thanks! Done. Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D -- Nick
Re: [O] [BUG] Cannot open load file: ob-sh
Nick Dokos ndo...@gmail.com writes: Check local.mk for BTEST_OB_LANGUAGES: delete sh if present. Or rename sh to shell. -- Bastien
Re: [O] Export arrays for 'sh' code blocks when using bash
Skip Collins skip.coll...@gmail.com writes: As I wrote at the top of the report, the test fails when running make up2. I am using the unmodified master branch. You should probably check for sh in this local.mk line: BTEST_OB_LANGUAGES: ... and replace is by shell. -- Bastien
Re: [O] Package shadowing?
Hi Williams, Williams, Ken ken.willi...@windlogics.com writes: Thanks, got it now. Perhaps this could be more clearly linked from http://orgmode.org/elpa.html ? I was looking at that (got there from 1 click on the home page) and it wasn't clear to me there was anything else I had to do during installation or config. In addition, the /elpa.html page makes no mention of the session where no .org file has been visited text I see on the /Installation.html page, maybe those two sections need to be reconciled/consolidated? Yes, I added a note to http://orgmode.org/elpa.html so as to make sure people will also check the manual. Thanks, -- Bastien
Re: [O] Package shadowing?
-Original Message- From: Bastien Guerry [mailto:bastiengue...@gmail.com] On Behalf Of Yes, I added a note to http://orgmode.org/elpa.html so as to make sure people will also check the manual. Thanks much. -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Export arrays for 'sh' code blocks when using bash
On Tue, Apr 22, 2014 at 4:59 PM, Bastien b...@gnu.org wrote: You should probably check for sh in this local.mk line: Nope. I suspect this is a Mac-related thing. Here are the contents of my local.mk: ORG_ADD_CONTRIB = org-download.el* EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs prefix = /usr/local/share
Re: [O] Export arrays for 'sh' code blocks when using bash
On Tue, Apr 22, 2014 at 5:04 PM, Skip Collins skip.coll...@gmail.com wrote: I suspect this is a Mac-related thing. OS X 10.8.5 ships with bash version 3 which seems to have some issues with declaring arrays: http://stackoverflow.com/questions/6047648/bash-4-associative-arrays-error-declare-a-invalid-option
Re: [O] Export arrays for 'sh' code blocks when using bash
Skip Collins skip.coll...@gmail.com writes: On Tue, Apr 22, 2014 at 4:59 PM, Bastien b...@gnu.org wrote: You should probably check for sh in this local.mk line: Nope. I suspect this is a Mac-related thing. Here are the contents of my local.mk: ORG_ADD_CONTRIB = org-download.el* EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs prefix = /usr/local/share What happens if you remove local.mk, then git checkout master, then make config to recreate local.mk? -- Bastien
Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.
Hi Aaron, thanks for the patch. Aaron Ecay aarone...@gmail.com writes: #+name: one #+begin_src R :results file graphics :file png ... #+end_src What happens when there is :file png with no #+name line? The benefit comes from the reduced duplication of information in the file. It also becomes possible to use the usual property inheritance mechanisms (via #+PROPERTY lines or :PROPERTY: drawers) to specify result file types for multiple source blocks at once. This patch also introduces the :output-dir property, which can be used to redirect all the output from blocks in a (file/subtree) to a subdirectory. Does :output-dir accept absolute or relative paths? I'm asking because you speak of subdirectory, but both should be accepted IMHO. The patch treats any :file args containing a period as before, so backwards compatibility with old files should in most cases be maintained. Maybe there are cases where the :file value does not take an extension but the user still want to write the output to this file? How would your patch handle this? If this patch looks good, I can provide tests and documentation. Looks useful to me, but :file png looks wrong, with too much implicit. We should find something less confusing. Thanks, -- Bastien
Re: [O] Export arrays for 'sh' code blocks when using bash
Skip Collins skip.coll...@gmail.com writes: On Tue, Apr 22, 2014 at 5:04 PM, Skip Collins skip.coll...@gmail.com wrote: I suspect this is a Mac-related thing. OS X 10.8.5 ships with bash version 3 which seems to have some issues with declaring arrays: http://stackoverflow.com/questions/6047648/bash-4-associative-arrays-error-declare-a-invalid-option Mhh... okay then, thanks for mentioning it. -- Bastien
[O] Tried to use `org-agenda-top-headline-filter' in agenda block
Org-mode version 8.2.5h (8.2.5h-137-gc7812f-elpa @ /home/iam/.emacs.d/elpa/org-20140421/) I tried to use `org-agenda-top-headline-filter'. I have a tree as follows: / | * diary-sunrise, diary-sunset | %%(diary-sunrise) | %%(diary-sunset) \ The syntax I tried was: (org-agenda-top-headline-filter diary-sunrise, diary-sunset) That is, in the following: (might need `(require 'org-agenda)'.) #+BEGIN_SRC emacs-lisp (org-add-agenda-custom-command '(zs sunrise, sunset agenda ((org-agenda-files '(/e/org/zeus.org)) (org-agenda-prefix-format %t %s) (org-agenda-span 'week) (org-agenda-start-on-weekday nil) (org-agenda-use-time-grid 'nil) (org-agenda-top-headline-filter '(diary-sunrise, diary-sunset)) ) )) #+END_SRC I'm sure I could easily use a tag, category etc, but I like being able to consider all the possibilities as I develop my agenda-views. %%(Thank you always), Brady
[O] My first union in an agenda block
I struggled to get union of cases in an agenda block. I was able to work from examples by Bernt Hansen at http://doc.norang.ca/org-mode.html#CustomAgendaViewSetup and http://doc.norang.ca/org-mode.html#Projects, and make the following small example, which may be useful to folks just getting into Org-mode and Emacs, and want to be aware of how you can combine cases into your agenda block. (Union as opposed to intersection, OR vs AND.) It should be straightforward to make various cases, or even finally get familiar with the agenda filtering commands at http://orgmode.org/manual/Filtering_002flimiting-agenda-items.html. #+BEGIN_SRC emacs-lisp (defun appts-nil-not-appt-next-headline () (let ((next-headline (save-excursion (outline-next-heading (if (or ;; (string= circus-act (org-get-org-file)) (string= circus-act (org-get-category)) (member appt (org-get-tags-at)) (member plans (org-get-tags-at)) (member social (org-get-tags-at))) nil next-headline))) #+END_SRC (You may need this so that function org-add-agenda-custom-commands does not create error.) #+BEGIN_SRC emacs-lisp (require 'org-agenda) #+END_SRC #+BEGIN_SRC emacs-lisp (org-add-agenda-custom-command '(c calendar agenda ((org-agenda-skip-function 'appts-nil-not-appt-next-headline) ))) #+END_SRC Please let me know if you see any changes I should make in my strategy or code. (I've not made it a priority, but I think I shouldn't have the three occurrences of `(member a tag (org-get-tags-at))'.) Also, no telling when I'll get the chance to understand the examples at http://stackoverflow.com/questions/20715106/org-agenda-regexp-search-categories Brady
Re: [O] latex export of \ce question
On Mon, Apr 21, 2014 at 6:35 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: Hi all, I often have to use the mhchem latex package to write chemical formulas, and I have teh following export issue. If I have this in an org file: \ce{ABO_3} \ce{ABO_{3-\delta}} I've taken to using \( \) around LaTeX stuff. I also have: #+options: tex:t so that might be required. I tried your example, and I get an undefined control sequence error (not sure why...), but it seems to look right in the PDF. Just another option that might work for you (maybe less typing for one-off situations?). \(\ce{ABO_{3-\delta}}\) John this exports as \ce{ABO_3} \ce\{ABO$_{\text{3-}\delta}$\} The first one is fine, but the second one is not. The nested {} seems to mess it up. Is there a way to get this to export correctly? thanks, John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] putting a element +UWa in table
Neal Becker ndbeck...@gmail.com writes: The first item in my table should say '+UWa'. This seems to upset the org table gods, who draw a line through my entry. How do I put such an item in a table without org table misinterpreting it? For curiosity I played a bit on this problem. I got no exact solution, but here's what I found. I guess they aren't exactly *cough* the most didactic Org tricks ever... Cheers, Andrea - Test1: shows overstrike on text (as per Org syntax) | +UWa UWb+ | - Test 2: shows + in buffer if org-toggle-pretty-entities is enabled, but produces bad HTML export (a subscript nil appears) | \plus_{}UWa UWb\plus_{} | - Test 3: looks OK for HTML, Latex, ASCII export #+MACRO: myplus @@html:+latex:+ascii:+@@ | {{{myplus}}}UWa UWb{{{myplus}}} |
[O] Exporting Code Blocks to PDF
Hello Emacs World- I’m using LaTex to export documents to PDF, but the code blocks are not fitting to the page properly and the code is being cutoff. Is there a way to turn on word-wrapping for export to PDF, or to resize code blocks? Also, does anyone have a good system for dealing with exporting large tables? Right now I’m just linking to a file, but I’m curious if anyone else is doing anything clever. Thanks in advance! Summer s...@stowers.orgmailto:s...@stowers.org
Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.
Hi Bastien, Thanks for your feedback. 2014ko apirilak 22an, Bastien-ek idatzi zuen: [...] #+name: one #+begin_src R :results file graphics :file png ... #+end_src What happens when there is :file png with no #+name line? This case will be treated as before the patch: output will go to the “png” file. (The :output-dir property, if present, will apply.) Does :output-dir accept absolute or relative paths? I'm asking because you speak of subdirectory, but both should be accepted IMHO. I agree. I think the current patch does this as long as :output-dir is an absolute pathname, but I have not tested that case. I will Maybe there are cases where the :file value does not take an extension but the user still want to write the output to this file? How would your patch handle this? At present, it doesn’t. Looks useful to me, but :file png looks wrong, with too much implicit. We should find something less confusing. One option would be to use :file-ext instead, to generate a :file parameter. I didn’t go this route because autogenerating :file from other parameters seemed like too much magic. But your points in the other direction are good. How does this sound as an algorithm: 1. if :file is present, behave exactly as we do now 2. if :file is absent but :file-ext and a #+name is present, generate a :file parameter from :output-dir, the #+name, and :file-ext. Open questions: 1. should :file-ext without a #+name be a no-op, or an error? 2. should :output-dir apply to the :file case as well? -- Aaron Ecay
Re: [O] Exporting Code Blocks to PDF
On Tue, Apr 22, 2014 at 6:28 PM, Elasady, Summer s...@stowers.org wrote: Hello Emacs World- I’m using LaTex to export documents to PDF, but the code blocks are not fitting to the page properly and the code is being cutoff. Is there a way to turn on word-wrapping for export to PDF, or to resize code blocks? I don't know if there's a way to wrap, but in my one formal programming class, the convention was only to write 80 characters or less -- are you exceeding that? If not, and it's just a font size thing, you can always use LaTeX to reduce the font. I frequently do this, especially using code in Beamer presentations: #+latex: \scriptsize #+begin_src R blah blah code here #+end_src #+latex: \normalsize This way, the block is downsized, and then resumes to regular font size for the rest of the document. You can use any size command you want; I frequently use \footnotesize, \scriptsize, and \tiny. I hardly notice a difference with \small, though you can try that, too. Also, does anyone have a good system for dealing with exporting large tables? Right now I’m just linking to a file, but I’m curious if anyone else is doing anything clever. For tables that are /close/ in size already, I do the same thing as above, at least if we're talking about fitting to width. You can also flip sideways and extend over multiple pages to handle both wide and long: #+latex: \begin{landscape} #+attr_latex: :environment longtable | *alpha* | *beta* | *gamma* | *delta* | |-++-+-| | 1 | 1 | 1 | 1 | | 2 | 2 | 2 | 2 | | 3 | 3 | 3 | 3 | | 4 | 4 | 4 | 4 | #+latex: \end{landscape} You can use them independently, too. Initially I tried the Org syntax for sidewaystable, but it didn't seem to work with longtable: - http://orgmode.org/manual/LaTeX-specific-attributes.html As in, technically it would seem you could do: #+attr_latex: :environment longtable :float sidewaystable But perhaps that's more of a LaTex issue: - http://tex.stackexchange.com/questions/63585/sidewaystable-together-with-longtable Anyway, the above works, and that covers any handles I've ever used (font, rotate, extend over multiple pages). Other than trying to wordsmith my column names where the title exceeds the contents... that's all the tricks up my sleeve! John Thanks in advance! Summer s...@stowers.org
Re: [O] [BUG] Cannot open load file: ob-sh
Check local.mk for BTEST_OB_LANGUAGES: delete sh if present. Or rename sh to shell. -- Worked. Thanks. Vikas