Re: [O] CUSTOM_ID doesn't work for HTML export on Org trunk

2015-06-10 Thread Nicolas Goaziou
Oleh Krehel ohwoeo...@gmail.com writes:

 It's not: I'm getting this in my Firefox address bar if I click the link:

 testorg.html#orgheadline1

What link? There is no link in your example.

The code generated for headlines is correct. However, links indeed
target internal reference instead of custom ID. I changed to behaviour
so they prefer custom ID (b856f66892b8fbf827e4b4a3e89e739a9caca051).

Thanks.

Regards,



Re: [O] CUSTOM_ID doesn't work for HTML export on Org trunk

2015-06-10 Thread Oleh Krehel
Hi Nicolas,

Thanks for helping.

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

 The following buffer

 * Headline
   :PROPERTIES:
   :CUSTOM_ID: my-id
   :END:


 exports as

 div id=outline-container-orgheadline1 class=outline-2
   h2 id=my-ida id=orgheadline1/aspan 
 class=section-number-21/span Headline/h2
   div class=outline-text-2 id=text-my-id
   /div
 /div

I'm getting the same behavior.

 It looks correct.

It's not: I'm getting this in my Firefox address bar if I click the link:

testorg.html#orgheadline1

Here's the two months old export behavior:

div id=outline-container-my-id class=outline-2
h2 id=my-ida id=sec-1/aspan class=section-number-21/span 
Headline/h2
div class=outline-text-2 id=text-my-id
/div

And the corresponding Firefox bar:

testorg.html#my-id

regards,
Oleh



Re: [O] Possible cache problems

2015-06-10 Thread Suvayu Ali
Hi Nicolas,

On Sun, Jun 07, 2015 at 01:29:04AM +0200, Nicolas Goaziou wrote:
 Suvayu Ali fatkasuvayu+li...@gmail.com writes:
 
  I do not see anything happening.  In the modeline I see OrgCacheD, so
  the mode is definitely enabled.  However to enable it, I had to do one
  of these two:
 
(setq ngz-debug-mode nil)
(setq ngz-debug-mode t)
 
 My bad, it should be
 
 (define-minor-mode element-debug-mode
   Minor mode to debug Org Element cache.
   nil  OrgCacheD nil
   (if element-debug-mode
   (progn (setq org-element-cache-sync-idle-time 3600)
  (add-hook 'after-change-functions 'element-check-cache t t))
 (setq org-element-cache-sync-idle-time 0.6)
 (remove-hook 'after-change-functions 'element-check-cache t)))

I got a message like the following one quite a few times.

  Partially completed
  ==
  WARNING. Corrupted element (table-row) at 34386
  
  Real: (table-row (:type standard :begin 34386 :end 34430 :contents-begin 
34387 :contents-end 34429 :post-blank 0 :post-affiliated 34386 :parent (table 
(:begin 34327 :end 34431 :type org :tblfm nil :contents-begin 34342 
:contents-end 34430 :value nil :post-blank 1 :post-affiliated 34342 :attr_latex 
() :parent nil
  
  Cached: (table-row (:type standard :begin 34386 :end 34430 :contents-begin 
34387 :contents-end 34429 :post-blank 0 :post-affiliated 34386 :parent (table 
(:begin 34328 :end 34417 :type org :tblfm nil :contents-begin 34328 
:contents-end 34416 :value nil :post-blank 1 :post-affiliated 34328 :parent 
nil
  Last request: [34926 34372 34328 14 (property-drawer (:begin 34276 :end 34328 
:contents-begin 34294 :contents-end 34316 :post-blank 1 :post-affiliated 34276 
:parent nil)) (table (:begin 34327 :end 34431 :type org :tblfm nil 
:contents-begin 34342 :contents-end 34430 :value nil :post-blank 1 
:post-affiliated 34342 :attr_latex () :parent nil)) 2]

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 |

Right now I'm not working with Org for a few days, but next week I'll
start again.  So maybe I'll get a few other data points soon.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] source block exported with tabs replacing spaces?

2015-06-10 Thread Rainer M Krug
Alan Schmitt alan.schm...@polytechnique.org writes:

 Hello,

 I'm working on a presentation and I noticed that some of my source
 blocks have spaces exported as tabs. Here is an example:

  #+begin_src js :wrap center :results output :exports both
  console.log((![]+[])[+!+[]]+
  (![]+[])[!+[]+!+[]]+
  (![]+[])[+!+[]]+
  ([][[]]+[])[+!+[]])
  #+end_src

 get exported to the following latex code
  \begin{minted}[frame=lines,fontsize=\scriptsize]{js}
 console.log((![]+[])[+!+[]]+
   (![]+[])[!+[]+!+[]]+
   (![]+[])[+!+[]]+
   ([][[]]+[])[+!+[]])
 \end{minted}

 (Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set
 to nil in both the file and the exporter setting (I'm using the
 asynchronous exporter with a specified file).

 How can I tell org to preserve the spaces?

This might not be org, but minted in LaTex which is formating the code
blocks. I would look there if there is an option to disable the
replacement of tabs with strings.

Cheers,

Rainer


 Thanks,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] org-tree-to-indirect-buffer - naming and prefix in define keyboard key

2015-06-10 Thread Rainer M Krug
Alan Schmitt alan.schm...@polytechnique.org writes:

 On 2015-06-09 10:36, Rainer M Krug rai...@krugs.de writes:

 While writing this, I discovered the C-u prefix to keep the last opened
 indirect buffer open.

 But I still have two question:

 1) How can I map the command C-u M-x ~org-tree-to-indirect-buffer~ to a
 keyboard shortcut?

 According to http://ergoemacs.org/emacs/elisp_universal_argument.html
 the universal argument corresponds to an argument '(4). So you could
 try:

 #+begin_src emacs-lisp
 (global-set-key
  (kbd f8)
  (lambda ()
(interactive)
(org-tree-to-indirect-buffer '(4
 #+end_src

Thanks - works perfectly. I just used

#+begin_src emacs-lisp
(define-key org-mode-map \C-ci (lambda ()
   (interactive)
   (org-tree-to-indirect-buffer '(4
#+end_src

as it only makes sense in org files (or can I use it in other files as
well?).


 2) Can I change the naming of the indirect buffer? To prefix the .org
 buffer name makes sense, but is cluttering my tabbar (yes - I still use
 it) - so I would prefer to simply use the name of the subtree.

 The buffer name is set by the function `org-get-indirect-buffer'.
 You could try to change the name after calling the function … for
 instance by doing
 #+begin_src emacs-lisp
 (rename-buffer (org-get-heading) t)
 #+end_src
 (the t at the end makes sure the name is unique), but for this to work
 you need to go to the buffer that was just created, and I don't know how
 to do that.

Thanks - I will look into this and post a new question.

Thanks a lot,

Rainer


 Alan

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] CUSTOM_ID doesn't work for HTML export on Org trunk

2015-06-10 Thread Oleh Krehel
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Oleh Krehel ohwoeo...@gmail.com writes:

 It's not: I'm getting this in my Firefox address bar if I click the link:

 testorg.html#orgheadline1

 What link? There is no link in your example.

The link to the headline in the table of contents.

 The code generated for headlines is correct. However, links indeed
 target internal reference instead of custom ID. I changed to behaviour
 so they prefer custom ID (b856f66892b8fbf827e4b4a3e89e739a9caca051).

This solves the problem for me, thanks.

Oleh



[O] How to activate (and rename) new org-tree-to-indirect-buffer buffer?

2015-06-10 Thread Rainer M Krug
Hi

Thanks to Alan Schmitt, I managed to bind C-u M-x
~org-tree-to-indirect-buffer~ but I would now like to activate and
rename the new buffer. He suggested that 

 ~(rename-buffer (org-get-heading) t)~

would rename the buffer, but it needs to be activated first.

My question: how can I activate this new buffer?

Along this line, it seems a little bit counter-intuitive that the new
indirect buffer is *not* activated, as it is the case when editing
source code blocks.

The ideal solution probably would be to add this to the function,
depending on a new configuration variable
~org-tree-to-indirect-buffer-activate~ which can be either

nil : as it is now (the default)
b   : new buffer not activated
B   : new buffer is activated

possibly even

f   : new buffer in new frame and *not* activated
F   : new buffer in new frame and activated


Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


[O] source block exported with tabs replacing spaces?

2015-06-10 Thread Alan Schmitt
Hello,

I'm working on a presentation and I noticed that some of my source
blocks have spaces exported as tabs. Here is an example:

 #+begin_src js :wrap center :results output :exports both
 console.log((![]+[])[+!+[]]+
 (![]+[])[!+[]+!+[]]+
 (![]+[])[+!+[]]+
 ([][[]]+[])[+!+[]])
 #+end_src

get exported to the following latex code
 \begin{minted}[frame=lines,fontsize=\scriptsize]{js}
console.log((![]+[])[+!+[]]+
(![]+[])[!+[]+!+[]]+
(![]+[])[+!+[]]+
([][[]]+[])[+!+[]])
\end{minted}

(Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set
to nil in both the file and the exporter setting (I'm using the
asynchronous exporter with a specified file).

How can I tell org to preserve the spaces?

Thanks,

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


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

2015-06-10 Thread Julian Burgos
Windy, I am a researcher (not in academia, but in a government lab).  I
use emacs and org-mode a lot, for project management, programming (using R
and GRASS), writing papers, keeping notes, etc.etc.
I find that collaborative writing is problematic because most people use
Word, and in most cases will not become enlightened and use emacs.  I have
used two strategies.

a) I first write in org-mode.  Export to Word, either exporting first to
ODT and then to Word, or to LaTex and then use pandoc to convert LaTex to
Word.  My coauthor can edit the document as he wishes, using the Track
changes option.  Then, I transcribe their edits back into the org-mode
document.  Advantage of this approach:  your coauthor receives a clean
word file, that could include figures, references, etc., and he/she uses
the tools she likes to edit the file.  Disadvantage:  you have to manually
incorporate the changes to the org-mode file each time there are edits.

b) I write the manuscript in org-mode.  Then I send the org-mode file to
my coauthor.  Because the org-mode file is just a text file, my coauthor
can use Word to edit it.  I ask him/her *not* to use track changes and
to save the edited version also as a text file.  Then, when I receive it I
use ediff in emacs to compare both documents and incorporate the edits I
want.  Advantage of this approach: the merging of the documents is easy
using ediff.  Disadvantage: your coauthor has to edit a weird-looking
document, with markup, code blocks, etc.

All the best,

Julian

 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
 

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

2015-06-10 Thread John Kitchin
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 and
 lack of
  coding skills) i still feel like im really not using orgmode to its
 potential
  and still feel miserably lost in terms of organizing my work in academia
 from
  all aspects.
 
  i am looking for 2 things really:
  1. as i said in the post topic a good guide if anyone is aware of or
 detailed
  examples of using org in Academia (mainly aimed at faculty :))
 
  2. related to that as a young researcher with multiple students, paper
  writing, grant applications, department duties, endless TODOS, endless
 email i
  would really be grateful for even non org specific tips on how other
 people
  organize all this to make life more..well..organized :)
 
  thanks alot in advance and sorry for the long mail
 
  best
 
  Z

 Dear Xebar,
 I think the first 10 results of the correspondindg google search already
 show some very interesting 

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

2015-06-10 Thread Ken Mankoff

I found a happy medium working in Org, exporting to LaTeX, and then using 
Pandoc to convert to Word. 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 and
 lack of
  coding skills) i still feel like im really not using orgmode to its
 potential
  and still feel miserably lost in terms of organizing my work in academia
 from
  all aspects.
 
  i am looking for 2 things really:
  1. as i said in the post topic a good guide if anyone is aware of or
 detailed
  examples of using org in Academia (mainly aimed at faculty :))
 

Re: [O] source block exported with tabs replacing spaces?

2015-06-10 Thread Charles C. Berry

On Wed, 10 Jun 2015, Alan Schmitt wrote:


Hello,

I'm working on a presentation and I noticed that some of my source
blocks have spaces exported as tabs. Here is an example:

#+begin_src js :wrap center :results output :exports both
console.log((![]+[])[+!+[]]+
(![]+[])[!+[]+!+[]]+
(![]+[])[+!+[]]+
([][[]]+[])[+!+[]])
#+end_src

get exported to the following latex code
\begin{minted}[frame=lines,fontsize=\scriptsize]{js}
console.log((![]+[])[+!+[]]+
(![]+[])[!+[]+!+[]]+
(![]+[])[+!+[]]+
([][[]]+[])[+!+[]])
\end{minted}

(Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set
to nil in both the file and the exporter setting (I'm using the
asynchronous exporter with a specified file).

How can I tell org to preserve the spaces?



Customize `org-src-preserve-indentation'

HTH,

Chuck



Re: [O] Fwd: Patch - Org Mac Outlook - Fix Call to Outlook in some cases

2015-06-10 Thread Alan Schmitt
On 2015-06-09 22:20, Mike McLean mike.mcl...@pobox.com writes:

 Here is a version of the patch with a (hopefully) correct Changelog format

Applied and pushed, thanks!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


Re: [O] source block exported with tabs replacing spaces?

2015-06-10 Thread Alan Schmitt
On 2015-06-10 14:43, Rainer M Krug rai...@krugs.de writes:

 This might not be org, but minted in LaTex which is formating the code
 blocks. I would look there if there is an option to disable the
 replacement of tabs with strings.

Thank you for the suggestion, but the tex that is generated has the tabs
(before minted has a chance to see it). So it seems they are introduced
when going from org to tex.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


Re: [O] How to open Link in Heading in Agenda without mouse click?

2015-06-10 Thread M



 Von: Nick Dokos ndo...@gmail.com
 Datum: Mon, 08 Jun 2015 12:25:37 -0400
 An: emacs-orgmode@gnu.org
 Betreff: Re: [O] How to open Link in Heading in Agenda without mouse click?
 
 Martin Beck elwood...@web.de writes:
 
 Hi,
  
 I'd like to create an agenda view which gives me quick access to
 important directories and files.  So I set up an org-mode file with
 those hyperlinks and created an agenda which collects all headings in
 there.
  
 However if I try to use it, I did not find a way to open the
 hyperlinks in the agenda view without the mouse.
  
 Example headline:
  
 * Link to important file [[file+sys:\\server\dir\filename.mm][Mindmap]]
 [2015-06-08 Mo 10:34]
  
 Which command can I use to open the link/linked file directly in the
 agenda view? Is there a standard keybinding for it?
 
 
 Doesn't C-c C-o (which should be bound to org-agenda-open-link in the
 agenda buffer) work?
 
 Nick
 
 
 

Hi Nick,

thank you so much!
I had tried that but stumbled upon a feature which confused me (and let it
look as if it did not work):
If there are more than one hyperlinks below the heading, I get a selection
buffers which offers me to select which one to open. :-)
That's really even greater than expected!

Works perfectly.

Kind regards

MArtin 





Re: [O] source block exported with tabs replacing spaces?

2015-06-10 Thread Rainer M Krug


Envoyé de mon iPhone

 Le 10 juin 2015 à 21:48, Alan Schmitt alan.schm...@polytechnique.org a 
 écrit :
 
 On 2015-06-10 14:43, Rainer M Krug rai...@krugs.de writes:
 
 This might not be org, but minted in LaTex which is formating the code
 blocks. I would look there if there is an option to disable the
 replacement of tabs with strings.
 
 Thank you for the suggestion, but the tex that is generated has the tabs
 (before minted has a chance to see it). So it seems they are introduced
 when going from org to tex.

True - haven't thought about that the formatting from tex is happening later. 

Cheers,

Rainer

 
 Alan
 
 -- 
 OpenPGP Key ID : 040D0A3B4ED2E5C7
 Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm



Re: [O] source block exported with tabs replacing spaces?

2015-06-10 Thread Alan Schmitt
On 2015-06-10 16:36, Charles C. Berry ccbe...@ucsd.edu writes:

 On Wed, 10 Jun 2015, Alan Schmitt wrote:

 How can I tell org to preserve the spaces?

 Customize `org-src-preserve-indentation'

Thank you, this was it. I searched the manual for tabs and
tabulations, I should have searched for whitespace.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


[O] Unable to reuse the result of a cached function call as argument of a gnuplot call

2015-06-10 Thread bernardH
Hi all !
First, I would like to thank the org-mode community for the great fun I'm
having with babel. Unfortunately, I'm currently stumped by what appears to
be a bug (or unhandled corner-case).
Here is a org-mode style write-up to describe the problem :

* Versions
#+BEGIN_SRC elisp
(org-version)
#+END_SRC

#+RESULTS:
: 8.3beta

#+BEGIN_SRC elisp
(emacs-version)
#+END_SRC

#+RESULTS:
: GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6)
:  of 2014-01-01 on prometheus, modified by Debian

* Minimal (!) example

Defining a function, I'll want to use the result of a _cached_ call as
an arg to a a gnuplot function.

#+name: fun
#+BEGIN_SRC sh :var nb=10 :results output
seq $(( ${nb} * 2 )) | paste - -
#+END_SRC

First a regular call, to show that I'll be able to reuse the result of
this call.
#+name: my-call
#+call: fun[:results table](nb=5)

#+RESULTS: my-call
| 1 |  2 |
| 3 |  4 |
| 5 |  6 |
| 7 |  8 |
| 9 | 10 |


Now a cached call.

#+name: my-call-cached
#+call: fun[:results table](nb=5) :cache yes 

#+RESULTS[f2b650eb5296f72a1f7237c2a65b7fb3443acf5f]: my-call-cached
| 1 |  2 |
| 3 |  4 |
| 5 |  6 |
| 7 |  8 |
| 9 | 10 |


Dummy data that I only use as default value for the gnuplot function
definition.
#+name:dummy-data
| 1 |  2 |

#+name: plotting
#+begin_src gnuplot :var data=dummy-data my_title=dummy title :file dummy.png
  set title my_title
  plot data
#+end_src

#+RESULTS: plotting
[[file:dummy.png]]

I can call the gnuplot function on the result of the uncached call :

#+name: plot-result
#+call: plotting[:file result-call.png](data= my-call) :results file

#+RESULTS: plot-result
[[file:result-call.png]]

#+BEGIN_SRC sh :results output
file result-call.png
#+END_SRC

#+RESULTS:
: result-call.png: PNG image data, 640 x 480, 8-bit colormap, non-interlaced


But if I try to use the cached call :

#+name: plot-result-cached
#+call: plotting[:file result-call-cached.png](data= my-call-cached)
:results file

#+RESULTS: plot-result-cached
[[file:result-call-cached.png]]

#+BEGIN_SRC sh
file result-call-cached.png
#+END_SRC

#+RESULTS:
: result-call-cached.png: empty

* gnuplot console
Working gnuplot invocation had :
#+BEGIN_EXAMPLE
gnuplot  data = /tmp/babel-262957O1/gnuplot-26295F9G
#+END_EXAMPLE


Failed invocation on result of a cached call had :
#+BEGIN_EXAMPLE
gnuplot data = ((1 2) (3 4) (5 6) (7 8) (9 10))
gnuplot set term png
Terminal type set to 'png'
Options are 'nocrop font
/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf,12
fontscale 1.0 size 640,480 '
gnuplot set output result-call-cached.png
gnuplot set title my_title
gnuplot plot data
 warning: Skipping unreadable file ((1 2) (3 4) (5 6) (7 8) (9 10))
 No data in plot

#+END_EXAMPLE

* References

[[https://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg01379.html][message
on arg passing to gnuplot]]

[[http://emacs.stackexchange.com/a/12690/8545][stackexchange answer pointing
to the implementation of the results of named function calls as arguments]]


Thank you very much if a fix is possible (I really need to cache the very
expensive function calls of my real use-case, but I should be able to make a
cheap uncached identity function before the gnuplot invocation as a workaround).

Best Regards,

Bernard






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

2015-06-10 Thread Eric S Fraga
On Wednesday, 10 Jun 2015 at 09:57, windy wrote:
 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 ?

As John has already said, go with the flow and use whatever system your
teacher prefers...

The students in my group quickly learn that they get more useful
feedback from me if they give me LaTeX or org files instead of Word!
It's not because I wish to penalise them, of course.  It's that I don't
have Word so I get them to give me PDF to ensure the maths come through
properly (libreoffice is not particularly good when it comes to
mathematics).  I only end up commenting indirectly on any document they
give me.  On the other hand, if they give me LaTeX or org, I comment
directly within their documents and/or suggest changes when appropriate.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org 
release_8.3beta-1147-g0e5069.dirty



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

2015-06-10 Thread Titus von der Malsburg

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 and
 lack of
  coding skills) i still feel like im really not using orgmode to its
 potential
  and still feel miserably lost in terms of organizing my work in academia
 from
  all aspects.
 
  i am 

Re: [O] Possible cache problems

2015-06-10 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 I got a message like the following one quite a few times.

   Partially completed
   ==
   WARNING. Corrupted element (table-row) at 34386
   
I wonder if this is the same bug that I've been seeing:

  http://thread.gmane.org/gmane.emacs.orgmode/92883/focus=92884

Rasmus

-- 
However beautiful the theory, you should occasionally look at the evidence




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

2015-06-10 Thread Rasmus
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 merge 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-10 Thread Rasmus
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.

Out of curiosity, why is it preferable to go via pandoc instead of ox-odt?

Rasmus

-- 
Bang bang




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

2015-06-10 Thread windy
Thanks for all you reply,

 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).

 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.







在2015年06月10 22时16分, Julian Burgosjul...@hafro.is写道:

Windy, I am a researcher (not in academia, but in a government lab).  I
use emacs and org-mode a lot, for project management, programming (using R
and GRASS), writing papers, keeping notes, etc.etc.
I find that collaborative writing is problematic because most people use
Word, and in most cases will not become enlightened and use emacs.  I have
used two strategies.

a) I first write in org-mode.  Export to Word, either exporting first to
ODT and then to Word, or to LaTex and then use pandoc to convert LaTex to
Word.  My coauthor can edit the document as he wishes, using the Track
changes option.  Then, I transcribe their edits back into the org-mode
document.  Advantage of this approach:  your coauthor receives a clean
word file, that could include figures, references, etc., and he/she uses
the tools she likes to edit the file.  Disadvantage:  you have to manually
incorporate the changes to the org-mode file each time there are edits.

b) I write the manuscript in org-mode.  Then I send the org-mode file to
my coauthor.  Because the org-mode file is just a text file, my coauthor
can use Word to edit it.  I ask him/her *not* to use track changes and
to save the edited version also as a text file.  Then, when I receive it I
use ediff in emacs to compare both documents and incorporate the edits I
want.  Advantage of this approach: the merging of the documents is easy
using ediff.  Disadvantage: your coauthor has to edit a weird-looking
document, with markup, code blocks, etc.

All the best,

Julian

 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: