Re: [O] Multicolumn

2012-08-28 Thread Thomas S. Dye
gling it seems that multicolumn support is not yet >>> implemented in org tables. >>> I would need multicolumn headers quite urgently, >>> but I have not yet found a way to make this possible. >>> >>> I think that tables with headers like this: >>> >>> | |mean | s.e.| >>> | gender | varA | varB | varA | varB | >>> >>> are quite common, so I really want to put this feature on the wish list. >>> I am not able to implement this myself. >>> >>> Erich >>> >>> >>> >>> >> >> > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Features and stuff I've been working on.

2012-08-28 Thread Thomas S. Dye
be > automatic. This enables the use of ditaa on Groff exports. It is > controlled with a variable to allow disabling the feature if none of > these options are available. > 2. Ability to resize pic images. Height and attributes are now available > for .pic images in addition to eps ones. > > > Regards, -- Thomas S. Dye http://www.tsdye.com

Re: [O] Org-mode release 7.9

2012-08-25 Thread Thomas S. Dye
Hi Bastien, Bastien writes: > Hi Thomas, > > t...@tsdye.com (Thomas S. Dye) writes: > >> I'm using Org from Elpa (which is neat). When I updated and refreshed >> Org, I got the following error: >> >> Loading >> /Applications/Emacs.app/Contents/R

Re: [O] Org-mode release 7.9

2012-08-24 Thread Thomas S. Dye
ling, Richard > Hansen, Richard Stanton, Robert Lupton the Good, Ryan Kaskel, SW, Samuel > Wales, Sean O'Halpin, Simon Thum, Stefan Vollmar, Steinar Bang, Steve > Revilak, Stuart McLean, Sylvain Rousseau, Sébastien Vauban, T.F. Torrey, > Takaaki Ishikawa, Takafumi Arakaki, Tassilo Horn, T

Re: [O] reevaluate all sorce code blocks?

2012-08-12 Thread Thomas S. Dye
C-v C-sorg-babel-execute-subtree All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] [Contest] Redesign orgmode.org by the end of august

2012-08-11 Thread Thomas S. Dye
Hi Bastien, Bastien writes: > Hi Tom, > > t...@tsdye.com (Thomas S. Dye) writes: > >> Could the "losers" end up on Worg, too? I've often felt the >> need for a good CSS tailored to Org mode and it would be sweet to have >> more choices. > >

Re: [O] [Contest] Redesign orgmode.org by the end of august

2012-08-10 Thread Thomas S. Dye
nd let the > votes speak for themselves :) > > John > > Me too. Could the "losers" end up on Worg, too? I've often felt the need for a good CSS tailored to Org mode and it would be sweet to have more choices. Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Nice theorem display ?

2012-08-07 Thread Thomas S. Dye
t in your Org mode buffer. The operation can be reversed with C-c C-c. I'm glad to hear you enjoy writing LaTeX documents in Org mode. This is something I enjoy, too. Org mode will soon become a much more powerful environment for authoring LaTeX (and other) documents, when Nicolas Goaziou's "new exporter" moves fully into the Org mode core. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Sagemath with org-babel?

2012-08-06 Thread Thomas S. Dye
n > > Sent from my iPad > -- Thomas S. Dye http://www.tsdye.com

Re: [O] babel awk with table input: Code block produced no output.

2012-08-05 Thread Thomas S. Dye
, i'm not sure what > org-babel-string-read does. i thought it was removing quotation marks > from strings (but wasn't sure why). but, running this in *scratch* > gives: > > (org-babel-string-read "this is \"a\" test") > "a" > > rather than "this is a test", as i had assumed. maybe that was a bogus > test? > > [2] changing org-babel-string-read to call org-babel-read with > inhibit-lisp-eval 't causes *my code* to work. my code *also* works if > i say ":results output" or ":results scalar"; i will defensively use one > of these for my code. > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Reftex in Org-Mode exporting and recognizing figures or equations

2012-08-02 Thread Thomas S. Dye
ems to export to latex as a \ref command with citep in > the middle (eg. \ref{citep}). > > (reftex-set-cite-format    "[[citep][%l]]")This doesn't seem to work for > me but maybe I'm doing something wrong. -- Thomas S. Dye http://www.tsdye.com

Re: [O] Getting source code to work

2012-08-01 Thread Thomas S. Dye
; > (org-babel-do-load-languages > 'org-babel-load-languages '((python . t) >(R . t))) > > in my ~/.emacs.d/init.el > > and my version (from M-x org-version) is > Org-mode version 7.8.11 > > Cheers, > Mark > > On Wed, Aug 1

Re: [O] Getting source code to work

