Re: [O] [BUG] worg table of contents

2013-05-16 Thread Bastien
Hi Rick,

Rick Frankel r...@rickster.com writes:

 The following javascript snippet will add a function to show
 the toc when it is clicked, but I'm not sure where to put it (at the
 bottom of preamble.html?)

I'd say it's a good place, yes.

Beware that the new preamble.html will only appear in pages that have
been republished.   I can republish all Worg pages if needed.

-- 
 Bastien



Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Bastien
Samuel Wales samolog...@gmail.com writes:

 |-+--++--|
 | command | context  | pos| action   |
 |-+--++--|
 | c-ret   | any  | any| create headline above ENTRY  |
 | m-ret   | headline or item | beg| create new above header/item |
 | m-ret   | headline or item | middle | split|
 | m-ret   | headline or item | end| create new below header/item |
 | m-ret   | line | beg| create headline above LINE   |
 | m-ret twice | line | beg| create item above line   |
 | m-ret   | line | middle | turn line into a headline|
 | m-ret twice | line | middle | turn line into an item   |
 | m-ret   | line | end| create headline below line   |
 | m-ret twice | line | end| create item below line   |
 |-+--++--|

Thanks a lot Samuel for writing this.

Just a quick note to tell you that this discussion *is* important,
and well read, as we plan to rewrite those functions.  Presenting
features wrt contexts so clearly is great -- thanks for doing this.

-- 
 Bastien



Re: [O] Limit on length of babel block #+name: value?

2013-05-16 Thread Christian Moe

Hi,

I cannot reproduce this on 8.0.2, at least not with the info
provided. E.g., the following works fine:

#+name: improvement-treatment
#+begin_src R :results graphics :file test.png
  x - 1:10
  y - x^2
  plot(x, y)  
#+end_src

#+RESULTS: improvement-treatment
[[file:test.png]]

So does any variation with an arbitrarily long string as NAME.

Yours,
Christian

John Hendy writes:

 I was just completely baffled for about 5-10 straight minutes as to
 why my block was not producing a  results section with my generated
 graphics file from an R block.

 I kept double checking my header options one by one despite having
 simply copied/pasted/modified it from a previous working block. Turns
 out it appears that #+name has a character limit!

 This (on Org-mode version 8.0.2 (release_8.0.2-65-g1e32d7)), doesn't work:

 #+name: improvement-treatment

 It appears the name can be 20 characters long (the above is 21).

 Is this by design or something I accidentally uncovered? Forgive me if
 it's come up before or is documented. I did a couple searches but
 didn't see it.


 Thanks,
 John




Re: [O] Figure not exporting properly in Beamer

2013-05-16 Thread Sebastien Vauban
Hi Angel,

Angel de Vicente wrote:
 I'm using Org 7.8.03 and I have a test file to create a Beamer
 presentation. At some point I have:

 ** Images

 #+CAPTION: Sample AMR
 #+label:   fig:amr-sample
 [[file:amr.png]]

Dunno if it will fix all of your problem, but you should use

  #+name: fig:amr-sample

 and a few weeks ago, after processing this I got in the tex file:

 -
 \frametitle{Images}
 \label{sec-1-3}


 \begin{figure}[htb]
 \centering
 \includegraphics[width=.9\linewidth]{amr.png}
 \caption{\label{fig:amr-sample}Sample AMR}
 \end{figure}
 \end{frame}
 -

 Today I tried again, but instead I get:

 --
 \frametitle{Images}
 \label{sec-1-3}


 \href{t}{file:amr.png}
 \end{frame}
 --

 I probably forgot something that I did last time, but I cannot see
 it. Any hints?

 Thanks,

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Daniel Bausch
Hi!

 I still think it's pretty important to have an option for creating a new
 headline *below* all the contents of the current subtree -- what C-RET
 used to do.

I like to second, that there needs to be a short key binding to insert a
new headline below the current entry when the context is in the middle.
 (Could be C-M-RET or at least C-u C-RET, although I'm very used to type
C-RET for doing that.).

Regards,
Daniel Bausch



Re: [O] Manual fix - Table name

2013-05-16 Thread Sebastien Vauban
Hi Benny,

Benny Simonsen wrote:
 In the manual, http://orgmode.org/manual/References.html
 It seems as there is an error in the Remote references section:
 #+NAME should be replaced by #+TBLNAME

 En example could be included, e.g.:
 #+tblNAME:TB_NAME
 | Test |
 |--|
 |  100 |
 |  25% |
 |--|


 #+tblNAME:TBNAME_2
 | Value |
 |---|
 |   25. |
 |---|
 #+TBLFM: @I$1=remote(TB_NAME, @I$1)*remote(TB_NAME, @3$1)

Normally not, no: when naming a table, #+name: should replace #+tblname:,
which only still exists for backwards compatibility.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-mime

2013-05-16 Thread Joseph Vidal-Rosset
I thank you Eric and Uwe for your help. Many thanks also to all the
developers of emacs and org-mode.

In fact I just spent two days in configuring my emacs24 and gnus. (Eric, I
did not understand how worked your emacs24-starter-kit , which is a nice
tool indeed).

