[O] Bug? when add the first item using capture

2016-06-13 Thread Xi Shen
Hi,

This is my first time using org-capture. I am not sure if it is a bug, or I
made a mistake in the configuration.

Here's my settings for capture templates:

(setq org-capture-templates
  '(("t" "Task" entry (file+headline nil "Tasks")
"* TODO %? %^g")
("q" "Quick note" entry (file+headline nil "Quick Notes")
"* On %t %^g \n  %i%?")))

After I add the *first* "Quick note", and open my "notes.org", I saw
this...the "Quick Notes" section looks like merged with the next section.

[image: pasted1]

But if I close the file and open it again, everything looks fine.
-- 

Thanks,
David S.


Re: [O] Tagging an entire org file

2016-06-13 Thread Ken Mankoff

#+FILETAGS: foo

  -k.

On 2016-06-13 at 16:43, Arun Isaac  wrote:
> Is there a way to tag an entire org document, and not just the
> headlines? I mean, something like:
>
> #+TAGS: tag1, tag2, tag3, ...
>
> This is much like #+CATEGORY, but something that can take multiple values.
>
> I am maintaining my blog with org mode, and would like to tag my blog
> posts with various tags.
>
> Regards,
> Arun Isaac.




[O] Tagging an entire org file

2016-06-13 Thread Arun Isaac

Is there a way to tag an entire org document, and not just the
headlines? I mean, something like:

#+TAGS: tag1, tag2, tag3, ...

This is much like #+CATEGORY, but something that can take multiple values.

I am maintaining my blog with org mode, and would like to tag my blog
posts with various tags.

Regards,
Arun Isaac.


signature.asc
Description: PGP signature


[O] [BUG] [PATCH] ox-rss: Put email address in element

2016-06-13 Thread Arun Isaac

The RSS specification requires the email address and the name of the
author to be provided in the  element in the format
"em...@domain.com (Name)".

http://www.rssboard.org/rss-specification#ltauthorgtSubelementOfLtitemgt

Currently, only the author's name is provided. This is invalid
RSS. Please find attached a patch fixing this.

Regards,
Arun Isaac.

From f5e2bf625cc14efd35dcd77340b4ab380b2f3dc8 Mon Sep 17 00:00:00 2001
From: Arun Isaac 
Date: Tue, 14 Jun 2016 01:18:55 +0530
Subject: [PATCH] ox-rss: Put email address in  element

* contrib/lisp/ox-rss.el (org-rss-headline): Put author's email
  address in  element.

The RSS specification requires the email address and the name of the
author to be provided in the  element in the format
"em...@domain.com (Name)". Currently, only the author's name is
provided. This is invalid RSS.
---
 contrib/lisp/ox-rss.el | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el
