Re: [O] org 2 odt latex math are ignored

2017-11-07 Thread Uwe Brauer
>>> "Uwe" == Uwe Brauer  writes:

> Hi

> Most likely some variable is not set correctly but in the following
> a org file is converted to odt, however the latex math as left verbatim

> But org-export-with-latex is t

> I am puzzled.

> Uwe Brauer 

Here are the files, sorry forgot to attach

#+OPTIONS: LaTeX:t

* Cálculo de la $k$
  :PROPERTIES:
  :CUSTOM_ID: sec:calculo-de-la
  :END:

El calor perdido por el calorimetro esta dado por
\begin{equation}
\label{eq:inter:1}
k= \left( \frac{M_f (T_e-T_f)}{(T_c-T_e)} -M_c  \right)
\end{equation}
Los valores
están dado
$$
M_c= 193.8 \qquad  T_c=30.8 \quad T_e=23.1 \quad T_f=13.9 \quad M_f=192.7
$$
$$T_1=23.1 \quad T_2=30.8$$ por lo tanto $$\label{eq:testderiv:8}
k=36.43 \quad\mbox{gr}$$


test.odt
Description: application/vnd.oasis.opendocument.text


[O] org 2 odt latex math are ignored

2017-11-07 Thread Uwe Brauer


Hi

Most likely some variable is not set correctly but in the following
a org file is converted to odt, however the latex math as left verbatim

But org-export-with-latex is t

I am puzzled.

Uwe Brauer 




Re: [O] Bizarre gnuplot file creation error

2017-11-07 Thread Lawrence Bottorff
Still haven't tracked down the exact steps to reproduce this problem, but
it happened again recently -- and starting a new emacs from the command
line solved it, i.e., my usual daemon-run emacs seems to be "crudding up"
somehow.

On Sat, Nov 4, 2017 at 1:05 PM, Lawrence Bottorff  wrote:

> Trying the babel gnuplot the other day, I had trouble getting the results
> to C-c C-c to actually materialize in the place I'd given. Taking the
> example from the org-mode babel gnuplot page, (changing the location):
>
> #+begin_src gnuplot :exports both :file omnigraphics/omnig10.png
> reset
>
> set title "Putting it All Together"
>
> set xlabel "X"
> set xrange [-15:15]
> set xtics -15,2,15
>
>
> set ylabel "Y"
> set yrange [-15:15]
> set ytics -15,2,15
>
> f(x) = sqrt(x - 1) + 1
> g(x) = x**3
> h(x) = sqrt(-x - 1) + 1
>
> plot f(x) w lp lw 1, g(x) w lp lw 1, h(x) w l lw 1
> #+end_src
>
> The system was not creating the png in the given folder. Finally it
> occurred to me to look in another place where I'd previously been creating
> org-mode gnuplot pngs -- and there it was! I could do C-c C-c again and
> again and see new versions of the png being created each time in
> yesterday's folder, i.e., not the location given with :file. So the
> :file omnigraphics/omnig10.png was being blown off and org-mode internal
> had remembered where I'd previously created pngs and kept creating them
> there. I've tried to recreate this scenario with just the code snippet
> above -- fresh (non-daemon) emacs processes, changing the :file location
> each time -- and I've reproduced the problem sometimes. I've combed through
> my personal init els and it's definitely nothing I'm telling it. Strange. .
> . .
>
> LB
>


Re: [O] Is it possible to sort checkboxes?

2017-11-07 Thread Angel de Vicente
Hi,

never mind. As so many other times (blush) I figured out the answer
right after posting the question. I was trying with a test file like the
following and with the org-sort (C-c ^) command. I assumed I had to
issue the command in the TODO line, which tells me there is "Nothing to
sort". Actually it looks like I can do it in any of the Task lines and
it works exactly as I wanted.

Orgmode to rule the world! :-)

,
| * Test
| 
| ** TODO Work on item 1 [2/12]
|   + [ ] Task a
|   + [ ] Task b
|   + [ ] Task c
|   + [ ] Task d
|   + [ ] Task f
|   + [ ] Task h
|   + [ ] Task i
|   + [ ] Task j
|   + [ ] Task k
|   + [ ] Task l
|   + [X] Task e
|   + [X] Task g
`

-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Is it possible to sort checkboxes?

2017-11-07 Thread Angel de Vicente
Hi,

lately I'm using checkboxes a lot. They are fine, but I tend to have items
with many checkboxes in them. As I work on an item I check some of them
as done C-c C-c, but since I have many checkboxes and I don't always
work in them in order, I end up having many checkboxes around, some
checked as done, some unchecked.

What I'm trying to find is a way to automatically move a checkbox to the
bottom of the list when I check it, so that all unchecked items are at
the beginning and all the checked ones at the end. Any ideas?

Many thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Bug: export (tex) [8.2.10 (release_8.2.10 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2017-11-07 Thread Nicolas Goaziou
Hello,

"Carrigan Brolly, Christopher J."  writes:

> I just exported an org mode file to LaTeX, and it didn't compile because
> the included a windows path with an unescaped '\'. Additionally, it throws a 
> '#'
> into \url{}, which breaks that as well. I can provide the org file, and
> my org settings are attached. This is my first time using this report
> system, so if I screwed something up or more info is needed, I use this email 
> frequently and will see replies. 
>
> If anyone wants to just describe what would be necessary to prevent this, I 
> could try to do it. 
>
> Thanks.
>
> Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 
> Version 10.9.5 (Build 13F1911))
> of 2017-04-21
> Package: Org-mode version 8.2.10 (release_8.2.10 @
> /Applications/Emacs.app/Contents/Resources/lisp/org/)

Even though it is shipped with Emacs 25.2, Org 8.2.10 is quite old. You
may want to update it first, and try again. If the problem persists,
please provide the Org file (possibly trimmed down to the problematic
part).

Regards,

-- 
Nicolas Goaziou



[O] Why is there no org-agenda-todo-next-keyword function?

2017-11-07 Thread Somelauw .
In an org-agenda buffer the following functions are defined and bound:
- org-agenda-todo-nextset (C-S-left)
- org-agenda-todo-previousset (C-S-right)
which change between sets of todo keywords.

Yet the following corresponding functions are missing:
- org-agenda-todo-next-keyword
- org-agenda-todo-previous-keyword
which should (if implemented) change between individual todo keywords.

If I have the following setup:

```emacs-lisp
  (setq org-todo-keywords
'((sequence "TODO(t)" "|" "DONE(d)")
  (sequence "NEXT(n)" "|" "WAITING(w)")))
