[O] [odt][libreoffice] Conversion issues odt-doc, docx, pdf

2012-02-14 Thread Jambunathan K
Archiving this bug report for later reference.

See https://bugs.freedesktop.org/show_bug.cgi?id=46026
-- 



[O] bug#10745: 24.0.93; Regression: org-meta-return does not honor vertical spacing in lists

2012-02-14 Thread Chong Yidong
Glenn Morris r...@gnu.org writes:

this:

 org-footnote.el:(defvar org-blank-before-new-entry nil) ; silence 
 byte-compiler

 is bogus (the relevant syntax is (defvar foo)).

 Probably so are these:

 org-footnote.el:(defvar org-export-footnotes-seen nil) ; silence byte-compiler
 org-footnote.el:(defvar org-export-footnotes-data nil) ; silence byte-compiler

I removed the bogus values.

Bastien, could you merge the fix to Org upstream?  Thanks.





Re: [O] [babel][patch] sqlite3 in org-babel

2012-02-14 Thread Martyn Jago
Added [babe][patch] to title to avoid patch being overlooked.

Best, Martyn

Daniel Clemente n142...@gmail.com writes:

 Hi,
org-babel works well with sqlite3 if you add this (which I propose for 
 inclusion):

 -
 diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
 index 3f7882c..a59db7a 100644
 --- a/lisp/ob-sql.el
 +++ b/lisp/ob-sql.el
 @@ -82,6 +82,10 @@ This function is called by `org-babel-execute-src-block'.
   (org-babel-process-file-name in-file)
   (org-babel-process-file-name out-file)
   (or cmdline )))
 +('sqlite3 (format sqlite3 %s  %s  %s
 +(or cmdline )
 + (org-babel-process-file-name in-file)
 + (org-babel-process-file-name out-file)))
  (t (error no support for the %s sql engine engine)
  (with-temp-file in-file
(insert (org-babel-expand-body:sql body params)))

 -



Then you can use it in this way:
 #+BEGIN_SRC sql :cmdline -header -list ~/pruebas.sqlite3 :engine sqlite3
 select * from web_categorias;
 #+END_SRC

It's very useful! Org's results table is more interactive than the one you 
 can see in sql-mode (M-x sql-sqlite).



By the way, the code in ob-sql.el attempts to remove final newlines. I use 
 (setq require-final-newline 'ask) and I am being asked about the temporary 
 buffer, which is wrong. So I also propose this patch:

 
 diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
 index 3f7882c..8df0d98 100644
 --- a/lisp/ob-sql.el
 +++ b/lisp/ob-sql.el
 @@ -107,7 +107,8 @@ This function is called by `org-babel-execute-src-block'.
   (delete-char 1)
   (goto-char (point-max))
   (forward-char -1))
 -   (write-file out-file))
 +   (let ((require-final-newline nil))
 + (write-file out-file)))
   (org-table-import out-file '(16))
   (org-babel-reassemble-table
(mapcar (lambda (x)

 



   Greetings,

 Daniel




[O] org-babel export table from R to LaTeX

2012-02-14 Thread Riccardo Romoli
Hi, I work with org-babel and R.
In the R session I create a table that I have to export to LaTeX.
This is the code I use:

#+headers: :results latex
#+begin_src R :session *R* :exports results
.
  print(xtable(summary(mypca)))
#+end_src

I do not understand why the exported table is delimited by |:

|% latex table generated in R 2.14.1 by xtable 1.6-0 package |
| % Tue Feb 14 16:21:48 2012 |
| \begin{table}[ht] |
  | \begin{center} |
| \begin{tabular}{r} |
  | \hline |
  |  PC1  PC2  PC3  PC4  PC5  PC6  PC7  PC8  PC9  PC10 
  PC11  PC12  PC13  PC14  PC15  PC16 \\ |
  | \hline |
  | Standard deviation  3.4693  2.8113  2.5561  2.2668 
  2.0015  1.9236  1.7287  1.6220  1.4288  1.3456  1.2596 
  1.2195  1.1278  1.0778  0.8390  0. \\ |
  | Proportion of Variance  0.2188  0.1437  0.1188  0.0934 
  0.0728  0.0673  0.0543  0.0478  0.0371  0.0329  0.0289 
  0.0270  0.0231  0.0211  0.0128  0. \\ |
  | Cumulative Proportion  0.2188  0.3625  0.4813  0.5747 
  0.6476  0.7149  0.7692  0.8170  0.8541  0.8871  0.9159 
  0.9429  0.9661  0.9872  1.  1. \\ |
  | \hline |
  | \end{tabular} |
| \end{center} |
  | \end{table} |
| |

Should I change some headers settings??

Best


Re: [O] org-babel export table from R to LaTeX

2012-02-14 Thread Riccardo Romoli
If I set :export latex when I exports to LaTeX I have only the R code, not
the table.

Best

2012/2/14 Christophe Pouzat christophe.pou...@gmail.com

 Riccardo Romoli ric.rom...@gmail.com writes:

  Hi, I work with org-babel and R.
  In the R session I create a table that I have to export to LaTeX.
  This is the code I use:
 
  #+headers: :results latex
  #+begin_src R :session *R* :exports results
  .
print(xtable(summary(mypca)))
  #+end_src
 
  I do not understand why the exported table is delimited by |:
 
  |% latex table generated in R 2.14.1 by xtable 1.6-0 package |
  | % Tue Feb 14 16:21:48 2012 |
  | \begin{table}[ht] |
| \begin{center} |
  | \begin{tabular}{r} |
| \hline |
|  PC1  PC2  PC3  PC4  PC5  PC6  PC7  PC8  PC9  PC10 
PC11  PC12  PC13  PC14  PC15  PC16 \\ |
| \hline |
| Standard deviation  3.4693  2.8113  2.5561  2.2668 
2.0015  1.9236  1.7287  1.6220  1.4288  1.3456  1.2596 
1.2195  1.1278  1.0778  0.8390  0. \\ |
| Proportion of Variance  0.2188  0.1437  0.1188  0.0934 
0.0728  0.0673  0.0543  0.0478  0.0371  0.0329  0.0289 
0.0270  0.0231  0.0211  0.0128  0. \\ |
| Cumulative Proportion  0.2188  0.3625  0.4813  0.5747 
0.6476  0.7149  0.7692  0.8170  0.8541  0.8871  0.9159 
0.9429  0.9661  0.9872  1.  1. \\ |
| \hline |
| \end{tabular} |
  | \end{center} |
| \end{table} |
  | |
 
  Should I change some headers settings??
 
  Best
 

 Hi Riccardo,

 Try :exports latex instead of :exports results

 Christophe
 --

 Most people are not natural-born statisticians. Left to our own
 devices we are not very good at picking out patterns from a sea of
 noisy data. To put it another way, we are all too good at picking out
 non-existent patterns that happen to suit our purposes.
 Bradley Efron  Robert Tibshirani (1993) An Introduction to the Bootstrap

 --

 Christophe Pouzat
 MAP5 - Mathématiques Appliquées à Paris 5
 CNRS UMR 8145
 45, rue des Saints-Pères
 75006 PARIS
 France

 tel: +33142863828
 mobile: +33662941034
 web: http://www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat.html



Re: [O] org-babel export table from R to LaTeX

2012-02-14 Thread Christophe Pouzat
Sorry,

Checking foo.org 
(http://orgmode.org/w/?p=worg.git;a=blob_plain;f=org-contrib/babel/examples/foo.org;hb=HEAD)
 I got the correct way to do it:

#+begin_src R :results output latex :exports results
  library(xtable)
  xtable(foo, caption = ANOVA Table, label = tab:one,
  digits = c(0, 0, 2, 0, 2, 3, 3))
#+end_src

Does it solve your problem?

Christophe

Riccardo Romoli ric.rom...@gmail.com writes:

 If I set :export latex when I exports to LaTeX I have only the R code, not the
 table.

 Best

 2012/2/14 Christophe Pouzat christophe.pou...@gmail.com

 Riccardo Romoli ric.rom...@gmail.com writes:

  Hi, I work with org-babel and R.
  In the R session I create a table that I have to export to LaTeX.
  This is the code I use:
 
  #+headers: :results latex
  #+begin_src R :session *R* :exports results
  .
    print(xtable(summary(mypca)))
  #+end_src
 
  I do not understand why the exported table is delimited by |:
 
  |% latex table generated in R 2.14.1 by xtable 1.6-0 package |
  | % Tue Feb 14 16:21:48 2012 |
  | \begin{table}[ht] |
    | \begin{center} |
      | \begin{tabular}{r} |
    | \hline |
    |  PC1  PC2  PC3  PC4  PC5  PC6  PC7  PC8  PC9  PC10 
    PC11  PC12  PC13  PC14  PC15  PC16 \\ |
    | \hline |
    | Standard deviation  3.4693  2.8113  2.5561  2.2668 
    2.0015  1.9236  1.7287  1.6220  1.4288  1.3456  1.2596 
    1.2195  1.1278  1.0778  0.8390  0. \\ |
    | Proportion of Variance  0.2188  0.1437  0.1188  0.0934 
    0.0728  0.0673  0.0543  0.0478  0.0371  0.0329  0.0289 
    0.0270  0.0231  0.0211  0.0128  0. \\ |
    | Cumulative Proportion  0.2188  0.3625  0.4813  0.5747 
    0.6476  0.7149  0.7692  0.8170  0.8541  0.8871  0.9159 
    0.9429  0.9661  0.9872  1.  1. \\ |
    | \hline |
    | \end{tabular} |
      | \end{center} |
    | \end{table} |
  | |
 
  Should I change some headers settings??
 
  Best
 

 Hi Riccardo,

 Try :exports latex instead of :exports results

 Christophe
 --

 Most people are not natural-born statisticians. Left to our own
 devices we are not very good at picking out patterns from a sea of
 noisy data. To put it another way, we are all too good at picking out
 non-existent patterns that happen to suit our purposes.
 Bradley Efron  Robert Tibshirani (1993) An Introduction to the Bootstrap

 --

 Christophe Pouzat
 MAP5 - Mathématiques Appliquées à Paris 5
 CNRS UMR 8145
 45, rue des Saints-Pères
 75006 PARIS
 France

 tel: +33142863828
 mobile: +33662941034
 web: http://www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat.html



-- 

Most people are not natural-born statisticians. Left to our own
devices we are not very good at picking out patterns from a sea of
noisy data. To put it another way, we are all too good at picking out
non-existent patterns that happen to suit our purposes.
Bradley Efron  Robert Tibshirani (1993) An Introduction to the Bootstrap

--

Christophe Pouzat
MAP5 - Mathématiques Appliquées à Paris 5
CNRS UMR 8145
45, rue des Saints-Pères
75006 PARIS
France

tel: +33142863828
mobile: +33662941034
web: http://www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat.html



[O] Temp files from testing are permanent...

2012-02-14 Thread Achim Gratz

I've started to always test each build.  It seems that the temporary
files from testing (they end up in /tmp) are not actually removed after
testing and continue to pile up.  Is there an option that I might have
missed that prevents these files from being removed or should cleaning
those files be added to the Makefile?  Im starting the test suite with

/usr/local/bin/emacs -batch -u myself -L lisp/ \
--eval '(defconst org-release 7.8.03-Test)' \
-l testing/org-test.el \
-eval (setq org-confirm-babel-evaluate nil) \
-f org-test-run-batch-tests


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-babel export table from R to LaTeX

2012-02-14 Thread Andreas Leha
Christophe Pouzat christophe.pou...@gmail.com writes:

 Sorry,

 Checking foo.org
 (http://orgmode.org/w/?p=worg.git;a=blob_plain;f=org-contrib/babel/examples/foo.org;hb=HEAD)
 I got the correct way to do it:

 #+begin_src R :results output latex :exports results
   library(xtable)
   xtable(foo, caption = ANOVA Table, label = tab:one,
   digits = c(0, 0, 2, 0, 2, 3, 3))
 #+end_src

 Does it solve your problem?

 Christophe

 Riccardo Romoli ric.rom...@gmail.com writes:

 If I set :export latex when I exports to LaTeX I have only the R code, not 
 the
 table.

 Best

 2012/2/14 Christophe Pouzat christophe.pou...@gmail.com

 Riccardo Romoli ric.rom...@gmail.com writes:

  Hi, I work with org-babel and R.
  In the R session I create a table that I have to export to LaTeX.
  This is the code I use:
 
  #+headers: :results latex
  #+begin_src R :session *R* :exports results
  .
    print(xtable(summary(mypca)))
  #+end_src
 
  I do not understand why the exported table is delimited by |:
 
  |% latex table generated in R 2.14.1 by xtable 1.6-0 package |
  | % Tue Feb 14 16:21:48 2012 |
  | \begin{table}[ht] |
    | \begin{center} |
      | \begin{tabular}{r} |
    | \hline |
    |  PC1  PC2  PC3  PC4  PC5  PC6  PC7  PC8  PC9  PC10 
    PC11  PC12  PC13  PC14  PC15  PC16 \\ |
    | \hline |
    | Standard deviation  3.4693  2.8113  2.5561  2.2668 
    2.0015  1.9236  1.7287  1.6220  1.4288  1.3456  1.2596 
    1.2195  1.1278  1.0778  0.8390  0. \\ |
    | Proportion of Variance  0.2188  0.1437  0.1188  0.0934 
    0.0728  0.0673  0.0543  0.0478  0.0371  0.0329  0.0289 
    0.0270  0.0231  0.0211  0.0128  0. \\ |
    | Cumulative Proportion  0.2188  0.3625  0.4813  0.5747 
    0.6476  0.7149  0.7692  0.8170  0.8541  0.8871  0.9159 
    0.9429  0.9661  0.9872  1.  1. \\ |
    | \hline |
    | \end{tabular} |
      | \end{center} |
    | \end{table} |
  | |
 
  Should I change some headers settings??
 
  Best
 

 Hi Riccardo,

 Try :exports latex instead of :exports results

 Christophe
 --

 Most people are not natural-born statisticians. Left to our own
 devices we are not very good at picking out patterns from a sea of
 noisy data. To put it another way, we are all too good at picking out
 non-existent patterns that happen to suit our purposes.
 Bradley Efron  Robert Tibshirani (1993) An Introduction to the Bootstrap

 --

 Christophe Pouzat
 MAP5 - Mathématiques Appliquées à Paris 5
 CNRS UMR 8145
 45, rue des Saints-Pères
 75006 PARIS
 France

 tel: +33142863828
 mobile: +33662941034
 web: http://www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat.html



Hi Riccardo,

additionally, if you do not want to get too tightly bound to LaTeX, check
out the ascii-package, e.g.

#+begin_src R :results output org wrap :exports results
  library(ascii)

  ## from the lm help page:
  ctl - c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
  trt - c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
  group - gl(2,10,20, labels=c(Ctl,Trt))
  weight - c(ctl, trt)
  lm.D9 - lm(weight ~ group)
  lm.D90 - lm(weight ~ group - 1) # omitting intercept

  print(ascii(anova(lm.D9)), type=org)
#+end_src


Cheers,
Andreas




[O] requesting help debugging tangle on windows

2012-02-14 Thread Andrew Cheng
Tangle works in my linux environment but doesn't quite work in my windows
environment. Here's my org file. It defines a code snippet named block
and then has a tangle section that refers to block. Tangle results in a
file with two blank lines in my windows environment.

#+name: block
#+begin_src clojure :results silent
(+ 2 3)
#+end_src

#+begin_src clojure :tangle ../src/tmp.clj :results silent :exports none
:noweb yes
block
#+end_src

But --- If my tangle section has regular code in it instead of referring to
other named blocks then the resulting file after tangle has the code
you'd expect.

Below is my org setup. The *Messages* buffer doesn't contain any
interesting error messages. What can I do to find out what's going on?

I did evaluate the following snippet to get C-c C-c to properly evaluate a
clojure code block successfully on my machine. It didn't affect the issue
of tangling. Just thought I'd mention it to be thorough. The snippet is
from Eric Schulte. I thought that by deleting my elpa org folder and
starting emacs again I'd get the latest (with his fix) but I discovered
that I still needed to run this snippet to get C-c C-c to work.

Thanks in advance for any help!

(defun org-babel-execute:clojure (body params)
 Execute a block of Clojure code with Babel.
 (require 'slime)
 (with-temp-buffer
   (insert (org-babel-expand-body:clojure body params))
   ((lambda (result)
  (let ((result-params (cdr (assoc :result-params params
(if (or (member scalar result-params)
(member verbatim result-params))
result
  (condition-case nil (org-babel-script-escape result)
(error result)
(slime-eval
 `(swank:eval-and-grab-output
   ,(buffer-substring-no-properties (point-min) (point-max)))
 (cdr (assoc :package params))

Emacs  : GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-03 on SHAN-PC
Package: Org-mode version 7.7

current state:
==
(setq
 org-export-blocks '((src org-babel-exp-src-block nil) (comment
org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-from-is-user-regexp nil
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-babel-tangle-lang-exts '((clojure . clj) (emacs-lisp . el))
 org-confirm-shell-link-function 'yes-or-no-p
 )


Re: [O] [RFC][ODT] Converting to pdf (or other formats) via odt

2012-02-14 Thread Andreas Leha
Jambunathan K kjambunat...@gmail.com writes:

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Jambunathan K kjambunat...@gmail.com writes:

 I committed the changes only a few minutes ago as part of Org-mode
 version 7.8.03 (release_7.8.03.300.g9b820)

 So the Org version should be at or above the 300th version.

 Jambunathan K kjambunat...@gmail.com writes:

 Thanks to Giles[1] for introducing us to the --convert-to option of
 soffice.exe.  The option seems to be a fairly recent development[2].

 With this change, one can export to pdf (or any other popular format)
 via odt by a simple

 #+begin_src emacs-lisp
   (setq org-export-odt-preferred-output-format pdf)
 #+end_src

 There is no need to install additional converters. It is assumed that
 the user has a working and fairly recent LibreOffice installation.

 Footnotes: 
 [1]
 http://imperfectsoftware.blogspot.in/2012/01/one-of-my-less-enjoyable-tasks-is-to.html

 [2] There seems to be a bunch of fairly recent bugs with this option. So
 a cutting edge LibreOffice would definitely be needed.

 http://www.google.co.in/search?q=headless+%22--convert-to%22+site%3Alibreoffice.orgbtnG=Searchsclient=psy-abhl=ensite=source=hpgbv=1sei=L_gqT97rIMXorAf248C6DA

 Feedback welcome.


 Hi Jambunathan,

 this sounds great.  Unfortunately, this does not seem to work for me.
 Just pulled (last commit c4b233453ca846351bb5ba0893ebb2b8a5b3a941 Merge
 branch 'maint') and I do get
  org-lparse: Don't know how to export to backend docx via odt

 What did I miss?

 The ODT exporter takes the list of known formats based on settings of
 `org-export-odt-convert-capabilities'. The above error indicates that
 docx is not part of the capabilities list. You can add an extension of
 your choosing by:

 M-x customize-variable RET org-export-odt-convert-capabilities RET

 I have now revised the setting of the above variable[1] to include
 docx . 

 Export to docx should work fine now [2]. You will see the following in
 the messages buffer:

 ,
 | Executing soffice --headless --convert-to docx --outdir ~/tmp-odt/ 
 ~/tmp-odt/convert.odt
 | convert ~\tmp-odt\convert.odt - ~\tmp-odt\convert.docx using Office Open 
 XML Text
 `

 There are multiple output filters associated with a docx extension -
 Office Open XML Text seen above is one such filter . Microsoft Word
 2007/2010 XML is the other one. (One can see these options in Save As
 UI of LibreOffice) [3].

 Footnotes: 

 [1] (info (org) Exporting and converting to other formats)
 [2] Conversion works with LibreOffice 3.4.5. 

 To open the resulting docx file with LibreOffice and not with docview,
 you may want to customize `org-file-apps' suitably.

 [3] Similarly there are multiple output filters for the doc extension.

 Currently the ODT exporter's converter interface doesn't support
 choosing a particular output filter for a given document extension and
 lets LibreOffice choose a suitable one. (ie it doesn't support
 output_filter_name option down below)

 , soffice command line syntax:
 | /opt/libreoffice3.4/program/soffice --help
 | LibreOffice 3.4 340m1(Build:101)
 | 
 | Usage: soffice [options] [documents...]
 | 
 | Options:
 | --minimized keep startup bitmap minimized.
 | --invisible no startup screen, no default document and no UI.
 | --norestore suppress restart/restore after fatal errors.
 | --quickstart starts the quickstart service
 | --nologo don't show startup screen.
 | --nolockcheck don't check for remote instances using the installation
 | --nodefault don't start with an empty document
 | --headless like invisible but no userinteraction at all.
 | --help/-h/-? show this message and exit.
 | --version display the version information.
 | --writer create new text document.
 | --calc create new spreadsheet document.
 | --draw create new drawing.
 | --impress create new presentation.
 | --base create new database.
 | --math create new formula.
 | --global create new global document.
 | --web create new HTML document.
 | -o open documents regardless whether they are templates or not.
 | -n always open documents as new files (use as template).
 | 
 | --display display
 | Specify X-Display to use in Unix/X11 versions.
 | -p documents...
 | print the specified documents on the default printer.
 | --pt printer documents...
 | print the specified documents on the specified printer.
 | --view documents...
 | open the specified documents in viewer-(readonly-)mode.
 | --show presentation
 | open the specified presentation and start it immediately
 | --accept=accept-string
 | Specify an UNO connect-string to create an UNO acceptor through which
 | other programs can connect to access the API
 | --unaccept=accept-string
 | Close an acceptor that was created with -accept=accept-string
 | Use -unnaccept=all to close all open acceptors
 | --infilter=filter
 | Force an input filter type if possible
 | Eg. -infilter=Calc Office Open XML
 | --convert-to output_file_extension[:output_filter_name] [-outdir
 | 

Re: [O] Org-edit-special and C-x C-s strange behavior

2012-02-14 Thread Andreas Leha
Leo Alekseyev dnqu...@gmail.com writes:

 I am afraid this might have caused a regression (although it could've
 been something else).  With the latest org-mode pull, C-x C-s in
 org-src buffer does not save the underlying org-file (as expected) but
 instead prompts for file name to save.  This is rather bad behavior.

 On Tue, Jan 24, 2012 at 9:25 AM, Bastien b...@altern.org wrote:
 Hi Leo,

 Leo Alekseyev dnqu...@gmail.com writes:

 Folks, I still think that the fact that buffer-file-name is not nil is
 a bug and should be fixed.

 So do I.  I think this is fixed now -- thanks!

 --
  Bastien

Hi all,

I am also seeing this behaviour and classify it as regression.

Regards,
Andreas




Re: [O] SO question on dynamic arguments

2012-02-14 Thread Andreas Leha
Ken Williams ken.willi...@windlogics.com writes:

 I asked this question on Stack Overflow today, I wonder if someone
 might know the answer here:

  

  
 http://stackoverflow.com/questions/9215216/computing-argument-values-dynamically
  

  

 It’s about computing arguments to a “#+begin_src R” block based on
 previous R results.

  

 Thanks.

  

 --

 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.

Hi Ken,

I think you can not extract variables from underlying processes (like R)
in org.

What you can do in your example, however, is
(1) name the first source block
(2) call it with sbe
(3) do the calculation in emacs-lisp
which would look something like this:

,[ example ]
| #+name: setheight
| #+begin_src R
| x - 5
| #+end_src
| 
| #+begin_src R :results graphics :file foo.svg :height (* 3 (string-to-int 
(sbe setheight)))
| plot(1:10)
| #+end_src
`

Cheers,
Andreas




Re: [O] Org-edit-special and C-x C-s strange behavior

2012-02-14 Thread Andreas Leha
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Leo Alekseyev dnqu...@gmail.com writes:

 I am afraid this might have caused a regression (although it could've
 been something else).  With the latest org-mode pull, C-x C-s in
 org-src buffer does not save the underlying org-file (as expected) but
 instead prompts for file name to save.  This is rather bad behavior.

 On Tue, Jan 24, 2012 at 9:25 AM, Bastien b...@altern.org wrote:
 Hi Leo,

 Leo Alekseyev dnqu...@gmail.com writes:

 Folks, I still think that the fact that buffer-file-name is not nil is
 a bug and should be fixed.

 So do I.  I think this is fixed now -- thanks!

 --
  Bastien

 Hi all,

 I am also seeing this behaviour and classify it as regression.

 Regards,
 Andreas

Hi all,

please ignore my last message.  Saw this too late:
http://article.gmane.org/gmane.emacs.orgmode/52334 (thanks, Leo!)

- Andreas




Re: [O] Temp files from testing are permanent...

2012-02-14 Thread Olaf Meeuwissen
Achim Gratz strom...@nexgo.de writes:

 I've started to always test each build.  It seems that the temporary
 files from testing (they end up in /tmp) are not actually removed after
 testing and continue to pile up.  Is there an option that I might have
 missed that prevents these files from being removed or should cleaning
 those files be added to the Makefile?  Im starting the test suite with

If running `make check` (or similar) creates these files, `make clean`
(or similar) should clean them up.

See [[info:automake-1.11#Clean]] for details.

 /usr/local/bin/emacs -batch -u myself -L lisp/ \
 --eval '(defconst org-release 7.8.03-Test)' \
 -l testing/org-test.el \
 -eval (setq org-confirm-babel-evaluate nil) \
 -f org-test-run-batch-tests

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[O] Archiving old instances of repeating todos

2012-02-14 Thread lbmlist


How do you archive old instances of repeating todos, C-c C-x C-s archives
the whole thing. I'd like to have something that would take the following:

** TODO Mutter an oath
   DEADLINE: 2012-02-13 Mon ++1d -0d
   - State DONE   from TODO   [2012-02-12 Sun 16:25]
   - State DONE   from TODO   [2012-02-09 Thu 18:43]
   - State DONE   from TODO   [2012-02-08 Wed 12:32]
   - State DONE   from TODO   [2012-02-07 Tue 19:28]
   - State DONE   from TODO   [2012-02-06 Mon 15:45]
   - State DONE   from TODO   [2012-02-05 Sun 17:27]
   - State DONE   from TODO   [2012-02-03 Fri 12:20]
   - State DONE   from TODO   [2012-02-02 Thu 22:00]
   - State DONE   from TODO   [2012-02-01 Wed 17:47]
   - State DONE   from TODO   [2012-01-31 Tue 19:32]
   - State DONE   from TODO   [2012-01-30 Mon 17:52]
   - State DONE   from TODO   [2012-01-29 Sun 12:30]
   - State DONE   from TODO   [2012-01-28 Sat 23:05]

and archive it so that the active part would appear something like:

** TODO Mutter an oath
   DEADLINE: 2012-02-13 Mon ++1d -0d
   - State DONE   from TODO   [2012-02-12 Sun 16:25]
   - State DONE   from TODO   [2012-02-09 Thu 18:43]
   - State DONE   from TODO   [2012-02-08 Wed 12:32]
   - State DONE   from TODO   [2012-02-07 Tue 19:28]


And the archive would look something like:

** TODO Mutter an oath
   - State DONE   from TODO   [2012-02-06 Mon 15:45]
   - State DONE   from TODO   [2012-02-05 Sun 17:27]
   - State DONE   from TODO   [2012-02-03 Fri 12:20]
   - State DONE   from TODO   [2012-02-02 Thu 22:00]
   - State DONE   from TODO   [2012-02-01 Wed 17:47]
   - State DONE   from TODO   [2012-01-31 Tue 19:32]
   - State DONE   from TODO   [2012-01-30 Mon 17:52]
   - State DONE   from TODO   [2012-01-29 Sun 12:30]
   - State DONE   from TODO   [2012-01-28 Sat 23:05]



Any help would be appreciated.

Louis



Re: [O] [ODT] image scaling overridden by long caption

2012-02-14 Thread Andreas Leha
Jambunathan K kjambunat...@gmail.com writes:

 Hello Andreas

 I have added support for character anchored images as part of the
 following commit release_7.8.03-201-g1d99fd7.

 I am attaching a sample Org file and the associated ODT output.

 #+TITLE: side-by-side.org
 #+AUTHOR:Jambunathan K
 #+EMAIL: kjambunat...@gmail.com
 #+DATE:  2012-01-23 Mon
 #+DESCRIPTION:
 #+KEYWORDS:
 #+LANGUAGE:  en
 #+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
 #+OPTIONS:   TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc

 #+EXPORT_SELECT_TAGS: export
 #+EXPORT_EXCLUDE_TAGS: noexport
 #+LINK_UP:   
 #+LINK_HOME: 
 #+XSLT:

 * Side-by-Side images using Babel

 Creating side-by-side images with Babel is problematic.

 #+caption: foo
 #+ATTR_ODT: :width 7 :height 7 :anchor as-char
 #+header: :file foo.png
 #+begin_src R :exports results :results graphics
   plot(1:100, 1:100)
 #+end_src
 #+caption: foo
 #+ATTR_ODT: :width 7 :height 7 :anchor as-char
 #+header: :file foo.png
 #+begin_src R :exports results :results graphics
   plot(1:100, 1:100)
 #+end_src


[...]

Hi Jambunathan,

thanks a lot for this.  This side-by-side placement is finally
something, that is better in the odt exporter than in the latex/pdf
route!

As I am not an office user, I have one question, though:  Is it
possible to change the alignment of the boxes such that they get
top-aligned?

See the included example to show why that is interesting to me.

(BTW: If exported to .doc, this .doc does it as expected...)

Regards,
Andreas

PS: The example:

,[ test-side-by-side.org ]
| * Side-by-Side
| #+name: l_image
| #+header: :file limage.png
| #+begin_src R :exports results :results graphics
|   plot(1:10, 1:10)
| #+end_src
| 
| 
| #+name: r_image
| #+header: :file rimage.png
| #+begin_src R :exports results :results graphics
|   plot(1:10, 1:10)
| #+end_src
| 
| 
| #+caption: short caption
| #+attr_odt: :width 7 :anchor as-char
| #+results: l_image
[[| file:limage.png]]
| #+caption: longer caption that needs more lines then the other one to be 
printed on screen which causes not nice bottom alignment.
| #+attr_odt: :width 7 :anchor as-char
| #+results: r_image
[[| file:rimage.png]]
`




[O] Incomplete syntax highlight for C++ code

2012-02-14 Thread Zhiqiu Kong
Hi,

I am a new org-mode user and am trying to take notes with it. As I put
source code into my codes a lot, I love the integration with htmlize pretty
much.  However, I found the syntax highlight on exported html file is not
as what I see in Emacs. To be more specific, only comments and string
literals are colored, which is shown in http://img.ly/dXTK. And here is
what is looks like in Emacs: http://img.ly/dXU6.

Actually, what I expected is the keywords such as int, return should at
least be colored, which is as introduced by emacs-fu (
http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html
).

I checked out the latest org-mode (Org-mode version 7.8.03
(release_7.8.03.336.gdf0a9) ) and htmlize (for git repository), but the
problem remains. Moreover, here is my project setting:

(setq org-publish-project-alist
  '((note-org
 :base-directory ~/Docs/notes/org/
 :publishing-directory ~/Docs/notes/html/
 :htmlized-source t
 :base-extension org
 :sub-superscript nil
 :recursive t
 :publishing-function org-publish-org-to-html
 ;; :org-export-htmlize-output-type css
 :html-extension html
 :auto-index t
 :index-filename index.org
 :index-title My Notes
 :link-home index.html
 ;; :section-numbers nil
 :style link rel=\stylesheet\
href=\css/worg.css\
type=\text/css\/)
(note-static
 :base-directory ~/Docs/notes/org/
 :publishing-directory ~/Docs/notes/html/
 :recursive t
 :base-extension
css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|swf\\|zip\\|gz\\|txt\\|el
 :publishing-function org-publish-attachment)
(My Notes
 :components (note-org note-static)
 :auto-sitemap t
 :auto-index t
 )))

Any suggestion on how to debug and fix this problem? Or this is normal?
Thanks a lot!!


Thanks,
-Zhiqiu