Re: [O] [bug] TODO [/] cookie not updating if list has inline task

2015-06-11 Thread e.fraga
On Tuesday,  9 Jun 2015 at 17:09, Nicolas Goaziou wrote:
 e.fr...@ucl.ac.uk writes:

 coming back to my original problem: is there a consensus on how
 inline
 tasks should be treated within lists?  Inline means to me that they
 should not break up a list... but I would like this resolved if
 possible.

 Fixed in a4cc9d82d8069741be64c55f35f9d3ad7e2663d5. Thank you.

and thanks again!
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-802-g7e4228.dirty



Re: [O] [bug] Error evaluating table expression with relative references

2015-06-11 Thread e.fraga
On Tuesday,  9 Jun 2015 at 15:04, Nicolas Goaziou wrote:
 Hello,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 I seem to have encountered a bug in table spreadsheet
 evaluations.  See
 this example:

 #+begin_src org
   ,* Table evaluation with relative references
   | 1 | 2 | 3 |  6 |
   | 1 | 2 | 3 | #ERROR |
   ,#+TBLFM: @1$4=vsum($1..$3)::@2$4=vsum($1..$-1)
 #+end_src

 As far as I can tell, the two formulae should be equivalent?  Or am
 I
 missing something silly (not unlikely ;-)?

 Turning on debugging shows that the first formula gets converted to
 vsum([1,2,3]) whereas the second goes to vsum((1)..(3)).

 Fixed in 3924989b4f45a5c7ff89a4f7abdebc570cbaf7e2. Thank you.

Confirmed!  Many thanks.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-802-g7e4228.dirty



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-11 Thread Phillip Lord

I didn't know about this -- this could be a killer feature for me. I
work a lot with biologists and medics and they are completely
word-centric.

Phil

