Re: [O] [RFC] [PATCH] ox-latex: support :float no with caption for minted listings

2014-08-24 Thread Nicolas Richard
Aaron Ecay aarone...@gmail.com writes:

 With your patch, when encountering the combination above, the export
 back-end will introduce a captionof command, which requires loading
 caption package with a specific option (i.e., compatibility=false).

 Why is the compatibility=false option needed?  I can’t figure this
 out.

I didn't read the rest of this thread, but if all we need is \captionof,
please use the capt-of package instead. It'll avoid compatibility issues
with other classes/packages a user might load.

-- 
Nico.



[O] contribute: three pane mode for org

2014-08-24 Thread Florian Knupfer
Hello,

I've written a function that enables a three pane view on org files.
I'm quite new to emacs but I'd like to contribute and receive 
feedbacks, improvement etc.

It can be found at:
https://github.com/knupfer/org-panes

Best regards

Re: [O] contribute: three pane mode for org

2014-08-24 Thread Thierry Banel
Good job !

You may be new to Emacs, but you already master a lot:
- hiding-showing,
- indirect buffers,
- save-excursion,
- faces,
- overlays,
- post-command-hook,
- and emacs lisp


Le 23/08/2014 17:06, Florian Knupfer a écrit :
 Hello,

 I've written a function that enables a three pane view on org files.
 I'm quite new to emacs but I'd like to contribute and receive
 feedbacks, improvement etc.

 It can be found at:
 https://github.com/knupfer/org-panes

 Best regards 




[O] OS X mail message linking

2014-08-24 Thread Chris Henderson
I'm looking at http://orgmode.org/worg/org-contrib/org-mac-message.html

How do I setup multiple Gmail accounts with this? As in,  (setq
org-mac-mail-account account) - what should be the account name?

Thanks.


Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-24 Thread Ernesto Durante
Thierry Banel tbanelweb...@free.fr writes:

 Le 20/08/2014 22:40, Ernesto Durante a écrit :

 as the source org file is not guarantied to be in utf-8.

 You may want to give it a try an provide a patch for that.
 3 files are involved:
 - lisp/ob-C.el (you know this one)
 - testing/lisp/test-ob-C.el (to launch unit tests)
 - testing/examples/ob-C-test.org (the unit tests themselves)
 - worg/org-contrib/babel/languages/ob-doc-C.org (the 4th of the 3 files).

 Have fun
 Thierry

Hi Thierry,
Again I really appreciate your help.

As you pointed out unicode is the solution but we have to pay attention
the source file be itself encoded in unicode.

I have worked with VTK (the visualization toolkit). It is like
babel and allows differents block to be chained and evaluated on demand.
In VTK, such a chain is called a pipeline. Clearly the main challenge of VTK is
to ensure that the data flowing between algorithms are compatible.
VTK relies heavily on the type of data.

How in Babel can we associate a type to a data ? to a column of a table ?
to a list ? Without such a information, how can babel infer the type ?

Best
Ernesto



Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-24 Thread Ernesto Durante
Eric Schulte schulte.e...@gmail.com writes:

 Ernesto Durante stobos...@gmail.com writes:

 Perhaps a new header argument should be added for C-Family languages
 which will inhibit this main wrapping behavior?

 -- Eric

Hi Eric,

According to me, we can already inhibit the wrapping with the following
header :main no. Maybe, it should be the default behavior ?


Best
Ernesto



Re: [O] Orgmode/Koma script letter

2014-08-24 Thread Rasmus
Hi,

Bastien b...@gnu.org writes:

 Is there something wrong in what I am doing or is there a problem?

 I don't think there is a code bug.  There is a potentially a
 documentation bug in the first line of the doc string you mentioned.

 Indeed, this is a documentation bug -- can one of you provide a
 patch for it?

Please see attached.

—Rasmus

-- 
This space is left intentionally blank
From 19c35523994e55a0425d6d52159e6f4687e5ff9d Mon Sep 17 00:00:00 2001
From: Rasmus ras...@gmx.us
Date: Sun, 24 Aug 2014 15:35:17 +0200
Subject: [PATCH] ox-koma-letter.el: update docstring

* ox-koma-letter.el (org-koma-letter-prefer-special-headings): change
docstring.
---
 contrib/lisp/ox-koma-letter.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el
index d3aa335..951edf4 100644
--- a/contrib/lisp/ox-koma-letter.el
+++ b/contrib/lisp/ox-koma-letter.el
@@ -222,7 +222,7 @@ This option can also be set with the OPTIONS keyword, e.g.:
   :type 'boolean)
 
 (defcustom org-koma-letter-subject-format t
-  Use the title as the subject of the letter.
+  When non-nil include subject.  Supports formatting options.
 
 When t, insert a subject using default options.  When nil, do not
 insert a subject at all.  It can also be a list of symbols among
@@ -609,7 +609,7 @@ holding export options.
(org-koma-letter--build-settings 'buffer info)
;; From address.
(let ((from-address (org-koma-letter--determine-to-and-from info 'from)))
- (when (org-string-nw-p from-address) 
+ (when (org-string-nw-p from-address)
(format \\setkomavar{fromaddress}{%s}\n from-address)))
;; Date.
(format \\date{%s}\n (org-export-data (org-export-get-date info) info))
-- 
2.1.0



Re: [O] contribute: three pane mode for org

2014-08-24 Thread Suvayu Ali
Hi Florian,

On Sat, Aug 23, 2014 at 05:06:48PM +0200, Florian Knupfer wrote:
 Hello,
 
 I've written a function that enables a three pane view on org files.
 I'm quite new to emacs but I'd like to contribute and receive 
 feedbacks, improvement etc.
 
 It can be found at:
 https://github.com/knupfer/org-panes

I have a small bug report ;).  I created an issue on github.  This looks
like a great library, thanks a lot :).

-- 
Suvayu

Open source is the future. It sets us free.



[O] Capture template expansion

2014-08-24 Thread Alexis Roda

Hi all,
org newbie here, neither proficient with org nor english, please be patient.

I'm having a hard time figuring how to gather property values with 
completion from a capture template.


8-[ .emacs ]
  (setq org-capture-templates
  '((t Todo entry (file+headline gtd.org Tasks)
 * TODO %?
  :PROPERTIES:
  :TIPUS: %^{TIPUS}p
  :END:
)))
8---

8-[ gtd.org ]---
#+PROPERTY: TIPUS_ALL foo bar

* Tasks
8---

gtd.org defines the allowed values for TIPUS but M-x org-capture does 
not provides completion when evaluating %^{TIPUS}p. After expanding the 
template, C-c C-x p does provide completion.


That's intentional? a bug in my setup?



TIA



[O] [BUG] in `org-element-table-interpreter' docstring

2014-08-24 Thread Thorsten Jolitz

Hi List, 

the docstring should rather say something like:

CONTENTS is nil if type is 'table.el', non-nil otherwise. 

#+BEGIN_SRC emacs-lisp
(defun org-element-table-interpreter (table contents)
  Interpret TABLE element as Org syntax.
CONTENTS is nil.
  (if (eq (org-element-property :type table) 'table.el)
  (org-remove-indentation (org-element-property :value table))
(concat (with-temp-buffer (insert contents) [...]
  
#+END_SRC

-- 
cheers,
Thorsten





[O] Error in org guide

2014-08-24 Thread Alexis Roda

Hi all,
the org guide Release 8.2.7c says in page 20, 8.4 Clocking work time:

C-c C-x C-x
  Cancel the current ...

It should say:

C-c C-x C-q


Regards



[O] [RFC] Rewrite radio tables

2014-08-24 Thread Nicolas Goaziou
Hello,

The following patch implements radio tables and `orgtbl-to-...'
functions using Org export engine. The implementation is probably not
totally backward compatible, though.

In particular, I suppressed :remove-nil-lines parameter, as I couldn't
make any sense out of it. If someone has a clear definition of its job,
and if that job is useful, I could implement it back.

Also, process does not dynamically bind `org-table-last-alignment' and
`org-table-last-column-widths' anymore. It should be possible to have
them back with some computations before starting the conversion, but,
unless they are vital, I'd rather not do it. `orgtbl-to-generic' is
tricky enough.

OTOH, I added :raw parameter, which allows to treat cells as strings and
not as Org syntax.

  #+ORGTBL: SEND ... :raw nil
  | *a* |

=

  ...
  \textbf{a}
  ...

  #+ORGTBL: SEND ... :raw t
  | *a* |

=

  ...
  *a*
  ...

I also added some specific parameters to translation functions,
e.g. :booktabs or :environment for `orgtbl-to-latex'. See docstring for
more information.

The patch comes with a test suite. However, it is no real use case.
Therefore, I'd appreciate some human testing before going further.

Feedback welcome.


Regards,

-- 
Nicolas Goaziou0x80A93738
From ac278792f9b6472f02bdd14e5472428bde083ccf Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou m...@nicolasgoaziou.fr
Date: Sun, 24 Aug 2014 01:31:56 +0200
Subject: [PATCH] org-table: Use ox.el internally for radio tables

* lisp/org-table.el (org-table-clean-before-export, orgtbl-get-fmt,
  orgtbl-apply-fmt, orgtbl-eval-str, orgtbl-format-line,
  orgtbl-format-section): Remove functions.
(org-table-clean-did-remove-column, *orgtbl-table*, *orgtbl-rtn*,
  *orgtbl-hline*, *orgtbl-sep*, *orgtbl-default-fmt*, *orgtbl-fmt*,
  *orgtbl-efmt*, *orgtbl-lfmt*, *orgtbl-llfmt*, *orgtbl-lstart*,
  *orgtbl-llstart*, *orgtbl-lend*, *orgtbl-llend*): Remove variables.

(org-table-export, orgtbl-send-table): Apply function removal.  Do not
set `org-table-last-alignment' and `org-table-last-column-widths'
anymore.
(org-table-to-lisp, orgtbl-send-replace-tbl): Small refactoring.

(org-table--to-generic-table, org-table--to-generic-row,
org-table--to-generic-cell): New functions.
(orgtbl-to-generic): Rewrite function.  Handle :skip and :skipcols
parameters.
(orgtbl-to-latex, orgtbl-to-html, orgtbl-to-texinfo, orgtbl-to-orgtbl,
orgtbl-to-unicode): Use new `orgtbl-to-generic' features.

* testing/lisp/test-org-table.el (test-org-table/to-generic,
  test-org-table/to-latex, test-org-table/to-texinfo,
  test-org-table/to-html, test-org-table/to-unicode,
  test-org-table/send-region): New tests.
---
 lisp/org-table.el  | 1037 +---
 testing/lisp/test-org-table.el |  351 ++
 2 files changed, 909 insertions(+), 479 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 06a1008..61be7d2 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -40,7 +40,9 @@
 
 (declare-function org-export-string-as ox
 		  (string backend optional body-only ext-plist))
-(declare-function aa2u ext:ascii-art-to-unicode ())
+(declare-function org-export-create-backend ox)
+(declare-function org-export-get-backend ox (name))
+
 (declare-function calc-eval calc (str optional separator rest args))
 
 (defvar orgtbl-mode) ; defined below
@@ -442,40 +444,6 @@ available parameters.
 			 (org-split-string (match-string 1 line)
 	   [ \t]*|[ \t]*)))
 
-(defvar org-table-clean-did-remove-column nil) ; dynamically scoped
-(defun org-table-clean-before-export (lines optional maybe-quoted)
-  Check if the table has a marking column.
-If yes remove the column and the special lines.
-  (let ((special (if maybe-quoted
-		 ^[ \t]*| *?[\#!$*_^/ ] *|
-		   ^[ \t]*| *[\#!$*_^/ ] *|))
-	(ignore  (if maybe-quoted
-		 ^[ \t]*| *?[!$_^/] *|
-		   ^[ \t]*| *[!$_^/] *|)))
-(setq org-table-clean-did-remove-column
-	  (not (memq nil
-		 (mapcar
-		  (lambda (line)
-			(or (string-match org-table-hline-regexp line)
-			(string-match specialline)))
-		  lines
-(delq nil
-	  (mapcar
-	   (lambda (line)
-	 (cond
-	  ((or (org-table-colgroup-line-p line)  ;; colgroup info
-		   (org-table-cookie-line-p line);; formatting cookies
-		   (and org-table-clean-did-remove-column
-			(string-match ignore line))) ;; non-exportable data
-	   nil)
-	  ((and org-table-clean-did-remove-column
-		(or (string-match ^\\([ \t]*\\)|-+\\+ line)
-			(string-match ^\\([ \t]*\\)|[^|]*| line)))
-	   ;; remove the first column
-	   (replace-match \\1| t nil line))
-	  (t line)))
-	   lines
-
 (defconst org-table-translate-regexp
   (concat \\( @[-0-9I$]+ \\| [a-zA-Z]\\{1,2\\}\\([0-9]+\\|\\) \\))
   Match a reference that needs translation, for reference display.)
@@ -624,8 +592,6 @@ are found, lines will be split on whitespace into fields.
 

Re: [O] [BUG] in `org-element-table-interpreter' docstring

2014-08-24 Thread Nicolas Goaziou
Hello,

Thorsten Jolitz tjol...@gmail.com writes:

 the docstring should rather say something like:

 CONTENTS is nil if type is 'table.el', non-nil otherwise. 

 #+BEGIN_SRC emacs-lisp
 (defun org-element-table-interpreter (table contents)
   Interpret TABLE element as Org syntax.
 CONTENTS is nil.
   (if (eq (org-element-property :type table) 'table.el)
   (org-remove-indentation (org-element-property :value table))
 (concat (with-temp-buffer (insert contents) [...]

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou



[O] Bug: org-called-with-limited-levels should be initialized [8.2.7c (8.2.7c-44-g3fed03-elpaplus @ /Users/ryan/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20140818/)]

2014-08-24 Thread Ryan


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See

http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


When I call org-promote on a top-level heading, I get an error because
org-called-with-limited-levels is not bound to a value. This is
because the defvar form that declares it does not provide an initial
value. I assume the fix is to initialize it to nil.

Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, NS 
apple-appkit-1265.20)

of 2014-06-01 on tennine-slave.macports.org
Package: Org-mode version 8.2.7c (8.2.7c-44-g3fed03-elpaplus @ 
/Users/ryan/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20140818/)


current state:
==
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe

org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-adapt-indentation nil
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-confirm-shell-link-function 'yes-or-no-p
org-support-shift-select t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-from-is-user-regexp \\Ryan C\\. Thompson\\
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '((lambda nil
(org-add-hook (quote change-major-mode-hook)
(quote org-show-block-all) (quote append) (quote local))
)
#[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-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)

org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
)




Re: [O] [RFC] [PATCH] ox-latex: support :float no with caption for minted listings

2014-08-24 Thread Nicolas Goaziou
Hello,

Aaron Ecay aarone...@gmail.com writes:

 Why is the compatibility=false option needed?  I can’t figure this
 out.

This is in my local copy of the minted manual, in 7 Known issues. It
may be outdated, though.

 “Pretty” source code export in all cases requires adding certain packages
 to the default, as explained in the docstring of ‘org-latex-listings’.
 The patch adds discussion of the caption requirement there, so there is
 no “if” about the documentation.

 I don’t understand what you’re saying about introducing “support” for
 the caption package.  The patch uses one specific feature of the caption
 package in one specific place to accomplish one specific goal.  There
 are no other changes needed anywhere else in the codebase than these
 couple of lines in one function (plus the documentation).

With your patch latex back-end can produce \captionof macros. This is
what I call (partial) support from Org: knowing the macro.

Again, using this macro is an error in the default configuration.
Besides not doing using it at all, there are usually two ways to solve
the problem:

  1. Add the package in the default package list, so the combination
 still works out of the box for anyone. E.g., `rotating' package.
 Use with care, more packages is a higher risk of incompatibilites
 between them. The lighter counterpart of `caption' package may be
 safe though.

 OTOH, once the package is in the default package list, it can be
 used everywhere in the back-end. This can be an advantage if there
 are several places that could use \captionof.

  2. Suggest, through docstring or manual, to the user to require
 a specific package if he wants to benefit from the feature. E.g.,
 `booktabs'.

 Usually, the situation makes it obvious that such a package is
 required (e.g. :environment longtabu or :booktabs t).
 Unfortunately, this is not the case here. Under some
 circumstances, :float nil needs `caption' (or its lighter
 counterpart). I find it a bit too magical.

 Note there is also :caption attribute which is used in tables and
 special blocks, but not in source blocks, which may come handy
 here.


WDYT?


Regards,

-- 
Nicolas Goaziou



Re: [O] Error in org guide

2014-08-24 Thread Nicolas Goaziou
Hello,

Alexis Roda alexis.roda.villalo...@gmail.com writes:

 the org guide Release 8.2.7c says in page 20, 8.4 Clocking work time:

 C-c C-x C-x
   Cancel the current ...

 It should say:

 C-c C-x C-q

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] Rewrite radio tables

2014-08-24 Thread Thorsten Jolitz
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

Hello,

 The following patch implements radio tables and `orgtbl-to-...'
 functions using Org export engine. The implementation is probably not
 totally backward compatible, though.
  
funny, I just wrote `org-dp-create-table' (in
https://github.com/tj64/org-dp) a few hours ago, obviously it is not
competing with this rather complex framework of Org table creation, but
it does its job and might be useful for anybody just looking for a
simple way to create a table programmatically.

Usage is:

#+BEGIN_SRC emacs-lisp :results raw
(org-dp-create-table
 (list
   '(col1 col2 col3)
   'hline
   '(a b c)
   '(1 2 3)
   'hline
   '(x y z)))
#+END_SRC

#+results:
| col1 | col2 | col3 |
|--+--+--|
| a| b| c|
| 1| 2| 3|
|--+--+--|
| x| y| z|


implementation is:

#+BEGIN_SRC emacs-lisp
(defun org-dp-create-table (row-lst)
  Create table of type 'org'.
ROW-LST is an alist of lists with elements that are contents of a
single row's table cells, e.g.

 (list
   (list \col1\ \col2\ \col3\)
   'hline
   (list 1 2 3)
   (list 'x 'y 'z))

for a table with 3 columns and 4 rows, including one horizontal
line.
  ;; table
  (org-dp-create 
   'table
   (mapconcat
(lambda (--row-cells)
  (if (eq --row-cells 'hline)
  ;; rule rows
  (org-dp-create 'table-row nil nil nil :type 'rule)
;; standard rows
(org-dp-create 'table-row
   (mapconcat
(lambda (--cell-cont)
  ;; cells
  (org-dp-create 'table-cell
 (format %s --cell-cont)))
--row-cells )
   nil nil :type 'standard)))
row-lst )
   nil nil :type 'org))
#+END_SRC

-- 
cheers,
Thorsten




Re: [O] [RFC] Rewrite radio tables

2014-08-24 Thread Thorsten Jolitz
Thorsten Jolitz tjol...@gmail.com writes:

 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 The following patch implements radio tables and `orgtbl-to-...'
 functions using Org export engine. The implementation is probably not
 totally backward compatible, though.

Btw, great job - thats quite a complex part of Org-mode, looks like a
lot of work ...

 funny, I just wrote `org-dp-create-table' (in
 https://github.com/tj64/org-dp) a few hours ago, obviously it is not
 competing with this rather complex framework of Org table creation, but
 it does its job and might be useful for anybody just looking for a
 simple way to create a table programmatically.

Just figured out that I can make the function more generic with a few
changes, now it handles table-formulas and table.el tables too, so FYI: 

,[ C-h f org-dp-create-table RET ]
| org-dp-create-table is a Lisp function in `org-dp-lib.el'.
| 
| (org-dp-create-table ROW-LST optional TBLFM TABLE-EL-P)
| 
| Create table with content ROW-LST.
| ROW-LST is an alist of lists with elements that are contents of a
| single row's table cells, e.g.
| 
|  (list
|(list col1 col2 col3)
|'hline
|(list 1 2 3)
|(list 'x 'y 'z))
| 
| for a table with 3 columns and 4 rows, including one horizontal
| line.
| 
| TBLFM, if given, should be a list containing a table formula as
| string. If TABLE-EL-P is non-nil, the table type will be
| 'table.el, otherwise its is 'org by default.
`

usage:

#+BEGIN_SRC emacs-lisp :results raw
  (org-dp-create-table
   (list
;; rows
(list col1 col2 col3)
'hline
(list a b c)
(list 1 2 3)
'hline
(list 'x 'y 'z))
   ;; table-formula 
   (list x=y)
   ;; table type
   ; t)
#+END_SRC

#+results:
| col1 | col2 | col3 |
|--+--+--|
| a| b| c|
| 1| 2| 3|
|--+--+--|
| x| y| z|
#+TBLFM: x=y


-- 
cheers,
Thorsten




Re: [O] Babel-R TBLFM example

2014-08-24 Thread Shiyuan
I am looking at a simpler example, the pie-chart example as in this link:
http://orgmode.org/worg/org-contrib/babel/intro.html#literate-programming

This example(src code attached in the end) first generates a table by a
shell command and then run a R one-liner which uses the table.  However,
when the R code is evaluated, I got an error about the object dirs not
found.  This is what I got in the buffer running R:
---
options(STERM='iESS', str.dendrogram.last=', editor='emacsclient',
show.error.locations=TRUE)

Error in pie(dirs[, 1], labels = dirs[, 2]) (from
test-org-babe-meta-programming.org@24170fIx#1) : object 'dirs' not found
---

It looks like that the conversion is wrong.  When I run
`org-babel-expand-src-block`
on the R source code, I don't see the R object dirs is expanded to
anything. I don't understand how the conversion works, and how Babel passes
the table to R. Any explanation is appreciated. Which function/file should
I look at? Are there working examples for passing a table to R? Thanks.

Shiyuan


--
#+name: directories
#+begin_src shell :results replace
  cd ~  du -sc * |grep -v total
#+end_src

#+RESULTS: directories
|   8 | #*message*-20140319-231047# |
| 1168376 | Documents   |
| 9952288 | Downloads   |
|   8 | xmodmap2~   |

#+name: directory-pie-chart(dirs = directories)
#+begin_src R :session R-pie-example :file ~/tmp/dirs.png
  pie(dirs[,1], labels = dirs[,2])
#+end_src


On Tue, Jul 29, 2014 at 6:20 AM, Bastien b...@gnu.org wrote:

 Hi Shiyuan,

 Shiyuan gshy2...@gmail.com writes:

  Thanks Bastien. I see ob-R.el from org-mode repos has been updated.
  So is the org-R from git-repos ready to use? Could you suggest  a
  good place to start learning the new org-R? The source file ob-R.el?

 The recent committers to ob-R.el we be more in a position to help here
 but yes, reading the source is certainly a good start.

 I hope we will have a clear picture of what changed in ob-R.el in 8.3,
 together with updated tutorials.

 Best,

 --
  Bastien



[O] [BUG] Export option ^:{} does not work inside tags

2014-08-24 Thread Thorsten Jolitz

Hi List, 

when exporting this to latex/pdf

,
| #+OPTIONS: ^:{}
| * ORG SCRATCH :foo_bar:
| Hallo_World
`

it translates to this

,
| % Created 2014-08-25 Mo 02:23
| \documentclass[11pt]{article}
| [...]
| \section{ORG SCRATCH\hfill{}\textsc{foo_bar}}
| \label{sec-1}
| Hallo\_World
| % Emacs 24.3.1 (Org mode 8.3beta)
| \end{document}
`

where the '_' in tag 'foo_bar' is interpreted as subscript, not as literal
underscore (look at the produced pdf), while content 'Hallo_World' is
treated as expected.

Bug or (kind of a) feature?

-- 
cheers,
Thorsten





[O] utf8x and org-mode 8

2014-08-24 Thread Daniel Szmulewicz
Hi, 

I understand that org-latex derives the encoding from the buffer. 
In the .tex” file produced by the exporter, I see this line:
\usepackage[utf8]{inputenc}

However, I would like to set it to:
\usepackage[utf8x]{inputenc}

I need to account for special French spacing characters: “espaces insécables. 

Old tricks to achieve this with previous org-mode versions don’t seem to work. 
What is the best way to export an org buffer and have it set to utf8x with the 
latest org-mode version?

Thank you in advace.
--
Daniel Szmulewicz
daniel.szmulew...@gmail.com