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
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
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
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
C-v C-sorg-babel-execute-subtree
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
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.
>
>
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
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
n
>
> Sent from my iPad
>
--
Thomas S. Dye
http://www.tsdye.com
, 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
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
;
> (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
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)
myself and added \caption
> \label.
> --
> Bjarte
>
--
Thomas S. Dye
http://www.tsdye.com
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
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
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
t; .org and .html file. Thanks! Sincerely, Feiming Chen
>
>
>
>
>
--
Thomas S. Dye
http://www.tsdye.com
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
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
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
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
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
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
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
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
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
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
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
: :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
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
n I control the dimensions of first.png?
--
Thomas S. Dye
http://www.tsdye.com
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
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)
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
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
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
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
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
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
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
>>
>> 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
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
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
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
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
>>
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
>>
> :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"
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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".
>
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
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.
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
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
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
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
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
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
... 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
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
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
| 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
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
>
> #+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
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
>>>
; 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
"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)
&
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
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:
>>>>>
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
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
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
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
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
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
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
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
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
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
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
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
> `
>
> ,----------title.tex
> |
> | \renewcommand\maketitle{\begin{titlepage}%
> | FOO
> | \end{titlepage}% }
> `---
>
> Myles
>
>
--
Thomas S. Dye
http://www.tsdye.com
1101 - 1200 of 1836 matches
Mail list logo