Titus von der Malsburg malsb...@posteo.de writes:

 On 2015-06-10 Wed 07:14, Ken Mankoff wrote:
 I found a happy medium working in Org, exporting to LaTeX, and then
 using Pandoc to convert to Word.

 With ox-pandoc you can export to .docx directly.  No need to go through
 LaTeX.  Ox-pandoc is pretty amazing.

   Titus

 I would send the Word and always the canonical PDF version in case some
 equations got messed up. This requires manually incorporating the tracked
 changes from Word, but I've never been a fan of just clicking accept on
 changes anyway, and don't mind the manual re-integration of comments.

   -k.
   

 On 2015-06-10 at 09:49, John Kitchin jkitc...@andrew.cmu.edu wrote:
 Speaking as an advisor/teacher, you should do what they want if you want
 them to help you.

 You could ask if they are willing to comment on the pdf, either by hand
 writing on a printed version, or by pdf commenting, or maybe in the
 LaTeX source. But, if that is not what they want, and they cannot work
 with what you give them, you will not get as much feedback as you want,
 and you will end up creating frustration on your end and theirs.

 windy writes:

 Another question, I am a student , I think it is a big problem that how to
 exchange you article with your teacher, because the teacher will comment
 or revise your article once again and again.

 However, Many teachers will not use emacs to write articles and also the
 pdf file is not so convenient to do some modification, how will you deal
 with the problem ?







 在2015年06月09 21时21分, John Kitchinjkitc...@andrew.cmu.edu写道:

 you might also enjoy our youtube video:
 https://www.youtube.com/watch?v=fgizHHd7nOo

 And this one on using org-mode in teaching:
 https://www.youtube.com/watch?v=IsSMs-4GlT8list=FLQp2VLAOlvq142YN3JO3y8w

 and
 https://www.youtube.com/watch?v=cRUCiF2MwP4

 See http://github.com/jkitchin/jmax for my Emacs setup for
 org-mode.

 My only other advice is start learning to program in emacs-lisp. It took
 me about four years to get proficient enough to write org-ref. I learned
 by solving lots of little problems, and building up to bigger
 problems. A lot of those are documented in my blog. Read the emacs and
 emacs-lisp manuals (read them in Emacs or in a browser). They take some
 time, so skip the stuff that doesn't make sense and come back to it
 later if you need to. Consider getting the book at
 https://www.masteringemacs.org. It isn't about org-mode, but it will
 make you better at using Emacs. Consider reading Land of Lisp. It isn't
 about Emacs or Emacs-lisp, but it might interest you in programming in a
 lispy language, and it is a fun read.

 Buy the org-mode book:
 http://www.amazon.com/Org-Mode-Reference-Manual-Organize/dp/9881327709/ref=sr_1_1?ie=UTF8qid=1433855847sr=8-1keywords=org-mode.
 yes,
 it is the same stuff as in the manual, but it is a book you can read
 anywhere anytime.

 Start by learning how to get org-mode to do some things you want. Just
 do one thing a day. Every day.

 You hopefully have 30+ years of career ahead of you, so even if it takes
 a few years or more to learn how to program in emacs-lisp to customize
 your workflows, you still have plenty of time to benefit from it!

 Best wishes,

 Holger Wenzel writes:

 Hi Xebar,



 Xebar Saram zeltakc at gmail.com writes:



 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive google
 research yet found that as can be seen in your link most entries focus on
 either writing papers or general bits an pieces .What i am looking for is 
 a
 holistic approach regarding organizing all aspects of academic life and to
 hear workflows of other colleagues using org for that



 I'd start with:

 http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
 mode-for/

 follow John Kitchin's blog there closely and read everything he posts in
 this list.

 Cheers,

 Holger
 z


 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty
 viewpoint)?
  Tips or a good guides sought after :)
  Hi all
 
  Im a young assistant professor (in humanities and thus my horrific
 coding
  skills..basically non ) and having been using orgmode for a year or two
  now. I love orgmode dearly and use it mainly for note taking, lists etc
 
  I am aware of the fantastic orgmode capabilities that could benefit me
 greatly
  such as exporting, email tie-ins, beamer support, organizing my
 bibliography
  (i have switched to a .bib file recently for my references), agenda
  capabilities and so much moreand have tried several of these with mild
  success.
 
  unfortunately (and this maybe due to me not being very technical 

Re: [O] Possible cache problems

2015-06-11 Thread Suvayu Ali
On Thu, Jun 11, 2015 at 09:00:39AM +0200, Nicolas Goaziou wrote:
 Suvayu Ali fatkasuvayu+li...@gmail.com writes:
 
  I was trying to edit the attr_latex line for the following table:
 
#+attr_latex: 
| year | 2012 | 2018 | 2022 | 2028 | 2035 |
| γ(°) |7 |4 |  1.3 |  0.9 |  0.6 |
 
 I can reproduce it. I will look into it before the end of the week.

Great, I wasn't expecting to get a reproducible case so soon!

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-11 Thread John Kitchin
I also wasn't familiar with it.

I just played around with it a bit to see if you could integrate org-ref
with this. You mostly can do it, but the document probably would need
some final manual polishing for some things.

http://kitchingroup.cheme.cmu.edu/blog/2015/06/11/ox-pandoc-org-mode-+-org-ref-to-docx-with-bibliographies/



Phillip Lord writes:

 I didn't know about this -- this could be a killer feature for me. I
 work a lot with biologists and medics and they are completely
 word-centric.

 Phil

 Titus von der Malsburg malsb...@posteo.de writes:

 On 2015-06-10 Wed 07:14, Ken Mankoff wrote:
 I found a happy medium working in Org, exporting to LaTeX, and then
 using Pandoc to convert to Word.

 With ox-pandoc you can export to .docx directly.  No need to go through
 LaTeX.  Ox-pandoc is pretty amazing.

   Titus

 I would send the Word and always the canonical PDF version in case some
 equations got messed up. This requires manually incorporating the tracked
 changes from Word, but I've never been a fan of just clicking accept on
 changes anyway, and don't mind the manual re-integration of comments.

   -k.


 On 2015-06-10 at 09:49, John Kitchin jkitc...@andrew.cmu.edu wrote:
 Speaking as an advisor/teacher, you should do what they want if you want
 them to help you.

 You could ask if they are willing to comment on the pdf, either by hand
 writing on a printed version, or by pdf commenting, or maybe in the
 LaTeX source. But, if that is not what they want, and they cannot work
 with what you give them, you will not get as much feedback as you want,
 and you will end up creating frustration on your end and theirs.

 windy writes:

 Another question, I am a student , I think it is a big problem that how to
 exchange you article with your teacher, because the teacher will comment
 or revise your article once again and again.

 However, Many teachers will not use emacs to write articles and also the
 pdf file is not so convenient to do some modification, how will you deal
 with the problem ?







 在2015年06月09 21时21分, John Kitchinjkitc...@andrew.cmu.edu写道:

 you might also enjoy our youtube video:
 https://www.youtube.com/watch?v=fgizHHd7nOo

 And this one on using org-mode in teaching:
 https://www.youtube.com/watch?v=IsSMs-4GlT8list=FLQp2VLAOlvq142YN3JO3y8w

 and
 https://www.youtube.com/watch?v=cRUCiF2MwP4

 See http://github.com/jkitchin/jmax for my Emacs setup for
 org-mode.

 My only other advice is start learning to program in emacs-lisp. It took
 me about four years to get proficient enough to write org-ref. I learned
 by solving lots of little problems, and building up to bigger
 problems. A lot of those are documented in my blog. Read the emacs and
 emacs-lisp manuals (read them in Emacs or in a browser). They take some
 time, so skip the stuff that doesn't make sense and come back to it
 later if you need to. Consider getting the book at
 https://www.masteringemacs.org. It isn't about org-mode, but it will
 make you better at using Emacs. Consider reading Land of Lisp. It isn't
 about Emacs or Emacs-lisp, but it might interest you in programming in a
 lispy language, and it is a fun read.

 Buy the org-mode book:
 http://www.amazon.com/Org-Mode-Reference-Manual-Organize/dp/9881327709/ref=sr_1_1?ie=UTF8qid=1433855847sr=8-1keywords=org-mode.
 yes,
 it is the same stuff as in the manual, but it is a book you can read
 anywhere anytime.

 Start by learning how to get org-mode to do some things you want. Just
 do one thing a day. Every day.

 You hopefully have 30+ years of career ahead of you, so even if it takes
 a few years or more to learn how to program in emacs-lisp to customize
 your workflows, you still have plenty of time to benefit from it!

 Best wishes,

 Holger Wenzel writes:

 Hi Xebar,



 Xebar Saram zeltakc at gmail.com writes:



 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive 
 google
 research yet found that as can be seen in your link most entries focus on
 either writing papers or general bits an pieces .What i am looking for 
 is a
 holistic approach regarding organizing all aspects of academic life and 
 to
 hear workflows of other colleagues using org for that



 I'd start with:

 http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
 mode-for/

 follow John Kitchin's blog there closely and read everything he posts in
 this list.

 Cheers,

 Holger
 z


 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty
 viewpoint)?
  Tips or a good guides sought after :)
  Hi all
 
  Im a young assistant professor (in humanities and thus my horrific
 coding
  skills..basically non ) and having been using orgmode for a year or 
  two
  now. I love orgmode dearly and use it mainly for note taking, lists 
  etc
 
  I am aware of the 

