Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Ian Barton

On 07/05/14 06:48, Martin Schöön wrote:

On 6 May 2014 23:28, Suvayu Ali fatkasuvayu+li...@gmail.com
mailto:fatkasuvayu+li...@gmail.com wrote:

On Tue, May 06, 2014 at 09:41:27PM +0200, Martin Schöön wrote:

  I the altered #+latex_class: article to #+latex_class:
komaarticle in my
  org-file.
  Whe trying to export it I am told komaarticle is not a known
Latex class.

Did you restart Emacs after that?


Yes. No better.
And I had restarted emacs after editing .emacs before I started working
on my org-document.

--


I am a very novice Latex user, so forgive me for asking but do you have 
the KOMA package installed?


Ian.




Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Eric S Fraga
On Tuesday,  6 May 2014 at 21:41, Martin Schöön wrote:
 No luck thus far. I added your code to my .emacs but left the #+begin_src
 and #+end_src lines out since I figured they have no purpose in .emacs.

correct.  they are org src block delimiters.

 I the altered #+latex_class: article to #+latex_class: komaarticle in my
 org-file.
 Whe trying to export it I am told komaarticle is not a known Latex class. I
 then wrapped that line in #+begin_src org #+end_src which, of course, didn't
 work.

What is the value of org-latex-classes?  check this with C-h v when in
the org buffer.  If komaarticle is not one of the entries, your emacs
initialisation was incorrectly implemented.  Note that you probably want
to have that customisation after loading org and ox-latex in particular.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a



Re: [O] Managing bibtex database using org-mode?

2014-05-07 Thread Eric S Fraga
On Wednesday,  7 May 2014 at 07:20, Vikas Rawal wrote:
 I was wondering if anyone has tried managing the whole bibtex database
 in Org.

 Would be interested to know.

what exactly do mean by managing the database?  I frequently have all
the bibtex entries in the document that uses them.  I tangle them to
create a .bib file that is then referenced on export.

mind you, with John Kitchin's recent development of org-ref, I am
starting to rethink this approach.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a



Re: [O] Managing bibtex database using org-mode?

2014-05-07 Thread Leonard Avery Randall

Hi Vikas,
I manage my whole bibtex database on org. It makes my workflow more 
integrated. It allows me to keep bib info, todo states and notes all in 
the same place, and it allows me to access it all through the agenda. I 
just periodically run org-bibtex to make sure that I have a updated bib 
file.  There are a few finicky things about the way that org-bibtex 
imports bibtex entries, which I may try to look into when I have some 
time, but overall I think it is quite useful.

All best,
Leonard



Re: [O] Seeking advice on a worg contribution

2014-05-07 Thread Bastien
Hi James,

James Harkins jamshar...@gmail.com writes:

 Here's a patch for worg.css. Captions for source code blocks are
 rendered as label... in the HTML export, with the class name
 org-src-name. I checked in Firefox, and it does change the appearance
 of the captions.

Applied, thanks.  Should be active on Worg in a little while.

 It's getting kind of late here and I'm running out of steam, so I'll
 deal with the links and pushing the text tomorrow.

Thanks!

-- 
 Bastien



Re: [O] Overlay in beamer?

2014-05-07 Thread Suvayu Ali
Hi Eric,

On Wed, Apr 30, 2014 at 06:00:53PM +0100, Eric S Fraga wrote:
 
 What may not be easy or possible is to use the \only directive, which is
 what I used in my previous response to you.

You can always use the only environment.
https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L215

That said, I think overlays with only is not as smooth as with simple
overlay specifications to regular environments or macros like
\includegraphics, \item, etc.

As for an :overlay specification, I believe it is already supported but
only for lists (ox-beamer.el:725).  I would love to have that for images
too!

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [PATCH] Fix error prone babel table output format detection

2014-05-07 Thread Eric Schulte
This looks good to me.  Could you reformat the patch with

  git format-patch

and attach the results (this will be easier to apply).  Also, this patch
is small enough to apply without any sort of copyright attribution, but
if you think you might make larger contributions in the future, please
look over the org contribution instructions [1].

Thanks!
Eric


Footnotes: 
[1]  http://orgmode.org/worg/org-contribute.html

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] [BUG] [babel] in :eval never with :session

2014-05-07 Thread Eric Schulte
Rainer M Krug rai...@krugs.de writes:

 The error is back:


You say back, was this error not present recently?  If so could you
isolate the commit at which this error appeared?

Thanks,
Eric


 When one header in a subtree which has the header argument
 :eval never
 has the same name as in a following subtree which should be evaluated on
 export, the second subtree is not exported. When the name of the header
 is changed, the subtree is exported as expected.

 --8---cut here---start-8---
 #+PROPERTY: exports both
 #+PROPERTY: session *tmp_R*

 * Some non-evaluated code
 :PROPERTIES:
 :eval:  never
 :END:
 ** This is the same header
 #+BEGIN_SRC R
 cat(\ntwo\n)
 #+END_SRC

 * Data Assessment Results
 ** This is the same header
 If the name of the header is changed, the subtree is evaluated on export.
 #+begin_src R
 cat(\nhere it is \n)
 #+end_src
 --8---cut here---end---8---
  
 Org-mode version 8.2.6 (release_8.2.6-920-gc6d698 @ 
 /Users/rainerkrug/.emacs.d/org-mode/lisp/)
 GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 
 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local

 Cheers,

 Rainer

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] Managing bibtex database using org-mode?

2014-05-07 Thread Vikas Rawal
 I manage my whole bibtex database on org. It makes my workflow more 
 integrated. It allows me to keep bib info, todo states and notes all in the 
 same place, and it allows me to access it all through the agenda. I just 
 periodically run org-bibtex to make sure that I have a updated bib file.  

