[O] Recursive formulaes in org-mode tables

2015-10-13 Thread michael . zombok
Hi,

I have the following table:

| Year (Beginn) |Price | Increase |
|---+--+--|
|  2016 | 2.00 |  1000.00 |
|  2017 |  |  1000.00 |
|  2018 |  |  1000.00 |
|  2019 |  |  1000.00 |
|  2020 |  |  1000.00 |
|  2021 |  |  1000.00 |
|  2022 |  |  1000.00 |
|  2023 |  |  1000.00 |
|  2024 |  |  1000.00 |
|  2025 |  |  1000.00 |
|  2026 |  |  1000.00 |
|  2027 |  |  1000.00 |
|  2028 |  |  1000.00 |
|  2029 |  |  1000.00 |
|  2030 |  |  1000.00 |
|---+--+--|

I want to compute the price recursively such that the final table looks
like this:

| Year (Beginn) |Price | Increase |
|---+--+--|
|  2016 | 2.00 |  1000.00 |
|  2017 | 22000.00 |  1000.00 |
|  2018 | 24000.00 |  1000.00 |
|  2019 | 26000.00 |  1000.00 |
|  2020 | 28000.00 |  1000.00 |
|  2021 | 3.00 |  1000.00 |
|  2022 | 32000.00 |  1000.00 |
|  2023 | 34000.00 |  1000.00 |
|  2024 | 36000.00 |  1000.00 |
|  2025 | 38000.00 |  1000.00 |
|  2026 | 4.00 |  1000.00 |
|  2027 | 42000.00 |  1000.00 |
|  2028 | 44000.00 |  1000.00 |
|  2029 | 46000.00 |  1000.00 |
|  2030 | 48000.00 |  1000.00 |
|---+--+--|
After reading a related SO question I tried the formula

#+TBLFM: @<<<..>$2=@<<..>>$2+2*$3

but it doesn't work. It gives an error and also seems to operate on
column one instead of the specified column two. Any idea how to
correctly compute column two? I am using org-mode version 8.2.5c with
Emacs version 24.5.1.

Disclaimer: I posted this question also on Stack Overflow:

http://stackoverflow.com/questions/33063425/recursive-formulaes-in-org-mode-tables

Feel free to answer here or there.

Thanks!

Best,
Michael




[O] Howto convert a complete bibtex file into an orgmode file?

2012-11-24 Thread michael . zombok
Hello,

I want to migrate all my research papers and references to orgmode, but
I was not able to figure out howto read/convert an existing bibtex file
(say literatur.bib) to an orgmode file (say literature.org) where each
entry from literatur.bib gets an heading in literatur.org with
attributes corresponding to the stuff from the bibtex entry in
literatur.bib.

As far as I was able to find out, this is only possible for a single
entry via 'org-bibtex-read'.

Is there something like 'org-bibtex-read' for a whole file?

Thanks in advance!

Best,
Michael




Re: [O] 'wrong-type-argument stringp nil' when exporting (reftex/orgmode)

2011-05-10 Thread Michael Zombok
 Matt == Matt Lundin m...@imapmail.org writes:

Matt michael.zom...@googlemail.com writes:
 I am using Org-mode version 7.5 (release_7.5.264.g94664) with GNU
 Emacs 23.2.1. When I do C-c C-e l (or any other export, not only
 latex), I get the error (backtrace) below.
 
 I use reftex with org-mode with the setup described in the FAQ,
 that means in my .emacs is the following:
 
 (require 'reftex) (defun org-mode-reftex-setup () (load-library
 reftex) (and (buffer-file-name) (file-exists-p
 (buffer-file-name)) (reftex-parse-all)) (reftex-set-cite-format
 \\citep{%l}) (define-key org-mode-map (kbd C-c ))
 'reftex-citation)) (add-hook 'org-mode-hook
 'org-mode-reftex-setup) (setq reftex-default-bibliography
 '(/home/basil/docs/liball.bib))

Matt The function reftex-set-cite-format should also be made
Matt conditional on the buffer-file-name and file-exists-p
Matt checks. It calls reftex-TeX-master-file in the temporary
Matt export buffer; this fails because there is no file associated
Matt with the buffer.

