Re: [O] Problem with org-ref

2015-12-24 Thread John Kitchin
That is an odd looking path. On Mac that would expand to something like

/Users/Dropbox/_biblio/org-ref/bibnotes.org

and on linux

/home/Dropbox/_biblio/org-ref/bibnotes.org

usually you should not have permission for that, and neither make sense
to me.

Does (file-exists-p org-ref-bibliography-notes) return true?

or alternatively does (find-file org-ref-bibliography-notes) actually
open a writable file?

I would think this is what you want (unless you have some unusual setup
and permissions):

(setq org-ref-bibliography-notes "~/Dropbox/_biblio/org-ref/bibnotes.org"
   org-ref-default-bibliography '("~/Dropbox/_biblio/refs.bib"))

i.e. no .. in the path.

Andreas Kiermeier writes:

> Hi John,
>
> I've set it at follows (based on your setup) in my init.el file:
>
> (setq org-ref-bibliography-notes "~/../Dropbox/_biblio/org-ref/bibnotes.org"
>   org-ref-default-bibliography '("~/../Dropbox/_biblio/refs.bib"))
>
> So, non-nil.
>
> Andreas
>
> On 25 December 2015 at 00:45, John Kitchin  wrote:
>
>>
>> On Thu, Dec 24, 2015 at 1:04 AM, Andreas Kiermeier <
>> andreas.kierme...@gmail.com> wrote:
>>
>>> org-ref-open-bibtex-notes()
>>
>>
>> That looks like a different error that occurs in  
>> org-ref-open-bibtex-notes().
>> Up to that point everything looks normal.
>>
>> What do you have your org-ref-bibliography-notes variable set to? The
>> default value is nil which would cause that error.
>>
>>
>>
>> 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
>>
>>

--
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] Problem with org-ref

2015-12-24 Thread Andreas Kiermeier
I've set the HOME environment variable to "C:/Users/andre_000/Documents"
and hence need the .. to get into the Dropbox folder.

Executing (find-file org-ref-bibliography-notes) does find and open the
correct notes file.

Using an absolute path, as in:

(setq org-ref-bibliography-notes
"C:/Users/andre_000/Dropbox/_biblio/org-ref/bibnotes.org"
  org-ref-default-bibliography
'("C:/Users/andre_000/Dropbox/_biblio/refs.bib"))

results in the same error.

After dropping a PDF file into the .bib file I end up with the following
additional entry (for example) in the bibnotes.org file. I thought I'd
include it just to ensure that nothing gets chopped of - this entry
correctly reflect the PDF.

** TODO 2007 - Taenia Saginata in Europe
 :PROPERTIES:
  :Custom_ID: dorny_2007
  :AUTHOR: Dorny \& Praet
  :JOURNAL: Veterinary Parasitology
  :YEAR: 2007
  :VOLUME: 149
  :PAGES: 22-24
  :DOI: 10.1016/j.vetpar.2007.07.004
  :URL: http://dx.doi.org/10.1016/j.vetpar.2007.07.004
 :END:

Does the notes file need a specific set up in terms of headers etc?


-- 
Dr Andreas Kiermeier | Director
Statistical Process Improvement Consulting and Training Pty Ltd
Mbl: +61 (4)23 028 565 | Email: andreas.kierme...@gmail.com
Australia

On 25 December 2015 at 13:17, John Kitchin  wrote:

> That is an odd looking path. On Mac that would expand to something like
>
> /Users/Dropbox/_biblio/org-ref/bibnotes.org
>
> and on linux
>
> /home/Dropbox/_biblio/org-ref/bibnotes.org
>
> usually you should not have permission for that, and neither make sense
> to me.
>
> Does (file-exists-p org-ref-bibliography-notes) return true?
>
> or alternatively does (find-file org-ref-bibliography-notes) actually
> open a writable file?
>
> I would think this is what you want (unless you have some unusual setup
> and permissions):
>
> (setq org-ref-bibliography-notes "~/Dropbox/_biblio/org-ref/bibnotes.org"
>org-ref-default-bibliography '("~/Dropbox/_biblio/refs.bib"))
>
> i.e. no .. in the path.
>
> Andreas Kiermeier writes:
>
> > Hi John,
> >
> > I've set it at follows (based on your setup) in my init.el file:
> >
> > (setq org-ref-bibliography-notes "~/../Dropbox/_biblio/org-ref/
> bibnotes.org"
> >   org-ref-default-bibliography '("~/../Dropbox/_biblio/refs.bib"))
> >
> > So, non-nil.
> >
> > Andreas
> >
> > On 25 December 2015 at 00:45, John Kitchin 
> wrote:
> >
> >>
> >> On Thu, Dec 24, 2015 at 1:04 AM, Andreas Kiermeier <
> >> andreas.kierme...@gmail.com> wrote:
> >>
> >>> org-ref-open-bibtex-notes()
> >>
> >>
> >> That looks like a different error that occurs in
> org-ref-open-bibtex-notes().
> >> Up to that point everything looks normal.
> >>
> >> What do you have your org-ref-bibliography-notes variable set to? The
> >> default value is nil which would cause that error.
> >>
> >>
> >>
> >> 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
> >>
> >>
>
> --
> 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
>


[O] org-agenda-quit Kills Visible Buffers

2015-12-24 Thread Alan Parker Lue
After upgrading org-mode recently, I find that hitting "q" for
(org-agenda-quit) while viewing an agenda kills the buffer that was active
when I created the agenda.

I'm on org-mode v8.3.2. To reproduce:

   - Activate a buffer, call it =active_buf.txt=
   - C-c a for (org-agenda)
   - a for "Agenda for current week or day"
   - q for (org-agenda-quit)

I find that =active_buf.txt= has now been killed.

Same thing happens with "x" for (org-agenda-exit). Also happens after
completely doing away with my init.el, so I don't believe this is the
result of a setting.

What is going on?

Alan


Re: [O] Problem with org-ref

2015-12-24 Thread Andreas Kiermeier
Hi John,

I've set it at follows (based on your setup) in my init.el file:

(setq org-ref-bibliography-notes "~/../Dropbox/_biblio/org-ref/bibnotes.org"
  org-ref-default-bibliography '("~/../Dropbox/_biblio/refs.bib"))

So, non-nil.

Andreas​

On 25 December 2015 at 00:45, John Kitchin  wrote:

>
> On Thu, Dec 24, 2015 at 1:04 AM, Andreas Kiermeier <
> andreas.kierme...@gmail.com> wrote:
>
>> org-ref-open-bibtex-notes()
>
>
> That looks like a different error that occurs in  org-ref-open-bibtex-notes().
> Up to that point everything looks normal.
>
> What do you have your org-ref-bibliography-notes variable set to? The
> default value is nil which would cause that error.
>
>
>
> 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] org-ref video

2015-12-24 Thread briangpowell .
I'm absolutely sure that I read it somewhere--its "Lay-Teck"--and again; if
you think about it, that's what it ought to be.

Hilarious "La" isn't from "Lamport"--very funny though.

I agree though, this is up to me to prove; but, don't hold your breath--it
may be hard to find--I have books to the ceiling in every room in my
house--and many on TeX and its derivatives.



On Thu, Dec 24, 2015 at 9:49 AM, Nick Dokos  wrote:

> "briangpowell ."  writes:
>
> > I believe I read how to correctly pronounce LaTeX as Lay-Teck (and why
> > its important--to honor the creator of TeX's wishes+intentions, Donald
> > Knuth) in Leslie Lamport's book onLaTeX--in the preface.
>
> The TeX FAQ (http://www.tex.ac.uk/FAQ-latexpronounce.html) contradicts
> you:
>
> ,
> | How should I pronounce “LaTeX(2e)”?
> |
> | Lamport never recommended how one should pronounce LaTeX, but a lot of
> | people pronounce it ‘Lay TeX’ or perhaps ‘Lah TeX’ (with TeX pronounced
> | as the program itself; see the rules for TeX). It is definitely not to
> | be pronounced in the same way as the rubber-tree gum (which would be
> | ‘lay teks’).
> |
> | The LaTeX2e logo is supposed to end with an ε; nevertheless, most people
> | pronounce the name as ‘LaTeX-two-ee’.
> `
>
> Lamport's first edition is packed away so I can't check it right now,
> but the second edition preface certainly does not say anything about
> the pronunciation of LaTeX.
>
> > Small note, feel free to ignore it (one and all); but, "LaTeX" is
> properly
> > pronounced: "Lay-Teck"--since its a macro language which "lays on top of
> > TeX"--the TeX part you pronounced correctly, which is the part that
> really
> > matters (Tau-Epsilon-Chi).
>
> and
>
> > And when you think about it, pronouncing it as "Lay" does make sense
> "La" only means "the"
> > in some romance Languages and the "L" and "A" don't stand for anything
> in particular
> > either--LA isn't an acronym--and it has no "foreign language" meaning.
> Its not "The
> > TeX"--TeX is "The TeX"--the lowest primal language itself, programmed in
> C.
> >
>
> I believe you are overthinking this.
>
> I have never seen any evidence for either of these statements:
>
> o that LaTeX is pronounced Lay-Teck (or Lay-Tekh if we follow Knuth's
> direction of adding moisture to the screen) because it "lays on top
> of TeX" (btw, are you quoting somebody else here? or quoting yourself?)
>
> o that there is some connection between the "La" in LaTeX and the
> article in some romance languages.
>
> Do you have any independent evidence for either of these?
>
> Here is another interpretation which IMO is more likely than anything
> you have presented (but is equally unsupported by actual evidence): the
> "La" in LaTeX comes from the "La" in Lamport.
>
> --
> Nick
>
>
>


[O] Publishing images to various sizes

2015-12-24 Thread Arun Isaac

Hi,

Is there some package that provides a publishing function I can use to
automatically publish images to various sizes? Probably something that
wraps around imagemagick's 'convert' command?

When I publish images to my website, I want them to be available in
various sizes, so that I can choose the appropriate image for the
context in which it appears, and thus optimize bandwidth usage.

Thanks,
Arun Isaac.


signature.asc
Description: PGP signature


[O] [PATCH] ob-sql: Don't print out the command

2015-12-24 Thread Sacha Chua
Out of curiosity, is there a particular reason why ob-sql messages the
whole command, aside from debugging/development purposes? funnykitty on
#emacs said that executing a long command set was rather slow because of
the message. I've attached a tiny patch to remove the (message ...) in
case it's left over from debugging, and I've suggested that funnykitty
either use cl-flet to override message or redefine org-babel-execute:sql
in the meantime.

>From 04da1fb280847613290e11ce494ba58f17e951ac Mon Sep 17 00:00:00 2001
From: Sacha Chua 
Date: Thu, 24 Dec 2015 12:36:40 -0500
Subject: [PATCH] ob-sql: Don't print out the command

* lisp/ob-sql.el (org-babel-execute:sql): Don't print out the command
  in the echo area, since it could be very long.
---
 lisp/ob-sql.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
index 275370e..14d5c61 100644
--- a/lisp/ob-sql.el
+++ b/lisp/ob-sql.el
@@ -175,7 +175,6 @@ SET COLSEP '|'
 ")
 	 (_ ""))
(org-babel-expand-body:sql body params)))
-(message command)
 (org-babel-eval command "")
 (org-babel-result-cond result-params
   (with-temp-buffer
-- 
2.6.3


Sacha


Re: [O] Writing for Blogger, including images

2015-12-24 Thread Samuel Wales
here is fragmentary code that might give you ideas.

(cl-defun alpha-org-blog-subtree ( nocopy)
  "Copy the subtree, converted to HTML, for pasting into Blogger
as a blog post.  If there is an active region, use that instead.

This also works generically, because Blogger uses what Org will
output as body-only.  So it could be called `alpha-org-html'.

No other software needs to be installed.  No temporary file is
created.  No file is created.  A buffer is created.

For an example of this code in action, see
.

===

You have to turn off Blogger's conversion of newline to br tags
in settings and in the new Blogger post editor (the old editors
do not have that option) and in the Blogger pages editor (if you
use pages).  This makes Blogger more compatible.  Extra blank
lines are normally ignored in HTML (w3m and Firefox on .html), so
it makes sense to make Blogger ignore them instead of converting
them.  Org sometimes leaves extra blank lines, so it makes a
difference.

The HTML code is left in a buffer that is one buffer away in the
buffer ring.  To display it in a browser, use M-x
browse-url-of-buffer or similar, but you can also use my wrappers
that do it directly for you.

===

The top level headline by default is not exported, because
Blogger already has a title.  For both posts and pages, Blogger's
title field forms the URL and is therefore manually entered.

===

Org variables:

You can control what gets exported with org-export-with-*.  I
also find that (setq org-export-headline-levels 10) is useful.

===

Advanced:

With non-interactive keyword NOCOPY, don't save the output in
the kill ring.

===

I use Blogger.com for hosted blogging instead of Wordpress.com
because Google has a better attitude toward accessibility.
"
  (interactive)

;;; I tried using mail2blogger, but the HTML got posted.  fixme
;;; try with msmtp or find out how to send raw programmatic
;;; email.
;;;
;;; ===
;;;
;;; Also, check for fixmes.  (Or org could check for fixmes
;;; before all export.  Is there a hook?)
;;;
;;; Also, remind you to extract big chunks of comments for
;;; possible other blog entries.
;;;
;;; Also, remind you to make sure all links work and review
;;; formatting.
;;;

  ;; We need to create output that removes  tags for Blogger
  ;; comments.

  ;; with mail2blogger or weblogger.el or atom, we can assume
  ;; publish.

  (save-excursion
(save-window-excursion
  (unless (org-region-active-p)
(org-mark-subtree)
;; skip headline
(forward-line 1))

  (let ((output-buffer
 ;; recommended: (let ((org-html-toplevel-hlevel 3))
 ;; we do our own copying in case we want to wrap and
 ;; then copy.
 ;;
 ;; (let ((org-export-copy-to-kill-ring (not nocopy)))
 (save-excursion
   (save-window-excursion
 (org-export-to-buffer 'html
   ;;or buf
   alpha-org-blog-html-buffer
   ;; new arg for async
   nil
   'subtree
   ;; visible-only
   nil
   'body-only)

;;(deactivate-mark)
(switch-to-buffer output-buffer)

;; org doesn't include a newline at the end
(goto-char (point-max))
(insert "\n")
(goto-char (point-min))

(unless nocopy
  (copy-region-as-kill (point-min) (point-max)))

(setq header-line-format "html output")

;; we want the output buffer to be silently in the next
;; buffer in the buffer ring.
(previous-buffer)
(message "alpha org exported")
output-buffer

for images:

#+ATTR_HTML: :title Fern
#+ATTR_HTML: :alt (c) ... Their free license
#+ATTR_HTML: :align center
#+ATTR_HTML: :width 512px
{{{image-fern}}}

#+macro: image-fern http://2.bp.blogspot.com/jpg


On 12/24/15, Peter Davis  wrote:
> I would love to be able to write blog posts for Blogger, including
> images, and be able to upload the posts easily. I've seen various
> discussions about using org-mode for blogging, but nothing recent for
> Blogger specifically. Are there any good tools or tips for this?
>
> I do regularly use org-mode for text blog posts, but I don't know a way
> to include images, preview the results, and then upload the whole thing
> to one of several blogs I have.
>
> Thank you!
>
> -pd
>
> --
> 
> The Tech Curmudgeon
> http://www.techcurmudgeon.com
>
>
>


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

Denmark: free Karina Hansen NOW.



[O] Writing for Blogger, including images

2015-12-24 Thread Peter Davis
I would love to be able to write blog posts for Blogger, including 
images, and be able to upload the posts easily. I've seen various 
discussions about using org-mode for blogging, but nothing recent for 
Blogger specifically. Are there any good tools or tips for this?


I do regularly use org-mode for text blog posts, but I don't know a way 
to include images, preview the results, and then upload the whole thing 
to one of several blogs I have.


Thank you!

-pd

--

The Tech Curmudgeon
http://www.techcurmudgeon.com




Re: [O] Problem with org-ref

2015-12-24 Thread John Kitchin
On Thu, Dec 24, 2015 at 1:04 AM, Andreas Kiermeier <
andreas.kierme...@gmail.com> wrote:

> org-ref-open-bibtex-notes()


That looks like a different error that occurs in  org-ref-open-bibtex-notes().
Up to that point everything looks normal.

What do you have your org-ref-bibliography-notes variable set to? The
default value is nil which would cause that error.



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


[O] infojs without shortcuts

2015-12-24 Thread Alfredo Buttari
Dear all,
I'm trying to set up a web page for a software I want to distribute using
org-mode. I'd like to use the folding feature of org-info.js but I'd like
to disable the shortcuts for keyboard navigation. The reason is that this
page contains a form but the keyboard shortcuts make it impossible to fill
it up. A prelimirary version of this page can be found here:

http://buttari.perso.enseeiht.fr/wqr/index.html

Is it possible to disable the keyboard shortcuts in org-info.js ? I
couldn't find anything on the infojs documentation. If it's not possible,
do you know any workaround to get this working?

Regards,
Alfredo


Re: [O] org-ref video

2015-12-24 Thread Nick Dokos
"briangpowell ."  writes:

> I believe I read how to correctly pronounce LaTeX as Lay-Teck (and why
> its important--to honor the creator of TeX's wishes+intentions, Donald
> Knuth) in Leslie Lamport's book onLaTeX--in the preface.

The TeX FAQ (http://www.tex.ac.uk/FAQ-latexpronounce.html) contradicts you:

,
| How should I pronounce “LaTeX(2e)”?
| 
| Lamport never recommended how one should pronounce LaTeX, but a lot of
| people pronounce it ‘Lay TeX’ or perhaps ‘Lah TeX’ (with TeX pronounced
| as the program itself; see the rules for TeX). It is definitely not to
| be pronounced in the same way as the rubber-tree gum (which would be
| ‘lay teks’).
| 
| The LaTeX2e logo is supposed to end with an ε; nevertheless, most people
| pronounce the name as ‘LaTeX-two-ee’.
`

Lamport's first edition is packed away so I can't check it right now,
but the second edition preface certainly does not say anything about
the pronunciation of LaTeX.

> Small note, feel free to ignore it (one and all); but, "LaTeX" is properly
> pronounced: "Lay-Teck"--since its a macro language which "lays on top of
> TeX"--the TeX part you pronounced correctly, which is the part that really
> matters (Tau-Epsilon-Chi).

and

> And when you think about it, pronouncing it as "Lay" does make sense "La" 
> only means "the"
> in some romance Languages and the "L" and "A" don't stand for anything in 
> particular
> either--LA isn't an acronym--and it has no "foreign language" meaning.  Its 
> not "The
> TeX"--TeX is "The TeX"--the lowest primal language itself, programmed in C.
>

I believe you are overthinking this.

I have never seen any evidence for either of these statements:

o that LaTeX is pronounced Lay-Teck (or Lay-Tekh if we follow Knuth's
direction of adding moisture to the screen) because it "lays on top
of TeX" (btw, are you quoting somebody else here? or quoting yourself?)

o that there is some connection between the "La" in LaTeX and the
article in some romance languages.

Do you have any independent evidence for either of these?

Here is another interpretation which IMO is more likely than anything
you have presented (but is equally unsupported by actual evidence): the
"La" in LaTeX comes from the "La" in Lamport. 

-- 
Nick