This is exactly what I have in mind. Would you mind sharing an example file, 
and may be an outline of your work flow?

What capture formats do you use for different document types?

Vikas




Re: [O] Export to iCalendar only not DONE, scheduled tasks?

2014-05-07 Thread Chris Poole
On Tuesday, May 6, 2014, Bastien b...@gnu.org wrote:
 (setq org-icalendar-include-todo t)

I tried that, but it has the unfortunate effect of adding all my TODO
entries into the calendar.

I want unscheduled TODO items to be in tags-todo lists only (for @contexts
in GTD parlance), and scheduled TODO items to appear in the weekly agenda
and iCalendar files. (And nothing else going to iCalendar.)

I have been able to set everything up except for the last piece in
parentheses above.

Any other thoughts?

Cheers,
Chris


Re: [O] [BUG] [babel] in :eval never with :session

2014-05-07 Thread Rainer M Krug
I reported it some time ago but couldn't reproduce it later, so I reported it 
fixed. Now I realized that the 'reproducible example' did not show the error as 
the header names were different. So I do not know if it is a new error, but I 
can check on Friday. 

Cheers,

Rainer

Envoyé de mon iPhone

 Le 7 mai 2014 à 11:19, Eric Schulte schulte.e...@gmail.com a écrit :
 
 Rainer M Krug rai...@krugs.de writes:
 
 The error is back:
 
 You say back, was this error not present recently?  If so could you
 isolate the commit at which this error appeared?
 
 Thanks,
 Eric
 
 
 When one header in a subtree which has the header argument
 :eval never
 has the same name as in a following subtree which should be evaluated on
 export, the second subtree is not exported. When the name of the header
 is changed, the subtree is exported as expected.
 
 --8---cut here---start-8---
 #+PROPERTY: exports both
 #+PROPERTY: session *tmp_R*
 
 * Some non-evaluated code
 :PROPERTIES:
 :eval:  never
 :END:
 ** This is the same header
 #+BEGIN_SRC R
 cat(\ntwo\n)
 #+END_SRC
 
 * Data Assessment Results
 ** This is the same header
 If the name of the header is changed, the subtree is evaluated on export.
 #+begin_src R
 cat(\nhere it is \n)
 #+end_src
 --8---cut here---end---8---
 
 Org-mode version 8.2.6 (release_8.2.6-920-gc6d698 @ 
 /Users/rainerkrug/.emacs.d/org-mode/lisp/)
 GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 
 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local
 
 Cheers,
 
 Rainer
 
 -- 
 Eric Schulte
 https://cs.unm.edu/~eschulte
 PGP: 0x614CA05D



[O] org-caldav: problems connecting to owndrive

2014-05-07 Thread Seb Frank
Hi there,

I've been trying to setup org-caldav to sync to my owndrive calendar.

Setup is