Matt Best, Matt

Thank you for the explanation. Your suggestions works fine. :)

Best, 
Michael



[O] 'wrong-type-argument stringp nil' when exporting (reftex/orgmode)

2011-05-07 Thread michael . zombok
Dear All,

I am using Org-mode version 7.5 (release_7.5.264.g94664) with GNU Emacs
23.2.1. When I do C-c C-e l (or any other export, not only latex), I get
the error (backtrace) below.

I use reftex with org-mode with the setup described in the FAQ, that
means in my .emacs is the following:

(require 'reftex) 
(defun org-mode-reftex-setup ()
  (load-library reftex)
  (and (buffer-file-name)
   (file-exists-p (buffer-file-name))
   (reftex-parse-all))
  (reftex-set-cite-format
   \\citep{%l})
  (define-key org-mode-map (kbd C-c )) 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
(setq reftex-default-bibliography '(/home/basil/docs/liball.bib))

Any help is appreciated. Thank you!

Here comes the *Backtrace buffer*:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  expand-file-name(nil)
  reftex-TeX-master-file()
  reftex-tie-multifile-symbols()
  reftex-set-cite-format(\\citep{%l})
  org-mode-reftex-setup()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  (let ((org-inhibit-startup t)) (org-mode))
  (save-current-buffer (set-buffer (get-buffer-create  org-mode-tmp)) 
(erase-buffer) (insert string) (setq case-fold-search t) (let (...) 
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let 
(...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables 
source-buffer ^\\(org-\\|orgtbl-\\)) (org-install-letbind) (run-hooks (quote 
org-export-preprocess-hook)) (untabify (point-min) (point-max)) 
(org-export-handle-include-files-recurse) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) (org-export-mark-list-end) 
(org-export-preprocess-apply-macros) (run-hooks (quote 
org-export-preprocess-after-macros-hook)) (org-export-remove-archived-trees 
archived-trees) (org-export-remove-comment-blocks-and-subtrees) 
(org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get 
parameters :exclude-tags)) (run-hooks (quote 
org-export-preprocess-after-tree-selection-hook)) (org-export-remove-tasks 
(plist-get parameters :tasks)) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (when 
(plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq 
target-alist (org-export-define-heading-targets target-alist)) (run-hooks 
(quote org-export-preprocess-after-headline-targets-hook)) 
(org-export-remember-html-container-classes) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote 
org-export-preprocess-before-selecting-backend-code-hook)) 
(org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees) 
(org-export-remove-clock-lines) (org-export-protect-verbatim) 
(org-export-mark-blockquote-verse-center) (run-hooks (quote 
org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters 
:timestamps) (org-export-remove-timestamps)) (setq target-alist 
(org-export-attach-captions-and-attributes target-alist)) 
(org-export-mark-radio-links) (run-hooks (quote 
org-export-preprocess-after-radio-targets-hook)) 
(org-export-concatenate-multiline-links) (run-hooks (quote 
org-export-preprocess-before-normalizing-links-hook)) ...)
  (with-current-buffer (get-buffer-create  org-mode-tmp) (erase-buffer) 
(insert string) (setq case-fold-search t) (let (...) (remove-text-properties 
... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq 
case-fold-search t) (org-clone-local-variables source-buffer 
^\\(org-\\|orgtbl-\\)) (org-install-letbind) (run-hooks (quote 
org-export-preprocess-hook)) (untabify (point-min) (point-max)) 
(org-export-handle-include-files-recurse) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) (org-export-mark-list-end) 
(org-export-preprocess-apply-macros) (run-hooks (quote 
org-export-preprocess-after-macros-hook)) (org-export-remove-archived-trees 
archived-trees) (org-export-remove-comment-blocks-and-subtrees) 
(org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get 
parameters :exclude-tags)) (run-hooks (quote 
org-export-preprocess-after-tree-selection-hook)) (org-export-remove-tasks 
(plist-get parameters :tasks)) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (when 
(plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq 
target-alist