The last problem that I meet on my laptop is  an error message :
smtp-server not defined , and , until now, I do not find how to fix it :(
(if someone has a suggestion, thanks in advance).

My goal is to succeed to stay in emacs, for LaTeX as well as for emails,
but I have to work again. Every help on LaTeX and emails via org-mode will
be welcome.


Best,

Jo.



2013/5/15 Eric Schulte schulte.e...@gmail.com

 Uwe Brauer o...@mat.ucm.es writes:

  Eric == Eric Schulte schulte.e...@gmail.com writes:
 
  Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:
 
  -
 
  A while back Org-mode switched its method of exporting latex
 equations
  to HTML.  Equations used to be exported as png images, however they
 are
  now exported as markup which may then be processed on the fly by
  client-side javascript.  Most mail readers do not allow javascript
 in
  html email, and I doubt that the required javascript headers are
  included in the mail html mime part.
 
  I don't know if it is currently possible to do the javascript
  pre-processing as part of the HTML export, but that would probably
 be
  the best solution in this case.
 
  Couldn't the old functionality (converting to png) be reactivated, at
  least optionally?? For me this change are bad news, since the feature
  (to export LaTeX math to something visible) is very important to me and
  even if this approach may have disadvantages, it seems to me more
  universal than the  javascript business.
 

 Indeed the old latex-png functionality is still available, I just had
 to update org-mime to work with the new exporter.  Export of latex to
 attached png images should once again be working in the master branch of
 the git repo.

 Best,

 
 
  Uwe Brauer
 
 

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte




Re: [O] confused about Beamer export

2013-05-16 Thread Eric S Fraga
Julian M. Burgos jul...@hafro.is writes:

 Dear list, 

 I am a bit confused about what I have to use the new Beamer
 exporter.  I have customized the org-export-backends variable to include
 the Beamer exporter, and now it shows as an option when I do C-c C-e.  I
 have also created a toy org file:

Your toy.org file works just fine for me, so long as I add the line

#+options: h:2

so that second level headlines are used to define frames.

Can you provide a debug trace for your error?
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0.2-103-gb3a88b




Re: [O] confused about Beamer export

2013-05-16 Thread Julian Burgos
Thanks Eric, but I solved the issue already.  I had some errors in my
.emacs file (a mixture of settings for the old and new exporter).

 Julian M. Burgos jul...@hafro.is writes:

 Dear list,

 I am a bit confused about what I have to use the new Beamer
 exporter.  I have customized the org-export-backends variable to include
 the Beamer exporter, and now it shows as an option when I do C-c C-e.  I
 have also created a toy org file:

 Your toy.org file works just fine for me, so long as I add the line

 #+options: h:2

 so that second level headlines are used to define frames.

 Can you provide a debug trace for your error?
 --
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_8.0.2-103-gb3a88b







Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Detlef Steuer
On Thu, 16 May 2013 09:22:30 +0200
Daniel Bausch danielbau...@gmx.de wrote:

 Hi!
 
  I still think it's pretty important to have an option for creating a new
  headline *below* all the contents of the current subtree -- what C-RET
  used to do.
 
 I like to second, that there needs to be a short key binding to insert a
 new headline below the current entry when the context is in the middle.
  (Could be C-M-RET or at least C-u C-RET, although I'm very used to type
 C-RET for doing that.).

+1

Regards
Detlef


 
 Regards,
 Daniel Bausch
 
 





Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Miro Bezjak
Once this gets implemented I'd really like to see the same table in org
manual. It's a really good summary.

Regards,
Miro


On Thu, May 16, 2013 at 8:21 AM, Bastien b...@gnu.org wrote:

 Samuel Wales samolog...@gmail.com writes:

 
 |-+--++--|
  | command | context  | pos| action
 |
 
 |-+--++--|
  | c-ret   | any  | any| create headline above ENTRY
  |
  | m-ret   | headline or item | beg| create new above header/item
 |
  | m-ret   | headline or item | middle | split
  |
  | m-ret   | headline or item | end| create new below header/item
 |
  | m-ret   | line | beg| create headline above LINE
 |
  | m-ret twice | line | beg| create item above line
 |
  | m-ret   | line | middle | turn line into a headline
  |
  | m-ret twice | line | middle | turn line into an item
 |
  | m-ret   | line | end| create headline below line
 |
  | m-ret twice | line | end| create item below line
 |
 
 |-+--++--|

 Thanks a lot Samuel for writing this.

 Just a quick note to tell you that this discussion *is* important,
 and well read, as we plan to rewrite those functions.  Presenting
 features wrt contexts so clearly is great -- thanks for doing this.

 --
  Bastien




[O] S-up on a timestamp takes ~3 seconds to update

2013-05-16 Thread Sebastien Vauban
Hello,

On a brand new laptop (Asus i7 with 4 GB RAM), it takes around 3 seconds to
update the timestamp, with shifting-up or down on the date.

See on http://screencast.com/t/QMzl5dXKfJNN, with profiler-report displayed.

I have the impression that aspell and flyspell (installed last week) could be
the culprit, but AFAIU the report, it seems not.

Any idea on how to find the real culprit?  I guess you find such a delay as
abnormal on such a brand new machine, right?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-mime

2013-05-16 Thread Feng Shu
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 I thank you Eric and Uwe for your help. Many thanks also to all the
 developers of emacs and org-mode. 

 In fact I just spent two days in configuring my emacs24 and gnus.
 (Eric, I did not understand how worked your emacs24-starter-kit ,
 which is a nice tool indeed). 

 The last problem that I meet on my laptop is an error message :
 smtp-server not defined , and , until now, I do not find how to fix it
 :(
 (if someone has a suggestion, thanks in advance). 

 My goal is to succeed to stay in emacs, for LaTeX as well as for
 emails, but I have to work again. Every help on LaTeX and emails via
 org-mode will be welcome. 

Your setting may be  same as  my emacs configure ,I use 
1. gnus + offlineimap + dovecot + gmail + org-contacts.el
2. org-mode + xelatex 

May be my configure can help you 

#+begin_src emacs-lisp
;;; eh-org.el --- Tumashu's org-mode configuation 

;; Copyright (c) 2012, Feng Shu

;; Author: Feng Shu tuma...@gmail.com
;; URL: https://github.com/tumashu/tumashu.github.com
;; Version: 0.0.2
;; Package-Requires: ((org 7.8.00))
;; This file is not part of GNU Emacs.

;;; Commentary:

;;  这个文件是tumashu个人专用的emacs配置文件,emacs中文用户可以参考。

;;; License:

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License
;; as published by the Free Software Foundation; either version 3
;; of the License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Code:

(require 'org)
(require 'ox-ascii)
(require 'ox-latex)
(require 'ox-beamer)
(require 'ox-html)
(require 'ox-deck)
(require 'ox-s5)
(require 'ox-rss)
(require 'ox-md)
(require 'ox-odt)
(require 'org-contacts)
(require 'org-mime)
(require 'org-bookmark)
(require 'org-protocol)
(require 'ob-R)

(setq org-export-backends
  '(ascii beamer html latex md odt deck rss s5))

(add-to-list 'auto-mode-alist '(\.\(org\|org_archive\)$ . org-mode))   
(setq org-log-done t)   
(setq org-startup-indented nil)
(setq org-confirm-babel-evaluate nil)

;; org-bable设置
; font-lock in src code blocks
(setq org-src-fontify-natively t)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (ditaa . t)
   (dot . t)
   (emacs-lisp . t)
   (gnuplot . t)
   (haskell . nil)
   (mscgen . t)
   (latex . t) 
   (ocaml . nil)
   (perl . t)
   (python . t)
   (ruby . nil)
   (screen . nil)
   (sh . t)
   (sql . nil)
   (sqlite . nil)))

;; org-babel hook
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)

;; use Cairo graphics device by default,which can get better graphics quality.
;; you shoule add require(Cairo) to you ~/.Rprofile
(setq org-babel-R-graphics-devices
  '((:bmp bmp filename)
(:jpg jpeg filename)
(:jpeg jpeg filename)
(:tikz tikz file)
(:tiff tiff filename)
(:png CairoPNG filename)
(:svg CairoSVG file)
(:pdf CairoPDF file)
(:ps CairoPS file)
(:postscript postscript file)))

;;export
(setq org-default-language zh-CN)

;; html
(setq org-html-coding-system 'utf-8)
(setq org-html-head-include-default-style nil)
(setq org-html-head-include-scripts nil)

;; latex
(setq org-latex-coding-system 'utf-8)
(setq org-latex-date-format %Y-%m-%d)
(setq org-export-with-LaTeX-fragments 'imagemagick)
(setq org-latex-create-formula-image-program 'imagemagick)
(setq org-latex-pdf-process '(xelatex -interaction nonstopmode 
-output-directory %o %f 
 xelatex -interaction nonstopmode 
-output-directory %o %f 
 xelatex -interaction nonstopmode 
-output-directory %o %f))


(add-to-list 'org-latex-classes
 '(ctexart
   \\documentclass{ctexart}
   (\\section{%s} . \\section*{%s})
   (\\subsection{%s} . \\subsection*{%s})
   (\\subsubsection{%s} . \\subsubsection*{%s})
   (\\paragraph{%s} . \\paragraph*{%s})
   (\\subparagraph{%s} . \\subparagraph*{%s})))
(add-to-list 'org-latex-classes
 '(ctexrep
   \\documentclass{ctexrep}
   (\\part{%s} . \\part*{%s})
   (\\chapter{%s} . \\chapter*{%s})
   (\\section{%s} . \\section*{%s})
   (\\subsection{%s} . \\subsection*{%s})
   (\\subsubsection{%s} . \\subsubsection*{%s})))
(add-to-list 'org-latex-classes
 '(ctexbook
   \\documentclass{ctexbook}
   (\\part{%s} . \\part*{%s})
   (\\chapter{%s} . \\chapter*{%s})
  

Re: [O] Figure not exporting properly in Beamer

2013-05-16 Thread Angel de Vicente
Hi,

Sebastien Vauban sva-n...@mygooglest.com
writes:

 Angel de Vicente wrote:
 I'm using Org 7.8.03 and I have a test file to create a Beamer
 presentation. At some point I have:

 ** Images

 #+CAPTION: Sample AMR
 #+label:   fig:amr-sample
 [[file:amr.png]]

 Dunno if it will fix all of your problem, but you should use

   #+name: fig:amr-sample

Well I use #+label and I see no problem, but that didn't solve the
issue. Looking in the org code, if I comment the line checking for the
inline-images plist, then all is in order, and it gets exported as a figure.

   (cond ((and imgp)
;  (plist-get org-export-latex-options-plist :inline-images))
  ;; OK, we need to inline an image
  (insert
   (org-export-latex-format-image raw-path caption label attr 
shortn)))

The funny thing is that I don't think I ever changed the
org-export-latex-options-plist, at least not intentionally, as I
wouldn't now how to do it from inside the .org file and previously I
got the figure properly exported.

In any case, can anybody tell me how I set the inline-images property in
the .org file, so I can uncomment that line in org-latex.el

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Eric Abrahamsen
Samuel Wales samolog...@gmail.com writes:

 Hi Eric,

 On 5/15/13, Eric Abrahamsen e...@ericabrahamsen.net wrote:
 I still think it's pretty important to have an option for creating a new
 headline *below* all the contents of the current subtree -- what C-RET
 used to do.

 This might be a good thing to make a user preference.

 Also, the above provides a whole lot of options for creating a new
 headline/item above the current line -- is that really such a common
 thing to do?

 It is for me.

 And the variable `org-M-RET-may-split-line' is still not taken into
 account...

 I don't see why it shouldn't be taken into account.

You're right, I guess I just meant it wasn't explicit in your table.

I like the use of double M-RETs, I think that can be useful.

I still think C-RET should create a new heading at the end of the
subtree. A user setting to that effect is fine with me. I'd be happy
if C-RET at the beginning of a heading created a new headline above, but
in the middle or at the end I think it should still jump down and make a
new headline below all content.

Just to register my usage, as a single data point: I make heavy use of
both M-RET to create headings below point (very often to split a single
run of paragraphs into two subtrees), and C-RET to make headings below
subtree text. Very occasionally I use C-u C-u M-RET to make a bottom
sibling. Very occasionally I use 'C-c *' to toggle heading.

Just two cents.

E




Re: [O] Limit on length of babel block #+name: value?

2013-05-16 Thread Eric Schulte
John Hendy jw.he...@gmail.com writes:

 I was just completely baffled for about 5-10 straight minutes as to
 why my block was not producing a  results section with my generated
 graphics file from an R block.

 I kept double checking my header options one by one despite having
 simply copied/pasted/modified it from a previous working block. Turns
 out it appears that #+name has a character limit!

 This (on Org-mode version 8.0.2 (release_8.0.2-65-g1e32d7)), doesn't work:

 #+name: improvement-treatment

 It appears the name can be 20 characters long (the above is 21).


I don't think there is any name length limit.  The attached example
works for me, and exports w/o problem to HTML.  Maybe I'm not using the
block in the same way as you, but I'm pretty confident there is no name
limit and your problem probably lies elsewhere.

There is no name length limit

#+name: improvement-treatment
#+begin_src sh
  date
#+end_src

#+RESULTS: improvement-treatment
: Thu May 16 06:04:20 MDT 2013

Calling this block.
#+call: improvement-treatment()

#+RESULTS: improvement-treatment()
: Thu May 16 06:04:36 MDT 2013

and even longer

#+name: improvement-treatment
#+begin_src sh
  date
#+end_src

#+RESULTS: improvement-treatment
: Thu May 16 06:05:04 MDT 2013

Calling this longer block.
#+call: improvement-treatment()

#+RESULTS: improvement-treatment()
: Thu May 16 06:05:24 MDT 2013


Best,


 Is this by design or something I accidentally uncovered? Forgive me if
 it's come up before or is documented. I did a couple searches but
 didn't see it.


 Thanks,
 John


-- 
Eric Schulte
http://cs.unm.edu/~eschulte


Re: [O] org-mime

2013-05-16 Thread Joseph Vidal-Rosset
2013/5/16 Feng Shu tuma...@gmail.com

 Your setting may be  same as  my emacs configure ,I use 1. gnus +
 offlineimap + dovecot + gmail + org-contacts.el 2. org-mode + xelatex
 May be my configure can help you


Of course it could be helpful and I thank you warmly for your email. At the
moment I'm using neither offlineimap neither xelatex, but why not.
My worry of the day is to understand why, on my laptop only, I meet this
error message of smtp-server not defined; I do not understand, and I see
via Google that I am not alone...
We stay in touch, no doubt that you can help me to succeed in improving my
use of  emacs and LaTeX.

Thanks again !

Jo.


Re: [O] org-mime

2013-05-16 Thread Eric Schulte
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 I thank you Eric and Uwe for your help. Many thanks also to all the
 developers of emacs and org-mode.

 In fact I just spent two days in configuring my emacs24 and gnus. (Eric, I
 did not understand how worked your emacs24-starter-kit , which is a nice
 tool indeed).

 The last problem that I meet on my laptop is  an error message :
 smtp-server not defined , and , until now, I do not find how to fix it :(
 (if someone has a suggestion, thanks in advance).


Maybe you need to define the `smtpmail-smtp-server' variable?  The
following provides fairly simple step-by-step instructions for
configuring gnus to work with gmail.

  http://www.emacswiki.org/emacs/GnusGmail

Gnus provides so many options that it can be daunting to configure.
However a simple configuration (just reading and writing email) should
be simple to configure (and should end up with a short 20 line
configuration).  The trick is to avoid including the sophisticated fancy
extra options until *after* you have the basics working.

Hope this helps,


 My goal is to succeed to stay in emacs, for LaTeX as well as for emails,
 but I have to work again. Every help on LaTeX and emails via org-mode will
 be welcome.


 Best,

 Jo.



 2013/5/15 Eric Schulte schulte.e...@gmail.com

 Uwe Brauer o...@mat.ucm.es writes:

  Eric == Eric Schulte schulte.e...@gmail.com writes:
 
  Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:
 
  -
 
  A while back Org-mode switched its method of exporting latex
 equations
  to HTML.  Equations used to be exported as png images, however they
 are
  now exported as markup which may then be processed on the fly by
  client-side javascript.  Most mail readers do not allow javascript
 in
  html email, and I doubt that the required javascript headers are
  included in the mail html mime part.
 
  I don't know if it is currently possible to do the javascript
  pre-processing as part of the HTML export, but that would probably
 be
  the best solution in this case.
 
  Couldn't the old functionality (converting to png) be reactivated, at
  least optionally?? For me this change are bad news, since the feature
  (to export LaTeX math to something visible) is very important to me and
  even if this approach may have disadvantages, it seems to me more
  universal than the  javascript business.
 

 Indeed the old latex-png functionality is still available, I just had
 to update org-mime to work with the new exporter.  Export of latex to
 attached png images should once again be working in the master branch of
 the git repo.

 Best,

 
 
  Uwe Brauer
 
 

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte



-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] org-mime

2013-05-16 Thread Feng Shu
Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

 2013/5/16 Feng Shu tuma...@gmail.com

 Your setting may be same as my emacs configure ,I use 1. gnus +
 offlineimap + dovecot + gmail + org-contacts.el 2. org-mode +
 xelatex
 May be my configure can help you

 Of course it could be helpful and I thank you warmly for your email.
 At the moment I'm using neither offlineimap neither xelatex, but why
 not. 
 My worry of the day is to understand why, on my laptop only, I meet
 this error message of smtp-server not defined; I do not understand,
 and I see via Google that I am not alone...

some guess:
1. you can try the newest devel version from gnus.git
2. install gnutls, openssl, and so on
3. Is your authinfo correct?
4. reinstall emacs

 We stay in touch, no doubt that you can help me to succeed in
 improving my use of emacs and LaTeX.

 Thanks again !

 Jo. 

-- 



Re: [O] org-mime

2013-05-16 Thread Joseph Vidal-Rosset
Hi , the solution to the smtp-server not defined was there:

http://lists.gnu.org/archive/html/info-gnus-english/2010-02/msg00060.html

Re: `smtp-server' not defined
--
*From*:Katsumi Yamaoka*Subject*:Re: `smtp-server' not defined *Date*:Thu,
18 Feb 2010 20:11:42 +0900*User-agent*:Gnus/5.110011 (No Gnus v0.11)
Emacs/23.1.92 (gnu/linux)
--

* evan wrote:*
* Any idea why I get the message `smtp-server' not defined when I try*
* to send mail via gnus? I have tried to see what is wrong but I cannot*
* find anything.*

Remove smtpmail.el(c) that comes from the FLIM package (not the
one of Emacs).  You can find it by performing:

M-x locate-library RET smtpmail RET

The FLIM package contains the different version of smtpmail.el,
that issues the error message in question, though it will not be
installed normally.


-- end of quotation.

Thanks to all of you,

I will work on emacs and gnus next days ( it is very time consuming ).

Jo.



2013/5/16 Feng Shu tuma...@gmail.com

 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com writes:

  2013/5/16 Feng Shu tuma...@gmail.com
 
  Your setting may be same as my emacs configure ,I use 1. gnus +
  offlineimap + dovecot + gmail + org-contacts.el 2. org-mode +
  xelatex
  May be my configure can help you
 
  Of course it could be helpful and I thank you warmly for your email.
  At the moment I'm using neither offlineimap neither xelatex, but why
  not.
  My worry of the day is to understand why, on my laptop only, I meet
  this error message of smtp-server not defined; I do not understand,
  and I see via Google that I am not alone...

 some guess:
 1. you can try the newest devel version from gnus.git
 2. install gnutls, openssl, and so on
 3. Is your authinfo correct?
 4. reinstall emacs

  We stay in touch, no doubt that you can help me to succeed in
  improving my use of emacs and LaTeX.
 
  Thanks again !
 
  Jo.

 --



Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Rick Frankel

On 2013-05-15 23:17, Eric Abrahamsen wrote:

Samuel Wales samolog...@gmail.com writes:
Also, C-RET and M-RET currently seem to be identical?

I still think it's pretty important to have an option for creating a 
new

headline *below* all the contents of the current subtree -- what C-RET
used to do.

Also, the above provides a whole lot of options for creating a new
headline/item above the current line -- is that really such a common
thing to do?


Agreed. Personally, i rarely need to insert headlines/items above the
current line. Actually, the thing I find myself wanting a key for is
inserting a child headline between a headline and it's body text -- I
often find myself wanting to break up a section into new sub-sections.

e.g, turning

#+BEGIN_SRC org
* Headline
para 1

para 2
#+END_SRC

into

#+BEGIN_SRC org
*  Headline
** Subhead 1
 para 1
** Subhead 2
 para2
#+BEGIN_SRC org

rick




Re: [O] Inhibit default EMAIL in derived exporter

2013-05-16 Thread Viktor Rosenfeld
Hi Nicolas,

Nicolas Goaziou wrote:

  commit 16f12e0 changed how the EMAIL option is configured in a derived
  exporter that also uses this keyword.
 
 I fixed it in maint. Thank you for reporting it.

Thank you. Everything works as expected now.

Cheers,
Viktor

 
 
 Regards,
 
 -- 
 Nicolas Goaziou
 



[O] List of most recently updated org files in the project

2013-05-16 Thread Vikas Rawal
I have a website (http://www.indianstatistics.org) published using
orgmode. I have just migrated it to the new exporter. I would like to
have a headline on the main page that lists (with links to) five most
recently changed files. All org-files have a #+DATE field in the
header which I update everytime I make changes on any page.

I have been thinking of an org-babel source block that will produce
the list of files, but have not been able to implement it. Will be
grateful for any suggestions?

Vikas



Re: [O] Export Org-mode content to Reveal.js presentations

2013-05-16 Thread Vikas Rawal
   I've just updated the codes. Now org-reveal generates HTML of UTF-8 
 encoding,
 as the HTML exporter does.

Updated ox-reveal.el but I still seem to need to tell the browser to
use unicode encoding.

Vikas



Re: [O] Export Org-mode content to Reveal.js presentations

2013-05-16 Thread Yujie Wen
Hi, Vikas,

  Do you mind give me a sample Org file to reproduce your problem, so that
I can find a suitable solution for unicode contents?

Regards,
Yujie


2013/5/16 Vikas Rawal vikasli...@agrarianresearch.org

I've just updated the codes. Now org-reveal generates HTML of UTF-8
 encoding,
  as the HTML exporter does.

 Updated ox-reveal.el but I still seem to need to tell the browser to
 use unicode encoding.

 Vikas



[O] OT - Ode to a shipping label

2013-05-16 Thread Nick Dokos
Oh, what a tangled web...

Given all the encoding problems being discussed, here's a link
to put it all in perspective:

   
http://anonbadger.wordpress.com/2013/05/13/fun-from-other-peoples-unicode-woes/

-- 
Nick





Re: [O] Bibliography

2013-05-16 Thread Vikas Rawal
  at the keyword please.
 
 Here's a new take on the problem. You need to use latest maint (or
 master) revision. What do you think?


I have been trying ox-bibtex.el. One problem I have is that the
\cite{key} does not put a number with a link to the citation, but puts
[key] in place of the number.

I have tried different styles, but nothing seems to work.

See, for example, http://www.indianstatistics.org/education.html.
\cite{vikaseducation2011} shows up as [vikaseducation2011] instead of
[1].

Any idea why this is happening?

Vikas





[O] ODT Exporting

2013-05-16 Thread JBash
Hello,

Is there any configuration needed to enable ODT export ability?  I do not
have the options available for export ODT when I C-c C-E.   I only have
iCalendar, HTML, Latex, Plain Text, and Publish.

I did see that zip is required, and have that installed.

Libreoffice is installed also.

I'm at Org-mode version 8.0.2 (release_8.0.2-119-g646f1a


Re: [O] ODT Exporting

2013-05-16 Thread Nick Dokos
JBash bashve...@gmail.com writes:

 Hello,

 Is there any configuration needed to enable ODT export ability?  I do
 not have the options available for export ODT when I C-c C-E.   I only
 have iCalendar, HTML, Latex, Plain Text, and Publish.


C-h v org-export-backends RET

Click on the ``customize'' link and mark the ODT backend (and any others
you might want to add). Click on ``Apply and Save''. That should be all
that's needed, I think.

 I did see that zip is required, and have that installed.

 Libreoffice is installed also.

 I'm at Org-mode version 8.0.2 (release_8.0.2-119-g646f1a


-- 
Nick




Re: [O] ODT Exporting

2013-05-16 Thread JBash
Thanks, Nick.

That did it.
Jerry


On Thu, May 16, 2013 at 12:26 PM, Nick Dokos ndo...@gmail.com wrote:

 JBash bashve...@gmail.com writes:

  Hello,
 
  Is there any configuration needed to enable ODT export ability?  I do
  not have the options available for export ODT when I C-c C-E.   I only
  have iCalendar, HTML, Latex, Plain Text, and Publish.
 

 C-h v org-export-backends RET

 Click on the ``customize'' link and mark the ODT backend (and any others
 you might want to add). Click on ``Apply and Save''. That should be all
 that's needed, I think.

  I did see that zip is required, and have that installed.
 
  Libreoffice is installed also.
 
  I'm at Org-mode version 8.0.2 (release_8.0.2-119-g646f1a
 

 --
 Nick





[O] sqlite im-/export

2013-05-16 Thread Oliver Večerník
Hi,

I've got a small test case which I believe is a bug:

$ cat t1.sql
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE t1(id integer,product text);
INSERT INTO t1 VALUES(1,'apple pie');
INSERT INTO t1 VALUES(2,'sugar');
COMMIT;
sqlite3 test.sqlite  t1.sql

#+BEGIN_SRC sh
echo ID|product
sqlite3 test.sqlite 
  SELECT * from t1;

#+END_SRC

#+RESULTS:
| ID | product | |
|  1 | apple   | pie |
|  2 | sugar   | |

Why are there three columns exported?  Tested with Org-mode version
8.0.3 (release_8.0.3-114-gab3f45 @ /home/user/org-mode/lisp/) on GNU
Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of
2013-05-13 on myhost?


Is it also possible to produce a separator line in the results table?  I
tried a couple of variations, but nothing worked:

echo |-
echo -+
echo |-+|


I have a couple of csv tables now which are imported with a src block
like this:

#+BEGIN_SRC sqlite :db test.sqlite :exports none :results silent
  PRAGMA foreign_keys=off;
  DROP TABLE IF EXISTS t1;
  CREATE TABLE t1(id INTEGER, product TEXT);
  .import t1.csv t1
#+END_SRC

But it would be really nice to maintain these data in org tables and
convert them on fly maybe just in memory.  I couldn't figure out how to
achieve this.  Has anybody a sample?

-- 
Best,
Oliver




Re: [O] confused about Beamer export

2013-05-16 Thread Eric S Fraga
Julian Burgos jul...@hafro.is writes:

 Thanks Eric, but I solved the issue already.  I had some errors in my
 .emacs file (a mixture of settings for the old and new exporter).

Been there, done that :-)
Glad you got it sorted.
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0.2-103-gb3a88b




Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Eric S Fraga
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Samuel Wales samolog...@gmail.com writes:

 How about this?  IMO this would be ideal.

   - M-RET is for the current context
   - C-RET is for a new context

[...]

 I still think it's pretty important to have an option for creating a new
 headline *below* all the contents of the current subtree -- what C-RET
 used to do.

+1.  I do not like the new behaviour at all.  C-RET is wired into my
brain and I am used to using it *all* the time without worrying about
where point actually is.  I seldom use M-RET other than on items.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0.2-103-gb3a88b




Re: [O] Bibliography

2013-05-16 Thread Nicolas Goaziou
Hello,

Vikas Rawal vikasli...@agrarianresearch.org writes:

 I have been trying ox-bibtex.el. One problem I have is that the
 \cite{key} does not put a number with a link to the citation, but puts
 [key] in place of the number.

 I have tried different styles, but nothing seems to work.

 See, for example, http://www.indianstatistics.org/education.html.
 \cite{vikaseducation2011} shows up as [vikaseducation2011] instead of
 [1].

 Any idea why this is happening?

Yes: code typo. Here's an update.


Regards,

-- 
Nicolas Goaziou


ox-bibtex.el
Description: application/emacs-lisp


Re: [O] Bibliography

2013-05-16 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@supelec.fr writes:

 It defnitely helps a lot with Org-LaTeX files (scientific papers).
 There is one thing that is not taken into account  and I wonder if there
 is an Org solution for it.
 In laTeX you can use \cite{foo1999, foo2002} . I don't think that
 current links in Org allow this and I don't see an easy way for it.
 In Org, you would have [[bibtex:foo1999]][[bibtex:foo2002]] .
 May be the exporter for bibtex links should look around and merge
 other links found.

 Fabrice


 Could it be possible to allow [[bibtex:foo1999, foo2002]]

No, it's not possible (what would be the destination of such link
anyway?). Though, the current implementation of ox-bibtex.el (latest
posted in this thread) should split

  \cite{foo1999, foo2002} 

into:

  [a name=#foo1999foo1999/a][a name=#foo2002foo1999/a]

Isn't it the correct behaviour?


Regards,

-- 
Nicolas Goaziou



Re: [O] BIND and LaTeX export

2013-05-16 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@supelec.fr writes:

 2013/5/13 Nicolas Goaziou n.goaz...@gmail.com

 Fabrice Popineau fabrice.popin...@supelec.fr writes:

 I'm surprised it even worked. BIND keywords only affect the export
 process, i.e. Org to LaTeX translation in this case. File compilation to
 PDF is a post-processing thing, these keywords don't survive that long.


 I may have been fooled by my emacs config.
 But anyway, given the name org-latex-*,
 I thought that it could make sense that this variable survive
 till the end of the compilation :-)

I understand the problem, but given the separation between the export
framework and its back-ends, it's difficult to do so. 

Indeed, variables are bound in the temporary buffer copy created for the
translation but back-ends commands are only given a string (or a buffer
or a file name) containing the output. At this time, the copy isn't
alive anymore.

IOW, there are a few variables that cannot be set using BIND keywords.
On the other hand, they still can be set with file local variables.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Improve configurability of ox-koma-letter

2013-05-16 Thread Viktor Rosenfeld
Hi Suvayu,

Suvayu Ali wrote:

 The convention is to put all documentation about the new exporters under
 Worg.git/exporters.  Take a look here:
 
   http://orgmode.org/worg/exporters/

Thanks. I've also added an entry to the index file.

Cheers,
Viktor

 
 Hope this helps,
 
 -- 
 Suvayu
 
 Open source is the future. It sets us free.
 



Re: [O] [PATCH] Improve configurability of ox-koma-letter

2013-05-16 Thread Viktor Rosenfeld
Hi Tom,

Thomas S. Dye wrote:

 One small nit to pick, according to my dictionary meta data -
 metadata.

Thanks, I've changed this.

Cheers,
Viktor

 
 All the best,
 Tom



Re: [O] [PATCH] Improve configurability of ox-koma-letter

2013-05-16 Thread Viktor Rosenfeld
Hi Rasmus,

Rasmus wrote:

Optionally download an up-to-date KOMA letter exporter
 Is this something we want to encourage people to do?

We probably shouldn't. The problem is that the tutorial depends on
a version that has not yet been released. Once Org-mode 8.1 arrives the
best thing to do is to only refer to released functionality. Until then,
I've changed the text somewhat and put a bold *Note* in front of it.
 
 I think that 
 
1. Add the path containing ox-koma-letter.el to Emacs' load path
 
 is so common that it need not be included.  If anything it should link
 to another wiki page explaining how to add stuff to the load path as
 to not add a step that (what I'd guess) a high percentage of the
 readers would know.  

I'd rather have the minimal guide to be complete so newbies do not have
to go hunting for information.

   download the KOMA letter example and you can also download the
example PDF letter.
 
 Links aren't working here.

Somehow the source of the Org file isn't served by the webserver and
neither is the PDF I've checked in. Not really sure what the problem is,
maybe it has something to do with the change in the exporter.

Letter meta data can be configured in one of three ways, listed
below from the most specific to the most general:
 
 4. through org-latex-classes (e.g. defining my-business-letter and
my-love-letter).  But perhaps this is considered bad practice?

I haven't thought about this at all. It's somewhat orthogonal to the
other configuration options. I've trimmed the latex class definition
down because configuration options which are set there are fairly fixed.
But it's a valid approach. I've added some text to this effect.

Custom LCO files must be placed in a directory where LaTeX will
find them. On Linux, this defaults to ~/texmf/tex/latex. On OS X,
use ~/Library/texmf/tex/latex instead. These paths can be
configured using the following command:
 
 Mayhaps one could add:
 
In TeXLive you can test whether foo.lco is recognized by TeXLive by
typing =kpsewhich foo.lco=.  After adding a file to the TeXLive
path you may have to run =mktexlsr=.

Thanks, I've added that.

Cheers,
Viktor

 
 –Rasmus
 
 -- 
 This is the kind of tedious nonsense up with which I will not put
 



Re: [O] sqlite im-/export

2013-05-16 Thread Eric Schulte
Oliver Večerník o...@vecernik.at writes:

 Hi,

 I've got a small test case which I believe is a bug:

 $ cat t1.sql
 PRAGMA foreign_keys=OFF;
 BEGIN TRANSACTION;
 CREATE TABLE t1(id integer,product text);
 INSERT INTO t1 VALUES(1,'apple pie');
 INSERT INTO t1 VALUES(2,'sugar');
 COMMIT;
 sqlite3 test.sqlite  t1.sql

 #+BEGIN_SRC sh
 echo ID|product
 sqlite3 test.sqlite 
   SELECT * from t1;
 
 #+END_SRC

 #+RESULTS:
 | ID | product | |
 |  1 | apple   | pie |
 |  2 | sugar   | |


What about

#+BEGIN_SRC sqlite :csv :db test.sqlite
  SELECT * from t1;
#+END_SRC

#+RESULTS:
| 1 | apple pie |
| 2 | sugar |

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] M-RET and C-RET turn current line of text into a heading?

2013-05-16 Thread Jason F. McBrayer
Bastien b...@gnu.org writes:

 Thanks a lot Samuel for writing this.

 Just a quick note to tell you that this discussion *is* important,
 and well read, as we plan to rewrite those functions.  Presenting
 features wrt contexts so clearly is great -- thanks for doing this.

Another thing to take into account in the rewrite is doing the right
thing even when electric-indent-mode or electric-layout-mode are
enabled. The current implementation is not compatible with
electric-indent-mode. 

-- 
+---+  
| Jason F. McBrayerjmcb...@carcosa.net  |  
| If someone conquers a thousand times a thousand others in |  
| battle, and someone else conquers himself, the latter one |  
| is the greatest of all conquerors.  --- The Dhammapada|  



Re: [O] S-up on a timestamp takes ~3 seconds to update

2013-05-16 Thread Bastien


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 See on http://screencast.com/t/QMzl5dXKfJNN, with profiler-report
 displayed.

Better to copy the profiler info on the list, for readability and
archiving purpose.

I guess the problem comes from having a lot of CLOCK: lines.
Can you test with less lines and see if this is ~O(log n) or
worse?

-- 
 Bastien




Re: [O] ical2org.py

2013-05-16 Thread Simon Thum

On 05/15/2013 10:01 AM, aitor wrote:

Hi,

On Wed, May 15, 2013 at 12:56:02AM +0200, Bastien wrote:

Hi Simon,

Simon Thum simon.t...@gmx.de writes:


It's going to be confusing if we add them all.


On the contrary -- I think collecting all the information about
various solutions in the same place is the only way to encourage
comparisons, which is the best way to let one solution emerge,
if needed.


indeed. Should I've known there were already so many implementations of
ical2org I wouldn't have created mine! Silly thing is, it never ocurred
to me to just search ical2org on google.
Similar here, I just checked Worg. However I had some special wishes 
unlikely to be covered, so I was prepared to hack anyway.


I recall to have lost my worg pushability, Bastien can you check? I 
would reorganize this a bit to make it clearer, and do not want to push 
something just to know.


@aitor if you have some info how your impl compares let the list know.

Cheers,

Simon



Re: [O] ical2org.py

2013-05-16 Thread Bastien
Simon Thum simon.t...@gmx.de writes:

 I recall to have lost my worg pushability, Bastien can you check?

Please send me your public key in private.

Thanks,

-- 
 Bastien



Re: [O] sqlite im-/export

2013-05-16 Thread Oliver Večerník
Eric Schulte schulte.e...@gmail.com writes:
 What about

 #+BEGIN_SRC sqlite :csv :db test.sqlite
   SELECT * from t1;
 #+END_SRC

 #+RESULTS:
 | 1 | apple pie |
 | 2 | sugar |

I needed some calculations and format tweaking with awk which I piped
the results.  That is why I choose the shell.  In this case this is not
possible.

-- 
Best,
Oliver




[O] performance of exporting large tables

2013-05-16 Thread D M German

hi everybody,

I have a table with 15 columns and 500 rows. One of the columns is a
URL.

org-mode is hanging while exporting the table. It does not seem to
crash, but it is taking a significant amount of time. The worst part is
that it does not appear to be linear.

80 rows - 17 seconds
160 rows (same 80 rows duplicated) - 58 seconds

160 rows, 8 columns - 21 seconds (it seems to not matter which columns
there are).

I wonder if this is expected behaviour. Given that org does not sort the
tables, why does the time increase non-linearly to the size of the
table?

If interested, I can make the table available.

thanks a lot!

--daniel


--
Daniel M. German  And ye shall know the truth,
   John 8:32 -and the truth shall make you free.
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 



Re: [O] sqlite im-/export

2013-05-16 Thread Eric Schulte
Oliver Večerník o...@vecernik.at writes:

 Eric Schulte schulte.e...@gmail.com writes:
 What about

 #+BEGIN_SRC sqlite :csv :db test.sqlite
   SELECT * from t1;
 #+END_SRC

 #+RESULTS:
 | 1 | apple pie |
 | 2 | sugar |

 I needed some calculations and format tweaking with awk which I piped
 the results.  That is why I choose the shell.  In this case this is not
 possible.

In that case I'd suggest either

1. adding :separator support to ob-sh.el, so that you can specify a
   different results separator to be passed to
   `org-babel-import-elisp-from-file'

or

2. use :results drawer, and explicitly formatting the results in
   Org-mode syntax w/awk

Cheers,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



[O] nested tables

2013-05-16 Thread Uwe Brauer
Hello 

I am not sure whether the following is really a nested table or just one
which contains split and merged cell. I generated it using table.el



+-+-+-+
| | | |
+-+-+-+
| | | |
| +-+ |
| | | |
+-+-+-+
| |   |
+-+---+


Are there any plans that org-table would support such a table 
org-table-create-with-table.el does not work on this example.

Uwe Brauer 




Re: [O] [BUG] worg table of contents

2013-05-16 Thread Rick Frankel
On Thu, May 16, 2013 at 08:19:57AM +0200, Bastien wrote:
 Hi Rick,
 
 Rick Frankel r...@rickster.com writes:
 
  The following javascript snippet will add a function to show
  the toc when it is clicked, but I'm not sure where to put it (at the
  bottom of preamble.html?)
 
 I'd say it's a good place, yes.
 
 Beware that the new preamble.html will only appear in pages that have
 been republished.   I can republish all Worg pages if needed.

I have pushed the update. I also pushed a minor fix to org-hacks.org
to check if it works as expected (it does :). Republishing everything
is a great idea.

BTW, i noticed a bad link --- http://orgmode.org/css/lightbox.css; is
included in the header, but the file does not exist on the server.

rick



[O] How to set C-o back to open-line?

2013-05-16 Thread Christopher Allan Webber
I really hate org-open-line... I can see why people might want it, but
it's messed up my workflow.  I'd like to set C-o back.

However, I have no idea what org-defkey is doing, but I expected this to
work:

  (define-key org-mode-map (kbd C-o) 'open-line)

it isn't working!

How to get the standard-ol-open-line behavior back?



Re: [O] How to set C-o back to open-line?

2013-05-16 Thread Nick Dokos
Christopher Allan Webber cweb...@dustycloud.org writes:

 I really hate org-open-line... I can see why people might want it, but
 it's messed up my workflow.  I'd like to set C-o back.

 However, I have no idea what org-defkey is doing, but I expected this to
 work:

   (define-key org-mode-map (kbd C-o) 'open-line)

 it isn't working!

 How to get the standard-ol-open-line behavior back?



Try

  (define-key org-mode-map [remap open-line] nil)

You may have to do it in a hook.

See

  (info (elisp) Remapping commands)

for details.
-- 
Nick




Re: [O] performance of exporting large tables

2013-05-16 Thread Suvayu Ali
Hi Daniel,

On Thu, May 16, 2013 at 01:24:10PM -0700, D M German wrote:
 
 If interested, I can make the table available.

A working example that reproduces the issue always helps.  If you could
post the table (of course after removing sensitive/private information)
it would be great help for the developers and testers.

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] How to set C-o back to open-line?

2013-05-16 Thread Suvayu Ali
Hello Christopher,

On Thu, May 16, 2013 at 05:38:11PM -0500, Christopher Allan Webber wrote:
 I really hate org-open-line... I can see why people might want it, but
 it's messed up my workflow.  I'd like to set C-o back.
 
 However, I have no idea what org-defkey is doing, but I expected this to
 work:
 
   (define-key org-mode-map (kbd C-o) 'open-line)
 
 it isn't working!
 
 How to get the standard-ol-open-line behavior back?

Does using org-defkey instead make it work?

That said, I'm curious what is so different about org-open-line?  The
docstring says the following:

  It is bound to C-o, insertline.
  
  (org-open-line N)
  
  Insert a new row in tables, call `open-line' elsewhere.

So unless you are in a table, it should be the same as normal.  Is that
broken?  Anyway, I never use open-line myself, but I was curious after I
saw several people mention it on unrelated threads on a few lists.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Bibliography

2013-05-16 Thread Vikas Rawal
  See, for example, http://www.indianstatistics.org/education.html.
  \cite{vikaseducation2011} shows up as [vikaseducation2011] instead of
  [1].
 
  Any idea why this is happening?
 
 Yes: code typo. Here's an update.
Thanks.

Vikas





Re: [O] How to set C-o back to open-line?

2013-05-16 Thread Christopher Allan Webber
Suvayu Ali writes:

 Hello Christopher,

 On Thu, May 16, 2013 at 05:38:11PM -0500, Christopher Allan Webber wrote:
 I really hate org-open-line... I can see why people might want it, but
 it's messed up my workflow.  I'd like to set C-o back.
 
 However, I have no idea what org-defkey is doing, but I expected this to
 work:
 
   (define-key org-mode-map (kbd C-o) 'open-line)
 
 it isn't working!
 
 How to get the standard-ol-open-line behavior back?

 Does using org-defkey instead make it work?

org-defkey doesn't seem to work.

 That said, I'm curious what is so different about org-open-line?  The
 docstring says the following:

   It is bound to C-o, insertline.
   
   (org-open-line N)
   
   Insert a new row in tables, call `open-line' elsewhere.

 So unless you are in a table, it should be the same as normal.  Is that
 broken?  Anyway, I never use open-line myself, but I was curious after I
 saw several people mention it on unrelated threads on a few lists.

 Cheers,

Right, exactly.  The way I use org-diet often involves me splitting
apart and rejoining tables and the whole adding a new line in between
is part of expected behavior for me.  The new system is driving me crazy!



Re: [O] List of most recently updated org files in the project

2013-05-16 Thread Vikas Rawal
 I have a website (http://www.indianstatistics.org) published using
 orgmode. I have just migrated it to the new exporter. I would like to
 have a headline on the main page that lists (with links to) five most
 recently changed files. All org-files have a #+DATE field in the
 header which I update everytime I make changes on any page.
 

Sorry, this was silly. Just needed a tiny bash script to throw org
syntax. The code below lists five most recently updated files.

#+begin_src sh :results raw :exports results
for filename in $(find -iname \*.org -type f -printf '%T@ %p\n' | sort
-n | tail -5 | cut -f2- -d )
do
   title=$(grep ^* $filename | head -n1 | cut -f2- -d )
   echo *** [[file:$filename][$title]] | head -5
done
#+end_src

Vikas



[O] RFQ - new contribution - org-screenshot.el

2013-05-16 Thread Max Mikhanosha
Hi All,

I've been writing some documentation in OrgMode with screenshots, and
as with any screenshot taking, it takes a while to get one just right.

A few tiny helper utilities, quickly snowballed into this :-) It may
need some cleanup, but IMHO its too awesome not to share it with the
list.

To try it out, you'll need /usr/bin/scrot which is available as
scrot package on most distributions.

Then (require 'org-screenshot) and try C-c M-s (org-screenshot-take) in an Org 
File. Make
sure to turn on inline image display (C-c C-x C-v) after taking the
first screenshot.

Regards,
 Max



org-screenshot.el
Description: Binary data


Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-16 Thread Albert Z. Wang
Mark Edgington edgi...@gmail.com writes:

 Anyway, your patch will not work on back-ends that rely on Org to
 compute section numbers (e.g., ascii, html...) because even if you
 ignore numbering for a particular headline, it still adds up
 internally.  IOW, you also need to patch
 `org-export--collect-headline-numbering'.

 But that's not quite it, yet. Some back-ends (e.g., html) use that
 internal number as a unique identifier for the headline. Actually,
 the artificial restriction you are talking about is a way to
 allow every headline to be numbered in a unique way, even if that
 number doesn't appear in the output.

 I can see what you mean here -- but it doesn't exactly break
 anything -- it just makes the section-numbering within html, etc.
 documents to be non-consecutive *if these properties are used*.  If
 the main intent is to use these properties in conjunction with the
 LaTeX exporter, then this isn't a big problem (i.e. those who want
 to use them will just need to understand that they currently only
 work correctly with LaTeX, but that this will be fixed in the
 future).

 Since I wouldn't use this, I can hardly judge, but I would
 appreciate some feedback from other users before we go too far in
 the implementation.

 Agreed, but my (obviously biased) opinion is that it makes manual
 numbering-control more natural within org-mode, and something
 which doesn't require as much hacking with embedded LaTeX (or HTML,
 etc.)  code.

An alternative would be to stick this into ox-latex.el, which then
wouldn't interfere with other backends.

I also think this functionality is good to have, since longer latex
documents often have unnumbered sections (and there seem to be
periodic questions on various boards on how to achieve this).  While
one can mess around with the latex code, it's often a hassle when the
master document is in org and you need to recompile often.

For a recent project I needed a super-simple way to turn off numbering
(for intro and references), so based on the above I made the following
tiny modification to ox-latex.el, which looks up the LATEX_NUMBERED
property to decide whether to insert a numbered or unnumbered heading.
Since I didn't need it, inheritance isn't in here, but it should be
simple enough to add.

Since this wouldn't interfere with any other backends, perhaps there
will be fewer reservations about merging something like this into the
repo?

--
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 41cf1d0..33a39c7 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1369,7 +1369,11 @@ holding contextual information.
   (unless (org-element-property :footnote-section-p headline)
 (let* ((class (plist-get info :latex-class))
   (level (org-export-get-relative-level headline info))
-  (numberedp (org-export-numbered-headline-p headline info))
+  (latex-numbered (org-export-get-node-property :LATEX_NUMBERED 
headline))
+  (numberedp
+   (cond ((equal latex-numbered n) nil)
+ ((equal latex-numbered y) t)
+ (t (org-export-numbered-headline-p headline info
   (class-sectionning (assoc class org-latex-classes))
   ;; Section formatting will set two placeholders: one for
   ;; the title and the other for the contents.
--




Re: [O] sqlite im-/export

2013-05-16 Thread Oliver Večerník
Eric Schulte schulte.e...@gmail.com writes:
 In that case I'd suggest either

 1. adding :separator support to ob-sh.el, so that you can specify a
different results separator to be passed to
`org-babel-import-elisp-from-file'

 or

 2. use :results drawer, and explicitly formatting the results in
Org-mode syntax w/awk

I'm faster with your second suggestion.  Thanks for your hint and for
this wonderful extension to Org mode!

-- 
Cheers,
Oliver




Re: [O] sqlite im-/export

2013-05-16 Thread Oliver Večerník
 2. use :results drawer, and explicitly formatting the results in
Org-mode syntax w/awk

Unfortunately this doesn't work.  The output is always printed to the
#+RESULTS: section and not piped through awk.  But working with
:results raw works perfect for me.  I can even produce a separator
line in the table now with =print |-=.

The only question left, how to import org tables on the fly to sqlite,
to keep everthing in Org mode.  This would also be an interesting
candidate for an ob-doc-sh.org starter I guess.

-- 
Cheers,
Oliver




Re: [O] How to set C-o back to open-line?

2013-05-16 Thread Andreas Röhler

Am 17.05.2013 04:28, schrieb Christopher Allan Webber:

Suvayu Ali writes:


Hello Christopher,

On Thu, May 16, 2013 at 05:38:11PM -0500, Christopher Allan Webber wrote:

I really hate org-open-line... I can see why people might want it, but
it's messed up my workflow.  I'd like to set C-o back.

However, I have no idea what org-defkey is doing, but I expected this to
work:

   (define-key org-mode-map (kbd C-o) 'open-line)

it isn't working!

How to get the standard-ol-open-line behavior back?


Does using org-defkey instead make it work?


org-defkey doesn't seem to work.


That said, I'm curious what is so different about org-open-line?  The
docstring says the following:

   It is bound to C-o, insertline.

   (org-open-line N)

   Insert a new row in tables, call `open-line' elsewhere.

So unless you are in a table, it should be the same as normal.  Is that
broken?  Anyway, I never use open-line myself, but I was curious after I
saw several people mention it on unrelated threads on a few lists.

Cheers,


Right, exactly.  The way I use org-diet often involves me splitting
apart and rejoining tables and the whole adding a new line in between
is part of expected behavior for me.  The new system is driving me crazy!




Installing this instead should fix it:

(defun org-open-line (n)
  Insert a new row in tables, call `open-line' elsewhere.
With \C-u NUMBER `open-line' is called the common way also in table context
  (interactive *P)
  (cond (n
 (open-line (prefix-numeric-value n)))
((org-at-table-p)
 (org-table-insert-row))
(t (open-line (prefix-numeric-value n)

Cheers,

Andreas