Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Vikas Rawal
It *sort of* works in that I get LaTeX table syntax wrapped with
 \begin/end{threeparttable}, but then I caught that threeparttable is
 actually a wrapper around tabular. Not sure how you can currently use
 Org to specify two layered wrappers like that? Or you might need
 someone to write an equivalent of #+begin/end_center for
 threeparttable?

 #+begin_threeparttable
 table-generating-stuff
 #+end_threeparttable

 Even more complicate is that tabular ends, then a tablenotes
 environment begins/ends, and only *then* does threeparttable end.


This is precisely the problem. At the moment, there does not seem to be a
way of doing it.

I think it is a major limitation and we should try to overcome it. I do not
know lisp, and can't judge, but is it very difficult to overcome?

Wonder what Carsten/Bastien/Nicholas think.

Vikas


Re: [O] [babel] Bug when updating the hash: meta-lines get deleted

2013-12-14 Thread Sebastien Vauban
Hello Eric,

Eric Schulte wrote:
 Sebastien Vauban sva-n...@mygooglest.com writes:
 Eric Schulte wrote:
 When results caching is enabled, and when the hash must be updated, the
 meta-lines in front of the results block are _deleted_.

 You should use a named code block if you want to decorate the results.

 No, as long as the lines which I do insert between the code block and
 the results are of the type #+..., you _don't_ need to name the block.

 Disable the caching, and see by yourself that you can insert such lines
 without problems.

 This is something Nicolas did a couple of months ago, to avoid having to
 name all the code blocks when they are semantically followed by their
 results -- that is, such #+... lines are like ignored for the update.

 Alright, I just pushed up a fix for this issue.  Please let me know if
 it continues to cause problems for you.

It does fix the problem. Thanks a lot for your prompt fix!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Nicolas Goaziou
Hello,

Vikas Rawal vikasli...@agrarianresearch.org writes:

 It *sort of* works in that I get LaTeX table syntax wrapped with
 \begin/end{threeparttable}, but then I caught that threeparttable is
 actually a wrapper around tabular. Not sure how you can currently use
 Org to specify two layered wrappers like that? Or you might need
 someone to write an equivalent of #+begin/end_center for
 threeparttable?

 #+begin_threeparttable
 table-generating-stuff
 #+end_threeparttable

 Even more complicate is that tabular ends, then a tablenotes
 environment begins/ends, and only *then* does threeparttable end.


 This is precisely the problem. At the moment, there does not seem to be a
 way of doing it.

Of doing what? You can always write raw LaTeX in an Org buffer.

  #+begin_latex
  ...
  the whole threeparttable stuff
  ...
  #+end_latex

You can also build something with special blocks:

  #+begin_threeparttable
  ...
  tabular with Org syntax
  ...
  #+begin_tablenotes
  ... probably some raw LaTeX...
  #+end_tablenotes
  #+end_threeparttable

Moreover, footnotes can give you almost the same result.

 I think it is a major limitation

Aren't you exaggerating a bit?

 and we should try to overcome it. I do not know lisp, and can't judge,
 but is it very difficult to overcome?

I don't know. AFAICT your problem is not clearly defined. But it seems
that you already have a couple solutions to experiment first.


Regards,

-- 
Nicolas Goaziou



Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Vikas Rawal
 \begin/end{threeparttable}, but then I caught that threeparttable is

  actually a wrapper around tabular. Not sure how you can currently use
  Org to specify two layered wrappers like that? Or you might need
  someone to write an equivalent of #+begin/end_center for
  threeparttable?
 
  #+begin_threeparttable
  table-generating-stuff
  #+end_threeparttable
 
  Even more complicate is that tabular ends, then a tablenotes
  environment begins/ends, and only *then* does threeparttable end.
 
 
  This is precisely the problem. At the moment, there does not seem to be a
  way of doing it.

 Of doing what?

You can always write raw LaTeX in an Org buffer.


Nicolas,

The objective is to be able to add notes to a table generated by an R
source code.

It is indeed possible to use raw latex to use threeparttable. I did that
when I prepared a book manuscript earlier this year, my biggest experiment
so far with use of org mode for writing.

This was not entirely satisfactory because it broke the link between my R
source code and the table. Doing this compromises easy reproducibility that
is such a big plus with working on org mode.

