Re: [O] How to get ordinal of an element in the subtree when exporting?

2019-01-17 Thread Kaushal Modi
On Thu, Jan 17, 2019 at 8:21 AM mgcyung  wrote:

>
> The function "org-export-get-ordinal" returns the ordinal of an element
> in the whole file. How to get ordinal of an element in the subtree when
> exporting?
>

Do you mean you want the ordinal counting to reset when the subtree begins?
In that case, export with the subtree scope: C-c C-e C-s ..


[O] How to get ordinal of an element in the subtree when exporting?

2019-01-17 Thread mgcyung


The function "org-export-get-ordinal" returns the ordinal of an element
in the whole file. How to get ordinal of an element in the subtree when
exporting?


--
mgcyung



[O] How to get clock data for today?

2018-08-28 Thread Marcin Borkowski
Hi Orgers,

I'd like to be able to get all clock data for a given period, say today,
from a given file(s) (like what `org-agenda-log-mode' does).  And I'd
like to have it in an Elisp program, so ideally as some data structure.

Any hints?

-- 
Marcin Borkowski
http://mbork.pl



Re: [O] How to get <

2018-08-13 Thread Bernt Hansen
Sharon Kimble  writes:

> I'm not sure if this is an org-mode problem or a general emacs one, so if its 
> in the wrong place, sorry, and if you can tell me where it should be placed 
> for a better result, then great. :)
>
> Anyway, I'm writing something that has interspersed things like <>
> or <<10-08-2018>> or <<2018-08-11>>, so there's no set pattern except
> they're all prefaced with <<, but how can I show these in possibly a
> Imenu menu to help in moving about in the document, please.
>
> Or is there some other simpler or easier way of getting these to show in
> a drop-down menu from the menubar please?
>
> Thanks
> Sharon.

Hi Sharon,

How about just
M-x occur <<.*>> RET

Regards,
Bernt



[O] How to get <

2018-08-11 Thread Sharon Kimble

I'm not sure if this is an org-mode problem or a general emacs one, so if its 
in the wrong place, sorry, and if you can tell me where it should be placed for 
a better result, then great. :)

Anyway, I'm writing something that has interspersed things like <>
or <<10-08-2018>> or <<2018-08-11>>, so there's no set pattern except
they're all prefaced with <<, but how can I show these in possibly a
Imenu menu to help in moving about in the document, please.

Or is there some other simpler or easier way of getting these to show in
a drop-down menu from the menubar please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.4, fluxbox 1.3.7, emacs 25.3.3, org 9.1.13


signature.asc
Description: PGP signature


Re: [O] How to get 'repeating footnotes' please?

2018-04-14 Thread Berry, Charles


> On Apr 13, 2018, at 3:40 AM, Sharon Kimble  wrote:
> 
> "Berry, Charles"  writes:
> 
>>> On Apr 10, 2018, at 5:42 AM, Sharon Kimble  
>>> wrote:
>>> 
>>> Samuel Wales  writes:
>>> 
 [fn:apples: ...]
 
 [fn:apples]
>>> 
>>> I'm sorry Samuel, but it seems like you haven't read all of my initial
>>> question, where I stated 'All my footnotes are 4 digits like
>>> '[fn:0010]'.' I'm not going to change my habits of using numerical
>>> footnotes that have been in documents for over ten years now to alpha
>>> footnotes. Sorry, its just not going to happen!
>>> 
>>> But I am open to any other suggestions which involve numerical
>>> footnotes?
>>> 
>> 
>> 
>> Numerical footnotes work the same as alpha AFAICS. So, Samuel's suggestion 
>> works, but I think you
>> may be asking a question about repeating the *text* of a footnote rather 
>> than merely referencing it
>> from a different location. If so, there may be a latex solution for you. 
>> Perhaps this helps:
>> 
>>  http://www.tex.ac.uk/FAQ-repfootnote.html
>> 
>> and the fixfoot package is what you need.
>> ??
>> 
>> If not maybe you can elaborate on what the desired latex should be.
> 
> Thanks Chuck.
> 
> Yes it is 'repeating text' that I want in my reused footnotes.
> 
> The problem with the latex solutions that you've proposed is that they
> rely on what I call 'static footnotes' meaning that the footnote number
> always stays the same, whereas org-mode uses 'dynamic footnotes' meaning
> that if you insert one between 3 and 4 they are automatically renumbered
> to "3 and new one 4 and 5".
> 
> When you're writing a long document, be it a book or an article or even
> a letter and you use footnotes, its very handy for them to be
> recalibrated every time that you use or insert a footnote. This
> recalibration or automatic renumbering is a godsend I've found, and is
> one of the strengths of org-mode, especially when you're memory is
> becoming increasingly problematic and you keep forgetting what you want
> to say.
> 
> And that's why I'm trying to get repeat text in org-modes dynamic
> footnotes. In every experiment that I've made using [fn:0001] as my
> reference point it has failed, seemingly due to an inability to graft
> latex commands into an org-mode dynamic footnote, which is then exported
> and published as an latexed PDF.


Org has no concept of a `page', which is required to handle repetition on 
subsequent pages. 

I think you are stuck in needing to find a LaTeX solution.  And then look at 
how you marry it to org.

HTH,

Chuck






Re: [O] How to get 'repeating footnotes' please?

2018-04-13 Thread Sharon Kimble
"Berry, Charles"  writes:

>> On Apr 10, 2018, at 5:42 AM, Sharon Kimble  
>> wrote:
>> 
>> Samuel Wales  writes:
>> 
>>> [fn:apples: ...]
>>> 
>>> [fn:apples]
>> 
>> I'm sorry Samuel, but it seems like you haven't read all of my initial
>> question, where I stated 'All my footnotes are 4 digits like
>> '[fn:0010]'.' I'm not going to change my habits of using numerical
>> footnotes that have been in documents for over ten years now to alpha
>> footnotes. Sorry, its just not going to happen!
>> 
>> But I am open to any other suggestions which involve numerical
>> footnotes?
>> 
>
>
> Numerical footnotes work the same as alpha AFAICS. So, Samuel's suggestion 
> works, but I think you
> may be asking a question about repeating the *text* of a footnote rather than 
> merely referencing it
> from a different location. If so, there may be a latex solution for you. 
> Perhaps this helps:
>
>   http://www.tex.ac.uk/FAQ-repfootnote.html
>
> and the fixfoot package is what you need.
> ??
>
> If not maybe you can elaborate on what the desired latex should be.

Thanks Chuck.

Yes it is 'repeating text' that I want in my reused footnotes.

The problem with the latex solutions that you've proposed is that they
rely on what I call 'static footnotes' meaning that the footnote number
always stays the same, whereas org-mode uses 'dynamic footnotes' meaning
that if you insert one between 3 and 4 they are automatically renumbered
to "3 and new one 4 and 5".

When you're writing a long document, be it a book or an article or even
a letter and you use footnotes, its very handy for them to be
recalibrated every time that you use or insert a footnote. This
recalibration or automatic renumbering is a godsend I've found, and is
one of the strengths of org-mode, especially when you're memory is
becoming increasingly problematic and you keep forgetting what you want
to say.

And that's why I'm trying to get repeat text in org-modes dynamic
footnotes. In every experiment that I've made using [fn:0001] as my
reference point it has failed, seemingly due to an inability to graft
latex commands into an org-mode dynamic footnote, which is then exported
and published as an latexed PDF.

To help in potentially debugging or getting this going I'm also
including my very minimalist totally nonsensical MWE -

--8<---cut here---start->8---
#+STARTUP: fnadjust
#+LaTeX_class: memoir

* Introduction
# \minitoc

You can also find information about your rights and choices, including refusing 
treatment, setting
down your wishes for your future treatment, and _how_ [fn:1] to give someone 
the legal right to make
decisions for you if you are no longer capable.

# \footnote{how is a banana\label{fn:repeat}}
[fn:1] how is a banana\label{1:how is a banana}

# [fn:1] \footnote{how is a banana\label{fn:repeat}}

** What is palliative care?

It can be delivered alongside particular treatments, such as chemotherapy or 
radiotherapy.
Palliative care helps people with advanced or terminal illnesses have the best 
possible _quality of
life_ [fn:2]. This also includes support for their families.

# Specialist palliative care is typically delivered by a team with diverse 
expertise in caring for
# people with progressive and life-limiting illness.

[fn:2] The individuals's ability to enjoy normal life activities.


*** What is palliative care?

End-of-life care includes palliative care. If you have an illness that can't be 
cured, palliative
care makes you as comfortable as possible, by managing your pain and other 
distressing symptoms. It
also involves psychological, social and spiritual support for you and your 
family or carers. This is
called a holistic approach, because it deals with you as a "whole" _person_. 
\footref{1:repeat}
--8<---cut here---end--->8---

Thanks
Sharon.


[fn:0001] http://www.tex.ac.uk/FAQ-repfootnote.html
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.9


signature.asc
Description: PGP signature


Re: [O] How to get 'repeating footnotes' please?

2018-04-10 Thread Berry, Charles


> On Apr 10, 2018, at 5:42 AM, Sharon Kimble  wrote:
> 
> Samuel Wales  writes:
> 
>> [fn:apples: ...]
>> 
>> [fn:apples]
> 
> I'm sorry Samuel, but it seems like you haven't read all of my initial
> question, where I stated 'All my footnotes are 4 digits like
> '[fn:0010]'.' I'm not going to change my habits of using numerical
> footnotes that have been in documents for over ten years now to alpha
> footnotes. Sorry, its just not going to happen!
> 
> But I am open to any other suggestions which involve numerical
> footnotes?
> 


Numerical footnotes work the same as alpha AFAICS. So, Samuel's suggestion 
works, but I think you may be asking a question about repeating the *text* of a 
footnote rather than merely referencing it from a different location.  If so, 
there may be a latex solution for you. Perhaps this helps:

http://www.tex.ac.uk/FAQ-repfootnote.html

and the fixfoot package is what you need.
??

If not maybe you can elaborate on what the desired latex should be.

HTH,

Chuck



Re: [O] How to get 'repeating footnotes' please?

2018-04-10 Thread Sharon Kimble
Samuel Wales  writes:

> [fn:apples: ...]
>
> [fn:apples]

I'm sorry Samuel, but it seems like you haven't read all of my initial
question, where I stated 'All my footnotes are 4 digits like
'[fn:0010]'.' I'm not going to change my habits of using numerical
footnotes that have been in documents for over ten years now to alpha
footnotes. Sorry, its just not going to happen!

But I am open to any other suggestions which involve numerical
footnotes?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.9


signature.asc
Description: PGP signature


Re: [O] How to get 'repeating footnotes' please?

2018-04-08 Thread Samuel Wales
[fn:apples: ...]

[fn:apples]

-- 
The Kafka Pandemic: 

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
.



[O] How to get 'repeating footnotes' please?

2018-04-08 Thread Sharon Kimble

How can I have repeat footnotes in an org-mode file that is exported to
latex and then built into a pdf file please? All my footnotes are 4
digits like '[fn:0010]'.

For example, if I had '[fn:0001] Apples are green' on page 3 of my
document, how can I then have the same footnote on page 53 please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.9


signature.asc
Description: PGP signature


Re: [O] How to get a list of all TODO keywords from defined variable `org-todo-keywords`?

2018-01-03 Thread Adam Porter
This might do:

(completing-read "Todo keyword: " org-todo-keywords-for-agenda nil t)




[O] How to get a list of all TODO keywords from defined variable `org-todo-keywords`?

2018-01-03 Thread numbch...@gmail.com
 I'm trying to select TODO keyword when doing org-capture.

Like this:

(setq org-capture-templates
'(("c" "[C]apture"
entry (file "")
;; HACK: select todo keyword interactively from `org-todo-keywords'.
;; 1. command `org-todo'
"* %(completing-read \"Todo keyword: \" (mapcar #'list
org-todo-keywords-1) nil t) %^{Capture}\n\n%i\n%a\n\n%?"
:prepend t
:empty-lines 1
)
...
))


But it is not working as I expected. I borrow this snippet code from
command `org-todo`.

hope someone can provide a good solution for my purpose.


[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] How to get the eacute above the e in saute or Saute?

2017-10-25 Thread Adonay Felipe Nogueira
See if [[help:org-latex-default-packages-alist]] has at something
similar to "inputenc" and "fontenc" inside. In any case, please report
back the results. ;)

Sharon Kimble  writes:

> I'm copying out loads of old recipes into org-mode exported to latex and
> build a pdf, which is working very nicely, except for one thing - I
> can't work out how to get the eacute in 'Saute' or 'saute'. How can I
> get it please? Its the little thing above the letter 'e' which is
> slanting from bottom left to top right above the letter e!
>
> So how can I do it please?
>
> Thanks
> Sharon.

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Nick Helm
On Fri, 13 Oct 2017 at 05:58:20 +1300, Sharon Kimble wrote:

> Ok, thanks, that works, but how can I assign a keypress to it as I need
> to use it very often, several times each day. Plus I've got a backlog to
> work through too.

If you only need that one character, you could temporarily assign a
convenient key binding. Something like this perhaps?

(global-set-key (kbd "S-C-e") [233])






Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Göktuğ Kayaalp
On 2017-10-12 17:58 +01, Sharon Kimble  wrote:
> Ok, thanks, that works, but how can I assign a keypress to it as I need
> to use it very often, several times each day. Plus I've got a backlog to
> work through too.

See "International" in the Emacs manual, especially "Input Methods" and
"Select Input Method" within it.

-- 
İ. Göktuğ Kayaalp   
024C 30DD 597D 142B 49AC
40EB 465C D949 B101 2427



Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Sharon Kimble
Kaushal Modi  writes:

> On Thu, Oct 12, 2017 at 10:08 AM Sharon Kimble  
> wrote:
>
> I'm copying out loads of old recipes into org-mode exported to latex and
> build a pdf, which is working very nicely, except for one thing -
>
>  
>
> I can't work out how to get the eacute in 'Saute' or 'saute'. How can I
> get it please?
>
> 1. You mean.. how to type that in Emacs in the first place?

Yes, so that it can then be exported into 'texlive-2017' and ultimately
built into the pdf.


> 2. Or it's fine in the Org file, but does not export correctly? 
>
> I can help if it's the first question.. just type "C-x 8 ' e" to get "é" (and 
> "C-x 8 ` e" to get "è").
> --

Ok, thanks, that works, but how can I assign a keypress to it as I need
to use it very often, several times each day. Plus I've got a backlog to
work through too.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1


signature.asc
Description: PGP signature


Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Eric S Fraga
On Thursday, 12 Oct 2017 at 14:13, Kaushal Modi wrote:

[...]

> 1. You mean.. how to type that in Emacs in the first place?
> 2. Or it's fine in the Org file, but does not export correctly?
>
> I can help if it's the first question.. just type "C-x 8 ' e" to get "é"
> (and "C-x 8 ` e" to get "è").

And, if you are going to type many words in French, you may wish to
change your input method (M-x set-input-method RET) to,
e.g. french-prefix, so that you can simply type Saut'e and it will
appear as Sauté.  The ' key will be "sticky" and will be applied to the
following letter if appropriate.

The emacs input methods are fantastic.  I frequently use the TeX input
method to be able type, easily, things like ∫x≠y₁ or 6.02×10⁹, as
examples.

"C-h I" will describe the current input method.

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-98-g0b8316


signature.asc
Description: PGP signature


Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Eric S Fraga
On Thursday, 12 Oct 2017 at 14:13, Kaushal Modi wrote:

[...]

> 1. You mean.. how to type that in Emacs in the first place?
> 2. Or it's fine in the Org file, but does not export correctly?
>
> I can help if it's the first question.. just type "C-x 8 ' e" to get "é"
> (and "C-x 8 ` e" to get "è").

For the second question, depending on the version of LaTeX you have
installed, what Kaushal has told you should be enough.  For older
versions of LaTeX, you might need to type this in your org file:

Saut@@latex:\'{e}@@

which is obviously not as pretty...  Try Kaushal's suggestion first.

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-98-g0b8316


signature.asc
Description: PGP signature


Re: [O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Kaushal Modi
On Thu, Oct 12, 2017 at 10:08 AM Sharon Kimble 
wrote:

>
> I'm copying out loads of old recipes into org-mode exported to latex and
> build a pdf, which is working very nicely, except for one thing -



> I can't work out how to get the eacute in 'Saute' or 'saute'. How can I
> get it please?


1. You mean.. how to type that in Emacs in the first place?
2. Or it's fine in the Org file, but does not export correctly?

I can help if it's the first question.. just type "C-x 8 ' e" to get "é"
(and "C-x 8 ` e" to get "è").
-- 

Kaushal Modi


[O] How to get the eacute above the e in saute or Saute?

2017-10-12 Thread Sharon Kimble

I'm copying out loads of old recipes into org-mode exported to latex and
build a pdf, which is working very nicely, except for one thing - I
can't work out how to get the eacute in 'Saute' or 'saute'. How can I
get it please? Its the little thing above the letter 'e' which is
slanting from bottom left to top right above the letter e!

So how can I do it please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1


signature.asc
Description: PGP signature


Re: [O] how to get version information on title slide with org beamer

2017-08-27 Thread Eric S Fraga
For completeness, here is my final code based on Charles's suggestion:

#+begin_src org
  ,* date formatting with version information   :ignoreheading:
  ,#+NAME: mydateline
  ,#+BEGIN_SRC emacs-lisp
  (format "#+DATE: \\copyright{} %s\n" *this*) 
  ,#+END_SRC

  src_shell[:post mydateline() :results raw]{echo -n $(date +%Y) '@@latex:\\ 
\footnotesize \color{gray}@@' v$(hg id --num)} 
#+end_src

This is for export to beamer (well, LaTeX more generally) and outputs
the year with revision information below in light grey (British spelling
I'm told ;-)).  I should probably move the copyright symbol into the
shell script but this works...

Thanks again,
eric

-- 
Eric S Fraga, ericsfraga@


signature.asc
Description: PGP signature


Re: [O] how to get version information on title slide with org beamer

2017-08-27 Thread Eric S Fraga
On Saturday, 26 Aug 2017 at 23:54, Berry, Charles wrote:
> Use a :post header to format a date keyword line.

Many thanks!  Works perfectly.

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-796-gbae41a


signature.asc
Description: PGP signature


Re: [O] how to get version information on title slide with org beamer

2017-08-26 Thread Berry, Charles

> On Aug 26, 2017, at 10:57 AM, Eric S Fraga  wrote:
> 
> Hello all,
> 
> I know I can use {{{modification-time(...,t)}}} say to get the revision
> control system information about when the repository was last
> modified.  However, I would like to have other information (e.g. the
> mercurial id).  More importantly, I would like this information to
> appear on my beamer export title slide.
> 
> I have tried
> 
> #+date: \copyright {{{time(%Y)}}}, version src_shell{hg id --num}
> 
> for instance but babel blocks are not executed for these
> lines.  Putting this text in a macro doesn't help either.
> 
> Any suggestions?
> 

Use a :post header to format a date keyword line.

Something like:


--8<---cut here---start->8---

#+NAME: mydateline
#+BEGIN_SRC emacs-lisp
(format "#+DATE: %s\n" *this*) 
#+END_SRC

src_shell[:post mydateline() :results raw]{date} 

* intro

et cetera
--8<---cut here---end--->8---

Chuck



[O] how to get version information on title slide with org beamer

2017-08-26 Thread Eric S Fraga
Hello all,

I know I can use {{{modification-time(...,t)}}} say to get the revision
control system information about when the repository was last
modified.  However, I would like to have other information (e.g. the
mercurial id).  More importantly, I would like this information to
appear on my beamer export title slide.

I have tried

#+date: \copyright {{{time(%Y)}}}, version src_shell{hg id --num}

for instance but babel blocks are not executed for these
lines.  Putting this text in a macro doesn't help either.

Any suggestions?

Thanks,
eric

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-796-gbae41a


signature.asc
Description: PGP signature


Re: [O] How to get rid of first line indent?

2017-06-17 Thread Birnle
Sorry, Marcin,

Since your answer came in the other thread, I didn’t realize that three have 
answered my questions.

Thank you for your Manual and Lisp book tip. I’ll try to work through all of 
them. Another thousands of pages … 

"Of making many books there is no end, and much study is a weariness of the 
flesh."
--Ecclesiastes 12,12 ESV

Best,
Birnle 

> Am 13.6.2017 um 05:26 h schrieb Marcin Borkowski :
> 
> 
> On 2017-06-13, at 03:24, Birnle  wrote:
> 
>> Yes, John, you are surely right. From the beginning I use the Prelude
>> Emacs distribution (http://batsov.com/prelude/) that comes with
>> a bunch of preinstalled packages, so I don’t know yet what is original
>> Emacs/Org and what is optional. So much to learn, so little time.
>> 
>> Even for a text editing professional like me (publishing manager,
>> foreign language typesetter, book producer, copy editor) Emacs is like
>> an almost undiscovered parallel universe. I try boldly to go where
>> just a few men have gone before …
>> 
>> So thank you all, group, for being patient with an Emacs novice like me.
> 
> I started (almost two decades ago...) with a vanilla Emacs.  (There was
> nothing like "Prelude" back then, I guess.  Also, I had no internet
> access (at home) until, like, ten years later...)
> 
> Also, being a student, I had much free time then.  I read most of the
> Emacs manual.  That helped _a lot_.
> 
> BTW, Emacs absolutely rocks for copyediting (which I also happen to do),
> since you can define lots of little commands to ease the repetitive
> tasks.  And yes, you probably do need to learn Lisp to master Emacs.
> Start with "An Introduction to Programming in Emacs Lisp" by Robert
> J. Chassell (evaluate the form (info "eintr")).
> 
> Best,
> 
> --
> Marcin Borkowski
> 




Re: [O] How to get rid of first line indent?

2017-06-13 Thread Birnle

Thank you, Marcin,

In fact, rectangle deletion doesn’t work since the text has over 700 
header lines that are not indented. But replace-regexp works.


Best,
Birnle

On 13 Jun 2017, at 5:21, Marcin Borkowski wrote:


On 2017-06-12, at 23:42, Birnle  wrote:

Thank you, John, for your answer. And no, it’s much too early for 
me

to be sure … But C-c n does actually indent each (first) line with
whitespace according to the number of asterisks in the heading.

The easiest and fastest solution is in fact deleting the leading
whitespace in every line by replace-regexp (replace ^ + by nothing).


The easiest and fastest solution is probably to use delete-rectangle 
(or

rectangle-mark-mode and then DEL).

Hth,

--
Marcin Borkowski




Re: [O] How to get rid of first line indent?

2017-06-13 Thread Eric S Fraga
On Monday, 12 Jun 2017 at 16:14, Birnle wrote:
> But I’ve read that it is possible to directly export to Markdown –
> that is the format I usually work with. By exporting an Org mode file
> these unnecessary spaces should be erased. I just have to figure out
> how to export to Markdown from Org mode … Do you know a good online
> How-to?

Check out the markdown section in the exporting part of the info manual
for org.  If you have the system installed properly, this should work:

  C-h i org RET m exporting RET m markdown RET
  
but it is a rather short section of the manual...

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Marcin Borkowski

On 2017-06-13, at 03:24, Birnle  wrote:

> Yes, John, you are surely right. From the beginning I use the Prelude
> Emacs distribution (http://batsov.com/prelude/) that comes with
> a bunch of preinstalled packages, so I don’t know yet what is original
> Emacs/Org and what is optional. So much to learn, so little time.
>
> Even for a text editing professional like me (publishing manager,
> foreign language typesetter, book producer, copy editor) Emacs is like
> an almost undiscovered parallel universe. I try boldly to go where
> just a few men have gone before …
>
> So thank you all, group, for being patient with an Emacs novice like me.

I started (almost two decades ago...) with a vanilla Emacs.  (There was
nothing like "Prelude" back then, I guess.  Also, I had no internet
access (at home) until, like, ten years later...)

Also, being a student, I had much free time then.  I read most of the
Emacs manual.  That helped _a lot_.

BTW, Emacs absolutely rocks for copyediting (which I also happen to do),
since you can define lots of little commands to ease the repetitive
tasks.  And yes, you probably do need to learn Lisp to master Emacs.
Start with "An Introduction to Programming in Emacs Lisp" by Robert
J. Chassell (evaluate the form (info "eintr")).

Best,

--
Marcin Borkowski



Re: [O] How to get rid of first line indent?

2017-06-12 Thread Marcin Borkowski

On 2017-06-12, at 23:42, Birnle  wrote:

> Thank you, John, for your answer. And no, it’s much too early for me
> to be sure … But C-c n does actually indent each (first) line with
> whitespace according to the number of asterisks in the heading.
>
> The easiest and fastest solution is in fact deleting the leading
> whitespace in every line by replace-regexp (replace ^ + by nothing).

The easiest and fastest solution is probably to use delete-rectangle (or
rectangle-mark-mode and then DEL).

Hth,

-- 
Marcin Borkowski



Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, you are surely right. From the beginning I use the Prelude 
Emacs distribution (http://batsov.com/prelude/) that comes with a bunch 
of preinstalled packages, so I don’t know yet what is original 
Emacs/Org and what is optional. So much to learn, so little time.


Even for a text editing professional like me (publishing manager, 
foreign language typesetter, book producer, copy editor) Emacs is like 
an almost undiscovered parallel universe. I try boldly to go where just 
a few men have gone before …


So thank you all, group, for being patient with an Emacs novice like me.

Best,
Birnle

On 13 Jun 2017, at 1:13, John Kitchin wrote:

The C-c n binding is not defined in org-mode though as far as I know. 
That

suggests it is something outside of org-mode doing that.

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 Mon, Jun 12, 2017 at 5:42 PM, Birnle  wrote:

Thank you, John, for your answer. And no, it’s much too early for 
me to be
sure … But C-c n does actually indent each (first) line with 
whitespace

according to the number of asterisks in the heading.

The easiest and fastest solution is in fact deleting the leading
whitespace in every line by replace-regexp (replace ^ + by nothing).


On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux 
and

that it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

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







Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Kitchin
The C-c n binding is not defined in org-mode though as far as I know. That
suggests it is something outside of org-mode doing that.

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 Mon, Jun 12, 2017 at 5:42 PM, Birnle  wrote:

> Thank you, John, for your answer. And no, it’s much too early for me to be
> sure … But C-c n does actually indent each (first) line with whitespace
> according to the number of asterisks in the heading.
>
> The easiest and fastest solution is in fact deleting the leading
> whitespace in every line by replace-regexp (replace ^ + by nothing).
>
>
> On 12 Jun 2017, at 18:57, John Kitchin wrote:
>
>
> On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:
>
>> crux-cleanup-buffer-or-region
>>
>
> if that command is what does it, then it is happening outside of org-mode.
> I guess it is a command from here: https://github.com/bbatsov/crux and
> that it is in a hook function somewhere.
>
> However, I am skeptical this command is what is doing it, because I also
> see this happen occasionally. Are you sure it isn't because
> of org-indent-mode?
>
>
>
> John
>
> ---
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 <(412)%20268-7803>
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, thank you! Sometimes it is so easy … if you know it. Great. 
Now I can export to Markdown and ODT directly.



On 12 Jun 2017, at 19:15, John Ankarström wrote:


Birnle  writes:

But I’ve read that it is possible to directly export to Markdown 
– that is the
format I usually work with. By exporting an Org mode file these 
unnecessary
spaces should be erased. I just have to figure out how to export to 
Markdown

from Org mode … Do you know a good online How-to?


Exporting to Markdown is built into Org-mode, accessible from the
C-c C-e export menu, but might not be enabled by default. To
enable it, customize `org-export-backends' (M-x customize RET
org-export-backends RET) and enable export to Markdown format
(`md').

Then you can press C-c C-e m m to export the Org document to a
.md file.

- John




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Thank you, John, for your answer. And no, it’s much too early for me 
to be sure … But C-c n does actually indent each (first) line with 
whitespace according to the number of asterisks in the heading.


The easiest and fastest solution is in fact deleting the leading 
whitespace in every line by replace-regexp (replace ^ + by nothing).




On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux and 
that

it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



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





Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Ankarström
Birnle  writes:

> But I’ve read that it is possible to directly export to Markdown – that is the
> format I usually work with. By exporting an Org mode file these unnecessary
> spaces should be erased. I just have to figure out how to export to Markdown
> from Org mode … Do you know a good online How-to?

Exporting to Markdown is built into Org-mode, accessible from the
C-c C-e export menu, but might not be enabled by default. To
enable it, customize `org-export-backends' (M-x customize RET
org-export-backends RET) and enable export to Markdown format
(`md').

Then you can press C-c C-e m m to export the Org document to a
.md file.

- John



Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Kitchin
On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:

> crux-cleanup-buffer-or-region
>

if that command is what does it, then it is happening outside of org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux and that
it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I also
see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



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


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you again. This is what I knew, I can do it with regexp. I 
just thought there would be a simple command that could undo the "cleanup".

But I’ve read that it is possible to directly export to Markdown – that is the 
format I usually work with. By exporting an Org mode file these unnecessary 
spaces should be erased. I just have to figure out how to export to Markdown 
from Org mode … Do you know a good online How-to?



> Am 12.6.2017 um 18:01 h schrieb Eric S Fraga :
> 
> On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
>> Is there no command to "unclean" the file again?
> 
> Difficulty is defining what "unclean" means.  For instance, if it is
> simply removing spaces at the start of a line, you could use
> 
> ,[ C-h f replace-regexp RET ]
> | replace-regexp is an interactive compiled Lisp function in
> | ‘replace.el’.
> | 
> | (replace-regexp REGEXP TO-STRING  DELIMITED START END
> | BACKWARD)
> | 
> | This function is for interactive use only;
> | [...]
> `
> 
> and replace "^ +" with "" (no quotes typed).  But this would apply to
> all lines.  If you can come up with a regexp for "unclean" lines then
> this could work.
> 
> HTH,
> eric
> 
> -- 
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Eric S Fraga
On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
> Is there no command to "unclean" the file again?

Difficulty is defining what "unclean" means.  For instance, if it is
simply removing spaces at the start of a line, you could use

,[ C-h f replace-regexp RET ]
| replace-regexp is an interactive compiled Lisp function in
| ‘replace.el’.
| 
| (replace-regexp REGEXP TO-STRING  DELIMITED START END
| BACKWARD)
| 
| This function is for interactive use only;
| [...]
`

and replace "^ +" with "" (no quotes typed).  But this would apply to
all lines.  If you can come up with a regexp for "unclean" lines then
this could work.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you, that is a good idea.

Now I've found that it is more a feature than a failure – org mode thinks of it 
as "cleaning up", and it does it automagically together with some commands. 
There is even a special command for it: C-c n (crux-cleanup-buffer-or-region).

But I cannot find the command to "unclean" the text so that I get again what 
I've typed – without the whitespace before each (first) line.

The reason that I want the text as I type it (without leading whitespace) in is 
that I want to copy/paste it into other apps, where it is wrong to have the 
whitespace at the beginning of the line, so I have to erase it by hand (or 
regexp search/replace).

Is there no command to "unclean" the file again?



On 11 Jun 2017, at 16:51, Eric S Fraga wrote:

> […] if you want to see what you did when the
> "suddenly" bit happens, try typing "C-h l" (Control and H key
> simultaneously and then lower case l) to see all the most recent
> keystrokes you have made and how they have been interpreted by
> emacs. This may point to an offending command you are invoking without
> being aware.



Re: [O] How to get rid of first line indent?

2017-06-11 Thread Eric S Fraga
On Thursday,  8 Jun 2017 at 20:57, Birnle wrote:
> Dear group,
>
> How do I get rid of the (first) line indent in org mode? I type some 
> text (book length) in:

[...]

> Then I do something – I don’t know what it is, but suddenly the 
> first line of the same text is indented to the level of the header by 
> white space:

Cannot help you directly but if you want to see what you did when the
"suddenly" bit happens, try typing "C-h l" (Control and H key
simultaneously and then lower case l) to see all the most recent
keystrokes you have made and how they have been interpreted by
emacs.  This may point to an offending command you are invoking without
being aware.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


[O] How to get rid of first line indent?

2017-06-08 Thread Birnle

Dear group,

How do I get rid of the (first) line indent in org mode? I type some 
text (book length) in:


* Some heading text
Here is some text in one line in
visual mode that wraps nicely
and looks like it should.

** Another header
And some more text in just one
line in visual mode that wraps
as it should.

Then I do something – I don’t know what it is, but suddenly the 
first line of the same text is indented to the level of the header by 
white space:


* Some heading text
  Here is some text in one line
in visual mode that wraps nicely
and looks like it should.

** Another header
   And some more text in just
one line in visual mode that
wraps as it should.

I’ve searched for hours but couldn’t find a solution. As a totally 
new Emacs and org (and evil) mode user I don’t know what to do. Please 
help!


Best,
Birnle



Re: [O] How to get "clean" markdown export

2017-03-11 Thread Nicolas Goaziou
Hello,

stefano franchi  writes:

> On Thu, Mar 9, 2017 at 12:30 PM, Eric S Fraga  wrote:
>
>> On Thursday,  9 Mar 2017 at 17:44, stefano franchi wrote:
>> > Hi all,
>> >
>> > I 'm just beginning with org-mode and I' trying to understand how to
>> > get a clean export to markdown. By "clean" I mean: no extraneous html
>>
>> Just tested what I suggested and, actually, adding
>>
>> #+options: toc:nil
>>
>> removes all the cruft you don't want!
>>
>>
>
> Indeed! Thanks a lot, problem solved.

Speaking of which, I just implemented native table of contents in
Markdown export back-end.

It supports global table of contents, and local ones, e.g.

  #+TOC: headlines local 3

Regards,

-- 
Nicolas Goaziou



Re: [O] How to get "clean" markdown export

2017-03-09 Thread stefano franchi
On Thu, Mar 9, 2017 at 12:30 PM, Eric S Fraga  wrote:

> On Thursday,  9 Mar 2017 at 17:44, stefano franchi wrote:
> > Hi all,
> >
> > I 'm just beginning with org-mode and I' trying to understand how to
> > get a clean export to markdown. By "clean" I mean: no extraneous html
>
> Just tested what I suggested and, actually, adding
>
> #+options: toc:nil
>
> removes all the cruft you don't want!
>
>

Indeed! Thanks a lot, problem solved.



Cheers,

S.


-- 
__
Stefano Franchi

stefano.fran...@gmail.com 
http://stefano.cleinias.org


Re: [O] How to get "clean" markdown export

2017-03-09 Thread Eric S Fraga
On Thursday,  9 Mar 2017 at 17:44, stefano franchi wrote:
> Hi all,
>
> I 'm just beginning with org-mode and I' trying to understand how to
> get a clean export to markdown. By "clean" I mean: no extraneous html

Just tested what I suggested and, actually, adding

#+options: toc:nil

removes all the cruft you don't want!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


Re: [O] How to get "clean" markdown export

2017-03-09 Thread Eric S Fraga
On Thursday,  9 Mar 2017 at 17:44, stefano franchi wrote:
> Hi all,
>
> I 'm just beginning with org-mode and I' trying to understand how to
> get a clean export to markdown. By "clean" I mean: no extraneous html

One bit that will help is adding

#+options: toc:nil

to your org file to not request the table of contents.  Not sure if you
can remove the id entries however.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


[O] How to get "clean" markdown export

2017-03-09 Thread stefano franchi
Hi all,

I 'm just beginning with org-mode and I' trying to understand how to get a
clean export to markdown. By "clean" I mean: no extraneous html code should
be inserted or interspersed with the markdown code. Using the
installation-provided exporter, I get very different results, with a lot of
extraneous stuff being exported. (See example below)
Apologies if this question has been asked before. Searching the manual and
the list's archives did not provided any enlightenment.

Cheers,

Stefano

P.S. I am on emacs 25  and org-mode 9.0.2 on archlinux, if that matters:


Example: this simple file from a tutorial:

--
*Welcome to org-mode


Welcome, and thanks for trying out Org-mode. Making outlines in org is very
simple. It is just text! Just start typing.

* This is a headline, it starts with one or more stars

A heading has one star, a sub-heading two, etc.

* Working with lists
** Moving around in our outline
*** A level three headline
** Moving around headlines
--


Produced this file when exported to markdown:


---

Table of Contents


1. This is a headline, it starts with one or more
stars
2. Working with lists

2.1. Moving around in our outline

2.1.1. A level three headline


2.2. Moving around headlines





\*Welcome to org-mode

Welcome, and thanks for trying out Org-mode. Making outlines in org is very
simple. It is just text! Just start typing.




# This is a headline, it starts with one or more stars

A heading has one star, a sub-heading two, etc.




# Working with lists




## Moving around in our outline




### A level three headline




## Moving around headlines


-- 
__
Stefano Franchi

stefano.fran...@gmail.com 
http://stefano.cleinias.org


Re: [O] How to get sum from remote table + how to put in bold?

2015-12-07 Thread Fabrice Niessen
Hello,

Eric S Fraga  writes:
> On Sunday,  6 Dec 2015 at 15:16, Fabrice Niessen wrote:
>>
>> I'm trying to build a template for invoices written in
>> Org... exporting to PDF (and HTML). Will be officially public as soon
>> as it's DONE.
>>
>> Though, I have 2 problems currently:
>>
>> - I'd like to sum up, in table `total', the sub-total column of table
>>   `items'. But the `remote' call does not seem to accept the `vsum'
>>   expression. Is this a foreseen limitation?  Is there a workaround to
>>   this?
>>
>> - I'd like to get the computed amount (last line of `total' table) in
>>   bold (and, if possible, even in a bigger font). How is that doable?
>
> I've fixed your ECM:
>
> 1. moved attr_latex and other latex stuff to before the names of the
>tables and
> 2. inverted the order of vsum and remote so that you do a vsum over what
>the remote function returns.
>
> Seems to work.

I confirm that you *did* fix my first problem. Simple, neat, and smart.
Thanks a lot!

Any idea how to solve my problem #2: get the computed amount in bold
and/or in another color and/or in bigger font?

Best regards,
Fabrice

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/




Re: [O] How to get sum from remote table + how to put in bold?

2015-12-07 Thread Rasmus
Hi,

I didn't read OP.

Fabrice Niessen  writes:

> Any idea how to solve my problem #2: get the computed amount in bold
> and/or in another color and/or in bigger font?

Cf. the manual you can use printf syntax,

 
http://orgmode.org/manual/Formula-syntax-for-Calc.html#Formula-syntax-for-Calc

Thus,

| /Sub-total/  |   6600.00 | \EUR   |
|--+---+-|
| /Tax @ 21%/  |   1386.00 | \EUR   |
|--+---+-|
| *Amount Due* | *7986.00* | *\EUR* |
#+TBLFM: 
@1$2=vsum(remote(items,@3$7..@4$7));%.2f::@2$2=@1*0.21;%.2f::@3$2=vsum(@1..@-1);*%.2f*

Hope this was what you were after.
Rasmus

-- 
Together we will make the possible totay impossible!




Re: [O] How to get sum from remote table + how to put in bold?

2015-12-07 Thread Eric S Fraga
On Sunday,  6 Dec 2015 at 15:16, Fabrice Niessen wrote:
> Hello,
>
> I'm trying to build a template for invoices written in Org... exporting
> to PDF (and HTML). Will be officially public as soon as it's DONE.
>
> Though, I have 2 problems currently:
>
> - I'd like to sum up, in table `total', the sub-total column of table
>   `items'. But the `remote' call does not seem to accept the `vsum'
>   expression. Is this a foreseen limitation?  Is there a workaround to this?
>
> - I'd like to get the computed amount (last line of `total' table) in bold 
> (and,
>   if possible, even in a bigger font). How is that doable?

I've fixed your ECM:

1. moved attr_latex and other latex stuff to before the names of the
tables and
2. inverted the order of vsum and remote so that you do a vsum over what
the remote function returns.

Seems to work.  See attached.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-379-g38fd09
#+TITLE: Invoice #001
#+OPTIONS:   H:2 num:nil toc:nil

#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper,table]
#+LaTeX_HEADER: \usepackage{tabu}
#+LaTeX_HEADER: \taburulecolor{gray}

* Items

#+ATTR_LaTeX: :environment tabu :align lXlrlrrl
#+name: items
|  | <35>|   |  ||  |   |  |
| Title of job | Description | Type  | Rate || Quantity | Sub-total |  |
|--+-+---+--++--+---+--|
| Consultancy  | Quote template  | Timed |  400 | \EUR/d |  6.5 |   2600.00 | \EUR |
|--+-+---+--++--+---+--|
| Research | Billing invoice template| Timed |  400 | \EUR/d | 10.0 |   4000.00 | \EUR |
#+TBLFM: $7=$6*400;%.2f

* Amount Due

#+latex: \hfill\colorbox{yellow}{\begin{minipage}{7.5cm}
#+ATTR_LaTeX: :environment tabu :align Xrl
#+name: total
| /Sub-total/  | 6600.00 | \EUR |
|+-+--|
| /Tax @ 21%/  | 1386.00 | \EUR |
|+-+--|
| *Amount Due* | 7986.00 | *\EUR* |
#+TBLFM: @1$2=vsum(remote(items,@3$7..@4$7));%.2f::@2$2=@1*0.21;%.2f::@3$2=vsum(@1..@-1);%.2f

#+latex: \end{minipage}}


[O] How to get sum from remote table + how to put in bold?

2015-12-06 Thread Fabrice Niessen
Hello,

I'm trying to build a template for invoices written in Org... exporting
to PDF (and HTML). Will be officially public as soon as it's DONE.

Though, I have 2 problems currently:

- I'd like to sum up, in table `total', the sub-total column of table
  `items'. But the `remote' call does not seem to accept the `vsum'
  expression. Is this a foreseen limitation?  Is there a workaround to this?

- I'd like to get the computed amount (last line of `total' table) in bold (and,
  if possible, even in a bigger font). How is that doable?

ECM:

--8<---cut here---start->8---
#+TITLE: Invoice #001
#+OPTIONS:   H:2 num:nil toc:nil

#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper,table]
#+LaTeX_HEADER: \usepackage{tabu}
#+LaTeX_HEADER: \taburulecolor{gray}

* Items

#+name: items
#+ATTR_LaTeX: :environment tabu :align lXlrlrrl
|  | <35>|   |  | | 
 |   |   |
| Title of job | Description | Type  | Rate | | 
Quantity | Sub-total |   |
|--+-+---+--+-+--+---+---|
| Consultancy  | Quote template  | Timed |  400 | \EUR/d |  
6.5 |   2600.00 | \EUR |
|--+-+---+--+-+--+---+---|
| Research | Billing invoice template| Timed |  400 | \EUR/d |  
   10.0 |   4000.00 | \EUR |
#+TBLFM: $7=$6*400;%.2f

* Amount Due

#+name: total
#+latex: \hfill\colorbox{yellow}{\begin{minipage}{7.5cm}
#+ATTR_LaTeX: :environment tabu :align Xrl
| /Sub-total/  | 0.00 | \EUR |
|+--+---|
| /Tax @ 21%/  | 0.00 | \EUR |
|+--+---|
| *Amount Due* | 0.00 | *\EUR* |
#+TBLFM: 
@1$2=remote(items,vsum(@3$7..@4$7);%.2f::@2$2=@1*0.21;%.2f::@3$2=vsum(@1..@-1);%.2f

#+latex: \end{minipage}}
--8<---cut here---end--->8---

Any hint for me?

Best regards,
Fabrice

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/




Re: [O] How to get list item depth within the exporter framework?

2015-07-29 Thread Marcin Borkowski

On 2015-07-27, at 19:51, Richard Lawrence richard.lawre...@berkeley.edu wrote:

 Hi Marcin,

 Marcin Borkowski mb...@mbork.pl writes:

 as I mentioned, I'm writing a simple exporter.  However, I stumbled on
 something apparently simple.  How to get the current list level within
 org-whatever-item transcoder?

 I ran into this problem once; the solution I found was to just walk up
 the AST via org-export-get-parent until you run out of parents.

 Something like this should work (untested, and probably needs to be
 tweaked, as my Elisp is a little rusty):

 (defun find-depth (element)
   Find the depth of a (list) element during export.
   (let ((parent (org-export-get-parent element)))
  (case (org-element-type parent)
('item (1+ (find-depth parent)))
('plain-list (find-depth (org-export-get-parent parent)))
(t 1

 Hope that helps!

Sure it does!  I'm ashamed I didn't think about this myself.  Here's my
take (I assume that ITEM is a plain-list item):

--8---cut here---start-8---
(defun org-item-get-level (item)
  Get the level of ITEM, which should be an item in a plain
list.  Levels are indexed from 0.
  (let ((pparent (org-element-property :parent (org-element-property :parent 
item
(if (eq (org-element-type pparent)
'item)
(1+ (org-item-get-level pparent))
  0)))
--8---cut here---end---8---

It is a bit less general (and probably a bit faster), but for
a plain-list item transcoder the generality doesn't matter.

 Best,
 Richard

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] How to get list item depth within the exporter framework?

2015-07-27 Thread Richard Lawrence
Hi Marcin,

Marcin Borkowski mb...@mbork.pl writes:

 as I mentioned, I'm writing a simple exporter.  However, I stumbled on
 something apparently simple.  How to get the current list level within
 org-whatever-item transcoder?

I ran into this problem once; the solution I found was to just walk up
the AST via org-export-get-parent until you run out of parents.

Something like this should work (untested, and probably needs to be
tweaked, as my Elisp is a little rusty):

(defun find-depth (element)
  Find the depth of a (list) element during export.
  (let ((parent (org-export-get-parent element)))
 (case (org-element-type parent)
   ('item (1+ (find-depth parent)))
   ('plain-list (find-depth (org-export-get-parent parent)))
   (t 1

Hope that helps!

Best,
Richard




[O] How to get list item depth within the exporter framework?

2015-07-27 Thread Marcin Borkowski
Hi all,

as I mentioned, I'm writing a simple exporter.  However, I stumbled on
something apparently simple.  How to get the current list level within
org-whatever-item transcoder?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] How to get list item depth within the exporter framework?

2015-07-27 Thread Marcin Borkowski

On 2015-07-27, at 10:46, Marcin Borkowski mb...@mbork.pl wrote:

 On 2015-07-27, at 10:17, Marcin Borkowski mb...@mbork.pl wrote:

 Hi all,

 as I mentioned, I'm writing a simple exporter.  However, I stumbled on
 something apparently simple.  How to get the current list level within
 org-whatever-item transcoder?

 By inspecting values of org-whatever-item's arguments, I found out one
 way: by checking the amount of indentation in :bullet.  Is it reliable?

Ooops, my bad.  Indentation is stripped from :bullet.

So, what do I do?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] How to get list item depth within the exporter framework?

2015-07-27 Thread Marcin Borkowski

On 2015-07-27, at 10:17, Marcin Borkowski mb...@mbork.pl wrote:

 Hi all,

 as I mentioned, I'm writing a simple exporter.  However, I stumbled on
 something apparently simple.  How to get the current list level within
 org-whatever-item transcoder?

By inspecting values of org-whatever-item's arguments, I found out one
way: by checking the amount of indentation in :bullet.  Is it reliable?

 TIA,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] How to get inline python code to work with :session option?

2015-03-30 Thread Richard Stanton
:session doesn't seem to play well with inline code blocks. For example, if I 
press C-c C-c with the cursor in the middle of  the following inline code, 

src_python[]{return 2+3} 

it gets expanded to

src_python[]{return 2+3} {{{results(=5=)}}}   

However, if I do the same with this code block, 

src_python[:session]{return 2+3} 

no results appear in the text buffer, and the mini-buffer displays the message 
Code block produced no output.

How can I get inline code to work with :session? 

Thanks.

Richard Stanton




Re: [O] How to get inline python code to work with :session option?

2015-03-30 Thread Ken Mankoff

I've modified my config to use IPython.

doesn't work:
src_python[]{return 2+3} {{{results(==)}}} 

works w/o 'return':
src_python[:session]{2+3} {{{results(=5=)}}} 

doesn't work:
src_python[:session]{return 2+3}   

  -k.


On 2015-03-30 at 02:41, Richard Stanton stan...@haas.berkeley.edu wrote:
 :session doesn't seem to play well with inline code blocks. For
 example, if I press C-c C-c with the cursor in the middle of the
 following inline code,

 src_python[]{return 2+3} 

 it gets expanded to

 src_python[]{return 2+3} {{{results(=5=)}}}   

 However, if I do the same with this code block, 

 src_python[:session]{return 2+3} 

 no results appear in the text buffer, and the mini-buffer displays the 
 message Code block produced no output.

 How can I get inline code to work with :session? 

 Thanks.

 Richard Stanton




Re: [O] How to get LATEX_HEADER items to appear *after* default packages?

2015-03-10 Thread Nick Dokos
Richard Stanton stan...@haas.berkeley.edu writes:

 When I export an org file to LaTeX using the class rhs-article, defined as 
 follows:

‘(rhs-article  
  \\documentclass{article}
 \\usepackage[top=1in, bottom=1.in, left=1in, right=1in]{geometry}
  [PACKAGES]
  [EXTRA] ;;header-string
  (\\section{%s} . \\section*{%s})
  (\\subsection{%s} . \\subsection*a{%s})
  (\\subsubsection{%s} . \\subsubsection*{%s})
  (\\paragraph{%s} . \\paragraph*{%s})
  (\\subparagraph{%s} . \\subparagraph*{%s})))

 I see that my headers defined using #+LATEX_HEADER appear in the resulting 
 LaTeX file before the default packages defined in 
 org-latex-default-packages-alist. How can I get the default packages to 
 appear BEFORE the LATEX_HEADER items? Or better yet, how can I control things 
 so that I can choose whether a LATEX_HEADER item appears before or after the 
 default packages in the LaTeX file?


See the doc for org-latex-classes, in particular
the section entitled The header string.

Nick





[O] How to get LATEX_HEADER items to appear *after* default packages?

2015-03-10 Thread Richard Stanton
When I export an org file to LaTeX using the class rhs-article, defined as 
follows:

 ‘(rhs-article  
   \\documentclass{article}
\\usepackage[top=1in, bottom=1.in, left=1in, right=1in]{geometry}
 [PACKAGES]
 [EXTRA] ;;header-string
   (\\section{%s} . \\section*{%s})
   (\\subsection{%s} . \\subsection*a{%s})
   (\\subsubsection{%s} . \\subsubsection*{%s})
   (\\paragraph{%s} . \\paragraph*{%s})
   (\\subparagraph{%s} . \\subparagraph*{%s})))

I see that my headers defined using #+LATEX_HEADER appear in the resulting 
LaTeX file before the default packages defined in 
org-latex-default-packages-alist. How can I get the default packages to appear 
BEFORE the LATEX_HEADER items? Or better yet, how can I control things so that 
I can choose whether a LATEX_HEADER item appears before or after the default 
packages in the LaTeX file?

Thanks for any suggestions.

Richard Stanton


Re: [O] how to get images support in Emacs on Windows?

2015-02-22 Thread Ben
I haven't tried other types except jpeg and png.

Actually, I use few inline images. Most of my images are large. They should
be resized to look pretty on emacs. But to resize them I need to build
emacs with ImageMagick. And I haven't tried that yet.

On Sat, Feb 21, 2015 at 3:18 AM, Herbert Sitz hes...@gmail.com wrote:

 Ben yfefyf at gmail.com writes:
 
  You can download the corresponding dlls from ezwinports [fn:1] and
 put them into emacs's `bin` directory.
 
  There are some instructions in the Image support part on page [fn:2].
 
  [fn:2] https://ftp.gnu.org/gnu/emacs/windows/
 

 Strangely, the instructions and files work only for a couple formats I
 tried.

 jpeg,png -- work perfectly

 svg -- works, but so far not inline.  I.e., I can click on link and image
 will show up in another Emacs buffer, but can't get it to show up inline.

 tiff -- can't get this to work at all.  When clicking on it, it shows
 character-mode garbage in separate buffer, along with error message.  This
 is despite fact that dynamic-library-alist shows the same files as I copied
 to the bin folder.

 Not a huge deal for me, since jpeg and png are what I wanted most.  But
 still seems a little odd; I have no idea what problems are with svg and
 tiff.



Re: [O] how to get images support in Emacs on Windows?

2015-02-22 Thread Herbert Sitz
Ben yfefyf at gmail.com writes:

 Actually, I use few inline images. Most of my images are large.
They should be resized to look pretty on emacs. But to resize them I need to
build emacs with ImageMagick. And I haven't tried that yet.
 

Are you sure you need to rebuild Emacs?  On my Linux machine I run a
standard  version of Emacs 24.3 binaries that I got from the Linux Mint
repository.  It supports using (a separately installed) Imagemagick to
reduce size of inline images.  I can't get it to work automatically in
Org-mode, but I think that's because I need a more recent version of
Org-mode.  I'm running v.7.9.3f of Org-mode.

To test Imagemagick support I'm running the test code made available in this
post:
http://article.gmane.org/gmane.emacs.orgmode/90278

I think the original poster in that thread said he couldn't get it to work
in Org-mode until he had updated his Org-mode version.

-- Herb



Re: [O] how to get images support in Emacs on Windows?

2015-02-20 Thread Herbert Sitz
Ben yfefyf at gmail.com writes:
 
 You can download the corresponding dlls from ezwinports [fn:1] and
put them into emacs's `bin` directory.
 
 There are some instructions in the Image support part on page [fn:2].
 
 [fn:2] https://ftp.gnu.org/gnu/emacs/windows/
 

Strangely, the instructions and files work only for a couple formats I tried.

jpeg,png -- work perfectly

svg -- works, but so far not inline.  I.e., I can click on link and image
will show up in another Emacs buffer, but can't get it to show up inline.

tiff -- can't get this to work at all.  When clicking on it, it shows
character-mode garbage in separate buffer, along with error message.  This
is despite fact that dynamic-library-alist shows the same files as I copied
to the bin folder.

Not a huge deal for me, since jpeg and png are what I wanted most.  But
still seems a little odd; I have no idea what problems are with svg and tiff.


Re: [O] How to get a column correctly formatted in Babel + R (w/ or w/o name)?

2015-02-19 Thread Charles C. Berry

On Thu, 19 Feb 2015, Sebastien Vauban wrote:


#+PROPERTY:  session *R*

* Source

#+name: table
| ID  | User1 | User2 |
|-+---+---|
| 26/0163 | lrp   | nil   |
| 37/0001 | nil   | nil   |
| 37/0003 | nil   | nil   |



[snip]


* First column (with name)

When I try to get the first column printed along with its name (ID), I have
troubles doing so...

#+begin_src R :var df=table :colnames yes
df[, 1]
#+end_src



Try this:

,
| #+begin_src R :var df=table :colnames yes
| df[, 1,drop=FALSE]
| #+end_src
|
| #+RESULTS:
| | ID  |
| |-|
| | 26/0163 |
| | 37/0001 |
| | 37/0003 |
`

Look at

#+BEGIN_SRC R :results output
  example(`[.data.frame`)
#+END_SRC

for some help on this.


HTH,

Chuck



[O] How to get a column correctly formatted in Babel + R (w/ or w/o name)?

2015-02-19 Thread Sebastien Vauban
#+PROPERTY:  session *R*

* Source

#+name: table
| ID  | User1 | User2 |
|-+---+---|
| 26/0163 | lrp   | nil   |
| 37/0001 | nil   | nil   |
| 37/0003 | nil   | nil   |

#+begin_src R :var df=table :colnames yes
df
#+end_src

#+results:
| ID  | User1 | User2 |
|-+---+---|
| 26/0163 | lrp   | nil   |
| 37/0001 | nil   | nil   |
| 37/0003 | nil   | nil   |

We just checked that the table is correctly imported in R.

* First column (with name)

When I try to get the first column printed along with its name (ID), I have
troubles doing so...

#+begin_src R :var df=table :colnames yes
df[, 1]
#+end_src

#+results:
| x   |
|-|
| 26/0163 |
| 37/0001 |
| 37/0003 |

#+begin_src R :var df=table :colnames yes
as.data.frame(df[, 1])
#+end_src

#+results:
| df[, 1] |
|-|
| 26/0163 |
| 37/0001 |
| 37/0003 |

Here, maybe I'm lacking R knowledge?

* First column (without name)

Now, to get it without the column name:

#+begin_src R :var df=table :colnames no
df[, 1]
#+end_src

#+results:
| ID  |
| 26/0163 |
| 37/0001 |
| 37/0003 |

It's not much better, as I don't expect ID to be printed here!

Can you clear up things for me?  Bad R code?  Babel feature?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] how to get images support in Emacs on Windows?

2015-02-19 Thread Yuri Niyazov
It's not called image.dll, which may be a source of confusion.

Here are the instructions specifically for PNG images. For each type,
a different DLL is required:

http://stackoverflow.com/questions/2650041/emacs-under-windows-and-png-files

On Thu, Feb 19, 2015 at 3:19 PM, Herbert Sitz hes...@gmail.com wrote:
 I'm trying to use inline images on Windows and (I think?) I've gotten to the
 point where I understand that this is not available with the standard GNU
 Emacs installation on Windows.  My understanding is that I need an
 image.dll that I can put in the bin directory.  I think that comes as part
 of EmacsW32 install, but that install seems to be packaged as a single
 executable, not sure how to get image.dll without running a full install of
 EmacsW32, which I don't think I want.

 So, am I correct in understanding that all I need is that 'image.dll' to get
 inline image support on Windows (I'm running v24.4 of Emacs).  If not, what
 more do I need to do?  And how can I get (or make) a copy of that .dll?

 Thanks,

 Herbert





Re: [O] how to get images support in Emacs on Windows?

2015-02-19 Thread Ben
You can download the corresponding dlls from ezwinports [fn:1]
http://sourceforge.net/projects/ezwinports/files/ and put them into
emacs's `bin` directory.

There are some instructions in the Image support part on page [fn:2]
https://ftp.gnu.org/gnu/emacs/windows/.

[fn:1] http://sourceforge.net/projects/ezwinports/files/
[fn:2] https://ftp.gnu.org/gnu/emacs/windows/

On Fri, Feb 20, 2015 at 7:53 AM, Ista Zahn istaz...@gmail.com wrote:

 You could use http://vgoulet.act.ulaval.ca/en/emacs/windows/ which comes
 bundled with image support (and other stuff that you may or may not want).
 On Feb 19, 2015 6:20 PM, Herbert Sitz hes...@gmail.com wrote:

 I'm trying to use inline images on Windows and (I think?) I've gotten to
 the
 point where I understand that this is not available with the standard GNU
 Emacs installation on Windows.  My understanding is that I need an
 image.dll that I can put in the bin directory.  I think that comes as
 part
 of EmacsW32 install, but that install seems to be packaged as a single
 executable, not sure how to get image.dll without running a full install
 of
 EmacsW32, which I don't think I want.

 So, am I correct in understanding that all I need is that 'image.dll' to
 get
 inline image support on Windows (I'm running v24.4 of Emacs).  If not,
 what
 more do I need to do?  And how can I get (or make) a copy of that .dll?

 Thanks,

 Herbert





Re: [O] how to get images support in Emacs on Windows?

2015-02-19 Thread Ista Zahn
You could use http://vgoulet.act.ulaval.ca/en/emacs/windows/ which comes
bundled with image support (and other stuff that you may or may not want).
On Feb 19, 2015 6:20 PM, Herbert Sitz hes...@gmail.com wrote:

 I'm trying to use inline images on Windows and (I think?) I've gotten to
 the
 point where I understand that this is not available with the standard GNU
 Emacs installation on Windows.  My understanding is that I need an
 image.dll that I can put in the bin directory.  I think that comes as
 part
 of EmacsW32 install, but that install seems to be packaged as a single
 executable, not sure how to get image.dll without running a full install of
 EmacsW32, which I don't think I want.

 So, am I correct in understanding that all I need is that 'image.dll' to
 get
 inline image support on Windows (I'm running v24.4 of Emacs).  If not, what
 more do I need to do?  And how can I get (or make) a copy of that .dll?

 Thanks,

 Herbert





Re: [O] how to get images support in Emacs on Windows?

2015-02-19 Thread Herbert Sitz
Ben yfefyf at gmail.com writes:
 
 You can download the corresponding dlls from ezwinports [fn:1] and
put them into emacs's `bin` directory.
 
 There are some instructions in the Image support part on page [fn:2].
 
 [fn:1] http://sourceforge.net/projects/ezwinports/files/
 
 [fn:2] https://ftp.gnu.org/gnu/emacs/windows/
 

Ben, Ista, Yuri -- Thanks for all your help.  I finally got things going by
grabbing the dll's from the ezwinports project and putting them in emacs/bin
directory.  The zlib1.dll was packaged in the libpng zip file so that was
all I needed to get my png images to show.  Like many things was simple once
I knew how to do it.

That StackOverflow answer was on point but was dated; I don't think Emacs 24
will work with the files it mentions there, which are the ones from the
GnuWin32 project.  Turns out all this info was in the Gnu Emacs for Windows
readme/install instructions.  Unfortunately I installed long time ago and
didn't recall that info, and my web searches weren't turning it up.

Thanks for all your help.

-- Herbert


[O] how to get images support in Emacs on Windows?

2015-02-19 Thread Herbert Sitz
I'm trying to use inline images on Windows and (I think?) I've gotten to the
point where I understand that this is not available with the standard GNU
Emacs installation on Windows.  My understanding is that I need an
image.dll that I can put in the bin directory.  I think that comes as part
of EmacsW32 install, but that install seems to be packaged as a single
executable, not sure how to get image.dll without running a full install of
EmacsW32, which I don't think I want.

So, am I correct in understanding that all I need is that 'image.dll' to get
inline image support on Windows (I'm running v24.4 of Emacs).  If not, what
more do I need to do?  And how can I get (or make) a copy of that .dll?

Thanks,

Herbert




Re: [O] How to get your list of categories?

2015-01-04 Thread John Kitchin
rene jl...@yahoo.com writes:

(org-buffer-property-keys) will give you all the categories in a buffer.


 I'd like to dynamically get the list of all of my categories (:CATEGORY:
 property).  Is there an easy way to do that?

 How can I write a command that would operate much the same way I get

  - the list of all my TODO keywords (using C-c a T), or
  - the list of all my TAGS (using C-c a M)?

 --
 Rene




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



[O] How to get your list of categories?

2014-12-26 Thread rene
I'd like to dynamically get the list of all of my categories (:CATEGORY:
property).  Is there an easy way to do that?

How can I write a command that would operate much the same way I get

 - the list of all my TODO keywords (using C-c a T), or
 - the list of all my TAGS (using C-c a M)?

--
Rene




Re: [O] How to get remember working properly?

2014-11-20 Thread Sharon Kimble
Nick Dokos ndo...@gmail.com writes:

 Sharon Kimble boudic...@skimble.plus.com writes:

 ...

 However, org-capture is working well, prefacing my timelog.org
 with CAPTURE- in front, like CAPTURE-timelog.org. Maybe then it is
 time to retire remember as org-capture seems to have taken over?
 But that's for another post. 


 As I said before, org-remember is obsolete.

http://thread.gmane.org/gmane.emacs.orgmode/92509/focus=92522

I totally agree, and after finding how to convert remember templates
to org-capture[fn:1], I've totally moved over to using org-capture,
which is working very well.

Sharon.

Footnotes:

[fn:1] http://orgmode.org/manual/Capture.html

-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0


signature.asc
Description: PGP signature


Re: [O] How to get remember working properly?

2014-11-19 Thread Sharon Kimble
Richard Lawrence richard.lawre...@berkeley.edu writes:

 Hi Sharon,

 Sharon Kimble boudic...@skimble.plus.com writes:

 #+BEGIN_SRC emacs-lisp
 (setq org-remember-templates
 '((Todo ?t * TODO %^{Brief Description} %^g\n%?\nAdded: %U 
 ~/.emacs.d/org/remember.org Tasks)
  (Journal   ?j ** %^{Head Line} %U %^g\n%i%?  
 ~/.emacs.d/org/journal.org) 
   (Clipboard ?c ** %^{Head Line} %U %^g\n%c\n%?  
 ~/.emacs.d/org/remember.org)
   (Receipt   ?r ** %^{BriefDesc} %U %^g\n%?   
 ~/.emacs.d/org/finances.org)
   (Book ?b ** %^{Book Title} %t :BOOK: 
 \n%[~/.emacs.d/.book_template.txt]\n
  ~/org/journal.org)
   (Film ?f ** %^{Film Title} %t :FILM: 
 \n%[~/.emacs.d/.film_template.txt]\n
  ~/org/journal.org)
   (Someday   ?s ** %^{Someday Heading} %U\n%?\n  
 ~/.emacs.d/org/someday.org)
   (Private ?p \n* %^{topic} %T \n%i%?\n 
 ~/.emacs.d/org/privnotes.org)
   (Contact ?o \n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n
~/org/privnotes.org)
  )
)
 #+END_SRC

 With everything that I remember it shows it as, example only -

 * peace [2014-11-18 Tue 11:30] 

 i.e. headline before the date. How do I get it the other way round
 please, meaning date - headline?

 I think all you need to do here is move the %U in your templates
 before the %^{ ... } that represents where you type in the headline.

 For example, the Journal template becomes:

   (Journal   ?j ** %U %^{Head Line} %^g\n%i%?  
 ~/.emacs.d/org/journal.org) 
   
 See the section on Template Expansion in the Capture section of the
 manual for an explanation of what's going on here.

 Also you close the entry by C-c C-c which, in my case, calls
 Tags again. How can I get it working right in this case please?

 Not sure about this -- I don't use remember -- but a good place to start
 is to do C-h k C-c C-c in your capture buffer; this will tell you which
 function is bound to C-c C-c.  If it's not what you expect, the next
 step is to figure out what it should be bound to and set the appropriate
 function in the relevant keymap.

 Best,
 Richard

Thanks Richard.
You were on the ball with swapping the dates position, and that’s now
working okay.

However, the same can't be said for my C-c C-c problem. I've never
been able to get C-h anything working, so I just F1 k which has
the same effect. *Help* says -

--8---cut here---start-8---
org-ctrl-c-ctrl-c is an interactive compiled Lisp function in
`org.el'.

(org-ctrl-c-ctrl-c optional ARG)

Set tags in headline, or update according to changed information at point.

This command does many different things, depending on context:

- If a function in `org-ctrl-c-ctrl-c-hook' recognizes this location,
  this is what we do.

- If the cursor is on a statistics cookie, update it.

- If the cursor is in a headline, prompt for tags and insert them
  into the current line, aligned to `org-tags-column'.  When called
  with prefix arg, realign all tags in the current buffer.

- If the current buffer is a capture buffer, close note and file it.
--8---cut here---end---8---

which explains why it is using the tag instruction as it only works
if it is on the header part of the item. But it seems that it is not
registering my *remember* buffer as a capture buffer.

However, org-capture is working well, prefacing my timelog.org
with CAPTURE- in front, like CAPTURE-timelog.org. Maybe then it is
time to retire remember as org-capture seems to have taken over?
But that's for another post. 

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0


signature.asc
Description: PGP signature


Re: [O] How to get remember working properly?

2014-11-19 Thread Nick Dokos
Sharon Kimble boudic...@skimble.plus.com writes:

 ...

 However, org-capture is working well, prefacing my timelog.org
 with CAPTURE- in front, like CAPTURE-timelog.org. Maybe then it is
 time to retire remember as org-capture seems to have taken over?
 But that's for another post. 


As I said before, org-remember is obsolete.

   http://thread.gmane.org/gmane.emacs.orgmode/92509/focus=92522





[O] How to get remember working properly?

2014-11-18 Thread Sharon Kimble

I am using remember as well as org-capture, meaning that I have
them both setup and working, but there are two things that I'm not
sure about. This is my remember setup -

--8---cut here---start-8---
* remember
** setup remembering
#+BEGIN_SRC emacs-lisp
;;(autoload 'remember remember nil t)
(require 'remember)
;;(require 'org-capture)
(require 'org-remember)

;;(setq org-default-notes-file (concat org-directory 
~/.emacs.d/org/remember.org))
;;(define-key global-map (kbd C-c c) 'org-capture)
;;(global-set-key (kbd C-c r) 'org-remember)
#+END_SRC
[2014-11-12 Wed 19:19]

#+BEGIN_SRC emacs-lisp
(setq org-directory ~/.emacs.d/org/)
 (setq org-default-notes-file ~/.emacs.d/org/remember.org)
 (setq remember-annotation-functions '(org-remember-annotation))
 (setq remember-handler-functions '(org-remember-handler))
 (add-hook 'remember-mode-hook 'org-remember-apply-template)
 (global-set-key (kbd C-c r) 'org-remember)
;; (define-key global-map C-c r 'org-remember)
#+END_SRC
[2014-11-16 Sun 06:34]

** remember templates
#+BEGIN_SRC emacs-lisp
(setq org-remember-templates
'((Todo ?t * TODO %^{Brief Description} %^g\n%?\nAdded: %U 
~/.emacs.d/org/remember.org Tasks)
 (Journal   ?j ** %^{Head Line} %U %^g\n%i%?  
~/.emacs.d/org/journal.org) 
  (Clipboard ?c ** %^{Head Line} %U %^g\n%c\n%?  
~/.emacs.d/org/remember.org)
  (Receipt   ?r ** %^{BriefDesc} %U %^g\n%?   
~/.emacs.d/org/finances.org)
  (Book ?b ** %^{Book Title} %t :BOOK: 
\n%[~/.emacs.d/.book_template.txt]\n
 ~/org/journal.org)
  (Film ?f ** %^{Film Title} %t :FILM: 
\n%[~/.emacs.d/.film_template.txt]\n
 ~/org/journal.org)
  (Someday   ?s ** %^{Someday Heading} %U\n%?\n  
~/.emacs.d/org/someday.org)
  (Private ?p \n* %^{topic} %T \n%i%?\n ~/.emacs.d/org/privnotes.org)
  (Contact ?o \n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n
   ~/org/privnotes.org)
 )
   )
#+END_SRC
;; source = http://members.optusnet.com.au/~charles57/GTD/remember.html
[2014-11-16 Sun 06:38]
** and org-mode
#+BEGIN_SRC emacs-lisp
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
#+END_SRC
[2014-11-16 Sun 08:24]

**  Remember some history
#+BEGIN_SRC emacs-lisp
;; savehist keeps track of some history
(setq savehist-additional-variables
  ;; search entries
  '(search ring regexp-search-ring)
  ;; save every minute
  savehist-autosave-interval 60
  ;; keep the home clean
  savehist-file (concat user-emacs-directory savehist))
(savehist-mode t)
#+END_SRC
[2014-11-16 Sun 16:15]

**  Remember recent files
#+BEGIN_SRC emacs-lisp
;; save recent files
(require 'recentf)
(recentf-mode 1)
(setq recentf-save-file (concat user-emacs-directory recentf)
  recentf-max-saved-items 200
  recentf-max-menu-items 20)
(recentf-mode t)
#+END_SRC
[2014-11-16 Sun 16:16]
--8---cut here---end---8---

With everything that I remember it shows it as, example only -

--8---cut here---start-8---
* peace [2014-11-18 Tue 11:30] 
Ha! Well, I don't abuse the ice-cold tone for emails and other electronic ways 
of communication, switching is
easy. And certainly some people may not get it but the Latin phrase Pax et 
bonum works as a yours truly or
a Good Bye!.
--8---cut here---end---8---

i.e. headline before the date. How do I get it the other way round
please, meaning date - headline?

Also you close the entry by C-c C-c which, in my case, calls
Tags again. How can I get it working right in this case please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0


signature.asc
Description: PGP signature


Re: [O] How to get remember working properly?

2014-11-18 Thread Richard Lawrence
Hi Sharon,

Sharon Kimble boudic...@skimble.plus.com writes:

 #+BEGIN_SRC emacs-lisp
 (setq org-remember-templates
 '((Todo ?t * TODO %^{Brief Description} %^g\n%?\nAdded: %U 
 ~/.emacs.d/org/remember.org Tasks)
  (Journal   ?j ** %^{Head Line} %U %^g\n%i%?  
 ~/.emacs.d/org/journal.org) 
   (Clipboard ?c ** %^{Head Line} %U %^g\n%c\n%?  
 ~/.emacs.d/org/remember.org)
   (Receipt   ?r ** %^{BriefDesc} %U %^g\n%?   
 ~/.emacs.d/org/finances.org)
   (Book ?b ** %^{Book Title} %t :BOOK: 
 \n%[~/.emacs.d/.book_template.txt]\n
  ~/org/journal.org)
   (Film ?f ** %^{Film Title} %t :FILM: 
 \n%[~/.emacs.d/.film_template.txt]\n
  ~/org/journal.org)
   (Someday   ?s ** %^{Someday Heading} %U\n%?\n  
 ~/.emacs.d/org/someday.org)
   (Private ?p \n* %^{topic} %T \n%i%?\n 
 ~/.emacs.d/org/privnotes.org)
   (Contact ?o \n* %^{Name} :CONTACT:\n% ~/.emacs.d/org/contact.txt]\n
~/org/privnotes.org)
  )
)
 #+END_SRC

 With everything that I remember it shows it as, example only -

 * peace [2014-11-18 Tue 11:30] 

 i.e. headline before the date. How do I get it the other way round
 please, meaning date - headline?

I think all you need to do here is move the %U in your templates
before the %^{ ... } that represents where you type in the headline.

For example, the Journal template becomes:

  (Journal   ?j ** %U %^{Head Line} %^g\n%i%?  
~/.emacs.d/org/journal.org) 
  
See the section on Template Expansion in the Capture section of the
manual for an explanation of what's going on here.

 Also you close the entry by C-c C-c which, in my case, calls
 Tags again. How can I get it working right in this case please?

Not sure about this -- I don't use remember -- but a good place to start
is to do C-h k C-c C-c in your capture buffer; this will tell you which
function is bound to C-c C-c.  If it's not what you expect, the next
step is to figure out what it should be bound to and set the appropriate
function in the relevant keymap.

Best,
Richard




[O] How to get to the link destination?

2014-10-21 Thread Marcin Borkowski
Hi all,

as in the subject.  I want to do something /at the destination of the
link/ the point is at (more precisely: get some text property of that
place).  This is what I came up with:

(save-excursion
  (org-open-at-point)
  (get-text-property (point) :some-property))

Is there a better/faster way, especially knowing that the link is an
internal one?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] How to get to the link destination?

2014-10-21 Thread John Kitchin
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

that looks like a great way to me!

 Hi all,

 as in the subject.  I want to do something /at the destination of the
 link/ the point is at (more precisely: get some text property of that
 place).  This is what I came up with:

 (save-excursion
   (org-open-at-point)
   (get-text-property (point) :some-property))

 Is there a better/faster way, especially knowing that the link is an
 internal one?

 Best,

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



Re: [O] How to get the link the point is on?

2014-09-27 Thread Sebastien Vauban
Marcin Borkowski wrote:
 On 2014-09-25, at 23:50, Thorsten Jolitz wrote:
 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 my question is as in subject.  It is done by org-open-at-point
 (somehow), but the logic seems to be buried in that function.  What I'd
 like to have is a function that would just extract the link portion
 (which is normally invisible) and displayed it in the echo area
 (something like hovering over a link in a web browser).

 I skimmed through org.el, and either I couldn't find a function which
 does it, or this email is a feature request;).

 you know about 

 ,[ C-h f org-toggle-link-display RET ]
 | org-toggle-link-display is an interactive compiled Lisp function in
 | `org.el'.
 | 
 | It is bound to menu-bar Org Hyperlinks Descriptive Links,
 | menu-bar Org Hyperlinks Literal Links.
 | 
 | (org-toggle-link-display)
 | 
 | Toggle the literal or descriptive display of links.
 `

 Yes, I do, but this is not what I'm looking for.  I want to see the
 `descriptive' links, only to be able (sometimes) to look up the actual
 target of the link.  (And I don't like the idea of moving the point to
 the end, pressing backspace to delete the rightmost bracket, and then
 pressing C-\ to undo it...)

When I want to see *all* the contents in my Org file (that is LOGBOOK
entries, URL in links, etc.), I use M-x visible-mode.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] How to get the link the point is on?

2014-09-26 Thread Subhan Michael Tindall

[SNIP]
 -Original Message-
 From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org
 [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On
 Behalf Of Marcin Borkowski
 Sent: Thursday, September 25, 2014 3:45 PM
 To: emacs-orgmode@gnu.org
 Subject: Re: [O] How to get the link the point is on?
[SNIP]
  you know about
 
  ,[ C-h f org-toggle-link-display RET ]
  | org-toggle-link-display is an interactive compiled Lisp function in
  | `org.el'.
  |
  | It is bound to menu-bar Org Hyperlinks Descriptive Links,
  | menu-bar Org Hyperlinks Literal Links.
  |
  | (org-toggle-link-display)
  |
  | Toggle the literal or descriptive display of links.
  `
 
  ?
 
 Yes, I do, but this is not what I'm looking for.  I want to see the 
 `descriptive'
 links, only to be able (sometimes) to look up the actual target of the link.
 (And I don't like the idea of moving the point to the end, pressing
 backspace to delete the rightmost bracket, and then pressing C-\ to undo
 it...)
[] 

I accomplish this by using C-c C-l  RET RET (which is bound to org-insert-link 
and resides in org.el)
Technically it pops up the long link and description for editing in the message 
buffer, but they default to current values so effectively provide an easy 
display.  Works from anywhere in the highlighted link.
If nothing else it should point you at some modifiable code you can use for 
display.

Subhan


 
 Best,
 
 --
 Marcin Borkowski
 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
 Adam Mickiewicz University


This message is intended for the sole use of the individual and entity to which 
it is addressed and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete the message.  Thank you.




[O] How to get the link the point is on?

2014-09-25 Thread Marcin Borkowski
Hi list,

my question is as in subject.  It is done by org-open-at-point
(somehow), but the logic seems to be buried in that function.  What I'd
like to have is a function that would just extract the link portion
(which is normally invisible) and displayed it in the echo area
(something like hovering over a link in a web browser).

I skimmed through org.el, and either I couldn't find a function which
does it, or this email is a feature request;).

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] How to get the link the point is on?

2014-09-25 Thread Rasmus
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi list,

 my question is as in subject.  It is done by org-open-at-point
 (somehow), but the logic seems to be buried in that function.  What I'd
 like to have is a function that would just extract the link portion
 (which is normally invisible) and displayed it in the echo area
 (something like hovering over a link in a web browser).

 I skimmed through org.el, and either I couldn't find a function which
 does it, or this email is a feature request;).

If point is on a link you can

   (org-element-property :raw-link (org-element-context))

Hope it helps,
Rasmus

-- 
May the Force be with you




Re: [O] How to get the link the point is on?

2014-09-25 Thread Kyle Meyer
Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
[...]
 What I'd like to have is a function that would just extract the link
 portion (which is normally invisible) and displayed it in the echo
 area (something like hovering over a link in a web browser).

There may be a better way, but I think below does what you want.

#+begin_src elisp
  (defun org-display-link ()
(interactive)
(message %s (org-element-property :raw-link (org-element-context
#+end_src

--
Kyle



Re: [O] How to get the link the point is on?

2014-09-25 Thread Jorge A. Alfaro-Murillo
Marcin Borkowski writes: 

Hi list, 

my question is as in subject.  It is done by org-open-at-point 
(somehow), but the logic seems to be buried in that function. 
What I'd like to have is a function that would just extract the 
link portion (which is normally invisible) and displayed it in 
the echo area (something like hovering over a link in a web 
browser). 


This returns the link at the line, it assumes one link per line:

#+BEGIN_SRC emacs-lisp
 (defun test ()
   (save-excursion
 (move-beginning-of-line 1)
 (if (search-forward-regexp org-any-link-re 
 (line-end-position) t)

 (let* ((complete-link (match-string 0))
(last-place (string-match \\] complete-link)))
   (substring-no-properties complete-link 2 
   last-place


#+END_SRC

Best,

--
Jorge.




Re: [O] How to get the link the point is on?

2014-09-25 Thread Thorsten Jolitz
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi list,

 my question is as in subject.  It is done by org-open-at-point
 (somehow), but the logic seems to be buried in that function.  What I'd
 like to have is a function that would just extract the link portion
 (which is normally invisible) and displayed it in the echo area
 (something like hovering over a link in a web browser).

 I skimmed through org.el, and either I couldn't find a function which
 does it, or this email is a feature request;).

you know about 

,[ C-h f org-toggle-link-display RET ]
| org-toggle-link-display is an interactive compiled Lisp function in
| `org.el'.
| 
| It is bound to menu-bar Org Hyperlinks Descriptive Links,
| menu-bar Org Hyperlinks Literal Links.
| 
| (org-toggle-link-display)
| 
| Toggle the literal or descriptive display of links.
`

?

-- 
cheers,
Thorsten




Re: [O] How to get the link the point is on?

2014-09-25 Thread Marcin Borkowski

On 2014-09-25, at 23:50, Thorsten Jolitz wrote:

 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi list,

 my question is as in subject.  It is done by org-open-at-point
 (somehow), but the logic seems to be buried in that function.  What I'd
 like to have is a function that would just extract the link portion
 (which is normally invisible) and displayed it in the echo area
 (something like hovering over a link in a web browser).

 I skimmed through org.el, and either I couldn't find a function which
 does it, or this email is a feature request;).

 you know about 

 ,[ C-h f org-toggle-link-display RET ]
 | org-toggle-link-display is an interactive compiled Lisp function in
 | `org.el'.
 | 
 | It is bound to menu-bar Org Hyperlinks Descriptive Links,
 | menu-bar Org Hyperlinks Literal Links.
 | 
 | (org-toggle-link-display)
 | 
 | Toggle the literal or descriptive display of links.
 `

 ?

Yes, I do, but this is not what I'm looking for.  I want to see the
`descriptive' links, only to be able (sometimes) to look up the actual
target of the link.  (And I don't like the idea of moving the point to
the end, pressing backspace to delete the rightmost bracket, and then
pressing C-\ to undo it...)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] How to get the link the point is on?

2014-09-25 Thread Jorge A. Alfaro-Murillo
Rasmus writes: 

If point is on a link you can 

   (org-element-property :raw-link (org-element-context)) 


That's way easier =)

--
Jorge.




Re: [O] How to get cookies working with TODOs?

2014-08-22 Thread Sharon Kimble
Nick Dokos ndo...@gmail.com writes:

 Sharon Kimble boudic...@skimble.plus.com writes:


 ** WAITING Anise
 CLOSED: [2014-08-20 Wed 10:29]


 And only _waiting_ shows as closed, none of these other conditions do -

 #+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING

 ...

 I think that the problems all stem from my set-up, but I can't see exactly
 where. 


 That should probably be

 #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME WAITING | DONE

Thanks for this Nick, that's got it all working nicely. Sorry for not
replying sooner but I've been testing things out.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.93.1


signature.asc
Description: PGP signature


Re: [O] How to get cookies working with TODOs?

2014-08-20 Thread Sharon Kimble
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Sharon Kimble boudic...@skimble.plus.com writes:

 I'm trying to get cookies working with TODO items. The source document
 is a book I'm writing and is an outline of each section and chapters so
 that I can see what is still to be done. I'm writing it in latex but
 doing the outline in orgs-mode.

 * TODO CHAPTER 1 - preface [0%]
 ** DONE Disclaimer
 CLOSED: [2014-07-30 Wed 23:49]
 ** DONE Introduction
 CLOSED: [2014-07-30 Wed 23:50]


 Following 5.5 Breaking tasks down into subtasks in the org.pdf I
 should be able to 'C-c C-c' on the cookie and it updates the cookie,
 except it doesn't work in this case. There are 5 sections which are all
 completed in this chapter, but the cookie doesn't update.

 * TODO CHAPTER 2 - preamble [0/11] [0%]
 :PROPERTIES:
 :COOKIE_DATA: todo recursive
 :END:
 ** DONE An overview of the endocrine system
 CLOSED: [2014-07-31 Thu 02:12]

 Like it shows on page 55. But the cookie doesn't update either in this case.

 Hmm, I just tried your example above, and it worked just fine. I didn't
 even need to hit C-c C-c, just adding TODOs and toggling their state
 updated the cookie automatically. I'm using Org-mode version 8.3beta
 (release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)

 Are you using a relatively recent Org?

Eric - I'm using Org-mode version 8.2.7c (release_8.2.7c
@ /home/boudiccas/git/org-mode/lisp/), which is fairly recent so
should be okay.

Hmm, if they work for you then its something in my set-up. And after
having a play, the cookie is only changed when it is toggled [C-c C-t] to
Waiting which then shows
--8---cut here---start-8---
** WAITING Anise
CLOSED: [2014-08-20 Wed 10:29]
--8---cut here---end---8---

And only _waiting_ shows as closed, none of these other conditions do -
--8---cut here---start-8---
#+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING
--8---cut here---end---8---

The conditions are set specifically for this one file, and I've just
reverted to a previous 'setq org-todo-keyword-faces' and that now shows
those sections marked as 'DONE' as being closed. 

If I 'C-c C-c' a TODO item, whether showing as TODO/DONE/whatever it
triggers the setting of 'org-tags'! So something is screwy there, but I
don't know what! But it does not trigger the insertion of CLOSED:the-date

Nick - I do have 'org-provide-todo-statistics' set to t

I've just uploaded my 'setup-orgmode.el' file to my bitbucket, at
https://bitbucket.org/boudiccas/dots/src/d1c750572c9367c3d86b5a1f9cfa200e07e9d988/emacs/setup-orgmode.el?at=master;
and I would be very grateful if anybody could tell me where I'm going
wrong, and then how to put it right, please?

I think that the problems all stem from my set-up, but I can't see exactly
where. 

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1


signature.asc
Description: PGP signature


Re: [O] How to get cookies working with TODOs?

2014-08-20 Thread Eric S Fraga
On Wednesday, 20 Aug 2014 at 11:46, Sharon Kimble wrote:

[...]

 Hmm, if they work for you then its something in my set-up. And after
 having a play, the cookie is only changed when it is toggled [C-c C-t] to
 Waiting which then shows

 ** WAITING Anise
 CLOSED: [2014-08-20 Wed 10:29]


 And only _waiting_ shows as closed, none of these other conditions do -

 #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME | WAITING DONE

 The conditions are set specifically for this one file, and I've just
 reverted to a previous 'setq org-todo-keyword-faces' and that now shows
 those sections marked as 'DONE' as being closed. 

 If I 'C-c C-c' a TODO item, whether showing as TODO/DONE/whatever it
 triggers the setting of 'org-tags'! So something is screwy there, but I
 don't know what! But it does not trigger the insertion of CLOSED:the-date

It probably has to do with the fact that you haven't put a | anywhere
so only the WAITING type is one that indicates a completed task?  Look
at the Workflow states section of the manual.

Something like this might work better for you:

   #+TODO: TODO NEXT IN-PROGRESS NOTES FIXME | WAITING DONE

Note the move of DONE to the end and the addition of |.  The important
thing about the move of DONE is not that it be last but that it be
placed after the |.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-246-g77d0da



Re: [O] How to get cookies working with TODOs?

2014-08-20 Thread Nick Dokos
Sharon Kimble boudic...@skimble.plus.com writes:


 ** WAITING Anise
 CLOSED: [2014-08-20 Wed 10:29]


 And only _waiting_ shows as closed, none of these other conditions do -

 #+TODO: TODO DONE NEXT IN-PROGRESS NOTES FIXME WAITING

 ...

 I think that the problems all stem from my set-up, but I can't see exactly
 where. 


That should probably be

#+TODO: TODO NEXT IN-PROGRESS NOTES FIXME WAITING | DONE

See

(info (org) TODO keywords as workflow states)

-- 
Nick




[O] How to get cookies working with TODOs?

2014-08-19 Thread Sharon Kimble
I'm trying to get cookies working with TODO items. The source document
is a book I'm writing and is an outline of each section and chapters so
that I can see what is still to be done. I'm writing it in latex but
doing the outline in orgs-mode.

--8---cut here---start-8---
* TODO CHAPTER 1 - preface [0%]
** DONE Disclaimer
CLOSED: [2014-07-30 Wed 23:49]
** DONE Introduction
CLOSED: [2014-07-30 Wed 23:50]
--8---cut here---end---8---

Following 5.5 Breaking tasks down into subtasks in the org.pdf I
should be able to 'C-c C-c' on the cookie and it updates the cookie,
except it doesn't work in this case. There are 5 sections which are all
completed in this chapter, but the cookie doesn't update.

--8---cut here---start-8---
* TODO CHAPTER 2 - preamble [0/11] [0%]
:PROPERTIES:
:COOKIE_DATA: todo recursive
:END:
** DONE An overview of the endocrine system
CLOSED: [2014-07-31 Thu 02:12]
--8---cut here---end---8---

Like it shows on page 55. But the cookie doesn't update either in this case.

So how can I get the cookies working please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1


signature.asc
Description: PGP signature


Re: [O] How to get cookies working with TODOs?

2014-08-19 Thread Eric Abrahamsen
Sharon Kimble boudic...@skimble.plus.com writes:

 I'm trying to get cookies working with TODO items. The source document
 is a book I'm writing and is an outline of each section and chapters so
 that I can see what is still to be done. I'm writing it in latex but
 doing the outline in orgs-mode.

 * TODO CHAPTER 1 - preface [0%]
 ** DONE Disclaimer
 CLOSED: [2014-07-30 Wed 23:49]
 ** DONE Introduction
 CLOSED: [2014-07-30 Wed 23:50]


 Following 5.5 Breaking tasks down into subtasks in the org.pdf I
 should be able to 'C-c C-c' on the cookie and it updates the cookie,
 except it doesn't work in this case. There are 5 sections which are all
 completed in this chapter, but the cookie doesn't update.

 * TODO CHAPTER 2 - preamble [0/11] [0%]
 :PROPERTIES:
 :COOKIE_DATA: todo recursive
 :END:
 ** DONE An overview of the endocrine system
 CLOSED: [2014-07-31 Thu 02:12]

 Like it shows on page 55. But the cookie doesn't update either in this case.

Hmm, I just tried your example above, and it worked just fine. I didn't
even need to hit C-c C-c, just adding TODOs and toggling their state
updated the cookie automatically. I'm using Org-mode version 8.3beta
(release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)

Are you using a relatively recent Org?

Eric




Re: [O] How to get cookies working with TODOs?

2014-08-19 Thread Nick Dokos
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Sharon Kimble boudic...@skimble.plus.com writes:

 I'm trying to get cookies working with TODO items. The source document
 is a book I'm writing and is an outline of each section and chapters so
 that I can see what is still to be done. I'm writing it in latex but
 doing the outline in orgs-mode.

 * TODO CHAPTER 1 - preface [0%]
 ** DONE Disclaimer
 CLOSED: [2014-07-30 Wed 23:49]
 ** DONE Introduction
 CLOSED: [2014-07-30 Wed 23:50]


 Following 5.5 Breaking tasks down into subtasks in the org.pdf I
 should be able to 'C-c C-c' on the cookie and it updates the cookie,
 except it doesn't work in this case. There are 5 sections which are all
 completed in this chapter, but the cookie doesn't update.

 * TODO CHAPTER 2 - preamble [0/11] [0%]
 :PROPERTIES:
 :COOKIE_DATA: todo recursive
 :END:
 ** DONE An overview of the endocrine system
 CLOSED: [2014-07-31 Thu 02:12]

 Like it shows on page 55. But the cookie doesn't update either in this case.

 Hmm, I just tried your example above, and it worked just fine. I didn't
 even need to hit C-c C-c, just adding TODOs and toggling their state
 updated the cookie automatically. I'm using Org-mode version 8.3beta
 (release_8.3beta-232-g644e60 @ /home/eric/.emacs.d/org-mode/lisp/)


That was my experience as well - there is a variable that controls the
automatic cookie setting, org-provide-todo-statistics, but it is set to
t by default, so it should just work.

 Are you using a relatively recent Org?


-- 
Nick




[O] How to get results into export?

2014-07-25 Thread Manfred Lotz
I have this minimal example using minted:

#+TITLE: Minimal example
#+LaTeX_HEADER: \usemintedstyle{emacs}
* Example 
- some code
  #+BEGIN_SRC sh :results values code
  echo # of items
  echo \# of items
  echo # of items
  #+END_SRC

  #+RESULTS:
  #+BEGIN_SRC sh

  # of items
  # of items
  #+END_SRC


I evaluated the source code block and got the results. Now, when
exporting the file to say PDF the results won't appear in the PDF.

Is there a possibility to make this happen?


-- 
Thanks, Manfred




From owner-freebsd-pkg-fall...@freebsd.org Thu Jul 24 23:41:20 2014
Return-path: owner-freebsd-pkg-fall...@freebsd.org
Envelope-to: arch...@mail-archive.com
Delivery-date: Thu, 24 Jul 2014 23:41:20 -0700
Received: from bolt10a.mxthunder.net ([209.105.224.168])
by mail-archive.com with esmtp (Exim 4.76)
(envelope-from owner-freebsd-pkg-fall...@freebsd.org)
id 1XAZBw-0002DA-87
for arch...@mail-archive.com; Thu, 24 Jul 2014 23:41:20 -0700
Received: by bolt10a.mxthunder.net (Postfix, from userid 12345)
id 3hKLQy0kgzz16gsl; Thu, 24 Jul 2014 23:40:48 -0700 (PDT)
Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116])
(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
(No client certificate requested)
by bolt10a.mxthunder.net (Postfix) with ESMTPS id 3hKLQR1xm5z1S5P2
for arch...@mail-archive.com; Thu, 24 Jul 2014 23:40:47 -0700 (PDT)
Received: from hub.freebsd.org (hub.freebsd.org [8.8.178.136])
(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
(No client certificate requested)
by mx2.freebsd.org (Postfix) with ESMTPS id BADED71E;
Fri, 25 Jul 2014 06:40:46 + (UTC)
Received: from hub.freebsd.org (hub.freebsd.org 
[IPv6:2001:1900:2254:206c::16:88])
by hub.freebsd.org (Postfix) with ESMTP id B6A575AC;
Fri, 25 Jul 2014 06:40:46 + (UTC)
Delivered-To: pkg-fall...@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 8117459E
 for pkg-fall...@freebsd.org; Fri, 25 Jul 2014 06:40:41 + (UTC)
Received: from beefy1.isc.freebsd.org (beefy1.isc.freebsd.org
 [IPv6:2001:4f8:3:ffe0:4072:0:16:38])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 6D7D92986;
 Fri, 25 Jul 2014 06:40:41 + (UTC)
Received: from beefy1.isc.freebsd.org (localhost [127.0.0.1])
 by beefy1.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id s6P6efPX029213;
 Fri, 25 Jul 2014 06:40:41 GMT (envelope-from pkg-fall...@freebsd.org)
Received: (from root@localhost)
 by beefy1.isc.freebsd.org (8.14.9/8.14.9/Submit) id s6P6efjC029157;
 Fri, 25 Jul 2014 06:40:41 GMT (envelope-from pkg-fall...@freebsd.org)
Date: Fri, 25 Jul 2014 06:40:41 GMT
From: pkg-fall...@freebsd.org
Message-Id: 201407250640.s6p6efjc029...@beefy1.isc.freebsd.org
To: ross...@gmail.com
Subject: [package - 10i386-default][graphics/] Failed for -323_5 in
 build
Cc: pkg-fall...@freebsd.org
X-BeenThere: freebsd-pkg-fall...@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: Fallout logs from package building freebsd-pkg-fallout.freebsd.org
List-Unsubscribe: 
https://lists.freebsd.org/mailman/options/freebsd-pkg-fallout, 
 mailto:freebsd-pkg-fallout-requ...@freebsd.org?subject=unsubscribe
List-Archive: http://lists.freebsd.org/pipermail/freebsd-pkg-fallout/
List-Post: mailto:freebsd-pkg-fall...@freebsd.org
List-Help: mailto:freebsd-pkg-fallout-requ...@freebsd.org?subject=help
List-Subscribe: 
https://lists.freebsd.org/mailman/listinfo/freebsd-pkg-fallout, 
 mailto:freebsd-pkg-fallout-requ...@freebsd.org?subject=subscribe
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: owner-freebsd-pkg-fall...@freebsd.org
Sender: owner-freebsd-pkg-fall...@freebsd.org
X-MXTHUNDER-Identifier:  201407250640.s6p6efjc029...@beefy1.isc.freebsd.org
X-MXTHUNDER-IP-Rating:  0, 8.8.178.116, Ugly c=0 p=0 Source New
X-MXTHUNDER-Scan-Result:  100
X-MXTHUNDER-Rules: 
100-5946975-2143-2162-m
100-5946975-0-30815-f
X-MXTHUNDER-Group:  Bulk Mail

You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer: ross...@gmail.com
Last committer: zeis...@freebsd.org
Ident:  $FreeBSD: head/graphics//Makefile 351411 2014-04-16 
18:28:47Z zeising $
Log URL:
http://beefy1.isc.freebsd.org/data/10i386-default/2014-07-24_17h59m28s/logs/-323_5.log
Build URL:  
http://beefy1.isc.freebsd.org/build.html?mastername=10i386-defaultbuild=2014-07-24_17h59m28s
Log:

 Building graphics/
build started at Fri Jul 25 06:40:37 UTC 2014
port directory: /usr/ports/graphics/
building for: FreeBSD 

Re: [O] How to get results into export?

2014-07-25 Thread Thorsten Jolitz
Manfred Lotz manfred.l...@arcor.de writes:

 I have this minimal example using minted:

 #+TITLE: Minimal example
 #+LaTeX_HEADER: \usemintedstyle{emacs}
 * Example 
 - some code
   #+BEGIN_SRC sh :results values code
   echo # of items
   echo \# of items
   echo # of items
   #+END_SRC

   #+RESULTS:
   #+BEGIN_SRC sh

   # of items
   # of items
   #+END_SRC


 I evaluated the source code block and got the results. Now, when
 exporting the file to say PDF the results won't appear in the PDF.

 Is there a possibility to make this happen?

Try header arg

,
| :exports results
`

(untested)

-- 
cheers,
Thorsten




Re: [O] How to get results into export?

2014-07-25 Thread Manfred Lotz
On Fri, 25 Jul 2014 10:03:14 +0200
Thorsten Jolitz tjol...@gmail.com wrote:

 Manfred Lotz manfred.l...@arcor.de writes:
 
  I have this minimal example using minted:
 
  #+TITLE: Minimal example
  #+LaTeX_HEADER: \usemintedstyle{emacs}
  * Example 
  - some code
#+BEGIN_SRC sh :results values code
echo # of items
echo \# of items
echo # of items
#+END_SRC
 
#+RESULTS:
#+BEGIN_SRC sh
 
# of items
# of items
#+END_SRC
 
 
  I evaluated the source code block and got the results. Now, when
  exporting the file to say PDF the results won't appear in the PDF.
 
  Is there a possibility to make this happen?
 
 Try header arg
 
 ,
 | :exports results
 `
 
 (untested)
 

Oops yes, it is such easy. In my case :results both is what I want.

-- 
Thanks a lot, Manfred





Re: [O] How to get results into export?

2014-07-25 Thread Manfred Lotz
On Fri, 25 Jul 2014 11:11:23 +0200
Manfred Lotz manfred.l...@arcor.de wrote:

 On Fri, 25 Jul 2014 10:03:14 +0200
 Thorsten Jolitz tjol...@gmail.com wrote:
 
  Manfred Lotz manfred.l...@arcor.de writes:
  
   I have this minimal example using minted:
  
   #+TITLE: Minimal example
   #+LaTeX_HEADER: \usemintedstyle{emacs}
   * Example 
   - some code
 #+BEGIN_SRC sh :results values code
 echo # of items
 echo \# of items
 echo # of items
 #+END_SRC
  
 #+RESULTS:
 #+BEGIN_SRC sh
  
 # of items
 # of items
 #+END_SRC
  
  
   I evaluated the source code block and got the results. Now, when
   exporting the file to say PDF the results won't appear in the PDF.
  
   Is there a possibility to make this happen?
  
  Try header arg
  
  ,
  | :exports results
  `
  
  (untested)
  
 
 Oops yes, it is such easy. In my case :results both is what I want.
 

Sorry, I wanted to say:  :exports both

-- Manfred





[O] how to get org-version using emacs batch mode.

2014-04-23 Thread Supriya Sawant
How can I get the org-version on my command line?

I think using batch mode it is possible.

I tried :

emacs --batch --eval '(org-version)'


but it doesn't work. It gives me blank result.


-- 

Thanks  Regards,
Supriya Pravin Sawant


Re: [O] how to get org-version using emacs batch mode.

2014-04-23 Thread Bastien
Supriya Sawant sp.sawan...@gmail.com writes:

 emacs --batch --eval '(org-version)'

 but it doesn't work. It gives me blank result.

emacs --batch --eval '(message (org-version))'

HTH,

-- 
 Bastien



  1   2   >