[O] subtasks causing greying of entry in agenda

2016-08-30 Thread Sharon Kimble

I've discovered something this morning that puzzles me, and I can't work out 
how to google it!

In my organiser file I have this task set up -

--8<---cut here---start->8---
*** TODO end of life care
DEADLINE: <2016-12-30 Fri> SCHEDULED: <2016-08-31 Wed +1d>
:PROPERTIES:
:35:00:35:00
:BUDGET_WEEK: 35:00
:BUDGET_MONTH: 140:00
:BUDGET_YEAR: 500:00
:Effort:   500:00
:END:
:LOGBOOK:
CLOCK: [2016-08-31 Wed 02:46]--[2016-08-31 Wed 03:47] =>  1:01
CLOCK: [2016-08-31 Wed 02:22]--[2016-08-31 Wed 02:23] =>  0:01
:END:
 TODO death.org
 TODO to include 'caring with dignity'
--8<---cut here---end--->8---

And when its displayed in the agenda it shows as a grey line of text
which is different from other surrounding text, see attached screenshot
snippet [fn:1].

However, if I take the subtasks out it displays perfectly normally. So
how can I have it displaying normally but still retain the subtasks
please? Are the subtasks position-dependent? Although in my experiments
they don't seem to be.


Thanks
Sharon.

[fn:1] -- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1



signature.asc
Description: PGP signature


Re: [O] ob-lua

2016-08-30 Thread Thibault Marin

Thanks,

I have just submitted the FSF papers.

Best,
thibault

Nicolas Goaziou writes:

> Hello,
>
> Thibault Marin  writes:
>
>> I am attaching an updated patch adding the Lua language to the CSS in
>> `org-html-style-default'.
>
> Patches applied. Thank you.
>
> Would you consider signing FSF papers if not already done?
>
>
> Regards,




Re: [O] Proposal and RFC for improving ob-python

2016-08-30 Thread Greg Minshall
hi, John,

> I like the idea behind ob-ipython, hopefully where it might go as
> ob-jupyter, which could make it able to run many other languages via
> the jupyter project and it's kernels.

thanks for the reply.  i'm not really up to speed on Jupyter, et al.
but, from a brief look, my work is probably more directed at a more
plain, vanilla python.  were an [ij]python mode available, i can imagine
being captivated it.  but, if i were to try and hack on any code right
now, it would probably be normal python mode.

cheers, Greg



Re: [O] ox-md.el: Export TOC and Footnotes as Markdown rather than HTML

2016-08-30 Thread Jake Romer
All set, thanks! Just got the confirmation.

Cheers,

Jake Romer

On Fri, Aug 26, 2016 at 10:32 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Jake Romer  writes:
>
> > I just submitted it. Thanks!
>
> Great! Let me know when the process is over so I can apply the changes.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Bug: Org-babel-detangle does not work for subtrees [8.3.5 (8.3.5-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-30 Thread Grant Rettke
On Tue, Aug 30, 2016 at 12:25 PM, Andrea Giugliano  wrote:
> I think that the ideal solution is to allow an user to make
> org-babel-detangle rely on header IDs, since this not only assures
> detangle to find the correct header every time, but also push the user
> to use IDs through org-id (that seems good practice).
> What do you think?

Yes you should set a ID on every Headline and source-block
automatically using org-id so that detangling always works.

When you want a custom ID it is easily changed.



Re: [O] Proposal and RFC for improving ob-python

2016-08-30 Thread John Kitchin
now I can not remember if I sent this earlier.

I like the idea behind ob-ipython, hopefully where it might go as
ob-jupyter, which could make it able to run many other languages via the
jupyter project and it's kernels.

The last time I tried it, it only supported sessions, and I had to add
non-session support. I doubt it supported async running either.

Before any major effort went in to a new ob-python, it is probably worth
a serious look at what the jupyter project could offer. 

Greg Minshall writes:

> hi.  i recently got fed up with ob-python.el behavior w.r.t. :session
> handling (startup issues; blank lines [really, a python problem, imho,
> but a workaround maybe could work], and value scraping), looked, and saw
> this discussion from last December, but nothing since then.  has there
> been any progress, either by Ondřej or anyone else?  if my frustration
> level remains high enough, i might try to see if i can do anything.
> cheers, Greg Minshall


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



Re: [O] table alignment with org-pretty-entities turned on

2016-08-30 Thread jsj
To make it clear, the behavior I reported can be reproduced with a clean init 
file with just org loaded.

I put the table

| a  | b | c |
|+---+---|
| \alpha |   |   |

in an org file, toggle pretty entities by C-c C-x \, then C-c C-c to realign 
the table. The result I get is

| a  | b | c |
|+---+---|
| α |   |   |


If I try the same thing for 

| a| b | c |
|--+---+---|
| \alpha \beta |   |   |

I get

| a | b | c |
|---+---+---|
| α β |   |   |

Is it just me or you can reproduce the same behavior?

Regards,
Jiang

> On 2016年8月28日, at 12:37, jsj  wrote:
> 
> Hi,
> 
> I am using the latest org-plus-contrib package (20160822) with emacs 25.1.50.
> 
> I turned org-pretty-entities on in my init.el. When there are prettified 
> letters displayed in an org table, the alignment of the table seems to be 
> messed up.  The deviation is related to the number of prettified symbols.
> 
> For example,
> 
> | a  | b | c |
> |+---+---|
> | \alpha |   |   |
> 
> is displayed as
> 
> | a  | b | c |
> |+---+---|
> | α |   |   |
> 
> while 
> 
> | a| b | c |
> |--+---+---|
> | \alpha \beta |   |   |
> 
> is prettified as
> 
> | a | b | c |
> |---+---+---|
> | α β |   |   |
> 
> I am wondering whether I miss anything. It would be great to have aligned 
> tables with prettified symbols.
> 
> Thank you!
> 
> Best regards,
> Jiang



Re: [O] Scheme babel error

2016-08-30 Thread Lawrence Bottorff
Actually, I found that thread (
https://lists.gnu.org/archive/html/emacs-orgmode/2015-09/msg00390.html) and
looked thrugh it (not as good as "looking through" it), but didn't make the
connection that it was because of the boolean -- again. What threw me was
how this time it seemed to just be a source block execute of the function,
whereas before it was the actual code -- as if the problem in ob-scheme.el
had escaped and hidden somewhere new.

How does one make an official bug report and/or fix?

On Tue, Aug 30, 2016 at 1:16 PM, Nick Dokos  wrote:

> Lawrence Bottorff  writes:
>
> > I'm using Racket with Geiser and I get this error:
> >
> > executing Scheme code block...
> > => #f
> > org-babel-scheme-execute-with-geiser: Invalid read syntax: "#"
> >
> > when in an org-mode file this code
> >
> > #+begin_src scheme :exports both :session ch3
> > (define (bool-imply2 x y)
> >   (or (not x) y))
> > #+end_src
> >
> > is run (C-c-c)
> >
> > #+BEGIN_SRC scheme :session ch3
> > (bool-imply2 #t #f)
> > #+END_SRC
> >
> > In the Racket "ch3" REPL session (bool-imply2 #t #f) works fine. I
> discovered this problem when I first
> > tried a simple export to HTML of the buffer. It seems to not like the
> second boolean parameter. So
> > switching the parameters then complains about #t . What might be going
> on? BTW, does an export try to
> > "run" all the code blocks, i.e., why did I find this when I was
> exporting to HTML?
> >
> > LB
> >
>
> Aargh - somebody (maybe you?) had run into this a long time ago and I
> had suggested a possible fix, but with the demise of the gmane site, I
> cannot find the thread - how do people search the ML nowadays?
>
> In any case, there is a basic error in ob-scheme.el, line 176 (at
> least in the version that I have):
>
> ...
> (setq result (if (or (string= result "#")
>  (string= result "#"))
>  nil
>(read result)   ;;;
> ...
>
> The (read result) is bogus: it tries to use the emacs lisp reader to
> parse a string that contains a scheme expression.
>
> IIRC, I suggested changing it to just result:
>
> ...
> (setq result (if (or (string= result "#")
>  (string= result "#"))
>  nil
>result
> ...
>
> but I didn't (and still don't) know if that breaks anything else.
>
> Plus I'm on a machine that doesn't have geiser so I can't even test the
> basic "fix",
> so I hope I've got it right. I'll try to follow up tonight from a machine
> that has
> geiser installed.
>
> --
> Nick
>
>
>


[O] Bug: Org-babel-detangle does not work for subtrees [8.3.5 (8.3.5-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-30 Thread Andrea Giugliano

Hello,

I have an org mode file with deep subtrees (i.e., 7 stars nesting
level).
When I try to detangle a src block generated by

"
*** TODO find map
:PROPERTIES:
:ID:   501cfff7-3b24-47cc-9ada-42e6d46abbe9
:END:

#+BEGIN_SRC ocaml :noeval :comments both :mkdirp yes :tangle ~/tmp/findMap.ml
anything here
#+END_SRC
"

and the generated file contains:

(* TODO find map *)
(* :PROPERTIES: *)
(* :ID:   501cfff7-3b24-47cc-9ada-42e6d46abbe9 *)
(* :END: *)


(* [[file:../home/andrea/workspace/agenda/myTasks.org::*find%20map][find\ 
map:1]] *)
anything here
(* find\ map:1 ends here *)

the detangle cannot find the header, and proposes me to create a new one
in the file.
I think that the ideal solution is to allow an user to make
org-babel-detangle rely on header IDs, since this not only assures
detangle to find the correct header every time, but also push the user
to use IDs through org-id (that seems good practice).
What do you think?
Thanks for the fantastic org mode!!

Andrea

Emacs  : GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.29)
 of 2016-08-26 on localhost
Package: Org-mode version 8.3.5 (8.3.5-elpaplus @ 
/home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)

current state:
==
(setq
 org-capture-prepare-finalize-hook '(org-id-get-create)
 org-reveal-mathjax t
 org-pandoc-epub-rights "Copyright 2016 Andrea <>"
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-src-tab-acts-natively t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-src-window-setup 'current-window
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-image-actual-width 550
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("latexmk -pdf %f")
 org-highlight-latex-and-related '(latex script entities)
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "/home/andrea/workspace/agenda/myTasks.org"
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp "\\"
 org-loop-over-headlines-in-active-region 'start-level
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((lambda nil
  (local-set-key "\357" (quote org-mime-org-buffer-htmlize)))
 org-toggle-blocks turn-on-flyspell
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all 
append local]
   5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all
append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes 
org-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-use-speed-commands t
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-babel-tangle-lang-exts '(("haskell" . "hs") ("scala" . "scala") ("ruby" . 
"rb")
  ("python" . "py") ("java" . "java") ("ocaml" . 
"ml")
  ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-structure-template-alist '(("n" "#+BEGIN_NOTES\n?\n#+END_NOTES")
("p"
 "#+BEGIN_SRC plantuml :file uml.png 
\n?\n#+END_SRC")
("s" "#+BEGIN_SRC ?\n\n#+END_SRC")
("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE")
("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE")
("v" "#+BEGIN_VERSE\n?\n#+END_VERSE")
("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM")
("c" "#+BEGIN_CENTER\n?\n#+END_CENTER")
("l" "#+BEGIN_LaTeX\n?\n#+END_LaTeX") ("L" 
"#+LaTeX: ")
("h" "#+BEGIN_HTML\n?\n#+END_HTML") ("H" 
"#+HTML: ")

Re: [O] Scheme babel error

2016-08-30 Thread Nick Dokos
Lawrence Bottorff  writes:

> I'm using Racket with Geiser and I get this error:
>
> executing Scheme code block...
> => #f
> org-babel-scheme-execute-with-geiser: Invalid read syntax: "#"
>
> when in an org-mode file this code
>
> #+begin_src scheme :exports both :session ch3
> (define (bool-imply2 x y)
>   (or (not x) y))
> #+end_src
>
> is run (C-c-c)
>
> #+BEGIN_SRC scheme :session ch3
> (bool-imply2 #t #f)
> #+END_SRC
>
> In the Racket "ch3" REPL session (bool-imply2 #t #f) works fine. I discovered 
> this problem when I first
> tried a simple export to HTML of the buffer. It seems to not like the second 
> boolean parameter. So
> switching the parameters then complains about #t . What might be going on? 
> BTW, does an export try to
> "run" all the code blocks, i.e., why did I find this when I was exporting to 
> HTML?
>
> LB
>

Aargh - somebody (maybe you?) had run into this a long time ago and I
had suggested a possible fix, but with the demise of the gmane site, I
cannot find the thread - how do people search the ML nowadays?

In any case, there is a basic error in ob-scheme.el, line 176 (at
least in the version that I have):

...
(setq result (if (or (string= result "#")
 (string= result "#"))
 nil
   (read result)   ;;;
...

The (read result) is bogus: it tries to use the emacs lisp reader to
parse a string that contains a scheme expression.

IIRC, I suggested changing it to just result:

...
(setq result (if (or (string= result "#")
 (string= result "#"))
 nil
   result
...

but I didn't (and still don't) know if that breaks anything else.

Plus I'm on a machine that doesn't have geiser so I can't even test the basic 
"fix",
so I hope I've got it right. I'll try to follow up tonight from a machine that 
has
geiser installed.

-- 
Nick




Re: [O] Bug? Highlighting inconsistent with export

2016-08-30 Thread Clément Pit--Claudel
On 2016-08-30 06:08, Nicolas Goaziou wrote:
> I have no objection to this.

Ok; patch attached :) Here's a test case:

~this~~won't~~work~
~but~​~this~​~will~
~and~⁠~so~⁠~will~⁠~this~

⇒ this~~won't~~work
  but​this​will
  and⁠so⁠will⁠this

You can see the difference in behaviour by resizing the browser window: the 
second line will break at code boundaries (it uses zero-width spaces) while the 
second line will stay together (it uses word joiners, aka zero-width no-break 
spaces)

I detailed the change in the commit message.

> However, another option is to get rid of
> `org-emphasis-regexp-components', make every paired "=" character
> trigger verbatim mode and every paired "~" characters trigger code mode,
> but provide a way to escape "=" and "~". It should probably be extended
> to any emphasis markup and special characters like "|", "#"...

I agree, though this seems non-trivial.  Here's another idea (I don't know how 
it compares to other options :): src_[]{} could be extended to allow 
different delimiters; this would make it more widely usable. For example, the 
following forms would all be equivalent:

src_elisp[…options…]<…code…>
src_elisp[…options…]“…code…”
src_elisp[…options…]⟨…code…⟩
src_elisp[…options…]«…code…»

This is inspired by LaTeX's \verb syntax, but using paired delimiters.  The 
nice part of this is that it would solve the current issue that makes 
src_ not always usable, namely unmatched curly braces:

#+PROPERTY: header-args :exports code
src_elisp{(defun foo () ?})}
⇒ (defun foo () ?)}

#+PROPERTY: header-args :exports code
src_elisp{(defun foo () ?\})} is an ELisp function
⇒ (defun foo () ?\})
From 8ac4260f312c5ddfc0c350ba30285dd0efde471d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pit--Claudel?= 
Date: Tue, 30 Aug 2016 12:22:29 -0400
Subject: [PATCH] Add zero-width spaces to org-emphasis-regexp-components

* lisp/org.el: Add U+8203 and U+8288 to pre and post regexps of
  org-emphasis-regexp-components; this makes it easy to fix cases in
  which a marker is not properly detected, by inserting a zero-width
  space (breaking) or a word joiner (non breaking) before or after the
  marker.
---
 lisp/org.el | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index bec8a99..80f7b06 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4496,7 +4496,7 @@ After a match, the match groups contain these elements:
 ;; set this option proved cumbersome.  See this message/thread:
 ;; http://article.gmane.org/gmane.emacs.orgmode/68681
 (defvar org-emphasis-regexp-components
-  '(" \t('\"{" "- \t.,:!?;'\")}\\[" " \t\r\n" "." 1)
+  '(" \t('\"{​⁠" "- \t.,:!?;'\")}\\[​⁠" " \t\r\n" "." 1)
   "Components used to build the regular expression for emphasis.
 This is a list with five entries.  Terminology:  In an emphasis string
 like \" *strong word* \", we call the initial space PREMATCH, the final
@@ -4511,7 +4511,9 @@ body-regexp  A regexp like \".\" to match a body character.  Don't use
  non-shy groups here, and don't allow newline here.
 newline  The maximum number of newlines allowed in an emphasis exp.
 
-You need to reload Org or to restart Emacs after customizing this.")
+The default for both pre and post includes zero-width spaces (​)
+and word joiners (⁠, aka zero-width no-break space).  You need to
+reload Org or to restart Emacs after customizing this variable.")
 
 (defcustom org-emphasis-alist
   '(("*" bold)
-- 
2.7.4



signature.asc
Description: OpenPGP digital signature


[O] Scheme babel error

2016-08-30 Thread Lawrence Bottorff
I'm using Racket with Geiser and I get this error:

executing Scheme code block...
=> #f
org-babel-scheme-execute-with-geiser: Invalid read syntax: "#"

when in an org-mode file this code

#+begin_src scheme :exports both :session ch3
(define (bool-imply2 x y)
  (or (not x) y))
#+end_src

is run (C-c-c)

#+BEGIN_SRC scheme :session ch3
(bool-imply2 #t #f)
#+END_SRC

In the Racket "ch3" REPL session (bool-imply2 #t #f) works fine. I
discovered this problem when I first tried a simple export to HTML of the
buffer. It seems to not like the second boolean parameter. So switching the
parameters then complains about #t . What might be going on? BTW, does an
export try to "run" all the code blocks, i.e., why did I find this when I
was exporting to HTML?

LB


Re: [O] export to ics a specific buffer every X hours

2016-08-30 Thread Xebar Saram
Thx John, this is *exactly* what i wanted...its just as always my wishes
and code skills dont align

thx so much again

Z


On Tue, Aug 30, 2016 at 4:50 PM, John Kitchin 
wrote:

>
> (defun z/export-to-ics ()
> (interactive)
> (with-current-buffer (find-file-noselect "meetings.org")
> (rename-file (org-icalendar-export-to-ics)
> "/home/zeltak/org/files/export/kcal.ics")
> (message "exported to ics")))
>


Re: [O] export to ics a specific buffer every X hours

2016-08-30 Thread John Kitchin
I can't tell exactly what you have in mind. Can't you just add (find-file "
meetings.org") to the function?

or wrap the whole thing like this:


(defun z/export-to-ics ()
(interactive)
(with-current-buffer (find-file-noselect "meetings.org")
(rename-file (org-icalendar-export-to-ics)
"/home/zeltak/org/files/export/kcal.ics")
(message "exported to ics")))


John

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


On Tue, Aug 30, 2016 at 9:39 AM, Xebar Saram  wrote:

> anyone? kinda stuck here :)
>
> thx!
>
>
> z
>
> On Thu, Aug 25, 2016 at 10:32 AM, Xebar Saram  wrote:
>
>> Hi again all
>>
>> so i have a related question so ill continue in this thread. i have been
>> using this command succesfully in the last few weeks
>>
>> (defun z/export-to-ics ()
>> (interactive)
>> (rename-file (org-icalendar-export-to-ics)
>> "/home/zeltak/org/files/export/kcal.ics")
>> (message "exported to ics"))
>>
>>
>> this forces me to first open the file i want (meetings.org) and then
>> launch the above command. is there a way to auto make the above function to
>> auto export meeting.org each time without opening it first?
>>
>> thx
>>
>> Z
>>
>> On Wed, Jul 13, 2016 at 6:27 PM, Philip Hudson 
>> wrote:
>>
>>> You have _two_ concerns here. First is what to do when you save
>>> "meetings.org", second is what to do every half hour. Your code
>>> handles both of them, essentially correctly, but in the wrong place.
>>>
>>> On 13 July 2016 at 09:41, Xebar Saram  wrote:
>>> > Thx
>>> >
>>> > i do have this now
>>> >
>>> >   (defun z/save-meeting-to-ics ()
>>> > "If the current file is in '~/.dotfiles', the code blocks are
>>> tangled"
>>> > (when (equal (buffer-file-name)
>>> >  (expand-file-name "/home/zeltak/org/files/agenda/
>>> meetings.org"))
>>>
>>> This means the code will only execute if the current buffer is
>>> "meetings.org" when it executes. That _is_ what you want when you save
>>> meetings.org, but it _is not_ what you want when the timer executes.
>>>
>>> Break out the body of the `when' form into its own function, and call
>>> that function from the timer, instead of `z/save-meeting-to-ics'.
>>>
>>> >  (rename-file (org-icalendar-export-to-ics)
>>> > "/home/zeltak/org/files/export/kcal.ics")
>>> >   (message "exported to ics")))
>>> >
>>> > ;;run every 30 minutes
>>> >
>>> > (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
>>> > ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every
>>> 600
>>> > second
>>> > ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
>>> >
>>> > yet i cant get the ics file to be created niether when i save the
>>> > meeting.org file
>>>
>>> For this, you need to add `z/save-meeting-to-ics' to the Emacs global
>>> variable `after-save-hook' using function `add-hook'.
>>>
>>> > nor every 600 seconds.
>>>
>>> You mean 1800 seconds, I think.
>>>
>>> > what am i missing here?
>>> >
>>> > thx
>>> >
>>> > Z
>>> >
>>> > On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson 
>>> > wrote:
>>> >>
>>> >> On 26 June 2016 at 16:38, Xebar Saram  wrote:
>>> >> > Hi all
>>> >> >
>>> >> > so i have pathetic coding skill but managed somehow to come up with
>>> this
>>> >> >
>>> >> >  (defun z/save-meeting-to-ics ()
>>> >> > "If the current file is in '~/.dotfiles', the code blocks are
>>> >> > tangled"
>>> >> > (when (equal (buffer-file-name)
>>> >> >  (expand-file-name
>>> >> > "/home/zeltak/org/files/agenda/meetings.org"))
>>> >> >   (org-icalendar-export-to-ics)
>>> >> >   (message "exported to ics")))
>>> >> >
>>> >> > this does save the org file "meetings.org" to an ICS file in the
>>> same
>>> >> > folder
>>> >> > as the file. but i want to do 2 additional things:
>>> >> > 1)save the resulting ICS file to a different directory
>>> >> > 2)run this function every X hours (lets say every 2 hours)
>>> >> >
>>> >> > any clue guys?
>>> >> >
>>> >> > thx!
>>> >> >
>>> >> > Z
>>> >>
>>> >> For 1), change:
>>> >>
>>> >> (org-icalendar-export-to-ics)
>>> >>
>>> >> to something like this:
>>> >>
>>> >> (rename-file (org-icalendar-export-to-ics)
>>> your-preferred-pathname)
>>> >>
>>> >> For 2), evaluate this:
>>> >>
>>> >> (info "(elisp) Timers")
>>> >>
>>> >> --
>>> >> Phil Hudson   http://hudson-it.ddns.net
>>> >> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Phil Hudson   http://hudson-it.ddns.net
>>> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>>>
>>
>>
>


Re: [O] export to ics a specific buffer every X hours

2016-08-30 Thread Xebar Saram
anyone? kinda stuck here :)

thx!


z

On Thu, Aug 25, 2016 at 10:32 AM, Xebar Saram  wrote:

> Hi again all
>
> so i have a related question so ill continue in this thread. i have been
> using this command succesfully in the last few weeks
>
> (defun z/export-to-ics ()
> (interactive)
> (rename-file (org-icalendar-export-to-ics)
> "/home/zeltak/org/files/export/kcal.ics")
> (message "exported to ics"))
>
>
> this forces me to first open the file i want (meetings.org) and then
> launch the above command. is there a way to auto make the above function to
> auto export meeting.org each time without opening it first?
>
> thx
>
> Z
>
> On Wed, Jul 13, 2016 at 6:27 PM, Philip Hudson 
> wrote:
>
>> You have _two_ concerns here. First is what to do when you save
>> "meetings.org", second is what to do every half hour. Your code
>> handles both of them, essentially correctly, but in the wrong place.
>>
>> On 13 July 2016 at 09:41, Xebar Saram  wrote:
>> > Thx
>> >
>> > i do have this now
>> >
>> >   (defun z/save-meeting-to-ics ()
>> > "If the current file is in '~/.dotfiles', the code blocks are
>> tangled"
>> > (when (equal (buffer-file-name)
>> >  (expand-file-name "/home/zeltak/org/files/agenda/
>> meetings.org"))
>>
>> This means the code will only execute if the current buffer is
>> "meetings.org" when it executes. That _is_ what you want when you save
>> meetings.org, but it _is not_ what you want when the timer executes.
>>
>> Break out the body of the `when' form into its own function, and call
>> that function from the timer, instead of `z/save-meeting-to-ics'.
>>
>> >  (rename-file (org-icalendar-export-to-ics)
>> > "/home/zeltak/org/files/export/kcal.ics")
>> >   (message "exported to ics")))
>> >
>> > ;;run every 30 minutes
>> >
>> > (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
>> > ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every
>> 600
>> > second
>> > ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
>> >
>> > yet i cant get the ics file to be created niether when i save the
>> > meeting.org file
>>
>> For this, you need to add `z/save-meeting-to-ics' to the Emacs global
>> variable `after-save-hook' using function `add-hook'.
>>
>> > nor every 600 seconds.
>>
>> You mean 1800 seconds, I think.
>>
>> > what am i missing here?
>> >
>> > thx
>> >
>> > Z
>> >
>> > On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson 
>> > wrote:
>> >>
>> >> On 26 June 2016 at 16:38, Xebar Saram  wrote:
>> >> > Hi all
>> >> >
>> >> > so i have pathetic coding skill but managed somehow to come up with
>> this
>> >> >
>> >> >  (defun z/save-meeting-to-ics ()
>> >> > "If the current file is in '~/.dotfiles', the code blocks are
>> >> > tangled"
>> >> > (when (equal (buffer-file-name)
>> >> >  (expand-file-name
>> >> > "/home/zeltak/org/files/agenda/meetings.org"))
>> >> >   (org-icalendar-export-to-ics)
>> >> >   (message "exported to ics")))
>> >> >
>> >> > this does save the org file "meetings.org" to an ICS file in the
>> same
>> >> > folder
>> >> > as the file. but i want to do 2 additional things:
>> >> > 1)save the resulting ICS file to a different directory
>> >> > 2)run this function every X hours (lets say every 2 hours)
>> >> >
>> >> > any clue guys?
>> >> >
>> >> > thx!
>> >> >
>> >> > Z
>> >>
>> >> For 1), change:
>> >>
>> >> (org-icalendar-export-to-ics)
>> >>
>> >> to something like this:
>> >>
>> >> (rename-file (org-icalendar-export-to-ics) your-preferred-pathname)
>> >>
>> >> For 2), evaluate this:
>> >>
>> >> (info "(elisp) Timers")
>> >>
>> >> --
>> >> Phil Hudson   http://hudson-it.ddns.net
>> >> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>> >
>> >
>>
>>
>>
>> --
>> Phil Hudson   http://hudson-it.ddns.net
>> @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
>>
>
>


Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 13:54 schrieb Florian Lindner:
> Am 30.08.2016 um 13:04 schrieb Georgiy Tugai:
>> I don't know if it'll work for Python, but here's an example of what
>> works for me with Ditaa:
>>
>>> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes
>>>/+ /+ /+ /+
>>>|host| |host| |host| |host|   Containers
>>>+-+--/ +-+--/ +--+-/ +--+-/
>>>  |  |   |  |
>>>   -
>>>  |  |   |  |
>>>+-+--+---+--+-+
>>>|  Open VSwitch   |  Host kernel
>>>+-+-+---=-+
>>>  | |
>>>   +--+-+ +-+--+
>>>   | controller | | controller |  Host userspace
>>>   ++ ++
>>> #+END_SRC
>>>
>>> #+ATTR_LATEX: :width "" :options [scale=0.75]
>>> #+CAPTION: [[label:fig:mininet-arch]]Mininet with OpenVSwitch architecture
>>> #+RESULTS[1d367d39f18523f4eb247cb13aabd6c6f633fbdf]: 
>>> [[file:figs/-mininet-ovsk.png]]
>>
>> First, execute your Babel block in order to generate a #+RESULTS line.
>> Then, add CAPTION, ATTR_LATEX etc. lines before the RESULTS line.
> 
> This seems to work mostly, yes. Problem is, that org puts the label inside 
> the caption:
> 
> \begin{figure}[htb]
> \centering
> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}
> \caption{\label{fig:GaussianExample}Gaussian Basis functions with vertex 
> distances marked at $n \cdot \frac{1}{6}$.}
> \end{figure}
> 
> This way the label does not work, i.e. won't be found by ref links.
> 
> #+BEGIN_SRC python :exports results :results file
>   import matplotlib.pyplot as plt, numpy as np
>   x = np.linspace(-2, 2, 1000)
>   plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
>   for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", 
> color="r")
>   plt.grid()
>   plt.savefig('rbf-gaussian-4.pdf')
>   return "rbf-gaussian-4.pdf"
> #+END_SRC
> 
> #+LABEL: fig:GaussianExample
> #+CAPTION: Gaussian Basis functions with vertex distances marked at $n \cdot 
> \frac{1}{6}$.
> #+RESULTS:
> [[file:rbf-gaussian-4.pdf]]
> 
> 
> Using NAME instead of caption results in the same latex output.

Of course, using NAME instead of CAPTION. But I just learned that CAPTION is 
just an obsolete alias for NAME.





Re: [O] Add caption to babel-generated images

2016-08-30 Thread Nicolas Goaziou
Hello,

Georgiy Tugai  writes:

> I don't know if it'll work for Python, but here's an example of what
> works for me with Ditaa:
>
>> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes
>>/+ /+ /+ /+
>>|host| |host| |host| |host|   Containers
>>+-+--/ +-+--/ +--+-/ +--+-/
>>  |  |   |  |
>>   -
>>  |  |   |  |
>>+-+--+---+--+-+
>>|  Open VSwitch   |  Host kernel
>>+-+-+---=-+
>>  | |
>>   +--+-+ +-+--+
>>   | controller | | controller |  Host userspace
>>   ++ ++
>> #+END_SRC
>> 
>> #+ATTR_LATEX: :width "" :options [scale=0.75]
>> #+CAPTION: [[label:fig:mininet-arch]]Mininet with OpenVSwitch architecture
>> #+RESULTS[1d367d39f18523f4eb247cb13aabd6c6f633fbdf]: 
>> [[file:figs/-mininet-ovsk.png]]
>
> First, execute your Babel block in order to generate a #+RESULTS line.
> Then, add CAPTION, ATTR_LATEX etc. lines before the RESULTS line.

Exactly. 

Also, there is no need for #+LABEL, which is an obsolete synonym for
#+NAME.

Regards,

-- 
Nicolas Goaziou



Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 13:04 schrieb Georgiy Tugai:
> I don't know if it'll work for Python, but here's an example of what
> works for me with Ditaa:
> 
>> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes
>>/+ /+ /+ /+
>>|host| |host| |host| |host|   Containers
>>+-+--/ +-+--/ +--+-/ +--+-/
>>  |  |   |  |
>>   -
>>  |  |   |  |
>>+-+--+---+--+-+
>>|  Open VSwitch   |  Host kernel
>>+-+-+---=-+
>>  | |
>>   +--+-+ +-+--+
>>   | controller | | controller |  Host userspace
>>   ++ ++
>> #+END_SRC
>>
>> #+ATTR_LATEX: :width "" :options [scale=0.75]
>> #+CAPTION: [[label:fig:mininet-arch]]Mininet with OpenVSwitch architecture
>> #+RESULTS[1d367d39f18523f4eb247cb13aabd6c6f633fbdf]: 
>> [[file:figs/-mininet-ovsk.png]]
> 
> First, execute your Babel block in order to generate a #+RESULTS line.
> Then, add CAPTION, ATTR_LATEX etc. lines before the RESULTS line.

This seems to work mostly, yes. Problem is, that org puts the label inside the 
caption:

\begin{figure}[htb]
\centering
\includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}
\caption{\label{fig:GaussianExample}Gaussian Basis functions with vertex 
distances marked at $n \cdot \frac{1}{6}$.}
\end{figure}

This way the label does not work, i.e. won't be found by ref links.

#+BEGIN_SRC python :exports results :results file
  import matplotlib.pyplot as plt, numpy as np
  x = np.linspace(-2, 2, 1000)
  plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
  for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", color="r")
  plt.grid()
  plt.savefig('rbf-gaussian-4.pdf')
  return "rbf-gaussian-4.pdf"
#+END_SRC

#+LABEL: fig:GaussianExample
#+CAPTION: Gaussian Basis functions with vertex distances marked at $n \cdot 
\frac{1}{6}$.
#+RESULTS:
[[file:rbf-gaussian-4.pdf]]


Using NAME instead of caption results in the same latex output.

Thanks,
Florian

> 
> Good luck!
> Georgiy
> 
> On 30 Aug, Florian Lindner wrote:
>> Hello,
>>
>> I have this code block:
>>
>> #+BEGIN_SRC python :exports results :results file
>>   import matplotlib.pyplot as plt, numpy as np
>>   x = np.linspace(-2, 2, 1000)
>>   plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
>>   for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", 
>> color="r")
>>   plt.grid()
>>   plt.savefig('rbf-gaussian-4.pdf')
>>   return "rbf-gaussian-4.pdf"
>> #+END_SRC
>>
>> When exporting to latex it nicely compiles into 
>> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}.
>>
>> Now I want to have this \includegraphics in a figure environement including 
>> a label (to reference it) and a caption.
>>
>> How can do this best?
>>
>> I have found:
>> http://emacs.stackexchange.com/questions/12150/add-caption-to-an-image-generated-by-a-code-block
>>
>> but it doesn't work for me.
>>
>> Thanks,
>> Florian
>>
>>





Re: [O] Emacs movement keys

2016-08-30 Thread Eric S Fraga
On Monday, 29 Aug 2016 at 13:25, John Kitchin wrote:
>> You know you're an Emacs user when...
>
> You select some text in MS Word and Type C-w to cut it... and are very
> unhappy when Word closes...

Funnily enough, I'm usually happy when Word closes...  ;-)

(sorry for the noise but I couldn't resist)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.94.1, Org release_8.3.5-1070-g190476



Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 12:11 schrieb Nicolas Goaziou:
> Hello,
> 
> Florian Lindner  writes:
> 
>> I have this code block:
>>
[...]

>> When exporting to latex it nicely compiles into 
>> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}.
>>
>> Now I want to have this \includegraphics in a figure environement including 
>> a label (to reference it) and a caption.
>>
>> How can do this best?
> 
>> I have found:
>> http://emacs.stackexchange.com/questions/12150/add-caption-to-an-image-generated-by-a-code-block
>>
>> but it doesn't work for me.
> 
> What did you write? What doesn't work?

This org mode document

#+NAME: fig:org_fig
#+BEGIN_SRC python :exports results :results file
  import matplotlib.pyplot as plt, numpy as np
  x = np.linspace(-2, 2, 1000)
  plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
  for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", color="r")
  plt.grid()
  plt.savefig('rbf-gaussian-4.pdf')
  return "rbf-gaussian-4.pdf"
#+END_SRC
#+CAPTION: Org Fig
#+LABEL: fig:org_fig

Exports to:

\begin{document}

\maketitle
\tableofcontents

\includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf} \\
% Emacs 24.5.1 (Org mode 8.2.10)
\end{document}

Additionally, when evaluating it's changed to:

[...]
#+END_SRC

#+RESULTS: fig:org_fig
[[file:rbf-gaussian-4.pdf]]

#+CAPTION: Org Fig
#+LABEL: fig:org_fig


Splitting off the caption and label.

Best,
Florian




Re: [O] Add caption to babel-generated images

2016-08-30 Thread Georgiy Tugai
I don't know if it'll work for Python, but here's an example of what
works for me with Ditaa:

> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes
>/+ /+ /+ /+
>|host| |host| |host| |host|   Containers
>+-+--/ +-+--/ +--+-/ +--+-/
>  |  |   |  |
>   -
>  |  |   |  |
>+-+--+---+--+-+
>|  Open VSwitch   |  Host kernel
>+-+-+---=-+
>  | |
>   +--+-+ +-+--+
>   | controller | | controller |  Host userspace
>   ++ ++
> #+END_SRC
> 
> #+ATTR_LATEX: :width "" :options [scale=0.75]
> #+CAPTION: [[label:fig:mininet-arch]]Mininet with OpenVSwitch architecture
> #+RESULTS[1d367d39f18523f4eb247cb13aabd6c6f633fbdf]: 
> [[file:figs/-mininet-ovsk.png]]

First, execute your Babel block in order to generate a #+RESULTS line.
Then, add CAPTION, ATTR_LATEX etc. lines before the RESULTS line.

Good luck!
Georgiy

On 30 Aug, Florian Lindner wrote:
> Hello,
> 
> I have this code block:
> 
> #+BEGIN_SRC python :exports results :results file
>   import matplotlib.pyplot as plt, numpy as np
>   x = np.linspace(-2, 2, 1000)
>   plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
>   for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", 
> color="r")
>   plt.grid()
>   plt.savefig('rbf-gaussian-4.pdf')
>   return "rbf-gaussian-4.pdf"
> #+END_SRC
> 
> When exporting to latex it nicely compiles into 
> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}.
> 
> Now I want to have this \includegraphics in a figure environement including a 
> label (to reference it) and a caption.
> 
> How can do this best?
> 
> I have found:
> http://emacs.stackexchange.com/questions/12150/add-caption-to-an-image-generated-by-a-code-block
> 
> but it doesn't work for me.
> 
> Thanks,
> Florian
> 
> 


signature.asc
Description: PGP signature


Re: [O] Add caption to babel-generated images

2016-08-30 Thread Nicolas Goaziou
Hello,

Florian Lindner  writes:

> I have this code block:
>
> #+BEGIN_SRC python :exports results :results file
>   import matplotlib.pyplot as plt, numpy as np
>   x = np.linspace(-2, 2, 1000)
>   plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
>   for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", 
> color="r")
>   plt.grid()
>   plt.savefig('rbf-gaussian-4.pdf')
>   return "rbf-gaussian-4.pdf"
> #+END_SRC
>
> When exporting to latex it nicely compiles into 
> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}.
>
> Now I want to have this \includegraphics in a figure environement including a 
> label (to reference it) and a caption.
>
> How can do this best?

> I have found:
> http://emacs.stackexchange.com/questions/12150/add-caption-to-an-image-generated-by-a-code-block
>
> but it doesn't work for me.

What did you write? What doesn't work?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug? Highlighting inconsistent with export

2016-08-30 Thread Nicolas Goaziou
Hello,

Clément Pit--Claudel  writes:

> In the following snippets, I have marked which bits are syntax-highlighted as 
> code, and which bits are exported as code.
>
>  Some “=code=” [fn:: ~more~ ~of it~]. ~even more code~— 
> ~this~ —.
>Highlighted?NoYesNo   NoNo
>Exported?   NoYesYes  NoNo
>
> Note the inconsistency in the footnote case. ~this~ isn't highlighted
> because it's surrounded by non-breaking space. ~of it~ isn't
> highlighted because of the ‘]’, but on export it does get rendered as
> code.
>
> Some suggestions: Paired delimiters and quotes, such as “” ‘’ <> [],
> could be allowed around code

It could be hard to catch them all.

> Spaces (including zero-width spaces) could also be allowed

I have no objection to this.

However, another option is to get rid of
`org-emphasis-regexp-components', make every paired "=" character
trigger verbatim mode and every paired "~" characters trigger code mode,
but provide a way to escape "=" and "~". It should probably be extended
to any emphasis markup and special characters like "|", "#"...

There's more work involved, though.

Regards,

-- 
Nicolas Goaziou



[O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Hello,

I have this code block:

#+BEGIN_SRC python :exports results :results file
  import matplotlib.pyplot as plt, numpy as np
  x = np.linspace(-2, 2, 1000)
  plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4")
  for i in range(-4, 5): plt.axvline(1/6 * i, ymax = 0.1, ls = "-.", color="r")
  plt.grid()
  plt.savefig('rbf-gaussian-4.pdf')
  return "rbf-gaussian-4.pdf"
#+END_SRC

When exporting to latex it nicely compiles into 
\includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}.

Now I want to have this \includegraphics in a figure environement including a 
label (to reference it) and a caption.

How can do this best?

I have found:
http://emacs.stackexchange.com/questions/12150/add-caption-to-an-image-generated-by-a-code-block

but it doesn't work for me.

Thanks,
Florian




Re: [O] BUG: swapped utf-8 symbols in org-entities

2016-08-30 Thread Nicolas Goaziou
Hello,

Konstantin Kliakhandler  writes:

> Sorry for the late reply. Am I supposed to send the patch against master or
> against maint?

The latter. Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] can't export default koma letter

2016-08-30 Thread Nicolas Goaziou
Hello,

kevinbanjo  writes:

> Hi,
> I installed the get-stable version in ~/0work/org-mode and did the make on
> it (see my previous email).
>
> I then added
>
> (push "~/0work/org-mode/lisp" load-path)
> (push "~/0work/org-mode/etc" load-path)
> (push "~/0work/org-mode/contrib" load-path)
>
> (require 'org)
>
> (eval-after-load 'ox '(require 'ox-koma-letter))

Note that ox-koma-letter already requires "ox".

> Debugger entered--Lisp error: (wrong-type-argument listp #("Romeo" 0 5
> (:parent (#1
>   org-element-set-contents(#("Romeo" 0 5 (:parent (#0
>   apply(org-element-set-contents #("Romeo" 0 5 (:parent (#0))) nil)
>   #[(s) " \306\307\310 # \311\312 \211 :\204 \313\202\" @9\203! AA\202\"
> )\"\210\314\315\n \211 :\2043\313\202@ @9\203? AA\202@ )#\210 \316\211\n
> ;\203V\317\320\f #\202\\\321 A@\f\"* \211 ;\203n\322 \313\f

I cannot reproduce it.

It looks like you are having a mixed installation problem.

Regards,

-- 
Nicolas Goaziou



Re: [O] stable won't pass tests

2016-08-30 Thread Nicolas Goaziou
Hello,

kevinbanjo  writes:

> Hi, following this:
>
> http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
>
> I cloned the git repo then did:
>
> git checkout -b stable origin/maint
>
> then:
>
> make up2
>
> and I got the output attached.
>
> Question is, shouldn't stable at least pass the tests?

It should and does. It doesn't look like you're using stable anyway.
For example stable contains 593 tests whereas you are running 604 of
them. Did you tweak local.mk somehow ?

Anyway, I suggest to double check your installation (load path in
particular).


Regards,

-- 
Nicolas Goaziou



[O] There is no line to end here at LaTeX org-ref export

2016-08-30 Thread Florian Lindner
Hello,

I learn to use org-ref and try to export a simple document:

* Section
label:Testlabel Some citations cite:Bungartz2015 and cite:Torres2009 and a 
reference to a label ref:Testlabel

bibliographystyle:unsrt
[[bibliography:/home/florian/Mendeley/library.bib]]

This exports to:

\section{Section}
\label{sec-1}
\label{Testlabel} Some citations \cite{Bungartz2015} and \cite{Torres2009} and 
a reference to a label \ref{Testlabel} \\

\bibliographystyle{unsrt} \\
\bibliography{../../Mendeley/library} \\
% Emacs 24.5.1 (Org mode 8.2.10)
\end{document}

Compilation gives: LaTeX Error: There's no line here to end.

Removing the last two double slashes after \bibliography and \bibliographystyle 
fixes it.

In https://github.com/jkitchin/org-ref/issues/279 the author says it probably 
not related to org-ref, however I was
unable to reproduce it without it.

All I configured when it comes to org / latex is:

org-latex-packages-alist '(("" "listings") ("" "color"))
org-latex-pdf-process '("latexmk -f -pdf %f")
org-latex-table-caption-above nil

However, I was doing the compile manually, so pdf-process is irrelevant here.

Any ideas how to fix that?

Thanks!
Florian