I do not know if I am expressing myself clearly. The table is being
generated by an R source code. We need a way of adding notes to such a
table.


 Moreover, footnotes can give you almost the same result.


Unfortunately, on such matters, one has to work with the conventions in
different disciplines. At least in social sciences, it is usually expected
that notes are placed below Tables and Figures, and not as part of
footnotes, which are reserved for notes to text. At least my collaborators
and readers frown when I put table sources and notes in the footnotes.


  I think it is a major limitation

 Aren't you exaggerating a bit?


I meant to say that this is the major limitation in my use of org mode,
which is primarily for writing research papers. I would really like to know
if this is a limitation faced by others using org mode to write research
papers.

I do understand that there are innumerable requests for adding this feature
and that. In particular, it has been said many times before that we cannot
support every possible latex table environment.  But I still think that, in
this area of application of org mode, capability to neatly add a footer to
tables and graphics, including when they are made by a source block, would
be very useful.

Vikas


Re: [O] [babel] how to pass data to gnuplot from another block

2013-12-14 Thread Achim Gratz
Eric Schulte writes:
 I just applied these patches.  The worst case is that users may have to
 change ob-sh to ob-shell in their config (although some initial
 testing seems to indicate that even this change won't be required), and
 possibly replace sh with shell in their local.mk file (if they have
 one) to run tests at the command line.  In my mind this short-term
 hassle is worth the long-term correctness.

Since sh is redundant there and has been for some time (like
emacs-lisp and org it is always loaded since some non-Babel tests need
it), it would be easier to just delete it from BTEST_OB_LANGUAGES if
present.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




[O] Makefile: switch to a specific Git branch before update

2013-12-14 Thread Achim Gratz

In a number of recent discussions it transpired that some people expect
to automatically be switched to a specific Git branch when updating.

I've added this as an option to the standard Makefile.  Simply define
GIT_BRANCH (either on the command line or in local.mk) to determine
which branch you want to update.  If this variable is left undefined,
you stay on the current branch as before.

So, this definition in local.mk

GIT_BRANCH = master

would have the update targets operate on the master branch, regardless
of which branch was checked out before the update.  You can still update
a different branch by overriding that variable like

make GIT_BRANCH=my_branch update

in this case or just stay on your checked-out branch using

make GIT_BRANCH= update

if you wish.  If you are working on several branches, I recommend to
leave this definition out of local.mk however and just use the command
line override when necessary.


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

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Nicolas Goaziou
Vikas Rawal vikasli...@agrarianresearch.org writes:

 I do not know if I am expressing myself clearly. The table is being
 generated by an R source code. We need a way of adding notes to such a
 table.

There are two different problems:

  1. How to generate threeparttable environment using Org syntax and
 `latex' export back-end.
  2. How to generate Org syntax specified above from a source block.

At the moment, my only concern is point 1.

 Unfortunately, on such matters, one has to work with the conventions in
 different disciplines. At least in social sciences, it is usually expected
 that notes are placed below Tables and Figures, and not as part of
 footnotes, which are reserved for notes to text. At least my collaborators
 and readers frown when I put table sources and notes in the footnotes.

Understood. You didn't answer to my suggestion to use special blocks,
though.

 I do understand that there are innumerable requests for adding this feature
 and that. In particular, it has been said many times before that we cannot
 support every possible latex table environment.  But I still think that, in
 this area of application of org mode, capability to neatly add a footer to
 tables and graphics, including when they are made by a source block, would
 be very useful.

If my suggestion to use special blocks doesn't apply, you still need to
properly define your problem. In particular:

- How table notes are generated? Do you want to hijack footnotes in
  table to produce them?
- Should note numbers be configurable?
- Should threeparttable be generated only when table contains at least
  a note and some global option is set to a non-nil value? Or should
  a user explicitly write that he requires such an environment for the
  current table?
- Can another environment than tabular be used within
  threeparttable?
- Is the table environment around mandatory?
- ...


Regards,

-- 
Nicolas Goaziou



Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-14 Thread Nicolas Goaziou
Hello,

Eric Schulte schulte.e...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 Just to be clear, I thought about making parens mandatory in inline
 Babel call syntax. Underscore is overloaded already: underline,
 subscript...


 I'm open to this change.

In fact, they are already mandatory. The problem is different. Current
regexp is:

  
\\([^\n]*?\\)call_\\([^()\n]+?\\)\\(\\[\\(.*?\\)\\]\\|\\(\\)\\)(\\([^\n]*?\\))\\(\\[\\(.*?\\)\\]\\)?

In particular, name is \\([^()\n]+?\\), and can include whitespace
characters. Therefore call_name (args) is valid. Isn't it too much
permissive in the context of an Org (i.e. textual) document?

Also, couldn't we limit names to alphanumeric characters and, maybe,
some puctuation (e.g. hypen)?


Regards,

-- 
Nicolas Goaziou



Re: [O] [BUG] inline source breaks paragraphs

2013-12-14 Thread Nicolas Goaziou
Hello,

Eric Schulte schulte.e...@gmail.com writes:

 Invariably someone would then ask why the newline is being stripped from
 their inline code block.

True.

 I think this is only necessary because the R code block is returning
 10\n instead of 10.  Ideally this should be fixed in ob-R.el.

Ok, I'll let specialists handle the problem then.


Regards,

-- 
Nicolas Goaziou



Re: [O] [BUG] inline source breaks paragraphs

2013-12-14 Thread Andreas Leha
Hi,

Eric Schulte schulte.e...@gmail.com writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

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

 inline source -- when on its own line -- breaks the paragraph, which is
 unexpected.

 Here is a test file:

 * Test

 This is a broken
 src_R[:exports results :results raw]{10}
 paragraph.


 Here is (the relevant part of) the output of the LaTeX export:

 ,
 | \section{Test}
 | \label{sec-1}
 | 
 | This is a broken
 | 10
 | 
 | paragraph.
 `

 The attached patch solves the problem. It may be a bit intrusive,
 though.

 Eric, what do you think?


 Invariably someone would then ask why the newline is being stripped from
 their inline code block.

 I think this is only necessary because the R code block is returning
 10\n instead of 10.  Ideally this should be fixed in ob-R.el.


Maybe the fix should ideally live in ob-R, but I do not agree that
someone should expect 10\n to be returned from an inline source block.
For two reasons (I seem to remember to have read these on this list
before...)
1. The person who gets '10' but wants '10\n' can easily fix this in the
   inline source code.  The other way around I can not fix it.
2. At present, if the inline code returns '10\n' it does not stay
   inline.  So, why is it an inline code at the first place?  At least
   from the exported document's viewpoint then the inline code could as
   well be a regular code block.  So, what is the use of an inline block
   then?


My use-case is quite simple:
I quite often want small inline code blocks in my writing.  Something
like 'the sample size was n = src_R[:results raw]{nrow(P)}' 

In the mean time I'll go with Nicolas' patch -- thanks a lot, Nicolas!

Best,
Andreas




 Best,



 Regards,

 -- 
 Nicolas Goaziou

 From 8ec02a2fa79b8601565ca7b226b8c1e4790f3439 Mon Sep 17 00:00:00 2001
 From: Nicolas Goaziou n.goaz...@gmail.com
 Date: Fri, 13 Dec 2013 21:40:33 +0100
 Subject: [PATCH] ob-core: Preserve paragraph when evaluating inline blocks

 * lisp/ob-core.el (org-babel-insert-result): Trim whitespaces around
   results from inline source blocks.
 ---
  lisp/ob-core.el | 14 --
  1 file changed, 8 insertions(+), 6 deletions(-)

 diff --git a/lisp/ob-core.el b/lisp/ob-core.el
 index 84caed7..a6945e4 100644
 --- a/lisp/ob-core.el
 +++ b/lisp/ob-core.el
 @@ -2048,12 +2048,14 @@ code  the results are extracted in the syntax of 
 the source
 (or ( visible-beg existing-result)
 (= visible-end existing-result
   beg end)
 -(when (and (stringp result)  ; ensure results end in a newline
 -   (not inlinep)
 -   ( (length result) 0)
 -   (not (or (string-equal (substring result -1) \n)
 -(string-equal (substring result -1) \r
 -  (setq result (concat result \n)))
 +;; Ensure inline results never end with a newline, but regular
 +;; results always do.
 +(cond ((not (stringp result)))
 +  (inlinep (setq result (org-babel-trim result)))
 +  ((and ( (length result) 0)
 +(not (or (string-equal (substring result -1) \n)
 + (string-equal (substring result -1) \r
 +   (setq result (concat result \n
  (unwind-protect
  (progn
(when outside-scope-p (widen))




Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Vikas Rawal
On Sat, Dec 14, 2013 at 12:04 PM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Vikas Rawal vikasli...@agrarianresearch.org writes:

  I do not know if I am expressing myself clearly. The table is being
  generated by an R source code. We need a way of adding notes to such a
  table.

 There are two different problems:

   1. How to generate threeparttable environment using Org syntax and
  `latex' export back-end.
   2. How to generate Org syntax specified above from a source block.

 At the moment, my only concern is point 1.


Yes, this is right.

 Unfortunately, on such matters, one has to work with the conventions in

  different disciplines. At least in social sciences, it is usually
 expected
  that notes are placed below Tables and Figures, and not as part of
  footnotes, which are reserved for notes to text. At least my
 collaborators
  and readers frown when I put table sources and notes in the footnotes.

 Understood. You didn't answer to my suggestion to use special blocks,
 though.


I do not know how to use special blocks. I will read the manual and see
what can be done with those. I f special blocks cannot give a statisfactory
solution (I do not know), other questions you raise may be relevant in
exploring a better solution.




 If my suggestion to use special blocks doesn't apply, you still need to
 properly define your problem. In particular:

 - How table notes are generated? Do you want to hijack footnotes in
   table to produce them?

- Should note numbers be configurable?


We should be able to add something to #+RESULTS block. I would think that
the natural way would be to specify threeparttable in #+attr_latex. It
would be ideal to put contents of a footer under a separate headline
(tagged noexport) somewhere in the document with a custom_id property. This
custom_id could be specified along with threeparttable in the above
#+attr_latex. Something like the following:

#+attr_latex: threeparttable [[notes_custom_id_1]]
#+RESUlTS:
|x|y|z|
|1|2|2|

* Table notes   :noexport:
:PROPERTIES:
:CUSTOM_ID: notes_custom_id_1
:END:
+ first note here
+ second note here
+ third note here

- Should threeparttable be generated only when table contains at least
   a note and some global option is set to a non-nil value? Or should
   a user explicitly write that he requires such an environment for the
   current table?


I would think threeparttable be generated when you have something like the
above specified in #+attr_latex.


 - Can another environment than tabular be used within
   threeparttable?
 - Is the table environment around mandatory?
 - ...


I use tabulary inside threeparttable (that is, when I give raw latex code).

The code I used has table environment around it. I am no expert on latex
and I must have put it together using whatever I could find on
threeparttable. I cannot say whether this is mandatory. I am sure other
people on this list would just know this. Otherwise, I can experiment.

I am really stretching my capabilities and knowledge of org. So, please
excuse me, if what I said is nonsensical.

Vikas


Re: [O] orgmod: R and threeparttable

2013-12-14 Thread Vikas Rawal
Nicolas,

Special blocks seem to work very well, actually. Thank you.

This is what you had proposed:

#+begin_threeparttable
  ...
  tabular with Org syntax
  ...
  #+begin_tablenotes
  ... probably some raw LaTeX...
  #+end_tablenotes
  #+end_threeparttable

It seem to work beautifully even when the table is a result of a source
code block. My experiments suggest that when the result changes, on account
of evaluating the source code block again, the special block structure
around is respected.

Super. I am amazed.

Thank you.

I bow.

Vikas


On Sat, Dec 14, 2013 at 1:06 PM, Vikas Rawal 
vikasli...@agrarianresearch.org wrote:




 On Sat, Dec 14, 2013 at 12:04 PM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Vikas Rawal vikasli...@agrarianresearch.org writes:

  I do not know if I am expressing myself clearly. The table is being
  generated by an R source code. We need a way of adding notes to such a
  table.

 There are two different problems:

   1. How to generate threeparttable environment using Org syntax and
  `latex' export back-end.
   2. How to generate Org syntax specified above from a source block.

 At the moment, my only concern is point 1.


 Yes, this is right.

  Unfortunately, on such matters, one has to work with the conventions in

   different disciplines. At least in social sciences, it is usually
 expected
  that notes are placed below Tables and Figures, and not as part of
  footnotes, which are reserved for notes to text. At least my
 collaborators
  and readers frown when I put table sources and notes in the footnotes.

 Understood. You didn't answer to my suggestion to use special blocks,
 though.


 I do not know how to use special blocks. I will read the manual and see
 what can be done with those. I f special blocks cannot give a statisfactory
 solution (I do not know), other questions you raise may be relevant in
 exploring a better solution.




 If my suggestion to use special blocks doesn't apply, you still need to
 properly define your problem. In particular:

 - How table notes are generated? Do you want to hijack footnotes in
   table to produce them?

 - Should note numbers be configurable?


 We should be able to add something to #+RESULTS block. I would think that
 the natural way would be to specify threeparttable in #+attr_latex. It
 would be ideal to put contents of a footer under a separate headline
 (tagged noexport) somewhere in the document with a custom_id property. This
 custom_id could be specified along with threeparttable in the above
 #+attr_latex. Something like the following:

 #+attr_latex: threeparttable [[notes_custom_id_1]]
 #+RESUlTS:
 |x|y|z|
 |1|2|2|

 * Table notes   :noexport:
 :PROPERTIES:
 :CUSTOM_ID: notes_custom_id_1
 :END:
 + first note here
 + second note here
 + third note here

 - Should threeparttable be generated only when table contains at least
   a note and some global option is set to a non-nil value? Or should
   a user explicitly write that he requires such an environment for the
   current table?


 I would think threeparttable be generated when you have something like the
 above specified in #+attr_latex.


 - Can another environment than tabular be used within
   threeparttable?
 - Is the table environment around mandatory?
 - ...


 I use tabulary inside threeparttable (that is, when I give raw latex
 code).

 The code I used has table environment around it. I am no expert on latex
 and I must have put it together using whatever I could find on
 threeparttable. I cannot say whether this is mandatory. I am sure other
 people on this list would just know this. Otherwise, I can experiment.

 I am really stretching my capabilities and knowledge of org. So, please
 excuse me, if what I said is nonsensical.

 Vikas





Re: [O] Unable to push to org-mobile

2013-12-14 Thread Dror Atariah
On Dec 13, 2013, at 23:08 PM, Nick Dokos wrote:

 Dror Atariah dror...@gmail.com writes:
 
 Managed to get [backtrace] output... 
 
 You can find it here: https://gist.github.com/drorata/7950857
 
 I could not find my way in this output... :(
 
 
 If you look at the top of the backtrace it shows this:
 
 ,
 | Debugger entered--Lisp error: (wrong-type-argument sequencep :grouptags)
 | mapconcat(identity (PRIVATE { WORK :grouptags WORK@mittagseminar 
 WORK@open_questions WORK@diss WORK@CV } { IT :grouptags 
 IT@emacs IT@git IT@TeX } { PROG :grouptags PROG@mathematica 
 PROG@cgal } } 4freeTime bms_friday emacs interesting_questions 
 mittagseminar Mittagsseminar NOTE private results work Yvinec 
 Ziegler)  )
 | (insert #+TAGS:  (mapconcat (quote identity) tags  ) \n)
 | ...
 | org-mobile-create-index-file()
 `
 
 The mapconcat line can be evaluated on its own - it does not depend on
 anything else. If you cut and paste it into your *scratch* buffer and
 modify it slightly like this:
 
 --8---cut here---start-8---
 (mapconcat 'identity '(PRIVATE { WORK :grouptags WORK@mittagseminar 
 WORK@open_questions WORK@diss WORK@CV } { IT :grouptags 
 IT@emacs IT@git IT@TeX } { PROG :grouptags PROG@mathematica 
 PROG@cgal } } 4freeTime bms_friday emacs interesting_questions 
 mittagseminar Mittagsseminar NOTE private results work Yvinec 
 Ziegler)  )
 --8---cut here---end---8---
 
 and evaluate it with C-j, you get the exact error. Now look in
 org-mobile-create-index-file for the call
 
 
 (insert #+TAGS:  (mapconcat 'identity tags  ) \n)
 
 You'll find it on line 470 (at least in the version I'm using).
 Before this line there is this code:
 
 ...
 (setq def-tags (mapcar
 (lambda (x)
   (cond ((null x) nil)
 ((stringp x) x)
 ((eq (car x) :startgroup) {)
 ((eq (car x) :endgroup) })
 ((eq (car x) :newline) nil)
 ((listp x) (car x
 def-tags))
 (setq def-tags (delq nil def-tags))
 (setq tags (org-delete-all def-tags tags))
 (setq tags (sort tags (lambda (a b) (string (downcase a) (downcase b)
 (setq tags (append def-tags tags nil))
 (insert #+TAGS:  (mapconcat 'identity tags  ) \n)
 ...
 
 You'll notice that :startgroup is replaced by { , :endgroup is
 replaced by } and :newline is deleted - but there is no mention of
 :grouptags which leads me to suspect that there should be an extra
 line in there, perhaps
 
 ((eq (car x) :grouptags) nil)
 
 Maybe you can try it - better yet, maybe somebody who has some idea of
 how org-mobile works should take a look. I note that if I delete the
 :grouptags instances in the mapconcat call above, it completes without
 error.
Bingo! Adding this line allowed me to complete org-mobile-push successfully! 
Amazing. I have three closing questions:

1. What made you look into lines #460-464? Now when you pointed, it is somehow 
straightforward to check line #470, but there seems to be no indication 
regarding the broken code.
2. What's next? I believe this is a bug... How can I report it?
3. Finally, in the meanwhile, till the bug-fix is out, what is the best 
practice to maintain this patch locally?

Thanks a lot for your hand It was great having it!
Dror
 
 Nick




Re: [O] first step of newbe: *TODO

2013-12-14 Thread stardiviner
You can set global todo keywords with:

(setq org-todo-keywords
  '((sequence TODO(t@/!) | DONE(d@/!

Here @ will add timestamp, and ! will prompt for input.

John Kitchin writes:

 you need to put this in your init.el (or other configuration file) I think:

 (setq org-log-done 'time)

 or add this to the top of the org-file
 #+STARTUP: logdone



 John

 ---
 John Kitchin
 Associate Professor
 Doherty Hall A207F
 Department of Chemical Engineering
 Carnegie Mellon University
 Pittsburgh, PA 15213
 412-268-7803
 http://kitchingroup.cheme.cmu.edu



 On Fri, Dec 13, 2013 at 12:11 PM, Renato renato.pontef...@gmail.com wrote:

 Hi,
 as I already told, I'm a really newbe (to org-mode, as well as emacs)
 I'm starting from the very beginning:
 following the Doc (here: http://orgmode.org/worg/org-
 tutorials/orgtutorial_dto.html)
 I wrote my firs TODO list.
 But when I press C-c C-t over a TODO element, it appear DONE, write near
 the task, but not the CLOSED [time...] on the line after that.

 What I have to do?

 TIA

 Renato

 ps
 sorry, for the stupid question, but it is really my very firs experimet :-(




-- 
[ stardiviner ] Kill the world if you want. That's it.
IRC(freenode): stardiviner \ Twitter:  @numbchild \



Re: [O] publishuing in html5

2013-12-14 Thread Catonano
2013/12/11 Nicolas Goaziou n.goaz...@gmail.com

 Scott Randby sran...@gmail.com writes:

  I already have the following in my file:
 
  #+HTML_DOCTYPE: html5

 You need to upgrade Org then.


I have Org 8.2.4 and it doesn't work anyway


Re: [O] Babel support for the D language

2013-12-14 Thread Thierry Banel
Eric Schulte schulte.eric at gmail.com writes:

 
 I think this incorporation into ob-C.el would be the next logical step.
 You'd want to use the `org-babel-c-variant' in the same manner as C++
 does currently.  But there's no rush, and any changes there couldn't be
 merged until after your FSF copyright assignment forms have been
 completed.
 
 Best Regards,
 

Hi Eric

Done. The merging of ob-C.el and ob-D.el is done.
It is at the end of this file:
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-D.html
Actually, you are right, it makes sense to share common processing in a
single *.el.

I fixed what seems to be a bug.
Tables were translated in C  C++ as something like:
  char MyTable[7][2][11] = { ... };
I changed that to:
  const char* MyTable[7][2] = { ... };
Because the former assumed that all content in the Org table were strings
11-1 characters long.
Other than that, the behavior of C  C++ remains the same,
and the code is very close to the original ob-C.el

Also, in the future we may lift the constraint that tables have to be
homogeneous
(all ints, or all doubles, or all strings).
But that's another story.

12 days have passed since I paper-mailed my copyright assignment to the FSF.
No news.
In the meantime, if you want to use my work, do so:
it is copyrighted with the GPL 3 or later.

Regards,
Thierry





[O] preview beamer frame in org/beamer

2013-12-14 Thread Mirko Vukovic
Is there a command to generate a pdf output of a single beamer frame?

The command would generate the latex file with the correct header, and a
single frame, and process it into a pdf file.

Thanks,

Mirko




Re: [O] publishuing in html5

2013-12-14 Thread Nick Dokos
Catonano caton...@gmail.com writes:

 2013/12/11 Nicolas Goaziou n.goaz...@gmail.com

 Scott Randby sran...@gmail.com writes:

  I already have the following in my file:
 
  #+HTML_DOCTYPE: html5

 You need to upgrade Org then.

 I have Org 8.2.4 and it doesn't work anyway


What OS? What version of emacs? Are you sure you are not
picking up the org-mode bits that are bundled with emacs?

The following file (which I posted before)

--8---cut here---start-8---
#+HTML_DOCTYPE: html5
#+OPTIONS: html5-fancy:t

#+BEGIN_ASIDE
Lorem Ipsum
#+END_ASIDE
--8---cut here---end---8---

produces the following body for me:

,
| body
| div id=content
| h1 class=titlehtml5/h1
| aside
| p
| Lorem Ipsum
| /p
| /aside
| /div
| div id=postamble class=status
| p class=authorAuthor: Nick Dokos/p
| p class=dateCreated: 2013-12-14 Sat 14:30/p
| p class=creatora href=http://www.gnu.org/software/emacs/;Emacs/a 
24.3.50.2 (a href=http://orgmode.org;Org/a mode 8.2.3c)/p
| p class=validationa 
href=http://validator.w3.org/check?uri=referer;Validate/a/p
| /div
| /body
`

Not sure why it says 8.2.3c - I'm running:

Org-mode version 8.2.4 (release_8.2.4-340-g059dc0 @
/home/nick/elisp/org-mode/lisp/)

GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2013-07-14 on pierrot

Linux pierrot 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux

-- 
Nick




Re: [O] Unable to push to org-mobile

2013-12-14 Thread Nick Dokos
Dror Atariah dror...@gmail.com writes:

 Bingo! Adding this line allowed me to complete org-mobile-push successfully! 
 Amazing. I have three closing questions:

 1. What made you look into lines #460-464? Now when you pointed, it is
 somehow straightforward to check line #470, but there seems to be no
 indication regarding the broken code.

Well, line 470 uses the variable tags which depends on def-tags which
is set at the top of the function from org-tag-alist, but is then munged
in the setq starting on line 456 - and the munging done there seemed
particularly relevant to the problem you reported.

 2. What's next? I believe this is a bug... How can I report it?

Consider it reported - thanks for checking it. I'll push the proposed fix later
on today. If it is wrong, we can revert it later, but at least for now
it seems to fix the bug.

 3. Finally, in the meanwhile, till the bug-fix is out, what is the
 best practice to maintain this patch locally?


See the org FAQ:

  
http://orgmode.org/worg/org-faq.html#keeping-local-changes-current-with-Org-mode-development

-- 
Nick




Re: [O] Unable to push to org-mobile

2013-12-14 Thread Nick Dokos
Nick Dokos ndo...@gmail.com writes:

 Dror Atariah dror...@gmail.com writes:

 2. What's next? I believe this is a bug... How can I report it?

 Consider it reported - thanks for checking it. I'll push the proposed fix 
 later
 on today. If it is wrong, we can revert it later, but at least for now
 it seems to fix the bug.


I pushed the patch.

-- 
Nick




Re: [O] publishuing in html5

2013-12-14 Thread Alan L Tyree

On 15/12/13 06:40, Nick Dokos wrote:

Catonano caton...@gmail.com writes:


2013/12/11 Nicolas Goaziou n.goaz...@gmail.com

 Scott Randby sran...@gmail.com writes:

  I already have the following in my file:

 
  #+HTML_DOCTYPE: html5

 You need to upgrade Org then.


I have Org 8.2.4 and it doesn't work anyway


What OS? What version of emacs? Are you sure you are not
picking up the org-mode bits that are bundled with emacs?

The following file (which I posted before)

--8---cut here---start-8---
#+HTML_DOCTYPE: html5
#+OPTIONS: html5-fancy:t

#+BEGIN_ASIDE
Lorem Ipsum
#+END_ASIDE
--8---cut here---end---8---

produces the following body for me:

,
| body
| div id=content
| h1 class=titlehtml5/h1
| aside
| p
| Lorem Ipsum
| /p
| /aside
| /div
| div id=postamble class=status
| p class=authorAuthor: Nick Dokos/p
| p class=dateCreated: 2013-12-14 Sat 14:30/p
| p class=creatora href=http://www.gnu.org/software/emacs/;Emacs/a 24.3.50.2 (a 
href=http://orgmode.org;Org/a mode 8.2.3c)/p
| p class=validationa 
href=http://validator.w3.org/check?uri=referer;Validate/a/p
| /div
| /body
`

Not sure why it says 8.2.3c - I'm running:

Org-mode version 8.2.4 (release_8.2.4-340-g059dc0 @
/home/nick/elisp/org-mode/lisp/)

GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2013-07-14 on pierrot

Linux pierrot 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux

FWIW, I get a body similar to yours but with the correct org mode 
version in creator:


GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 
2013-07-17 on windy


Org-mode version 8.2.4 (8.2.4-dist @ /home/alant/.emacs.d/org-mode/lisp/)

Linux windy 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux

Cheers,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org




Re: [O] publishuing in html5

2013-12-14 Thread Achim Gratz
Nick Dokos writes:
 Not sure why it says 8.2.3c - I'm running:

That looks like the Org version that comes with the trunk Emacs you seem
to be using.

 Org-mode version 8.2.4 (release_8.2.4-340-g059dc0 @
 /home/nick/elisp/org-mode/lisp/)

Most likely org-html-creator-string is pulled in via cus-load.  You
could try if loading testing/org-batch-test-init clears it up.


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] Old style backquotes in ox-texinfo.el

2013-12-14 Thread James Harkins

On Fri, 13 Dec 2013 10:06:03 +0100, Achim Gratz wrote:

James Harkins writes:
 $  git status
 # On branch hjh8.2

You are on your own branch, with unknown modifications.



The current ox-texinfo doesn't have any backquotes, let alone old-style
ones anywhere near those lines.  How about you'd compare your branch to
the release tag and see what changes you've made:


For the record: I just upgraded to release_8.2.4 and the warnings in 
ox-texinfo.el are gone.


The only reason I was on my own branch in case I decide to tinker with 
something. I don't want to mess up any branches in my local git repository. 
So, as a matter of course, when I upgrade, I check out the release tag and 
then do git checkout -b hjh8.2.4 for example.


I had never touched ox-texinfo.el, so I knew that unknown changes were 
not going to affect the issue. You didn't know that -- perfectly okay to 
cover all the bases.


Anyway, I consider this thread to be closed.

hjh



Re: [O] Unable to push to org-mobile

2013-12-14 Thread Dror Atariah

On Dec 14, 2013, at 22:06 PM, Nick Dokos wrote:

 Nick Dokos ndo...@gmail.com writes:
 
 Dror Atariah dror...@gmail.com writes:
 
 2. What's next? I believe this is a bug... How can I report it?
 
 Consider it reported - thanks for checking it. I'll push the proposed fix 
 later
 on today. If it is wrong, we can revert it later, but at least for now
 it seems to fix the bug.
 
 
 I pushed the patch.

Does it mean that I could update the installation through ELPA tomorrow and the 
patch will be there?

Thanks for your help!
Dror