#+begin_src emacs-lisp
(setq org-caldav-url 
https://my.owndrive.com/remote.php/caldav/calendars/myusername;)
(setq org-caldav-calendar-id myid)
(setq org-caldav-inbox ~/org/test.org)
#+end_src

When I try org-caldav-sync, it fails with:

Contacting host: my.owndrive.com:443
gnutls.c: [0] (Emacs) fatal error: Public key signature verification has
failed.
gnutls.el: (err=[-89] Public key signature verification has failed.) boot:
(:priority NORMAL :hostname my.owndrive.com :loglevel 0 :min-prime-bits 256
:trustfiles nil :crlfiles nil :keylist nil :verify-flags nil :verify-error
nil :callbacks nil)
edebug-signal: GnuTLS error: #process my.owndrive.com, -89

Testing this with gnutls on the command line confirms the problem:
% gnutls-cli -V -p 443 my.owndrive.com
...
- Status: The certificate is NOT trusted. The signature in the certificate
is invalid.
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.

Does anyone know if there is a way to tell org-caldav or url-dav to use an
untrusted certificate?

Thanks,
  Seb


Re: [O] Non-scheduled repeating tasks

2014-05-07 Thread Detlef Steuer
Am Mon, 5 May 2014 15:52:26 +0200
schrieb Albin Stjerna albin.stje...@gmail.com:

 Hi,
 
 I've been thinking about how to integrate tasks which are to some
 extent tracked elsewhere into my org-mode workflow, such as for
 example read N chapter of book A or watch K video lectures at X.
 
 I'd like a way to describe in org-mode that a task should be completed
 a number of times, and then have org-mode let the task recur a number
 of times, possibly with a cool-down period (but that's not really
 necessary). The normal progress cookies % and / would preferrably be
 used to indicate progress in the TODO headings themselves.
 

Not sure if I understand correctly, but did you look into org-habits? 
Sounds similar.

http://orgmode.org/manual/Tracking-your-habits.html

Detlef


 1. Has something like this been attempted by anyone else before?
 2. Which org-mode hooks would be a good place to start integrating
 something that would both potentially block TODO transitions and have
 to read/write properties and/or special drawers in org-mode? At first,
 I thought that the problem could be trivially solved with the
 org-blocker-hook, but I realised that it said it shouldn't update the
 org buffers, and my function needs to in order to update the state for
 blocked tasks (e.g. increment the counter).
 
 Thanks in advance!
   Albin
 
 






[O] problem with org-caldav and ox-icalendar: UID property wrapping

2014-05-07 Thread Eric S Fraga
Hello,

I have been using org-caldav for quite a while now and everything has
been fine with it until a few weeks ago.  All of a sudden, org-caldav
fails to sync with the following error:

,
| (error Could not find UID 0400[...]00.)
|   signal(error (Could not find UID 0400[...]00.))
`
  
(I have truncated the IDs for clarity and obfuscation using [...].)

The strange thing is that there is no such UID anywhere in my org
files.  However, there is one ID that has this UID as the prefix.  That
is, the ID matches this one but then has more characters.

I have tracked this down to org-icalendar outputing wrapped lines even
for UID entries:

,
| BEGIN:VEVENT
| DTSTAMP:20140507T114443Z
| UID:0400[...]00
|  00[...]6
| DTSTART;TZID=Europe/London:20120403T06
`


Have the recent (in April) changes to ox-icalendar.el affected how IDs
are written out?  If so, could this be reverted?  Mind you, the output
is currently probably more conformant...

Ideally, org-caldav should be fixed to unwrap ID lines.  I can try to do
this but I need some help with regexps, specifically to match across two
lines: \n .

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-937-g60502a



Re: [O] ML -- gmane busted?

2014-05-07 Thread Nick Dokos
Bastien b...@gnu.org writes:

 Igor Sosa Mayor joseleopoldo1...@gmail.com writes:

 yes, I have the same problem. The last message in gmane is 
 2014-05-04 21:06:55 GMT (1 day, 16 hours and 39 minutes ago). But
 this is not only a problem of this list, as far as I see...

 I sent an email to Lars and it's now fixed.

Thanks!




Re: [O] org-caldav: problems connecting to owndrive

2014-05-07 Thread Ian Barton

On 07/05/14 14:43, Seb Frank wrote:

Hi there,

I've been trying to setup org-caldav to sync to my owndrive calendar.

Setup is

#+begin_src emacs-lisp
(setq org-caldav-url
https://my.owndrive.com/remote.php/caldav/calendars/myusername;)
(setq org-caldav-calendar-id myid)
(setq org-caldav-inbox ~/org/test.org http://test.org)
#+end_src

When I try org-caldav-sync, it fails with:

Contacting host: my.owndrive.com:443 http://my.owndrive.com:443
gnutls.c: [0] (Emacs) fatal error: Public key signature verification has
failed.
gnutls.el: (err=[-89] Public key signature verification has failed.)
boot: (:priority NORMAL :hostname my.owndrive.com
http://my.owndrive.com :loglevel 0 :min-prime-bits 256 :trustfiles nil
:crlfiles nil :keylist nil :verify-flags nil :verify-error nil
:callbacks nil)
edebug-signal: GnuTLS error: #process my.owndrive.com
http://my.owndrive.com, -89

Testing this with gnutls on the command line confirms the problem:
% gnutls-cli -V -p 443 my.owndrive.com http://my.owndrive.com
...
- Status: The certificate is NOT trusted. The signature in the
certificate is invalid.
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.

Does anyone know if there is a way to tell org-caldav or url-dav to use
an untrusted certificate?



Hi Seb,

I think you need to handle it at the gnutls level. Have a look at 
http://blog.tremily.us/posts/X.509_certificates/


Particularly:

GnuTLS

In GnuTLS, you set the list of trusted CAs using 
gnutls_certificate_set_x509_trust_file. By convention this function is 
pointed to the /etc/ssl/certs/ca-certificates.crt file mentioned above


Ian.





Re: [O] org-caldav: problems connecting to owndrive

2014-05-07 Thread Ian Barton

On 07/05/14 14:43, Seb Frank wrote:


Testing this with gnutls on the command line confirms the problem:
% gnutls-cli -V -p 443 my.owndrive.com http://my.owndrive.com
...
- Status: The certificate is NOT trusted. The signature in the
certificate is invalid.
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.



Just tried this from here and it works OK:

- Status: The certificate is trusted.
- Description: (TLS1.2)-(ECDHE-RSA-SECP256R1)-(ARCFOUR-128)-(SHA1)
- Session ID: 
4C:60:0C:E8:9B:1A:9E:06:07:E6:76:08:74:B3:32:71:5F:9C:90:4F:BB:37:11:D3:B1:29:B4:E4:B5:6E:6C:9E

- Ephemeral EC Diffie-Hellman parameters
 - Using curve: SECP256R1
 - Curve size: 256 bits
- Version: TLS1.2
- Key Exchange: ECDHE-RSA
- Server Signature: RSA-SHA256
- Cipher: ARCFOUR-128
- MAC: SHA1
- Compression: NULL
- Channel binding 'tls-unique': 60fb61844dfc5bf9d2c35875
- Handshake was completed

- Simple Client Mode:

Maybe you need to update your certs list?

Ian.





Re: [O] How to generate an index?

2014-05-07 Thread Ken Mankoff
Hi Sharon,

 * Things not working properly
 - I can't find how to get the title, author and date on a page of
 their own. 
 - I can't find how to get references showing in the table of
 contents.
 - The index is working with the default of 2 columns, but I want the
 page numbers to all be aligned to the right. I haven't yet found how
 to do it.

 Can anyone help with any, or all, of the three problems I've just
 outlined please? Apart from those its working well :)

These are all LaTeX issues, not Org issues.

Have you tried searching on https://tex.stackexchange.com/ They are very
helpful there, and all of these questions are answered there.

https://tex.stackexchange.com/questions/29440/how-can-i-get-maketitle-to-create-a-separate-title-page-with-the-article-class
https://tex.stackexchange.com/questions/8458/making-the-bibliography-appear-in-the-table-of-contents

Etc.

I suggest you work outside of Org in pure LaTeX to solve these
issues. Then try to get everything working in Org. One step at a time.

  -k.



Re: [O] How to generate an index?

2014-05-07 Thread John Hendy
On Wed, May 7, 2014 at 9:31 AM, Sharon Kimble
boudic...@skimble.plus.com wrote:
 John Hendy jw.he...@gmail.com writes:

 On Tue, May 6, 2014 at 1:32 PM, Sharon Kimble
 boudic...@skimble.plus.com wrote:

[ snip ]

Looks like you're quite close!

 These four files gives the output of cat.pdf, attached.

 * Things not working properly
 - I can't find how to get the title, author and date on a page of
 their own.

Can you clarify? As in you want sort of a cover page instead of the
title/author/date being toward the top/middle of the page, immediately
followed by the TOC on the same page? Googling around, I found a
similar question from... myself!
- http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00172.html

The suggestion back then was to define your own class, so you'd need
to copy/modify Org's default article class so you get something like:

\maketitle
\newpage
\tableofcontents

 - I can't find how to get references showing in the table of
 contents.

Google is your friend; there's a bunch of suggestions:
- https://www.google.com/search?q=latex+add+references+to+table+of+contents

Try the StackExchange ones. You might have to replace your current
one-liner with a few other commands as well as loading packages with
some varied options, at least from skimming the top hit.

 - The index is working with the default of 2 columns, but I want the
 page numbers to all be aligned to the right. I haven't yet found how
 to do it.

Google, again:
- 
http://tex.stackexchange.com/questions/132465/right-aligning-pagenumbers-in-index-with-imakeindex


 Can anyone help with any, or all, of the three problems I've just
 outlined please? Apart from those its working well :)

 Sharon.

The common theme is Google - read - try stuff - Google - read -
try stuff - email Org-mode list :)