```

There is no way to change a task to DONE using C-S-left and C-S-right
bindings alone.
What's the reason for this?



[O] Bug: export (tex) [8.2.10 (release_8.2.10 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2017-11-07 Thread Carrigan Brolly, Christopher J.
I just exported an org mode file to LaTeX, and it didn't compile because
the included a windows path with an unescaped '\'. Additionally, it throws a '#'
into \url{}, which breaks that as well. I can provide the org file, and
my org settings are attached. This is my first time using this report
system, so if I screwed something up or more info is needed, I use this email 
frequently and will see replies. 

If anyone wants to just describe what would be necessary to prevent this, I 
could try to do it. 

Thanks.

Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 
10.9.5 (Build 13F1911))
of 2017-04-21
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)

current state:
==
(setq
org-journal-mode-hook '(#[nil "\301\302\303\304$\207"
   [org-journal-encrypt-on org-add-hook
org-journal-encryption-hook nil t]
   5]
 (lambda nil
  (org-add-hook org-journal-encrypt-on
   (quote org-journal-encryption-hook) nil t)
  )
 )
org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
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 '(#[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
 visual-line-mode-hook org-journal-update-auto-mode-alist)
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-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'ignore
org-reveal-start-hook '(org-decrypt-entry)
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
)



[O] [PATCH]: Fix ob-haskell.el to work with custom ghci prompts

2017-11-07 Thread Doro Rose
Hi,

I noticed that ob-haskell.el doesn't support custom ghci prompts at present.
Custom ghci prompts such as "λ>" are quite popular in the haskell community, 
see for example

https://stackoverflow.com/questions/42081379/how-to-set-up-org-babel-for-haskell-with-stack

Could you have a look at the following patch and see, wether that would work in 
general, wrt. coding standars etc.
Obviously it works on my system, but I'm not an experienced elisp programmer, 
so I guess there might be  room for
improvement. 

diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el
index cc78bec33..361b2b9ce 100644
--- a/lisp/ob-haskell.el
+++ b/lisp/ob-haskell.el
@@ -59,14 +59,23 @@
 
 (defvar org-babel-haskell-eoe "\"org-babel-haskell-eoe\"")
 
+(defvar haskell-prompt-regexp)
+
 (defun org-babel-execute:haskell (body params)
   "Execute a block of Haskell code."
+  (require 'inf-haskell)
+  (add-hook 'inferior-haskell-hook
+(lambda ()
+  (setq-local comint-prompt-regexp
+  (concat haskell-prompt-regexp "\\|^λ?> "
   (let* ((session (cdr (assq :session params)))
  (result-type (cdr (assq :result-type params)))
  (full-body (org-babel-expand-body:generic
 		 body params
 		 (org-babel-variable-assignments:haskell params)))
  (session (org-babel-haskell-initiate-session session params))
+	 (comint-preoutput-filter-functions
+	   (cons 'ansi-color-filter-apply comint-preoutput-filter-functions))
  (raw (org-babel-comint-with-output
 		  (session org-babel-haskell-eoe t full-body)
 (insert (org-trim full-body))


[O] Bug? org-clock-report options order sensitive? [9.1.2 (9.1.2-25-g2567fe-elpa @ emacs/.emacs.d/elpa/org-20171030/)]

2017-11-07 Thread umberto boccioni
Emacs  : GNU Emacs 25.2.1 (x86_64-w64-mingw32)
 of 2017-04-25
Package: Org mode version 9.1.2 (9.1.2-25-g2567fe-elpa @ emacs/.
emacs.d/elpa/org-20171030/)

In a .org file (not an agenda buffer) using the clock-report (M-x
org-clock-report) with otherwise default options, the order of options
manually entered seems to change the output of the report.  Is this a
config thing on my end, or is this intended and I overlooked the relevant
section in the manual?

Below are the outputs of org-clock-report with only two options reversed
(not sure if tables will come out aligned, but differences are obvious).
With ":fileskip0" option last, the output is as expected, with the ":scope
agenda" using all agenda files as sources for the clocks, and fileskip
paring away tables from files not used.

However, with the "fileskip0" option first, the "scope" option is not
honored and only the clock from the current buffer (the default choice for
clocktable) is shown.  To do this, I manually reversed the options and then
updated the dynamic block via (M-x org-dblock-update) with cursor on the
"BEGIN" line.  I get similar behavior with other options, e.g. ":link"  Is
anyone able to reproduce this?

#+BEGIN: clocktable :scope agenda :fileskip0
#+CAPTION: Clock summary at [2017-11-01 Wed 16:09]
| File  | Headline  | Time
|  |
|---+---
++--|
|   | ALL *Total time*  | *1d 16:50*
|  |
|---+---
++--|
| WorkTasks.org | *File time*   | *1d 0:25*
|  |
|   | xx... | 1d 0:25
|  |
|---+---
++--|
| Notes.org | *File time*   | *7:14*
|  |
|   |   | 7:14
|  |
|---+---
++--|
| todo.org  | *File time*   | *9:11*
|  |
|   | xxs   | 0:19
|  |
|   | xx| 8:52
|  |
|   | \_  sign x||
8:52 |
#+END:


#+BEGIN: clocktable :fileskip0 :scope agenda
#+CAPTION: Clock summary at [2017-11-01 Wed 16:52]
| Headline | Time   |
|--+|
| *Total time* | *7:14* |
|--+|
|  | 7:14   |
#+END: