Re: [O] koma letter export receiver address

2016-04-24 Thread Rasmus
Hi,

York Zhao  writes:

> I'm wondering why using a French style as default, while the vast
> majority of the users are from the English world, I believe! Just a
> suggestion.

I don’t know why the NF is the default.  IMO the "correct" default would
be not to load any class unless specified.  I won’t have time to change it
currently, but I would accept a patch that did it.

Rasmus

-- 
Don't slow down Johnny, leave the Cadillac runnin'



[O] Programmatically construct agenda from list of headline ids

2016-04-24 Thread Alexander Baier
Hi!

As the title mentions I have a list of ids of existing org headlines and
want create an agenda view listing all of these headlines.

Is there functionality in org-agenda, that allows me to do this?

Best Regards,
-- 
Alexander Baier



Re: [O] Bug in vsum in org-mode table?

2016-04-24 Thread Charles Millar



On 04/22/2016 06:12 PM, Thierry Banel wrote:

Le 22/04/2016 22:10, Charles Millar a écrit :


On 04/22/2016 03:34 PM, Thierry Banel wrote:

You can format the result as *2.0* with the *f1* modifier
(or *f5* to get *2.0* and so on)

#+TBLFM: @>$1=vsum(@2..@>>)*;f1*

In the manual the decimal format %.2f, etc. is shown as an example 
but apparently the f2 format is not mentioned.


Is the %.Xf format preferred or is either one OK?

Regards,

Charlie Millar


*%.2f* is handy for those who are used to *printf()* syntax (in the C 
language).
But Calc unlimited precision numbers are converted to double floats 
before applying *%.2f*

Whereas *f2* operates on Calc numbers without conversion.

Thank you, Thierry.





Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Georgiy Tugai
On 24 Apr, numbch...@gmail.com wrote:
> ​Is there relative project which can convert and save current web page from
> browser to Org-mode type file?​
> 
> [stardiviner] GPG key ID: 47C32433
> IRC(freeenode): stardiviner Twitter:  @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
> 
> On Sun, Apr 24, 2016 at 6:38 PM, Eric S Fraga  wrote:
> 
> > On Sunday, 24 Apr 2016 at 09:10, Martin Weigele wrote:
> > > Hi, the subject line says it all, is there an easy way converting html to
> > > orgmode (not the other way round).
> >
> > Not sure but have a look at pandoc: http://pandoc.org/
> > --
> > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412
> >
> >

I believe that the following project may be what you're looking for.
Imports whole pages, selections or "the article content" (as defined by
`python-readability') into an `org-capture' buffer, converted to Org
format via `pandoc'.

https://github.com/alphapapa/org-protocol-capture-html


signature.asc
Description: PGP signature


Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Adam Porter
"numbch...@gmail.com"  writes:

> ​Is there relative project which can convert and save current web page
> from browser to Org-mode type file?​

Yes, see http://github.com/alphapapa/org-protocol-capture-html  :)




Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Martin Weigele
Thanks a lot, Roger and Eric,

in the mean time, I have found the ancient command line "html2text" that even 
replaces html section headers etc. by the appropriate orgmode star prefices.

Kind regards
Martin

Am Sonntag, 24. April 2016, 11:10:00 schrieb Roger Mason:
> Hello,
> 
> Martin Weigele  writes:
> > Hi, the subject line says it all, is there an easy way converting html to
> > orgmode (not the other way round).
> 
> I think pandoc (http://pandoc.org/) can do that.
> 
> Cheers,
> Roger





Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Roger Mason
Hello,

Martin Weigele  writes:

> Hi, the subject line says it all, is there an easy way converting html to 
> orgmode (not the other way round).

I think pandoc (http://pandoc.org/) can do that.

Cheers,
Roger



Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread numbch...@gmail.com
​Is there relative project which can convert and save current web page from
browser to Org-mode type file?​

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Apr 24, 2016 at 6:38 PM, Eric S Fraga  wrote:

> On Sunday, 24 Apr 2016 at 09:10, Martin Weigele wrote:
> > Hi, the subject line says it all, is there an easy way converting html to
> > orgmode (not the other way round).
>
> Not sure but have a look at pandoc: http://pandoc.org/
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412
>
>


[O] make ox-publish generate result figure image link path to relative instead of absolute full path

2016-04-24 Thread numbch...@gmail.com
I want babel can generate a figure image which path is relative to current
directory instead of full path.

Here is the org-mode buffer example which use `:dir "data/images"` as
default directory for executing code:


```
#+BEGIN_SRC gnuplot :session none :results graphics :dir "data/images"
:file "org-babel-plot-test.png"
set term png
set output 'org-babel-plot-test.png'

set grid

plot sin(x)
#+END_SRC

#+RESULTS:
[[file:/home/stardiviner/Org/Blog/org-publish/Blog/data/images/org-babel-plot-test.png]]
```

And here is another example which use current directory for save figure
image:

```
#+BEGIN_SRC gnuplot :session none :results graphics :file
"org-babel-plot-test.png"
set term png
set output 'org-babel-plot-test.png'

set grid

plot sin(x)
#+END_SRC

#+RESULTS:
[[file:org-babel-plot-test.png]]
```

What I want:
- result figure image can display as inline image.
- result figure image also can work in remote server. (like the first
example, `ox-publish` exported HTML link is local resource link like
`file:///home/USER/png`)

Is there a way to change babel generate figure image result path to be like
option `org-link-file-path-type` can set to `adaptive`.

- I think org-mode should improve on this.
- If somebody can provide an adivce, that is good too for a solution to use
for now.

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


Re: [O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Eric S Fraga
On Sunday, 24 Apr 2016 at 09:10, Martin Weigele wrote:
> Hi, the subject line says it all, is there an easy way converting html to 
> orgmode (not the other way round).

Not sure but have a look at pandoc: http://pandoc.org/
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412



Re: [O] logging the timings of task A + task B both at once?

2016-04-24 Thread Christoph LANGE
Nicolas Goaziou on 2016-04-06 10:54:
> Sharon Kimble  writes:
>> Being that we can have multiple cursors, is it possible to have 2
>> separate, distinct, tasks being clocked both at the same time?
> [...]
>
> There can only be one active clock at any given time. Although
> I understand the need for some special features, I don't think it is
> worth re-implementing "org-clock.el" to allow multiple ones.
>
> You may probably redefine "Task A" and "Task B" so they do not overlap
> and require being clocked at the same time.

I have a similar use case, which is related to booking working hours on
multiple projects and/or multiple employers.  I have many tasks which
cannot clearly be associated to a single project or employer, such as
"installing security updates on my computer".  Here, it would be
convenient to be able to define, by a special property, that, say, .7 of
the time logged on one task should be attributed to one
project/employer, and .3 to the other one.

Such that a query for

#+BEGIN: clocktable :tags "EmployerA"

over

* Security updates :EmployerA:EmployerB:
  :PROPERTIES:
  :LOGFACTOR-EmployerA: .7
  :LOGFACTOR-EmployerB: .3
  :END:
  :LOGBOOK:
  CLOCK: [2016-04-24 Sun 11:09]--[2016-04-24 Sun 12:09] =>  1:00
  :END:

would result in a value of "0:42".

I am currently using two workarounds for this:

1. Explicitly defining two separate tasks.  Having logged some time on
one of the tasks, I manually split the CLOCK: intervals and move the
"other" part of the split to the other task.  Thanks to my function
org-clock-split-current-interval
(https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L68)
the latter is not as painful as one might think.

2. Not tagging tasks with :EmployerA: or :EmployerB: but with a common
super-tag, e.g. :Work:.  Then, in the spreadsheets I'm generating from
my clock tables (see
https://github.com/clange/org-mode/blob/master/clocktable-spreadsheet/working-hours.org
for the general approach; those spreadsheets that generate
project-/employer-specific timesheets I have not yet made public), I do
something like "determine all time logged on :Work: but neither on
:EmployerA: nor on :EmployerB:.  Add .7 of that time to the time that's
explicitly logged on :EmployerA:, and .3 of that time to the time that's
explicitly logged on :EmployerB:."

Cheers,

Christoph

-- 
Dr. Christoph Lange, Enterprise Information Systems Department
Applied Computer Science @ University of Bonn; Fraunhofer IAIS
http://langec.wordpress.com/about, Skype duke4701

→ CSCUBS Computer Science Conference for University of Bonn Students
  25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de



Re: [O] How to calculate sum of property in tree?

2016-04-24 Thread Rainer Hansen
> Hi,
>
> I would like Emacs to calculate the price for the travel cost
> (21.90). This should be calculated as sum of the values of the property
> "Price" in the elements of the tree. How do I do that in Emacs Lisp?

I found one way to do it. I defined the COLUMNS property with %Price{+},
i.e. sum numbers in column 'Price and format result with `%.2f'
(always two decimals after point). After that I added the property
'Price' and, while cursor on 'Price',  with `C-c C-c (`org-property-action')' 
and choosing option c
(compute) the value of 'Price' got calculated.

I added the same inline Emacs Lisp expression to the headline to include
the result (21.90) in the headline.

---8<8<-
* Travel cost -- src_emacs-lisp{(org-entry-get (point) "Price")} EUR
  :PROPERTIES:
  :COLUMNS:  %Price{+;%.2f}
  :Price:21.90
  :END:

** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR 
   :PROPERTIES:
   :Price:7.70
   :END:
** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) "Price")} 
EUR
   :PROPERTIES:
   :Price:2.40
   :END:

** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
   :PROPERTIES:
   :Price:11.80
   :END:
---8<8<-

Any ideas on how to improve that solution?


Rainer Hansen  writes:

>
> --
> * Travel cost -- 21.90 EUR
>
> ** Train Eusirchen -- Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} 
> EUR 
>:PROPERTIES:
>:Price:7.70
>:END:
> ** Bus Euskirchen -- Stotzheim, src_emacs-lisp{(org-entry-get (point) 
> "Price")} EUR
>:PROPERTIES:
>:Price:2.40
>:END:
>
> ** Taxi Bonn, src_emacs-lisp{(org-entry-get (point) "Price")} EUR
>:PROPERTIES:
>:Price:11.80
>:END:
> --
>
> Thanks!
>
> Rainer




[O] Is there an easy way converting html -> orgmode?

2016-04-24 Thread Martin Weigele
Hi, the subject line says it all, is there an easy way converting html to 
orgmode (not the other way round).

Thanks,
Martin