Re: [O] Styling HTML output

2011-08-26 Thread Ken.Williams
On 8/26/11 4:01 AM, Bastien b...@altern.org wrote: Cool - it deserves to be put on Worg org-hacks.org! Good idea, here's a patch (I hope attachments work on this list?) that adds it. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com

Re: [O] Styling HTML output

2011-08-26 Thread Ken.Williams
On 8/26/11 2:26 PM, Nick Dokos nicholas.do...@hp.com wrote: Two things: o application/octet-stream is not the right MIME type for the attachment.[...] o Presumaby the following should say pre class=src src-perl:[...] Thanks, I think this update is better. Unfortunately I don't think my

[O] Styling HTML output

2011-08-25 Thread Ken.Williams
I wanted to share some CSS code that I've found useful for exported HTML documents. It adds a little R or sh or Perl (etc.) label to the top of a source block. (setq org-export-html-style style type=\text/css\ !--/*--![CDATA[/*!--*/ .src { background-color: #F5FFF5;

[O] Folding code sections in HTML export?

2011-08-11 Thread Ken.Williams
Has anyone developed a way to use a collapsable-div section in HTML export of code sections? What I'd love is for all code sections to export their content into the HTML, but sections with :exports none or :exports results to have the code initially collapsed, while sections with :exports code

[O] Crashing bug in spreadsheet

2011-07-22 Thread Ken.Williams
Hi, I had the following text in a table, and hit tab in the bottom-right cell: | Who | Amt | |-+-| | A | 36.70 | | A | 679.96 | | B | 192.31 | | B | 2500.03 | | B | 74.47 | | C | 26.64 | | D | 82.00 | |-+-| | | :=vsum(@II..@III) |

Re: [O] Crashing bug in spreadsheet

2011-07-22 Thread Ken.Williams
On 7/22/11 4:35 PM, Juan Pechiar j...@pechiar.com wrote: Hi, '@II..@III' means all rows between the second and third h-lines. In your case, this is the same vsum(), so you get a circular reference. Try @I..@II instead Yeah, I get that, but I was hoping a circular reference (or alternatively

[O] 7.6 Parsing error with footnotes?

2011-07-18 Thread Ken.Williams
Hi, I noticed a problem in a great-big-huge org-mode file of mine after I upgraded to version 7.6, and I whittled it down to the following org-mode file: - #+TITLE: My title here #+AUTHOR:Ken Williams #+BEGIN_SRC R [1] 173

Re: [O] 7.6 Parsing error with footnotes?

2011-07-18 Thread Ken.Williams
On 7/18/11 12:35 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: This has been fixed since 7.6 release. footone-finder was indeed overzealous back then. Great, thanks for your help. I've upgraded to the latest snapshot the problem goes away. -- Ken Williams Senior Research Scientist Thomson

[O] Don't ask, don't run

2011-07-08 Thread Ken.Williams
Hi, I know from the manual that I can set 'org-confirm-babel-evaluate' to t, or nil, or a function, to control whether I'm asked permission to run a code block. However, that only gives me two choices - ask the user, or pretend the user said yes. Sometimes I'd like to pretend the user said no,

[O] Executing debug-enabled code hangs

2011-06-07 Thread Ken.Williams
Hi, I use org-mode a lot with BEGIN_SRC R sections that I execute manually with C-c C-c in an *R* session buffer. Sometimes I go to that session buffer and execute some code manually, and occasionally I turn on debugging for a function with debug(func). If I then go back to my org-mode buffer

Re: [O] Executing debug-enabled code hangs

2011-06-07 Thread Ken.Williams
On 6/7/11 12:04 PM, Nick Dokos nicholas.do...@hp.com wrote: ken.willi...@thomsonreuters.com wrote: I do have a big huge thread stack trace that Aquamacs generated, if that would be helpful. It wouldn't hurt. OK, here it is: In GNU Emacs 23.3.1 (i386-apple-darwin9.8.0, NS

Re: [O] Options for HTML PDF export

2011-05-20 Thread Ken.Williams
Sebastien Vauban wxhgmqzgwmuf@... writes: Ken.Williams@... wrote: [...] I'm wondering about best practices (though I hate that term) for managing the export to both HTML PDF. Just by curiosity, what don't use like that term? I'm not sure - I just hear it used a lot as sort of a trump

[O] Options for HTML PDF export

2011-05-18 Thread Ken.Williams
Hi, I use the Babel features of org-mode to do a sort of literate-programming thing. I have lots of R code that generates graphics which get included into an exported HTML or PDF (via LaTeX) document. I'm wondering about best practices (though I hate that term) for managing the export to

Re: [O] Options for HTML PDF export

2011-05-18 Thread Ken.Williams
On 5/18/11 4:19 PM, Nick Dokos nicholas.do...@hp.com wrote: ken.willi...@thomsonreuters.com wrote: I'm wondering about best practices (though I hate that term) for managing the export to both HTML PDF. For the HTML I generate the graphics files as PNG, but for PDF the PNG format doesn't

[O] Spurious source-code output?

2011-05-05 Thread Ken.Williams
Hi, I've got the following source-code section in a sample org-mode document: #+BEGIN_SRC R :exports output :results graphics :file t.png plot(1:10, 1:10) #+END_SRC My intention is to show just the figure, not the source code, when I export to HTML. But when I do 'C-c C-c' to evaluate the

Re: [O] Spurious source-code output?

2011-05-05 Thread Ken.Williams
On 5/5/11 10:37 AM, Nick Dokos nicholas.do...@hp.com wrote: ken.willi...@thomsonreuters.com wrote: Hi, I've got the following source-code section in a sample org-mode document: #+BEGIN_SRC R :exports output :results graphics :file t.png plot(1:10, 1:10) #+END_SRC Try ``:exports

Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Ken.Williams
On 3/23/11 1:46 AM, Rainer M Krug r.m.k...@gmail.com wrote: When exporting to a pdf, I get the following matrix in the pdf: [,1][,2] [,3] [,4] [1,] 0.5626863 0.8397120 0.9886886 0.2233873 [2,] 0.8697064 0.1101432 0.1372992 0.4114674 [3,] 0.3548678 0.5658843

Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Ken.Williams
On 3/23/11 12:28 PM, Eric Schulte schulte.e...@gmail.com wrote: Thanks for pointing this out, your example doesn't work for me either. I tracked this down to a problem of not finding the cached results of named code blocks. I've just pushed up a simple fix for this issue, so caching should now

Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Ken.Williams
On 3/23/11 12:54 PM, Williams, Ken (TR Corp Tech) ken.willi...@thomsonreuters.com wrote: On 3/23/11 12:28 PM, Eric Schulte schulte.e...@gmail.com wrote: Thanks for pointing this out, your example doesn't work for me either. I tracked this down to a problem of not finding the cached results of

Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Ken.Williams
On 3/23/11 1:16 PM, Eric Schulte schulte.e...@gmail.com wrote: ken.willi...@thomsonreuters.com writes: Or perhaps, is there some command to evaluate all blocks in a document that need to be re-evaluated, and save the results back to the buffer? I could do that every time before exporting,

Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Ken.Williams
On 3/23/11 5:00 PM, Erik Iverson er...@ccbr.umn.edu wrote: Try :eval never http://orgmode.org/org.html#eval Don't know if that will work, but it sounds promising. Perfect! Thanks everyone for the help. -- Ken Williams Senior Research Scientist Thomson Reuters

[O] [babel] Trouble with :cache yes

2011-03-22 Thread Ken.Williams
Hi, I'm having some trouble getting :cache yes to behave the way I think it's supposed to. As a test, I have a simple example containing just a title and one source block: #+source: testcache #+begin_src R :cache yes :exports both :results output dat - matrix(runif(12), 3, 4) print(dat)

[O] [babel] Emitting both text graphics output

2011-03-22 Thread Ken.Williams
Hi, Suppose I have a source block like the following, which both 'print's some text output and 'plot's to a graphics device: -- #+begin_src R :file tp.png :exports both :results output graphics dat - matrix(runif(12), 6, 2) print(dat) plot(dat) #+end_src

Re: [O] How to escape characters in tables

2011-03-07 Thread Ken.Williams
From: Camille persson camille.pers...@gmail.com 2011/3/4 ken.willi...@thomsonreuters.com [...] here's a test case that shows my intent: | foo | =m/foo\vert{}foodfight/= | The \vert{} seems not to work inside a =...= construction. Furthermore, the =...= construction is problematic

Re: [O] How to escape characters in tables

2011-03-04 Thread Ken.Williams
On 3/3/11 9:07 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Wed, 2 Mar 2011 09:25:57 -0600 ken.willi...@thomsonreuters.com wrote: The issue is that I've got tables whose cells contain the '|' character (it's a table of regular expressions), and I can't seem to figure out how to

[O] How to escape characters in tables

2011-03-03 Thread Ken.Williams
I posted a question on Stack Overflow a few days ago, I'm wondering whether someone might want to take a look: http://stackoverflow.com/questions/5144862/escape-pipe-character-in-org-mode The issue is that I've got tables whose cells contain the '|' character (it's a table of regular

Re: [O] How to escape characters in tables

2011-03-03 Thread Ken.Williams
On 3/3/11 9:57 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote: ken.willi...@thomsonreuters.com writes: ... I've got tables whose cells contain the '|' character (it's a table of regular expressions), and I can't seem to figure out how to escape it so that it doesn't mean a delimiter between cells.