John



 --
 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.50.19




Re: [O] How to generate an index?

2014-05-07 Thread Nick Dokos
One more resource to add to those that Ken and John mentioned is the TeX
FAQ. Here e.g. is a section on the TOC/bib question:

   http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocbibind

Nick




Re: [O] problem with org-caldav and ox-icalendar: UID property wrapping

2014-05-07 Thread Nicolas Goaziou
Hello,

Eric S Fraga e.fr...@ucl.ac.uk writes:

 I have tracked this down to org-icalendar outputing wrapped lines even
 for UID entries:

 ,
 | BEGIN:VEVENT
 | DTSTAMP:20140507T114443Z
 | UID:0400[...]00
 |  00[...]6
 | DTSTART;TZID=Europe/London:20120403T06
 `

AFAIU RFC 5545, all lines longer than 75 octets, including UID lines,
are expected to be folded. Therefore I think ox-icalendar is right.

 Have the recent (in April) changes to ox-icalendar.el affected how IDs
 are written out?

I don't think so.

 Ideally, org-caldav should be fixed to unwrap ID lines.

Indeed.

 I can try to do this but I need some help with regexps, specifically
 to match across two lines: \n .

You don't have to. For unfolding you only need to turn \n  into .


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug??

2014-05-07 Thread Achim Gratz
Susan Cragin writes:
 Hi. I got error messages on my compiles relating to the documents,
 starting perhaps yesterday or the day before. 

If this really worked before, then the most likely culprit is that
you've changed your PATH in the last two days or so.

 make[1]: makeinfo: Command not found

You should re-arrange your PATH that makeinfo can be found again or you
need to change local.mk to like MAKEINFO=/full/path/to/makeinfo so that
it can be executed even if not found in path.


Regards
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] [RFC] Rewrite indentation functions

2014-05-07 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 Please go ahead, that's the easiest way to get more feedback and Eric
 did half the job already, so we must be good.

Applied.


Regards,

-- 
Nicolas Goaziou



Re: [O] [BUG] [babel] in :eval never with :session

2014-05-07 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes:

 
 Rainer M Krug Rainer at krugs.de writes:
 
  The error is back:
 
 
 You say back, was this error not present recently?  If so could you
 isolate the commit at which this error appeared?
 

The bug seems to be in the use of

(org-link-search heading) 

in org-babel-exp-in-export-file which is called in 
org-babel-exp-process-buffer. 

That search will find the first heading that is a match after 
(point-min). So it will mess up other header args, too.

It was there back in 8.0.7 and recent commits did not touch it AFAICS.

HTH,

Chuck

 Thanks,
 Eric
 
 
  When one header in a subtree which has the header argument
  :eval never
  has the same name as in a following subtree which should be evaluated on
  export, the second subtree is not exported. When the name of the header
  is changed, the subtree is exported as expected.
 
  --8---cut here---start-8---
  #+PROPERTY: exports both
  #+PROPERTY: session *tmp_R*
 
  * Some non-evaluated code
  :PROPERTIES:
  :eval:  never
  :END:
  ** This is the same header
  #+BEGIN_SRC R
  cat(\ntwo\n)
  #+END_SRC
 
  * Data Assessment Results
  ** This is the same header
  If the name of the header is changed, the subtree is evaluated on export.
  #+begin_src R
  cat(\nhere it is  at  at  at  at  at  at  at  at  at
 at  at  at  at  at  at  at  at  at  at  at  at 
at  at  at  at  at  at  at  at  at  at  at  at  at
 at  at  at  at  at  at \n)
  #+end_src
  --8---cut here---end---8---
   
  Org-mode version 8.2.6 (release_8.2.6-920-gc6d698  at 
/Users/rainerkrug/.emacs.d/org-mode/lisp/)
  GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit
1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local
 
  Cheers,
 
  Rainer
 







[O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?

2014-05-07 Thread Sebastien Vauban
Hello,

To insert a short title for a Beamer presentation, you can glean the
following answers on the Web:

- Using `#+BEAMER_HEADER_EXTRA' which -is- +was+ exported /after/ the
  `\title' command.

  See
  https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00177.html.

  That does not work anymore since Org 8...

- Using a filter to remove the exported title, and replace it with
  yours.

  See http://comments.gmane.org/gmane.emacs.orgmode/57450.

  That does not help when one wants to have portable documents -- that
  don't require a particular config to be recompiled correctly by
  another end-user.

- Using a very mean workaround (which I found):

  #+BIND: org-latex-title-command \\title[Short title]{Title maybevery 
long}\\maketitle

  That's semantically impure IMO, and could prove to be fragile over
  time.

Hence, a question: as we have/had both `#+BEAMER_HEADER' and
`#+BEAMER_HEADER_EXTRA', couldn't we have `#+BEAMER_HEADER_EXTRA'
inserted just before the \begin{document}, and let `#+BEAMER_HEADER'
inserted as now?

That would allow to override the title easily with a LaTeX command,
without being impure, doesn't it?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] using org-refile to sort research notes?

2014-05-07 Thread Alfaro-Murillo, Jorge
Hi Jay,

I keep all my notes out of the agenda, because it slows down building the 
agenda (at least with previous versions of org, it might have improved 
recently), which I do quite often.

Instead I keep all those notes files in the variable 
org-agenda-text-search-extra-files, so that I am able to search on them and add 
them as well to the org-refile-targets. If you keep all your notes in the 
directory ~/org/notes, then set:

 #+BEGIN_SRC emacs-lisp
   (setq org-agenda-text-search-extra-files (cddr
 (directory-files
  ~/org/notes
  t
  nil)))
   (setq org-refile-targets (list '(org-agenda-files
. (:maxlevel . 1))
  '(org-agenda-text-search-extra-files
. (:maxlevel . 1))
  '(nil
. (:maxlevel . 5
 #+END_SRC

Best,

Jorge.



Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Martin Schöön
On 7 May 2014 10:26, Ian Barton li...@wilkesley.net wrote:


 I am a very novice Latex user, so forgive me for asking but do you have
 the KOMA package installed?

 Ian.

 Good point, it should be, I have used it outside org-mode but things
happen so I just tested and, yes it is
there and works just fine.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Martin Schöön
On 7 May 2014 09:38, Eric S Fraga e.fr...@ucl.ac.uk wrote:


 What is the value of org-latex-classes?  check this with C-h v when in
 the org buffer.  If komaarticle is not one of the entries, your emacs
 initialisation was incorrectly implemented.  Note that you probably want
 to have that customisation after loading org and ox-latex in particular.

 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a


It looks like I don't have an org-latex-classes variable. C-h v
org-latex-classes results
in the message [No match].

Looking into the Warnings buffer of emacs I find:
Warning (initialization): An error occurred while loading
`/home/martin/.emacs':
Symbol's value as variable is void: org-latex-classes