index 44ee8db..a3ba274 100644
--- a/contrib/lisp/ox-rss.el
+++ b/contrib/lisp/ox-rss.el
@@ -231,7 +231,8 @@ communication channel."
   (if (> (org-export-get-relative-level headline info) 1)
   (org-export-data-with-backend headline 'html info)
 (unless (org-element-property :footnote-section-p headline)
-  (let* ((author (and (plist-get info :with-author)
+  (let* ((email (org-export-data (plist-get info :email) info))
+	 (author (and (plist-get info :with-author)
 			  (let ((auth (plist-get info :author)))
 			(and auth (org-export-data auth info)
 	 (htmlext (plist-get info :html-extension))
@@ -275,13 +276,13 @@ communication channel."
 	"\n"
 	"%s\n"
 	"%s\n"
-	"%s\n"
+	"%s (%s)\n"
 	"%s\n"
 	"%s\n"
 	(org-rss-build-categories headline info) "\n"
 	"\n"
 	"\n")
-	   title publink author guid pubdate contents))
+	   title publink email author guid pubdate contents))
 
 (defun org-rss-build-categories (headline info)
   "Build categories for the RSS item."
-- 
2.8.3



signature.asc
Description: PGP signature


Re: [O] bibliography as part of the source document?

2016-06-13 Thread Sharon Kimble
Ken Mankoff  writes:

> On 2016-06-13 at 13:07, Sharon Kimble  wrote:
>> I'm trying to have all my information for a org-mode document exported
>> to latex contained within the source document. Specifically having the
>> bibliography within the source document.
>>
>> But how do I do it? I've tried googling but haven't turned up anything
>> useful. Can you help please?
>
> What about putting the BibTeX contents in the Org file. Tangle on export to 
> Bib file.
>

Yes, that's what I'm trying to do, but how do I tangle it?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.95


signature.asc
Description: PGP signature


Re: [O] bibliography as part of the source document?

2016-06-13 Thread Ken Mankoff

On 2016-06-13 at 13:07, Sharon Kimble  wrote:
> I'm trying to have all my information for a org-mode document exported
> to latex contained within the source document. Specifically having the
> bibliography within the source document.
>
> But how do I do it? I've tried googling but haven't turned up anything
> useful. Can you help please?

What about putting the BibTeX contents in the Org file. Tangle on export to Bib 
file.

  -k.



[O] bibliography as part of the source document?

2016-06-13 Thread Sharon Kimble

I'm trying to have all my information for a org-mode document exported
to latex contained within the source document. Specifically having the
bibliography within the source document.

But how do I do it? I've tried googling but haven't turned up anything
useful. Can you help please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.95


signature.asc
Description: PGP signature


Re: [O] Changing org-block background with org-src-fontify-natively

2016-06-13 Thread Rasmus
Hi Alan,

Alan Schmitt  writes:

>>> How exactly do you get the pencil instead of the #+BEGIN_SRC and
>>> #+END_SRC?
>>
>> Prettify-symbols-mode, I'm using the version that will be shipped with
>> Emacs 25.1.  Details here:
>>
>> https://pank.eu/blog/pretty-babel-src-blocks.html
>
> This is great, thanks a lot!
>
> One thing I don't understand is how I reveal what is hidden by the
> burger symbol. I move my cursor around, including on top of the burger,
> and nothing changes. Should I run some command to reveal it?

Indeed.  That's the main selling point of prettify-symbols-mode.  It might
be in Emacs-25; check if the variable prettify-symbols-unprettify-at-point
is defined.  I use:

(setq prettify-symbols-unprettify-at-point 'right-edge)

If time allows, I will rewrite it as a separate mode as prettify-symbols
mode is not quite right for this purpose.

Rasmus

-- 
Human: An animal that complicates things more than strictly necessary



Re: [O] Cross-reference to Tables and Figures in Latex export is broken

2016-06-13 Thread Charles C. Berry

On Mon, 13 Jun 2016, Vikas Rawal wrote:

I updated org, and now :exports results has stopped working, and I am 
getting both the code and the results in my output!!!




Perhaps, you have `org-export-babel-evaluate' set to nil.

If so, you need to set it to the default, `t'.

Use `:eval never-export' to prevent re-evaluation of src blocks if that is 
what you intend.


See the thread starting here for more info on this:

From: Ken Mankoff 
Subject: exporting documents w/ babel results w/o evaluating babel blocks
Archived-At: 

If that is not the problem, an ECM would help.

HTH,

Chuck




Re: [O] Preventing RESULTS from being formatted as org table [ob-awk]

2016-06-13 Thread Kaushal Modi
Hi Charles, Thomas,

Thank you for the replies. They were very useful.

I learned about :post for the first time. That minimal example worked
great. Earlier I was confused about "*this*", but then from Info node
"(org) post", I learned that it's a special variable for :post.

For now, ":results verbatim" does the job for me for awk source blocks. But
:post looks like a very powerful generic solution. With your reply, I at
least tried it out and I will keep that in mind for when I might need to
use it in future.

Kaushal

On Sun, Jun 12, 2016 at 5:02 PM Charles C. Berry  wrote:

> TL;DR: That is almost correct. `:post' header arg gives fine control of
> formatting if needed.
>
> `org-babel-insert-result' formats anything that isn't a string or a list
> using "%S". Then it tries hard to turn a list into a "table". Lists that
> cannot be made into tables are formatted as strings with "%s\n". However,
> various languages have their own formatting principles, so what
> `org-babel-insert-result' gets as the `result' is a bit idiosyncratic.
>
> You can get a deeper look at the `result' by pretty printing it with the
> aid of a :post header arg. Example:
>
>
> #+NAME: I-feel-pretty
> #+BEGIN_SRC emacs-lisp :results pp
> *this*
> #+END_SRC
>
> This elisp list is not revised:
>
> #+BEGIN_SRC emacs-lisp :post I-feel-pretty
> '(a b c (d . e))
> #+END_SRC
>
> #+RESULTS:
> : (a b c
> :(d . e))
>


> On Sun, 12 Jun 2016, Thomas S. Dye wrote:
>  I think I'm correct to say that by default a single value result is
>  output as a scalar, and everything else is converted to an Org mode
>  table.
>
-- 

-- 
Kaushal Modi


Re: [O] Adding a simple list item expands the entire simple list

2016-06-13 Thread Steinar Bang
>>>>> Marco Wahl :


>> Will there be a new ELPA package with the fix soon?

> I don't know.

> At least I looked into the issue and found the opening of the list is
> caused by a call to `org-reveal' in function `org-insert-heading'.

I reported the problem as a bug, it has since been fixed, and is fixed
in the latest org package from Gnu ELPA:
 Org-mode version 8.3.4 (8.3.4-82-gc792d6-elpa @ 
c:/Users/sb/.emacs.d/elpa/org-20160613/)




Re: [O] vertically misplaced thousands separator

2016-06-13 Thread Charles Millar

I just realized this behavior also occurs for just a series of letters


On 06/13/2016 08:46 AM, Charles Millar wrote:


Forgot to mention that just a plain 9.99 (no code blocks) exports 
the same way, comma above the 9.99



On 06/13/2016 08:31 AM, Charles Millar wrote:


I am not sure if this is a bug in orgmode latex exporter or whether 
it is specific to LaTeX and that there is some code that will take 
care of this.


First, attached is a copy of my LaTeX setup.

I recently added \\usepackage[npthousnadsep{,}]{numprint} to my setup.

When I export the following in line code

This is inline src_emacs-lisp[:var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f"]{(format fmt totalcommissions)} {{{results(=9.99=)}}} 
for some reason


the thousands separator is place above the exported line, thus

,
This is inline 9.99 for some reason

Likewise, a source block, e.g.

** Block

This is a block

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f" :exports results

(format fmt totalcommissions)
#+end_src

#+RESULTS:
: 9.99

for the same code

exports as

  ,
This is a block
9.99

|{group-separator ={,}|

for the same code

Of course I expected 99,999.99 in both cases.

I also tried this with \\usepackage{siunitx} and 
\\usepackage[group-separator={,}]{siunitx} (numprint separator was 
removed) and had the same results


Org-mode version 8.3.4 (release 8.3.4 -907-g65e437 @ 
usr/local/share/emacs/site-lisp/org-mode/lisp)


GNU Emacs 24.4.1 (x86 64 -pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified

by Debian

Charlie Millar







Re: [O] vertically misplaced thousands separator

2016-06-13 Thread Charles Millar
Forgot to mention that just a plain 9.99 (no code blocks) exports 
the same way, comma above the 9.99



On 06/13/2016 08:31 AM, Charles Millar wrote:


I am not sure if this is a bug in orgmode latex exporter or whether it 
is specific to LaTeX and that there is some code that will take care 
of this.


First, attached is a copy of my LaTeX setup.

I recently added \\usepackage[npthousnadsep{,}]{numprint} to my setup.

When I export the following in line code

This is inline src_emacs-lisp[:var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f"]{(format fmt totalcommissions)} {{{results(=9.99=)}}} 
for some reason


the thousands separator is place above the exported line, thus

,
This is inline 9.99 for some reason

Likewise, a source block, e.g.

** Block

This is a block

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f" :exports results

(format fmt totalcommissions)
#+end_src

#+RESULTS:
: 9.99

for the same code

exports as

  ,
This is a block
9.99

|{group-separator ={,}|

for the same code

Of course I expected 99,999.99 in both cases.

I also tried this with \\usepackage{siunitx} and 
\\usepackage[group-separator={,}]{siunitx} (numprint separator was 
removed) and had the same results


Org-mode version 8.3.4 (release 8.3.4 -907-g65e437 @ 
usr/local/share/emacs/site-lisp/org-mode/lisp)


GNU Emacs 24.4.1 (x86 64 -pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified

by Debian

Charlie Millar





Re: [O] Changing org-block background with org-src-fontify-natively

2016-06-13 Thread Alan Schmitt
On 2016-06-11 13:40, Rasmus  writes:

> swfl...@flintfam.org (Samuel W. Flint) writes:
>
>> How exactly do you get the pencil instead of the #+BEGIN_SRC and
>> #+END_SRC?
>
> Prettify-symbols-mode, I'm using the version that will be shipped with
> Emacs 25.1.  Details here:
>
> https://pank.eu/blog/pretty-babel-src-blocks.html

This is great, thanks a lot!

One thing I don't understand is how I reveal what is hidden by the
burger symbol. I move my cursor around, including on top of the burger,
and nothing changes. Should I run some command to reveal it?

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2015-05: 403.94, 2016-05: 407.70


signature.asc
Description: PGP signature


[O] vertically misplaced thousands separator

2016-06-13 Thread Charles Millar
I am not sure if this is a bug in orgmode latex exporter or whether it 
is specific to LaTeX and that there is some code that will take care of 
this.


First, attached is a copy of my LaTeX setup.

I recently added \\usepackage[npthousnadsep{,}]{numprint} to my setup.

When I export the following in line code

This is inline src_emacs-lisp[:var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f"]{(format fmt totalcommissions)} {{{results(=9.99=)}}} for 
some reason


the thousands separator is place above the exported line, thus

,
This is inline 9.99 for some reason

Likewise, a source block, e.g.

** Block

This is a block

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1] fmt="%.2f" 
:exports results

(format fmt totalcommissions)
#+end_src

#+RESULTS:
: 9.99

for the same code

exports as

  ,
This is a block
9.99

|{group-separator ={,}|

for the same code

Of course I expected 99,999.99 in both cases.

I also tried this with \\usepackage{siunitx} and 
\\usepackage[group-separator={,}]{siunitx} (numprint separator was 
removed) and had the same results


Org-mode version 8.3.4 (release 8.3.4 -907-g65e437 @ 
usr/local/share/emacs/site-lisp/org-mode/lisp)


GNU Emacs 24.4.1 (x86 64 -pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified

by Debian

Charlie Millar

(add-to-list 'org-latex-classes
  '("mysetup"
"\\documentclass[fontsize=11pt,letterpaper,twoside=false]{scrartcl}
\\usepackage{verbatim}
% \\usepackage[T1]{fontenc}
% \\usepackage{charter,parskip,setspace,layout}
\\usepackage{charter,setspace,layout}
\\usepackage{array,graphicx}
\\usepackage{tabularx,tabulary}
\\usepackage{longtable}
\\usepackage{tabu}
\\usepackage{numprint}
\\npstyleenglish
\\usepackage[npthousnadsep{,}]{numprint}
\\usepackage[at]{easylist}
\\usepackage{csquotes}
%\\usepackage[letterpaper,margin=1.00in]{geometry}
\\usepackage[letterpaper,left=1.00in,right=1.00in,top=1.00in,bottom=1.00in]{geometry}
% \\usepackage[top=1.0in,bottom=0.4in,left=1.2in,nohead]{geometry}
%\\pagestyle{empty}
\\pagenumbering{arabic}
\\newcommand{\\foo}{bar}
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]
[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))


Re: [O] Bug: Adding a simple list item expands the entire simple list [8.3.4 (8.3.4-79-gbd4948-elpa @ c:/Users/sb/.emacs.d/elpa/org-20160606/)]

2016-06-13 Thread Steinar Bang
>>>>> Nicolas Goaziou :

> Fixed. Thank you.

Verified fixed in the newest ELPA org-mode, ie.
 Org-mode version 8.3.4 (8.3.4-82-gc792d6-elpa @ 
c:/Users/steinar.bang/.emacs.d/elpa/org-20160613/)

Thanks!


- Steinar




Re: [O] Code in contrib directory is not published with ELPA?

2016-06-13 Thread Xi Shen
err~sorry!

http://orgmode.org/elpa.html

On Mon, Jun 13, 2016 at 5:19 PM Xi Shen  wrote:

> Hi,
>
> I am using Emacs on Windows within Cygwin environment. I found installing
> org from the ELPA will not include code in the `contrib' directory. Is it
> correct? What is the right way to get code in the `contrib' directory to
> work on my local?
>
> --
>
> Thanks,
> David S.
>
-- 

Thanks,
David S.


[O] Code in contrib directory is not published with ELPA?

2016-06-13 Thread Xi Shen
Hi,

I am using Emacs on Windows within Cygwin environment. I found installing
org from the ELPA will not include code in the `contrib' directory. Is it
correct? What is the right way to get code in the `contrib' directory to
work on my local?

-- 

Thanks,
David S.