2012-08-01 Thread Thomas S. Dye
macs: (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (C . t) (ditaa . t) (dot . t) (emacs-lisp . t) (gnuplot . nil) (haskell . nil) (latex . t) (lisp . t) (ocaml . nil) (org . t) (perl . t) (python . t)

Re: [O] org-table not wrapped in table

2012-07-31 Thread Thomas S. Dye
myself and added \caption > \label. > -- > Bjarte > -- Thomas S. Dye http://www.tsdye.com

Re: [O] conceptual TODO help?

2012-07-28 Thread Thomas S. Dye
entally, what are the @ signs in front of tags for?). > > Are there any keywords I should add or remove? Should I get rid of > DidNot and DidNever (implying not yet and never will)? My keywords are > arbitrary and silly, but I'd like to better understand the states they

Re: [O] Nice example of reproducible research in Org -- add to Worg?

2012-07-19 Thread Thomas S. Dye
John Hendy writes: > On Thu, Jul 19, 2012 at 1:32 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> I was looking for Org + ggobi examples and the top google hit was this page: >>> - >>> http://www.biomedicale.univ-pari

Re: [O] Nice example of reproducible research in Org -- add to Worg?

2012-07-19 Thread Thomas S. Dye
x27;s been seen > before. Does anyone know the author, Christophe Pouzat? Perhaps he'd > be willing to link to his page or add his page to Worg in a fitting > place as it seems like quite a nice addition. > > > John > > Hi John, See http://orgmode.org/worg/org-papers.html. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Embed Interactive Charts from R/Google Visualization API into Web Page Generated with Emacs-Org-Babel Mode

2012-07-18 Thread Thomas S. Dye
t; .org and .html file. Thanks! Sincerely, Feiming Chen > > > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Discovering Babel and R combination!

2012-07-15 Thread Thomas S. Dye
ut is perfect. I'll try > to find some coincidence with other things, that would allow to > hypothesize a cause. Or else, to reproduce the problem with data which > is public enough that I could share it. > > I call it a day for now and get some sleep :-). > > With enough

Re: [O] was this intentional with the default header ":results value"

2012-07-14 Thread Thomas S. Dye
c1 | c2 | |---+| | 123456789123456789000 | 2 | t...@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > I don't know any way to do this in Org-mode. Here is a workaround in R > that might do what you want. > > #+name: luo > #+BEGIN

Re: [O] was this intentional with the default header ":results value"

2012-07-14 Thread Thomas S. Dye
type="org") #+END_SRC #+RESULTS: luo #+BEGIN_ORG | | c1| c2 | |---+---+--| | 1 | 123456789123456789000 | 2.00 | #+END_ORG All the best, Tom Eric Luo writes: > t...@tsdye.com (Thomas S. Dye) writes: > > Thanks, it's clear

Re: [O] was this intentional with the default header ":results value"

2012-07-14 Thread Thomas S. Dye
he output from the source language is collected and displayed in the buffer. Thus, the output conventions of the source language are respected. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Problem getting booktabs example to work

2012-07-13 Thread Thomas S. Dye
ick Dokos for pointing out to me off-list that the example was more broken than I'd thought. All the best, Tom ... who has many reasons to be excited about the new exporter. -- Thomas S. Dye http://www.tsdye.com

Re: [O] Problem getting booktabs example to work

2012-07-13 Thread Thomas S. Dye
86 | 0.990 | 0.995 | >> | omv | 0.941 | 0.939 | 0.936 | > > The document is produced correctly, except for the fact that the > <> chunk appears verbatim in place of the table body. > > As far as I can see I am following the instructions correctly, but I > am probably missing some prerequisite. > > Any pointers appreciated! > > > Regards, > > Brendan Aloha Brendan, My mistake. You are right, the tabularx-export block should also have the header argument :noweb yes. I've pushed this change to Worg. Thanks for pointing it out. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

[O] [PATCH] Re: Manual does not list :results output graphics as babel header arg

2012-07-10 Thread Thomas S. Dye
Thomas S. Dye wrote: >> John Hendy writes: >> >>> On Mon, Jul 9, 2012 at 7:35 PM, Thomas S. Dye wrote: >>>> John Hendy writes: >>>> >>>>> I have typically outputted graphics from R via tikzDevice manually, >>>>> but gave

Re: [O] Manual does not list :results output graphics as babel header arg

2012-07-10 Thread Thomas S. Dye
John Hendy writes: > On Mon, Jul 9, 2012 at 7:35 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> I have typically outputted graphics from R via tikzDevice manually, >>> but gave my first whirl to just including things via the :file >>> argument

Re: [O] Manual does not list :results output graphics as babel header arg

2012-07-09 Thread Thomas S. Dye
be great if someone could find time to work up documentation for the 20 or so languages that still lack it :) hth, Tom > > > John > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] how i pass output of one codeblock as iinput of another codeblock without manual copy paste

2012-07-02 Thread Thomas S. Dye
answer your question: http://orgmode.org/manual/var.html#var You'll probably want to use #+name: code1 rather than #+srcname: code1 Once you've done that, then #+call: transpose(table=code1) ought to work, if the Library of Babel is loaded or you have otherwise defined transpose. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Organizing a collection of papers

2012-06-29 Thread Thomas S. Dye
gt; I work in Org mode and LaTeX. Ebib is integrated with both of them. I follow an Org mode link or a LaTeX citation to the BibTeX entry in Ebib, then open the pdf from Ebib using a link stored in the BibTeX file. I think Ebib is a splendid tool in this situation. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] specifying the coding language resulting from a a :results code source block

2012-06-26 Thread Thomas S. Dye
: :var input=harris-matrix #+header: :file temp.pdf #+header: :cmdline -Tpdf #+header: :results output #+BEGIN_SRC dot $input #+END_SRC It's not quite what you were after, but it might help? All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] :var problems with R

2012-06-21 Thread Thomas S. Dye
ahaRx #+name: myblock #+begin_src R :var xxx=xvar xxx #+end_src #+RESULTS: myblock : ahaRx You don't say what doesn't work, which makes it difficult to diagnose what might be going wrong on your end. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] graphics size

2012-06-21 Thread Thomas S. Dye
n I control the dimensions of first.png? -- Thomas S. Dye http://www.tsdye.com

Re: [O] New Link Syntax: Adding ATTRIBUTES

2012-06-19 Thread Thomas S. Dye
ing like funcall would do a lot of the work. I'd like to see something like this, so the Org-mode buffer could reflect the underlying, possibly user-extended, semantics: $[link "http://mysite.example"; :label "Example" :html-attr "..." :latex-attr "..." :org-attr "..."] All the best, Tom -- Thomas S. Dye http://www.tsdye.com

[O] [PATCH] ob-R.el, redundant list

2012-06-18 Thread Thomas S. Dye
device filearg out-file args + device + (if (member device '("pdf" "postscript" "svg" "tikz")) "file" "filename") + out-file + (mapconcat (lambda (pair) + (format "%s=%S" +(substring (symbol-name (car pair)) 1)

[O] [PATCH] Re: [BUG] [babel] R graphics header arg :units

2012-06-18 Thread Thomas S. Dye
lisp/ob-R.el index d23f269..0802736 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -260,7 +260,7 @@ current code buffer." (setq args (mapconcat (lambda (pair) (if (member (car pair) allowed-args) - (format ",%s=%s" + (format ",%s=%S" (substring (symbol-name (car pair)) 1) (cdr pair)) "")) params "")) -- 1.7.5.4 -- Thomas S. Dye http://www.tsdye.com

Re: [O] Selective export of Babel code blocks

2012-06-18 Thread Thomas S. Dye
suvayu ali writes: > Hi Thomas, > > On Mon, Jun 18, 2012 at 7:11 PM, Thomas S. Dye wrote: >> #+CALL: clean-up() :exports none >> >> This way, the original code block will be exported and subsequent calls >> should not be. > > I think John's use case r

Re: [O] Selective export of Babel code blocks

2012-06-18 Thread Thomas S. Dye
e and very possibly missed something that > can already do this. > > > Thanks! > John > > Hi John, One way to do this might be to name the source code block and then use an #+CALL: line. #+name: clean-up #+begin_src R :exports code dev.off() tools::texi2pdf("file.tex") #+end_src #+CALL: clean-up() :exports none This way, the original code block will be exported and subsequent calls should not be. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] [BUG] [babel] R graphics header arg :units

2012-06-17 Thread Thomas S. Dye
nd leads -- when evaluated -- to the error > > : Fehler in match.arg(units, c("in", "px", "cm", "mm")) : > : 'arg' must be NULL or a character vector > > I guess this is a bug, correct? Otherwise, how do I correctly use > this header argument? > > Regards, > Andreas > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] New Link Syntax: Adding ATTRIBUTES

2012-06-14 Thread Thomas S. Dye
allow Org mode users to directly > apply rich families of link attributes/options. > > The Manual should then indicate that ATTR_HTML is a > /paragraph/-level mechanism, and is no longer intended > for use with links: > http://orgmode.org/org.html#Links-in-HTML-export > > There may, of course, be different/better solutions. > > Thanks for continuing to move this forward! > > -BC > > Is Samuel Wales' extensible syntax proposal germane? http://article.gmane.org/gmane.emacs.orgmode/10204/match=link+syntax All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] [Babel] Complete Reference of Delescluse et al (2012) "Making Neurophysiological Data Analysis Reproducible..."

2012-06-13 Thread Thomas S. Dye
s of the > paper's toy example (using Python and Octave or > using Common Lisp and Gnuplot) from my brand new > (Org designed) web site: http://xtof.disque.math.cnrs.fr/. > > > Christophe -- Thomas S. Dye http://www.tsdye.com

Re: [O] whole-adze dataset?

2012-06-01 Thread Thomas S. Dye
when cut and pasted. I was lazy and just used something I was working on at the time (the graph it produces is at http://adzes.tsdye2.com/adzes.html#sec-1-4, if you are interested). I've pushed a change to Worg that should make it clear that it is just a syntax example. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Losing tabs when tangling or editing

2012-05-30 Thread Thomas S. Dye
>> >> I looked through ob-tangle.el but didn't see anything obvious.  (This is >> neither surprising nor conclusive, given my limited lisp skills.) >> >> -- Mike > > Thanks for pointing this out Bernt. Much nicer than \n\t! All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Exporting via babel to LaTeX

2012-05-28 Thread Thomas S. Dye
John Hendy writes: > On Mon, May 28, 2012 at 10:29 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> On Mon, May 28, 2012 at 6:35 PM, Thomas S. Dye wrote: >>>> John Hendy writes: >>>> >>>>> On Mon, May 28, 2

Re: [O] Exporting via babel to LaTeX

2012-05-28 Thread Thomas S. Dye
John Hendy writes: > On Mon, May 28, 2012 at 6:35 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> On Mon, May 28, 2012 at 4:32 PM, Thomas S. Dye wrote: >>>> John Hendy writes: >>>> >>>>> I've only ever used src bl

Re: [O] org-export-preprocess-hook and the new exporter

2012-05-28 Thread Thomas S. Dye
Eric S Fraga writes: > "Thomas S. Dye" writes: > > [...] > >> Aloha Nicolas, >> >> Has org-e-latex-translate-table gone away? I get: >> Symbol's value as variable is void: org-e-latex-translate-table >> >> I tried greppin

Re: [O] Exporting via babel to LaTeX

2012-05-28 Thread Thomas S. Dye
John Hendy writes: > On Mon, May 28, 2012 at 4:32 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> I've only ever used src blocks to make plots or create files to >>> include. I have my first opportunity to actually try and include both >>

Re: [O] Exporting via babel to LaTeX

2012-05-28 Thread Thomas S. Dye
John Hendy writes: > On Mon, May 28, 2012 at 4:32 PM, Thomas S. Dye wrote: >> John Hendy writes: >> >>> I've only ever used src blocks to make plots or create files to >>> include. I have my first opportunity to actually try and include both >>

Re: [O] org-export-preprocess-hook and the new exporter

2012-05-28 Thread Thomas S. Dye
> :translate-alist ((template . my-e-latex-headline))) > > (defun org-dissertation-export-to-pdf > (&optional subtreep visible-only body-only ext-plist pub-dir) > (interactive) > (org-e-latex-compile >(let ((outfile (org-export-output-file-name ".tex"

Re: [O] Exporting via babel to LaTeX

2012-05-28 Thread Thomas S. Dye
these so the results please you. Here is one example for how to modify the results block: http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10-2. Note that this was written for an earlier version of Org-mode, before results blocks were stored in drawers. Instead of "results" use "foo". You'll need to consult the listings or minted packages to configure one of them. In effect, you will be taking advantage of LaTeX's semantic markup. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Losing tabs when tangling or editing

2012-05-28 Thread Thomas S. Dye
tion of tabs when tangling > > #+BEGIN_SRC sh :tangle Makefile.tangled > > hw:    hw.cpp >     g++ -o hw hw.cpp > > #+END_SRC > > $ make -f Makefile.tangled > Makefile.tangled:3: *** missing separator (did you mean TAB instead of 8 > spaces?).  Stop. > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Unable to Style RESULTS Blocks

2012-05-21 Thread Thomas S. Dye
"Mikhail Titov" writes: >> -Original Message- >> From: emacs-orgmode-bounces+mlt=gmx...@gnu.org [mailto:emacs-orgmode- >> bounces+mlt=gmx...@gnu.org] On Behalf Of Thomas S. Dye >> Sent: Monday, May 21, 2012 12:58 PM >> To: Jeff Rush >> Cc: em

Re: [O] Unable to Style RESULTS Blocks

2012-05-21 Thread Thomas S. Dye
xample #+BEGIN_foo Hello World #+END_foo If you have loaded org-special-blocks, then #+LaTeX_HEADER: \usepackage{framed} #+LaTeX_HEADER: \usepackage{xcolor} #+LaTeX_HEADER: \definecolor{shadecolor}{gray}{.95} #+LaTeX_HEADER: \newenvironment{results}{\begin{shaded}}{\end{shaded}} #+LaTeX_HEADER: \newenvironment{foo}{\begin{framed}}{\end{framed}} hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Outline structure and LaTeX

2012-05-20 Thread Thomas S. Dye
repared with Org mode that might help you follow the LaTeX export path, e.g. http://www.jstatsoft.org/v46/i03, http://orgmode.org/worg/org-contrib/babel/uses.html#sec-6. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Language identifiers

2012-05-20 Thread Thomas S. Dye
and that > this is a two column table, each column itself holding two columns. > Finally, the sorted entries are presented row wise in this two column > table; the table would be easier to consult if the sorted entries were > presented column wise instead. > I totally agree. Do you know how to do this in texinfo? Can you propose a patch? All the best, Tom > François > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] [PATCH] M-x org-version RET now produces some sensible in all possible install/use-cases

2012-05-19 Thread Thomas S. Dye
Achim Gratz writes: > Thomas S. Dye writes: >> Thanks for your response. > > No, thank you — because it turns out that org-reload didn't do the right > thing in your case (i.e. after an org-reload, you'll see that pesky > "N/A" again). Here's

Re: [O] M-x org-version RET now produces some sensible in all possible install/use-cases

2012-05-18 Thread Thomas S. Dye
Aloha Achim, Achim Gratz writes: > Thomas S. Dye writes: >> This seems odd to me, but sensible: >> >> Org-mode version N/A (N/A !!check installation!! @ >> /Users/dk/.emacs.d/src/org/lisp/) > > This means there is an org-install.el in that directory, but it does

Re: [O] M-x org-version RET now produces some sensible in all possible install/use-cases

2012-05-18 Thread Thomas S. Dye
tien, This seems odd to me, but sensible: Org-mode version N/A (N/A !!check installation!! @ /Users/dk/.emacs.d/src/org/lisp/) I used to get a version number. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Using Org for a dissertation

2012-05-12 Thread Thomas S. Dye
exporter in ways that smaller, simpler documents do not. But I doubt if this will be the path of least resistance to the finished dissertation. I'm using ebib to manage BibTeX data now and I really like it. It works well with both LaTeX and Org-mode, so I don't have to switch gears completely to move from one authoring environment to the other. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] "Wrapping" section into LaTeX statements?

2012-05-11 Thread Thomas S. Dye
more sense and is > easier to maintain? > > Thanks, > > Rainer Aloha Rainer, * section \pagebreak ** subsection 1 ** subsection 2 Would this work? Note that \pagebreak doesn't have a required argument--the optional argument \pagebreak[] lets LaTeX decide whether or not to break the page. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] [babel] problem with colnames

2012-05-08 Thread Thomas S. Dye
ara | > |--| > | blu | > > > Finally, setting :colnames nil also strips the first row from the input: > > #+begin_src R :var intab=intab :colnames nil > colnames(intab) <- "rara" > > intab > #+end_src > > #+results: > | rara | > |--| > | blu | > > > Regards, > Andreas > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] New LaTeX exporter and source code blocks

2012-05-06 Thread Thomas S. Dye
Nicolas Goaziou writes: > Hello, > > t...@tsdye.com (Thomas S. Dye) writes: > >> I can't get a \begin{figure*} environment with multicolumn. >> >> Org-mode >> #+CAPTION: A sample black and white graphic (.eps format) that needs to span

Re: [O] New LaTeX exporter and source code blocks

2012-05-05 Thread Thomas S. Dye
Nicolas Goaziou writes: > t...@tsdye.com (Thomas S. Dye) writes: > >> Here is a problem with CAPTION and ATTR_LaTeX lines. Note that the >> \table{} environment wasn't established. >> >> Org-mode >> #+CAPTION: Frequency of Special

Re: [O] New LaTeX exporter and source code blocks

2012-05-05 Thread Thomas S. Dye
Nicolas Goaziou writes: > t...@tsdye.com (Thomas S. Dye) writes: > >> The new LaTeX exporter doesn't properly handle source code blocks with >> :exports results. The following snippet exports correctly with the old >> exporter. >> >> Org-m

[O] New LaTeX exporter and source code blocks

2012-05-05 Thread Thomas S. Dye
Aloha, The new LaTeX exporter doesn't properly handle source code blocks with :exports results. The following snippet exports correctly with the old exporter. Org-mode source #+name: ACM-categories #+header: :var c=categories #+header: :results latex #+header: :exports results #+BEGI

Re: [O] How to make ECM for new exporter?

2012-05-05 Thread Thomas S. Dye
Aloha Nicolas, Nicolas Goaziou writes: > Hello, > > t...@tsdye.com (Thomas S. Dye) writes: > >> I'm starting now to work out the port to the new exporter. I first >> tried the new LaTeX exporter, which stops with this error: >> Symbol's value as variab

[O] How to make ECM for new exporter?

2012-05-05 Thread Thomas S. Dye
Aloha all, I've been tinkering with Karl Voit's ACM-SIG export project and have almost met the project goal using the old exporter. The old LaTeX exporter is able to produce a file that is close to the example provided by ACM and which LaTeX is able to compile without error. (The main problem is

[O] Source block returns error before first headline

2012-05-01 Thread Thomas S. Dye
m, email: {\texttt{jpkumquat@consortium}}).} #+END_LaTeX \maketitle #+BEGIN_abstract This paper provides a sample of a LaTeX document which resembles the style of original ACM LaTeX template ``Option 1: LaTeX2e - Strict Adherence to SIGS style''. The focus on this template is the usage with Emacs Org-mode. Therefore the content is reduced to a minimum. #+END_abstract -- Thomas S. Dye http://www.tsdye.com

Re: [O] Table alignment

2012-04-30 Thread Thomas S. Dye
Bastien writes: > Hi Thomas, > > t...@tsdye.com (Thomas S. Dye) writes: > >> Aligning this table with C-c C-c when the cursor is in one of the cells >> of the first column results in an error: "if: Wrong type argument: >> char-or-string-p, nil". >

[O] Table alignment

2012-04-30 Thread Thomas S. Dye
Aloha all, Aligning this table with C-c C-c when the cursor is in one of the cells of the first column results in an error: "if: Wrong type argument: char-or-string-p, nil". It works in other cells or on one of the hlines. |+--+| | Command

Re: [O] Symbol's value as variable is void: org-version

2012-04-28 Thread Thomas S. Dye
Martyn Jago writes: > Martyn Jago writes: > >> Hi Thomas >> >> t...@tsdye.com (Thomas S. Dye) writes: >> >> >>> Aloha all, >>> >>> In the last day or so, I started running into a problem with a variable, >>> org-version.

[O] Symbol's value as variable is void: org-version

2012-04-28 Thread Thomas S. Dye
EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) -- Thomas S. Dye http://www.tsdye.com -- Thomas S. Dye http://www.tsdye.com

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-25 Thread Thomas S. Dye
Michael Hannon writes: > On Wednesday, April 25, 2012 at 4:52 PM Thomas S. Dye wrote: > >>Michael Hannon writes: >> >>> On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote: >>> . >>> . >>> . >>>> The documentation of read

Re: [O] Exporting to ACM format using new LaTeX exporter

2012-04-25 Thread Thomas S. Dye
Karl Voit writes: > * Thomas S. Dye wrote: >> >> AFAICT, the new exporter preserves most of the interface of the old >> exporter, but smooths over some of the rough edges. It shouldn't >> represent a barrier to your contribution. In fact, it might be useful

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-25 Thread Thomas S. Dye
Michael Hannon writes: > On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote: > . > . > . >> The documentation of read.table has this: > >> The number of data columns is determined by looking at the first five lines >> of input (or the whole file if it h

Re: [O] Exporting to ACM format using new LaTeX exporter

2012-04-25 Thread Thomas S. Dye
Karl Voit writes: > * Thomas S. Dye wrote: >> >> One of the ideas behind the new exporter is that Org-mode source >> prepared for one target can be easily exported to other targets. > > I see. > >> My brief experience with the LaTeX exporter so f

Re: [O] LaTeX-export to ACM SIG Proceedings format

2012-04-24 Thread Thomas S. Dye
Jambunathan K writes: > Karl Voit writes: > >> * Thomas S. Dye wrote: >>> Karl Voit writes: >>> >>>> Maybe it might be a cool idea to work on this template together and >>>> publish it on Worg? I can imagine that several people a

Re: [O] LaTeX-export to ACM SIG Proceedings format

2012-04-24 Thread Thomas S. Dye
... and I did not even get started > working on the content :-) > > 1. http://www.acm.org/sigs/publications/proceedings-templates > 2. http://orgmode.org/worg/org-tutorials/org-latex-export.html Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-24 Thread Thomas S. Dye
t...@tsdye.com (Thomas S. Dye) writes: > Michael Hannon writes: > >> On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote: >> . >> . >> . >>> The documentation of read.table has this: >> >>> The number of data columns is determined b

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-24 Thread Thomas S. Dye
Michael Hannon writes: > On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote: > . > . > . >> The documentation of read.table has this: > >> The number of data columns is determined by looking at the first five lines >> of input (or the whole file if it h

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-23 Thread Thomas S. Dye
| nil | nil | nil | nil | | 1 | 2 | 1 | nil | nil | nil | | 1 | 3 | 3 | 1 | nil | nil | | 1 | 4 | 6 | 4 | 1 | nil | | 1 | 5 | 10 | 10 | 5 | 1 | I think that seq_len(%s) passed the number of columns in the orgtbl-tsv table might do the trick, but I don't know how to do this, or if this information is available. I also don't have any idea what these changes might do to regular tables. All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-23 Thread Thomas S. Dye
NA NA NA NA > 2  1  1 NA NA NA > 3  1  2  1 NA NA > 4  1  3  3  1 NA > 5  1  4  6  4  1 >> >> y <- as.matrix(x) >> >> y > V1 V2 V3 V4 V5 > [1,]  1 NA NA NA NA > [2,]  1  1 NA NA NA > [3,]  1  2  1 NA NA > [4,]  1  3  3  1 NA > [5,]  1  4  6  4  1 >> >> y[is.na(y)] <- 0 >> >> y > V1 V2 V3 V4 V5 > [1,]  1  0  0  0  0 > [2,]  1  1  0  0  0 > [3,]  1  2  1  0  0 > [4,]  1  3  3  1  0 > [5,]  1  4  6  4  1 >> >> dimnames(y)[[2]]=NULL  cosmetic change >> >> y > [,1] [,2] [,3] [,4] [,5] > [1,]    1    0    0    0    0 > [2,]    1    1    0    0    0 > [3,]    1    2    1    0    0 > [4,]    1    3    3    1    0 > [5,]    1    4    6    4    1 >> > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-23 Thread Thomas S. Dye
> > #+name: pascals-triangle > #+begin_src python :var n=2 :exports none :return pascals_triangle(n) > def pascals_triangle(n): > if n == 0: > return [[1]] > prev_triangle = pascals_triangle(n-1) > prev_row = prev_triangle[n-1] > this_row = map(sum, zip([0] + prev_row, prev_row + [0])) > return prev_triangle + [this_row] > #+end_src > > #+RESULTS: pascals-triangle > > | 1 | | | > | 1 | 1 | | > | 1 | 2 | 1 | -- Thomas S. Dye http://www.tsdye.com

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-23 Thread Thomas S. Dye
Hi Eric, Eric Schulte writes: > t...@tsdye.com (Thomas S. Dye) writes: > >> Aloha Michael, >> >> Michael Hannon writes: >> >>> Greetings.  I'm sitting in on a weekly, informal, "brown-bag" seminar on >>> data >>>

Re: [O] Babel: communicating irregular data to R source-code block

2012-04-21 Thread Thomas S. Dye
; 1 3 3 1 > 1 4 6 4 1 > > $ R --vanilla < pascal.R > > R version 2.15.0 (2012-03-30) > Copyright (C) 2012 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > Platform: x86_64-redhat-linux-gnu (64-bit) > . > . > . > >> x <- readLines("pascal.dat") >> x > [1] "1" "1 1"   "1 2 1" "1 3 3 1"   "1 4 6 4 1" >> str(x) >  chr [1:5] "1" "1 1" "1 2 1" "1 3 3 1" "1 4 6 4 1" >> >> y <- scan("pascal.dat") > Read 15 items >> y >  [1] 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 >> str(y) >  num [1:15] 1 1 1 1 2 1 1 3 3 1 ... >> >> z <- read.table("pascal.dat", header=FALSE) > Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : >   line 1 did not have 5 elements > Calls: read.table -> scan > Execution halted > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] [babel] eval code only once :eval once

2012-04-17 Thread Thomas S. Dye
"Sebastien Vauban" writes: > Hi Thomas, > > Thomas S. Dye wrote: >> Torsten Wagner >> writes: >>> I started to use lisp (as well as other) code blocks more and more to >>> modify my work environment (emacs) for a particular (buffer-based) &

Re: [O] Scientific papers related to Org-mode

2012-04-16 Thread Thomas S. Dye
anual!"))) >> #+end_src > > Wouldn't it be David O'Toole instead? I mean: with a normal (or forward, at > least) quote? > > Best regards, > Seb Aloha Seb, Sharp eye! I found this error in two places on Worg, both fixed now. Thanks. Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] layout org-babel menu WAS: About org-babel menu

2012-04-11 Thread Thomas S. Dye
Eric Schulte writes: > Rainer M Krug writes: > >> On 11/04/12 03:40, Eric Schulte wrote: >>> t...@tsdye.com (Thomas S. Dye) writes: >>> >>>> Eric Schulte writes: >>>> >>>>> Torsten Wagner writes: >>>>>

Re: [O] [babel] Literate Programming for publication

2012-04-11 Thread Thomas S. Dye
begin_src python :noweb yes :tangle master.py <> <> #+end_src This involves keeping track of the different code blocks, and there is likely a better way to do this, but the approach should work. hth, Tom > > How can I manage to use different code blocks (latex and python) but > still be able to inject results from python into the latex code > blocks? noweb and vars looked good but it did not work for me. > > Thanks for all input > > Torsten > src_{} > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] [babel] eval code only once :eval once

2012-04-10 Thread Thomas S. Dye
here is no 'no-query' resp. 'always' flag which > would execute code blocks without query even if asked for it in > general but that would be somehow against safety measures ;) > > Totti > > Aloha Totti, Will :cache yes do what you want? Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] layout org-babel menu WAS: About org-babel menu

2012-04-08 Thread Thomas S. Dye
header-args-w-values))) > (arg (when (and args (listp args)) > (org-completing-read > (format "%s: " header) > (mapcar #'symbol-name (car args)) > (insert (concat header " " (or arg ""))) > (cons header arg))) > > (add-hook 'org-tab-first-hook 'org-babel-header-arg-expand) Hi Eric, This is potentially much nicer than a function template. I tried filling out an R source code block's header arguments, but I couldn't find a way to get :results output graphics, which I use frequently for ggplot2 graphics. With TAB I could see type arguments, but not collection or handling arguments. Is there some way to cycle through the various completion lists? All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] layout org-babel menu WAS: About org-babel menu

2012-04-06 Thread Thomas S. Dye
used, specifically how Emacs breaks >> functionality between the menu, configuration and help sub-systems.  It >> is possible that because of such boundaries both the "help" and >> "languages" submenus may not be appropriate. >> >> Two other pieces of menu content which occur to me are a list of the >> code blocks available in the current buffer including some information >> on each block (e.g., name, arguments,), and a way to show the user what >> the current file wide header arguments are -- note: there already exists >> a function for displaying this information on the code block level >> `org-babel-view-source-block-info' which may be sufficient. >> >> Cheers, >> >>> >>>> >>>> I'm not convince we should have a menu item to (de)activate each language >>>> though -- more a menu >>>> that exposes the basics. >>> >>> Agreed. >>> >>> Cheers, >>> >>> Rainer >>> >>> >>> >>> >>>> >>>> Thanks, >>>> >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] table column with trailing 0s

2012-03-27 Thread Thomas S. Dye
ontents of string(!) columns? > > Regards, > Andreas > > > Aloha Andreas, I've been very happy using David Hajage's ascii package for R. See http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html#sec-4-2 for a few examples of how it works with tabular and non-tabular data. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] table as parameter for latex block

2012-03-18 Thread Thomas S. Dye
me: invoice(name=data[0,1], address=data[1,1], country=data[2,1]) >>> #+begin_src latex >>> name >>> address >>> country >>> #+end_src >>> >>> #+RESULTS: invoice >>> #+BEGIN_LaTeX >>> John Doe >>> Doestreet 42 &g

Re: [O] table as parameter for latex block

2012-03-18 Thread Thomas S. Dye
e(data=data) > #+begin_src latex > data[0,1] > data[1,1] > data[2,1] > #+end_src > > or even better: > > #+name: invoice(data=data) > #+begin_src latex > data['Name'] > data['Adress'] > data['Country'] > #+end_src > > > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] I'm tripping over #+BABEL: vs. #+PROPERTY:

2012-03-15 Thread Thomas S. Dye
is going to be a much more > significant fraction of the total. > > BTW, what's the biggest file you (all, not just Seb) have in terms of the > number of code blocks it contains? In my case, the largest one had about > two dozen code blocks, so the 100 case would easily cover me, but I suspect > there are much bigger ones out there. Hi Nick, 118 source code blocks and growing. Tom > > Nick > > -- Thomas S. Dye http://www.tsdye.com

Re: [O] Tangling without clutter?

2012-03-14 Thread Thomas S. Dye
gt; <> > > print entable([["One", 2, 3],["Four", 5, 6], ["Seven", 8, 9]]) > #+end_src > > Which gives us this result: > > #+results: function-demo > : | One | 2 | 3 | > : | Four | 5 | 6 | > : | Seven | 8 | 9 | > > Aloha! Does the :no-expand header argument do what you want? See http://orgmode.org/manual/no_002dexpand.html#no_002dexpand. hth, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] [babel] Bug with empty results

2012-03-12 Thread Thomas S. Dye
Works here. Thanks. Tom Eric Schulte writes: > Fixed, Thanks for the report. > > t...@tsdye.com (Thomas S. Dye) writes: > >> Aloha all, >> >> BEGIN and END are transposed with empty results, as shown in the example >> below. The results shown are fro

[O] [babel] Bug with empty results

2012-03-10 Thread Thomas S. Dye
Aloha all, BEGIN and END are transposed with empty results, as shown in the example below. The results shown are from two evaluations of the source code block. I'm using Org-mode version 7.8.03 (release_7.8.03.575.g06a1b) All the best, Tom * Empty results #+begin_src emacs-lisp :results silent

Re: [O] worg latex example "11 Styling the Frontmatter"

2012-03-08 Thread Thomas S. Dye
d installation methods in the last year or so? From what I'm able to understand, that is sometimes the culprit. hth, Tom Myles English writes: >>> On Thu, 08 Mar 2012 09:01:01 -1000, Thomas S Dye said: > > > Aloha Myles, Your example works for me with emacs -q. I ha

Re: [O] worg latex example "11 Styling the Frontmatter"

2012-03-08 Thread Thomas S. Dye
> ` > > ,----------title.tex > | > | \renewcommand\maketitle{\begin{titlepage}% > | FOO > | \end{titlepage}% } > `--- > > Myles > > -- Thomas S. Dye http://www.tsdye.com

<    7   8   9   10   11   12   13   14   15   16   >