[O] evaluate TBLFM

2015-06-11 Thread Charles Millar

Hi,

I am learning how to use org-babel and want to export (LaTeX) a table 
with the final column added at final row, which should be inserted. The 
entire process would take place upon exporting to LaTeX/pdf


Desired result (roughly speaking)

| date | Description | Amount|
|||---|
| 6-7   | blah| 1.00  |
| 6-8   | blah blah|2.00   |
| ||3.00| (this row to be 
inserted and then column 3 added) (Also nice if a hline were inserted 
before the last row)


The table is generated from a recutils data base and essentially this is 
the set up



#+Name: ATable
#+begin_src rec data: Foo.rec :type Bar :fields date,Description,Amount
#+end_src

#+TBLNAME: ATable
#+TBLFM: @$=vsum(@I$..@$);%.2f

I have read Using Code Blocks in Org Tables in the Worg Babel 
Introduction and searched the lists and am not sure of how to implement 
this.


At the moment I am more interested in solving the column sum problem; i 
can kludge an  added row using a dummy record in the database.


Charlie Millar



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-11 Thread Ken Mankoff

On 2015-06-10 at 22:07, windy chxp_m...@163.com wrote:
 I finnally export as ODT and change into DOC version, it seems works
 well for that only no reference generate. Wish a more wisdom ODT
 exporter in org-mode. Bibtex is a big problem when export into
 different format files.