Running emacs --debug-init does not yield any further information.

Kind of puzzling I think since LaTeX works rather well as long as I stay
away from KOMA.

My emacs installation is what comes with Debian stable: 23.4.1
My org-mode version is 8.2.5h.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


[O] Virtualenv and HTML5 Help

2014-05-07 Thread Thomas Marek
Hi, I just have a few questions that I couldn't figure out from the FAQ's and 
manual.
Virtualenv:
I'm trying to execute a python script within a SRC block using a virtual 
environment instead of my system's python implementation. I have a number of 
libraries in this virtual environment that I don't have on my system's python 
(e.g. Matplotlib). Now, I set [ python-shell-virtualenv-path ] to my 
virtualenv's root directory. When I run [ M-x run-python ] the shell runs from 
my virtual environment. That is, I can import Matplotlib with no problems. But 
when I import Matplotlib within a SRC block I get an import error. 
How can I have it so the SRC block uses the python in my virtual environment 
and not my system's python?
Is there any way I can set the path to a given virtual environment 
automatically when I load an org file?

HTML5 Export:
I'm trying to export my org-files in 'html5', as opposed to the default 
'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I tried 
searching for [ org-html-html5-fancy ] in [ M-x org-customize ] but I couldn't 
find it. I tried adding [ (setq org-html-html5-fancy t) ] to my init.el, but 
nothing happened. I'm not at all proficient in emacs-lisp so my syntax may be 
wrong. The manual also says I can set [ html5-fancy ] in an options line. I'm 
not really sure how to do this. I tried [ #+OPTIONS html5-fancy: t ] but it 
didn't do anything.
How can I export to 'html5' instead of 'xhtml-strict' in org version 7.9.3f and 
Emacs version 24.3.1?
Is there any way I can view and customize the back-end that parses the org file 
to produce the html?

I appreciate any help you can offer.
- M   

Re: [O] Virtualenv and HTML5 Help

2014-05-07 Thread Scott Randby
On 05/07/2014 04:17 PM, Thomas Marek wrote:
 
 *HTML5 Export:*
 *
 *
 I'm trying to export my org-files in 'html5', as opposed to the default
 'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I
 tried searching for [ org-html-html5-fancy ] in [ M-x org-customize ]
 but I couldn't find it. I tried adding [ (setq org-html-html5-fancy t) ]
 to my init.el, but nothing happened. I'm not at all proficient in
 emacs-lisp so my syntax may be wrong. The manual also says I can set [
 html5-fancy ] in an options line. I'm not really sure how to do this. I
 tried [ #+OPTIONS html5-fancy: t ] but it didn't do anything.
 
  1. How can I export to 'html5' instead of 'xhtml-strict' in org version
 7.9.3f and Emacs version 24.3.1?
  2. Is there any way I can view and customize the back-end that parses
 the org file to produce the html?
 

I believe you need to upgrade your org to version 8 for (setq
org-html-html5-fancy t) to work.

Scott Randby

 
 I appreciate any help you can offer.
 
 - M



Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Nick Dokos
Martin Schöön martin.sch...@gmail.com writes:

 On 7 May 2014 09:38, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Note that you probably want
 to have that customisation *after* loading org and ox-latex in particular.


 ^^^
 
I've taken the liberty to add some emphasis to Eric's comment: I think
you are trying to set the variable before loading the file where it is
defined.

 

 It looks like I don't have an org-latex-classes variable. C-h v 
 org-latex-classes results
 in the message [No match].

 Looking into the Warnings buffer of emacs I find:
 Warning (initialization): An error occurred while loading 
 `/home/martin/.emacs':
 Symbol's value as variable is void: org-latex-classes

 Running emacs --debug-init does not yield any further information.

 Kind of puzzling I think since LaTeX works rather well as long as I stay away 
 from KOMA.


Nick




Re: [O] problem with org-caldav and ox-icalendar: UID property wrapping

2014-05-07 Thread David Engster
Nicolas Goaziou writes:
 Hello,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 I have tracked this down to org-icalendar outputing wrapped lines even
 for UID entries:

 ,
 | BEGIN:VEVENT
 | DTSTAMP:20140507T114443Z
 | UID:0400[...]00
 |  00[...]6
 | DTSTART;TZID=Europe/London:20120403T06
 `

 AFAIU RFC 5545, all lines longer than 75 octets, including UID lines,
 are expected to be folded. Therefore I think ox-icalendar is right.

Yes, it is.

I've already rewritten that part in org-caldav, but it needs more
testing. I'll push a fix in the coming days.

-David



Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Martin Schöön
On 7 May 2014 22:44, Nick Dokos ndo...@gmail.com wrote:

 Martin Schöön martin.sch...@gmail.com writes:

  On 7 May 2014 09:38, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 
  Note that you probably want
  to have that customisation *after* loading org and ox-latex in
 particular.
 

  ^^^

 I've taken the liberty to add some emphasis to Eric's comment: I think
 you are trying to set the variable before loading the file where it is
 defined.


It is the second to last part of my .emacs file (not counting
custom-set-variables).
The LaTeX call sits just before the KOMA stuff. No ox-latex to be found, I
haven't
needed it so far. Is that maybe...

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Martin Schöön
Quick up-date before bed-time: I commented out the (add-to-list
'org-latex-classes stuff
and restarted emacs: No rerror message and still no org-latex-classes
variable found
when trying out C-h v org-latex-classes.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?

2014-05-07 Thread Suvayu Ali
Hi Seb,

On Wed, May 07, 2014 at 09:01:39PM +0200, Sebastien Vauban wrote:
 Hello,
 
 To insert a short title for a Beamer presentation, you can glean the
 following answers on the Web:
 
 - Using `#+BEAMER_HEADER_EXTRA' which -is- +was+ exported /after/ the
   `\title' command.

I use this:

  #+LATEX_HEADER: \subtitle{Some subtitle}

I can confirm this worked with some version of 8.x, however I have not
used it recently.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Using KOMA and Memoir?

2014-05-07 Thread Suvayu Ali
On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote:
 Quick up-date before bed-time: I commented out the (add-to-list
 'org-latex-classes stuff
 and restarted emacs: No rerror message and still no org-latex-classes
 variable found
 when trying out C-h v org-latex-classes.

I have a feeling you are a victim of the infamous mixed install issue.

http://orgmode.org/worg/org-faq.html#mixed-install

-- 
Suvayu

Open source is the future. It sets us free.



[O] can I disable LaTeX fragment previews individually?

2014-05-07 Thread Stephen J . Barr
Hello,

I often use org-preview-latex-fragment and sometimes I would like to
turn the previews on and off on a case-by-case basis. Then I do C-c C-c,
it turns off all the previews. Is there a way to toggle the preview just
for the fragment at the point?


Thanks!,
Stephen
-- 
Sent with my mu4e




Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?

2014-05-07 Thread Nick Dokos
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Hi Seb,

 On Wed, May 07, 2014 at 09:01:39PM +0200, Sebastien Vauban wrote:
 Hello,
 
 To insert a short title for a Beamer presentation, you can glean the
 following answers on the Web:
 
 - Using `#+BEAMER_HEADER_EXTRA' which -is- +was+ exported /after/ the
   `\title' command.

 I use this:

   #+LATEX_HEADER: \subtitle{Some subtitle}

 I can confirm this worked with some version of 8.x, however I have not
 used it recently.


Are you sure it worked with beamer? AFAICT, it just adds a subtitle
to the title slide, nothing more. In particular, beamer does not seem
to use it for the purpose that Seb wants it: a (limited-length) marker
on each slide.

Tested with this:

--8---cut here---start-8---
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: Madrid
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC

#+TITLE: A very long title that will overflow the box that beamer allocates for 
it on each slide
#+LATEX_HEADER: \subtitle{A shorter title}

* Slide 1

*** Item 1

*** Item 2

* Slide 2

*** Item 3

*** Item 4
--8---cut here---end---8---

Nick





Re: [O] exporting α/β to latex/pdf

2014-05-07 Thread Clément B.

But that's not quite right: you end up with a circular definition (and
both pdflatex and plain latex think so: they infloop).

One way to fix it using a math alpha:

--8---cut here---start-8---
#+LATEX_HEADER: \DeclareUnicodeCharacter{03b1}{\(\alpha\)}
--8---cut here---end---8---



Oh my ! You are right of course. Sorry if I misled anybody.


Clément





Re: [O] can I disable LaTeX fragment previews individually?

2014-05-07 Thread Nick Dokos
Stephen J. Barr stev...@uw.edu writes:

 Hello,

 I often use org-preview-latex-fragment and sometimes I would like to
 turn the previews on and off on a case-by-case basis. Then I do C-c C-c,
 it turns off all the previews. Is there a way to toggle the preview just
 for the fragment at the point?



No built-in way afaict: C-c C-c calls the following function

,
| (defun org-remove-latex-fragment-image-overlays ()
|   Remove all overlays with LaTeX fragment images in current buffer.
|   (mapc 'delete-overlay org-latex-fragment-image-overlays)
|   (setq org-latex-fragment-image-overlays nil))
`

which maps delete-overlay over *all* the elements of the
org-latex-fragment-image-overlays list.

Figuring our which overlay in that list is the one you want to delete
may or may not be easy, but if you knew then you can call
delete-overlay on it. But you'll have to write some lisp.

Nick








[O] bug#17416: bug#17416: insecure temp files in ob-screen.el

2014-05-07 Thread Eric Schulte
Glenn Morris r...@gnu.org writes:

 Package: emacs,org-mode
 Version: 24.3.90
 Severity: important
 Tags: security

 org-babel-screen-session-write-temp-file and org-babel-screen-test seem
 to use predictable temp-file names, which is a security issue. Using
 `make-temp-file', or if the file names really need to be predictable,
 something equivalent to `doc-view-make-safe-dir' (there should really be
 a general utility function for this IMO) to first create a /tmp
 subdirectory would avoid this.


I just pushed up a fix for this issue.  Thanks,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D





Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?

2014-05-07 Thread Suvayu Ali
Hi Nick,

On Wed, May 07, 2014 at 07:26:26PM -0400, Nick Dokos wrote:
 Suvayu Ali fatkasuvayu+li...@gmail.com writes:
 
  Hi Seb,
 
  On Wed, May 07, 2014 at 09:01:39PM +0200, Sebastien Vauban wrote:
  Hello,
  
  To insert a short title for a Beamer presentation, you can glean the
  following answers on the Web:
  
  - Using `#+BEAMER_HEADER_EXTRA' which -is- +was+ exported /after/ the
`\title' command.
 
  I use this:
 
#+LATEX_HEADER: \subtitle{Some subtitle}
 
  I can confirm this worked with some version of 8.x, however I have not
  used it recently.
 
 
 Are you sure it worked with beamer? AFAICT, it just adds a subtitle
 to the title slide, nothing more. In particular, beamer does not seem
 to use it for the purpose that Seb wants it: a (limited-length) marker
 on each slide.

You are right.  I misunderstood Seb's question.  :-p

I think I looked into this sometime back and I don't think there was a
nice resolution (as evidenced by Seb's links).  That said, I vaguely
recall a discussion on this 1 and half to 2 years back (that would be
the old exporter of course).  I think supporting this as a feature was
bypassed since this is very much LaTeX specific.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Virtualenv and HTML5 Help

2014-05-07 Thread Eric Abrahamsen
Scott Randby sran...@gmail.com writes:

 On 05/07/2014 04:17 PM, Thomas Marek wrote:
 
 *HTML5 Export:*
 *
 *
 I'm trying to export my org-files in 'html5', as opposed to the default
 'xhtml-strict'. The manual says to set [ org-html-html5-fancy ] to t. I
 tried searching for [ org-html-html5-fancy ] in [ M-x org-customize ]
 but I couldn't find it. I tried adding [ (setq org-html-html5-fancy t) ]
 to my init.el, but nothing happened. I'm not at all proficient in
 emacs-lisp so my syntax may be wrong. The manual also says I can set [
 html5-fancy ] in an options line. I'm not really sure how to do this. I
 tried [ #+OPTIONS html5-fancy: t ] but it didn't do anything.
 
  1. How can I export to 'html5' instead of 'xhtml-strict' in org version
 7.9.3f and Emacs version 24.3.1?
  2. Is there any way I can view and customize the back-end that parses
 the org file to produce the html?
 

 I believe you need to upgrade your org to version 8 for (setq
 org-html-html5-fancy t) to work.

Also, the variable that really controls this is 'org-html-doctype, which
you set to html5. 'org-html-html5-fancy just controls whether or not,
when you're exporting to html5, Org will try to use some of the new
element types from the html5 spec.

Eric




Re: [O] can I disable LaTeX fragment previews individually?

2014-05-07 Thread Stephen J . Barr
Thank you for letting me know. This may be a fun project!

Nick Dokos ndo...@gmail.com writes:

 Stephen J. Barr stev...@uw.edu writes:

 Hello,

 I often use org-preview-latex-fragment and sometimes I would like to
 turn the previews on and off on a case-by-case basis. Then I do C-c C-c,
 it turns off all the previews. Is there a way to toggle the preview just
 for the fragment at the point?



 No built-in way afaict: C-c C-c calls the following function

 ,
 | (defun org-remove-latex-fragment-image-overlays ()
 |   Remove all overlays with LaTeX fragment images in current buffer.
 |   (mapc 'delete-overlay org-latex-fragment-image-overlays)
 |   (setq org-latex-fragment-image-overlays nil))
 `

 which maps delete-overlay over *all* the elements of the
 org-latex-fragment-image-overlays list.

 Figuring our which overlay in that list is the one you want to delete
 may or may not be easy, but if you knew then you can call
 delete-overlay on it. But you'll have to write some lisp.

 Nick

-- 
Sent with my mu4e




Re: [O] [babel][PATCHES] ob-R patches for review

2014-05-07 Thread Eric Schulte
Rainer M Krug rai...@krugs.de writes:

 Hi

 Attached please find seven patches for review to implement the storing
 of org variables in their own environment and to make the org-issued R
 code look nicer in the R session.

 Thanks,

 Rainer

Hi Rainer,

Thanks for these patches.  I don't have the R experience to review or
maintain them, but I'm happy to apply them.

I missed some previous discussion in this thread.  Are these patches
ready to be applied as is?

Thanks,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] [babel][PATCHES] ob-R patches for review

2014-05-07 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes:

 
 Rainer M Krug Rainer at krugs.de writes:
 
  Hi
 
  Attached please find seven patches for review to implement the storing
  of org variables in their own environment and to make the org-issued R
  code look nicer in the R session.
 
  Thanks,
 
  Rainer
 
 Hi Rainer,
 
 Thanks for these patches.  I don't have the R experience to review or
 maintain them, but I'm happy to apply them.
 
 I missed some previous discussion in this thread.  Are these patches
 ready to be applied as is?



IMO, the patches hard coded behaviors that would better be customizable
and optional. 

Rainer and I had some back and forth about this -- see the thread.

Best,

Chuck





[O] Adding export option for babel language

2014-05-07 Thread Ken Mankoff

I'd like to add support for PythonTeX to Org Babel 
https://github.com/gpoore/pythontex

The motivation is that PythonTeX is a better literate environment than
just Org + Babel, because it can print results inline just like an
interactive Python session, instead of all the code followed by all the
results. 

This is just a modification to the existing LaTeX export for python, it
is not support for a new language. I'm new to Org development and seek
advice how to begin approaching the solution.

I'd like the python code blocks to behave just as they do now, but if I
have set (setq org-latex-listings 'pythontex) instead of (setq
org-latex-listings 'minted), then instead of wrapping python code blocks
with:

\begin{minted}[]{python}
x+2
print x
\end{minted}

It should wrap them with

\begin{pyconsole}
x+2
print x
\end{pyconsole}

I found out that the minted export is handled in ox-latex.el, and I
assume I could get pythontex support by going through that file and
tearing it down and building it back up with pythontex in place of
minted, but I also noticed this:

   ;; Case 2.  Custom environment.
   (custom-env (format \\begin{%s}\n%s\\end{%s}\n
   custom-env
   (org-export-format-code-default src-block info)
   custom-env))

Can I take advantage of this code? It seems like this might be the
support for Special Blocks
http://orgmode.org/worg/org-contrib/org-special-blocks.html But that
page says that the code is obsolete. And a special block won't be
treated as a python org babel block in the Org file, which is important.

Any advice where I should start digging to add pythontex support will be
much appreciated.

Thanks,

  -k.




[O] Org + Elpy Python + IPython

2014-05-07 Thread Ken Mankoff

FYI Org + Elpy + IPython all play nicely now.

There have been some previous posts about people (me included) having
trouble using the full IPython stack in Org Mode. Some of those problems
were limited to when using sessions, and others only if trying to take
full advantage of the nice Python support provided by Elpy (enabled via
the (elpy-use-ipython) command).

I think the primary issue was Org text analysis on the  prompt which
in IPython becomes In [n]:. This is solved with the --classic flag
to ipython.

With this setup:

(setq org-babel-python-command ipython --pylab=qt4 --pdb --nosep --classic 
--no-banner --no-confirm-exit)

I now have Org, Python, IPython, and Elpy (including (elpy-use-ipython))
all running together in session and non-session mode.

  -k.



Re: [O] Color entries according to assigned priority

2014-05-07 Thread Uwe Ziegenhagen
Alexander Baier lexi.baier at gmail.com writes:

 
 On 2014-05-03 22:07 Uwe Ziegenhagen wrote:
  I copied and pasted the given code, however I do not see any change. I'll
  try my luck again tomorrow and will get back to you.
 
 Just to be sure, did you eval the pasted code? And restarting org-mode
 (M-x fundamental-mode M-x org-mode) could be necessary, too?
 
 HTH,


Yes, I did. I just ran some tests. Using only

;; Do not show welcome screen at startup
(setq inhibit-startup-message t)

;; just answer Emacs' question with 'y' or 'n' instead of 'yes'or 'no'
(defalias 'yes-or-no-p 'y-or-n-p)

;; Load org mode
(add-to-list 'load-path G:/Programme/emacs-24.3/myLisp/org-8.2.4/lisp)

in my .emacs I get

http://uweziegenhagen.de/gmane/gmane1.png

If I use the code from the posting 


;; Do not show welcome screen at startup
(setq inhibit-startup-message t)

;; just answer Emacs' question with 'y' or 'n' instead of 'yes'or 'no'
(defalias 'yes-or-no-p 'y-or-n-p)

;; Load org mode
(add-to-list 'load-path G:/Programme/emacs-24.3/myLisp/org-8.2.4/lisp)

(font-lock-add-keywords 'org-mode
  '((^.*:write:.*$ . font-lock-keyword-face)))

(setq org-agenda-face-for-tagged-lines
   '((write . bold)))

(defun org-agenda-fontify-tagged-line ()
  Use `org-agenda-face-for-tagged-lines' to fontify lines with certain tags.
  (goto-char (point-min))
  (let (tags)
(while (progn (forward-line 1) (not (eobp)))
  (if (setq tags (get-text-property (point) 'tags))
  (mapcar
   (lambda (pair)
 (if (member (car pair) tags)
 (add-text-properties (point-at-bol) (point-at-eol)
`(face,(cdr pair)
   org-agenda-face-for-tagged-lines)

(add-hook 'org-agenda-finalize-hook 'org-agenda-fontify-tagged-line)
#

I get http://uweziegenhagen.de/gmane/gmane2.png

which is the same.

Uwe