Org - LaTeX --Pandoc-- DOCX  supports references.

  -k.



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-11 Thread windy
Thanks for your advices.

I will try to export as DOCX  instead of DOC.

The org-ref is a very convenient way to control the bibtex after I watch the 
video, through it doesn't resovle the bibtex expoort in ODT.
I think in a long time, the DOC format stil a dominate format that communicate 
with teachers...(Sad news...)



Very glad to hear the news that citation will supported by org-mode and Thanks 
for you and your partners' hard work!

Many Thanks.



在2015年06月11 13时38分, Rasmusras...@gmx.us写道:

windy chxp_m...@163.com writes:

  My teacher let me give a DOC version for that only me use the
 emacs in our lab (So lonely, DOC dominate the most people).

You should see if you can at least upgrade to docx.  In my experience,
LO writes much better docx than doc (e.g. when using doc math is
downsampled to images losing a lot of quality).

  I finnally export as ODT and change into DOC version, it seems
 works well for that only no reference generate. Wish a more wisdom ODT
 exporter in org-mode. Bibtex is a big problem when export into
 different format files.

ATM I think the a lot of people use John's org-ref.

For this problem I've used a home-grown org-cite.el that uses reftex.el
to format citations in author-year style.  I generate the final
bibliography via tex4ht and mlentic erge the two documents in an odm.  This is
easy with a Makefile.

Later, probably after 8.3, we'll try to include citation support in Org.

Rasmus

--
The second rule of Fight Club is: You do not talk about Fight Club




Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-11 Thread windy
Thanks.

However, pandoc hardly to deal right about the figure caption number, the table 
(table caption) and the  superscript.
The export in org-mode perform well in everything except for the bibtex.
I prefer the inherent method in org-mode.

The command I use: pandoc --bibliography=zotero.bib --filter pandoc-citeproc 
12.tex -o 12.docx

By the way, I like the output style in ODT of org-exporter and I am lazy to 
adjust the pandoc export style...







在2015年06月11 20时18分, Ken Mankoffmank...@gmail.com写道:


On 2015-06-10 at 22:07, windy chxp_m...@163.com wrote:
 I finnally export as ODT and change into DOC version, it seems works
 well for that only no reference generate. Wish a more wisdom ODT
 exporter in org-mode. Bibtex is a big problem when export into
 different format files.

Org - LaTeX --Pandoc-- DOCX  supports references.

 -k.


[O] Evaluate TBLFM in babel export to LaTeX (reposted)

2015-06-11 Thread Charles Millar

Posted this request for assistance with an incomplete subject line

Hi,

I am learning how to use org-babel and want to export (LaTeX) a table 
with the final column added at final row, which should be inserted. The 
entire process would take place upon exporting to LaTeX/pdf


Desired result (roughly speaking)

| date | Description | Amount|
|||---|
| 6-7   | blah| 1.00  |
| 6-8   | blah blah|2.00   |
| ||3.00| (this row to be 
inserted and then column 3 added) (Also nice if a hline were inserted 
before the last row)


The table is generated from a recutils data base and essentially this is 
the set up



#+Name: ATable
#+begin_src rec data: Foo.rec :type Bar :fields date,Description,Amount
#+end_src

#+TBLNAME: ATable
#+TBLFM: @$=vsum(@I$..@$);%.2f

I have read Using Code Blocks in Org Tables in the Worg Babel 
Introduction and searched the lists and am not sure of how to implement 
this.


At the moment I am more interested in solving the column sum problem; i 
can kludge an  added row using a dummy record in the database.


Charlie Millar




[O] Problem with R source blocks

2015-06-11 Thread Thomas S. Dye
Aloha all,

Recently, some previously working R code (below) stopped working correctly.

It is not possible to produce a graphic without :session.  I get a red
message in the pdf file arguments imply differing numbers of rows: 86,
79.

With :session, I first get one of two error messages in red in the pdf
file, either Results must be all atomic, or all data frames or
subscript out of bounds.

With the subscript out of bounds error, if I run the source code block
again, I get the expected graphic.

With the Results must be all atomic ... message, if I re-run the
source code block several times, I see first an error arguments imply
differing numbers of rows: 67, 60, then on the next run arguments imply
differing numbers of rows: 86, 79 (like running outside a :session),
then the expected graphic.  Subsequent runs all produce the expected
graphic.

If I jump to the session, then print(g) works as expected, without any
error messages.

I haven't the faintest idea what might be happening, or how to debug.

#+begin_src emacs-lisp
(org-version)
#+end_src

#+results:
: 8.3beta

#+begin_src emacs-lisp
(emacs-version)
#+end_src

#+results:
: GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
:  of 2015-04-18 on tennine-slave.macports.org

All the best,
Tom

,-
| #+name: dated-interval-plot 
| #+header: :file ~/temp/test-plot.pdf
| #+header: :var bcal = heiau-dates   
| #+header: :var base.font = 11   
| #+header: :var theme = bw 
| #+header: :var xlabel = Years After Polynesian Discovery  
| #+header: :var ylabel = Probability   
| #+header: :var rows=4   
| #+header: :var cols=4   
| #+header: :var xmin=0   
| #+header: :var xmax=1000
| #+header: :width 7 :height 5
| #+header: :results graphics 
| #+BEGIN_SRC R :session  
| library(ggplot2)
| library(ggthemes)   
| bcal.df - data.frame(cal=numeric(0),prob=numeric(0),label=character(0))
| for (i in seq(dim(bcal)[1]))
| {   
|  t - read.csv(file=bcal[i,1])  
|  names(t) - c(cal,prob)
|  t - cbind(t,label=rep(bcal[i,2], dim(t)[1]))  
|  bcal.df - rbind(bcal.df,t)
| }   
| switch(theme,   
| bw =, BW = theme_set(theme_bw(base_size=base.font)),
| grey =, gray = theme_set(theme_grey(base_size=base.font)),  
| tufte = theme_set(theme_tufte(base_size=base.font)),
| calc = theme_set(theme_calc(base_size=base.font)),  
| econ =, economist = theme_set(theme_economist(base_size=base.font)),
| excel = theme_set(theme_excel(base_size=base.font)),
| few = theme_set(theme_few(base_size=base.font)),
| five = theme_set(theme_fivethirtyeight(base_size=base.font)),   
| google =, gdocs = theme_set(theme_gdocs(base_size=base.font)),  
| ## highchart =, hc = theme_set(theme_hc(base_size=base.font)),  
| inverted = theme_set(theme_igray(base_size=base.font)), 
| solarized = theme_set(theme_solarized(base_size=base.font)),
| solarized2 = theme_set(theme_solarized_2(base_size=base.font)), 
| ## solid = theme_set(theme_solid(base_size=base.font)), 
| stata = theme_set(theme_stata(base_size=base.font,scheme=s2mono)),
| wsj = theme_set(theme_wsj(base_size=base.font)),
| theme_set(theme_bw(base_size=base.font)))   
| g -  ggplot(bcal.df, aes(x=cal, y=prob))   
| g - g + geom_bar(stat='identity') + xlab(xlabel) + xlim(xmin,xmax) 
| g - g + ylab(ylabel) + facet_wrap(~ label, nrow=rows, ncol=cols)   
| print(g)
| #+END_SRC   
`-

-- 
T.S. Dye  Colleagues, Archaeologists
735 Bishop St,