Re: [O] Problem with beamer export

2013-10-06 Thread Marcin Borkowski
Dnia 2013-10-06, o godz. 21:49:13
Marvin Doyley  napisał(a):

> Hmm,
> 
> I have reverted to pdflatex and still get the error. I note that were
> some errors when I make all see below, could this be the issue ??
> 
> I have to prepare for a class tomorrow so I going to switch back to
> the stable version and try to debug some more tomorrow

Know what you mean.  BTW, I'm conducting a class today, and will use
org-tree-slide;).

> Here is my beamer definition (Very similar to users except the
> \makeatletter (add-to-list 'org-latex-classes 
> '("beamer"
> "
> \\makeatletter\\let\\ifGm@compatii\\relax\\makeatother
> \\documentclass\[t]{beamer\}"
>  ("\\section\{%s\}" . "\\section*\{%s\}")
>   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>  ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
> ))

Unrelated: I think you can safely delete the
\makeatletter...\makeatother stuff: it was a workaround for some
beamer/geometry incompatibility in TeXlive 2011 or so.  If you have a
newer TeX distro (and you should update your TeX distro at least once
every two years - it's a matter of personal hygiene, you know;)), it's
unnecessary.

Best,

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



Re: [O] Problem with beamer export

2013-10-06 Thread Marvin Doyley
Hmm,

I have reverted to pdflatex and still get the error. I note that were some 
errors when I make all see below, could this be the issue ??

I have to prepare for a class tomorrow so I going to switch back to the stable 
version and try to debug some more tomorrow

Here is my beamer definition (Very similar to users except the \makeatletter
(add-to-list 'org-latex-classes 
'("beamer"
"
\\makeatletter\\let\\ifGm@compatii\\relax\\makeatother
\\documentclass\[t]{beamer\}"
 ("\\section\{%s\}" . "\\section*\{%s\}")
  ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
 ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
))


Thanks
M
In end of data:
org.el:23923:1:Warning: the following functions are not known to be defined:
characterp, activate-mark, mouse-set-point, with-demoted-errors,
clear-image-cache, face-at-point, image-refresh, beginning-of-visual-line,
invisible-p
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/org.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-ascii.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-ascii.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-beamer.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-beamer.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-html.el...

In org-html-table--table.el-table:
ox-html.el:3183:27:Warning: kill-buffer called with 0 arguments, but requires
1

In end of data:
ox-html.el:3441:1:Warning: the function `string-match-p' is not known to be
defined.
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-html.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-icalendar.el...

In end of data:
ox-icalendar.el:994:1:Warning: the function `apply-partially' is not known to
be defined.
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-icalendar.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-latex.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-latex.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-man.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-man.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-md.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-md.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-odt.el...

In toplevel form:
ox-odt.el:370:1:Error: Cannot open load file: rng-loc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-org.el...
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-org.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-publish.el...

In end of data:
ox-publish.el:1239:1:Warning: the function `string-match-p' is not known to be
defined.
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-publish.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-texinfo.el...

In toplevel form:
ox-texinfo.el:291:1:Warning: defcustom for `org-texinfo-def-table-markup'
fails to specify containing group

In end of data:
ox-texinfo.el:1889:1:Warning: the function `string-match-p' is not known to be
defined.
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox-texinfo.elc
Compiling /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox.el...

In end of data:
ox.el:6255:1:Warning: the function `special-mode' is not known to be defined.
Wrote /Users/doyley/Dropbox/root/elisp/org-mode/lisp/ox.elc
Done (Total of 102 files compiled, 2 failed, 3 skipped)
➜  org-mode git:(master)


On Oct 6, 2013, at 9:36 PM, John Hendy  wrote:

> On Sun, Oct 6, 2013 at 8:31 PM, Marvin Doyley  wrote:
>> Hi John,
>> 
>> This is an interesting bug. When I use the stable version of org i.e. 8.2.1 
>> everything works as expected.
>> 
>> To use xelatex I included the following in my .emacs file (some code I 
>> picked up several years ago
>>(setq org-latex-pdf-process (list
>>  "xelatex -shell-escape -interaction nonstopmode -output-directory 
>> %o %f"
>>  "xelatex -shell-escape -interaction nonstopmode -output-directory 
>> %o %f"
>>)) ;; for multiple passes
>> 
> 
> Based on my process, is it sufficient to have not reproduced your
> commands? Or can I just use the command you typed above to give it
> another whirl from the raw .tex file? On that note:
> - Is this an issue of converting Org syntax -> .tex syntax? OR...
> - Is this an issue of the .tex file -> xelatex -> .pdf?
> 
> Re-thinking about your issue, it seems it's the former. In other
> words, if the .tex file doesn't have \frame, that's something wrong
> with Org -> .tex, not to do with the engine, right? If so, I'd
> probably look at diagnosing your Beamer definition, but I don't know
> how to.
> 
>> With regards to the split beamer theme this is included in beamer. I am 
>> using texlive 2013 on the mac.
>> 
> 
> Sorry... I was unclear. I'm aware of the various themes. What I
> *didn't* understand is why your output said it was *using* the split
> them.
> 
> Addd... scrolled back up and just now c

Re: [O] Problem with beamer export

2013-10-06 Thread John Hendy
On Sun, Oct 6, 2013 at 8:31 PM, Marvin Doyley  wrote:
> Hi John,
>
> This is an interesting bug. When I use the stable version of org i.e. 8.2.1 
> everything works as expected.
>
> To use xelatex I included the following in my .emacs file (some code I picked 
> up several years ago
> (setq org-latex-pdf-process (list
>   "xelatex -shell-escape -interaction nonstopmode -output-directory 
> %o %f"
>   "xelatex -shell-escape -interaction nonstopmode -output-directory 
> %o %f"
> )) ;; for multiple passes
>

Based on my process, is it sufficient to have not reproduced your
commands? Or can I just use the command you typed above to give it
another whirl from the raw .tex file? On that note:
- Is this an issue of converting Org syntax -> .tex syntax? OR...
- Is this an issue of the .tex file -> xelatex -> .pdf?

Re-thinking about your issue, it seems it's the former. In other
words, if the .tex file doesn't have \frame, that's something wrong
with Org -> .tex, not to do with the engine, right? If so, I'd
probably look at diagnosing your Beamer definition, but I don't know
how to.

> With regards to the split beamer theme this is included in beamer. I am using 
> texlive 2013 on the mac.
>

Sorry... I was unclear. I'm aware of the various themes. What I
*didn't* understand is why your output said it was *using* the split
them.

Addd... scrolled back up and just now caught that you included
your beamer_header file that you included, which indeed says to use
the split theme. Sorry about that!


John

> thanks
> M
>
> On Oct 6, 2013, at 9:23 PM, John Hendy  wrote:
>
>> On Sun, Oct 6, 2013 at 7:45 PM, Marvin Doyley  wrote:
>>> For more clarification
>>> Here is a simple test file
>>
>> [snip]
>>
>> I can't current reproduce. I don't use xelatex, so I did `tlmgr
>> install xetex` and the same for `xetex-def`. I wasn't sure if Org
>> would pick up to use xelatex or not, so I took your example, exported
>> to PDF via `C-c C-e l P` (for LaTeX Beamer) and then opened a terminal
>> and did `xelatex test.tex`, the file Org created from my test.org file
>> containing your contents.
>>
>> I attached the result.
>>
>> Some observations:
>> - I noticed your latex output has beamer using the split theme. Where
>> is it picking that?
>> - You have a line in your #+ headers: `#+BEAMER_HEADER:
>> \input{header_beamer} \date{}`. I don't have that file so I'm not sure
>> what it does. I just removed it.
>> - Here is my .emacs Beamer setting (default from the Org 8.0 new
>> Beamer Worg page):
>>
>> #+begin_src .emacs
>>
>> (add-to-list 'org-latex-classes
>> '("beamer"
>>   "\\documentclass\[presentation\]\{beamer\}"
>>   ("\\section\{%s\}" . "\\section*\{%s\}")
>>   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>>   ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
>>
>> #+end_src
>>
>> Again, see if the attached looks reasonable. Feel free to tell me how
>> to more properly export via xelatex if you want someone to try and
>> reproduce. I'm just not familiar with it at all, so I wasn't really
>> sure bit gave it the 'ole college try.
>>
>>
>> John
>> 
>



Re: [O] Problem with beamer export

2013-10-06 Thread Marvin Doyley
Hi John,

This is an interesting bug. When I use the stable version of org i.e. 8.2.1 
everything works as expected.

To use xelatex I included the following in my .emacs file (some code I picked 
up several years ago
(setq org-latex-pdf-process (list 
  "xelatex -shell-escape -interaction nonstopmode -output-directory %o 
%f"
  "xelatex -shell-escape -interaction nonstopmode -output-directory %o 
%f"
)) ;; for multiple passes

With regards to the split beamer theme this is included in beamer. I am using 
texlive 2013 on the mac.

thanks
M

On Oct 6, 2013, at 9:23 PM, John Hendy  wrote:

> On Sun, Oct 6, 2013 at 7:45 PM, Marvin Doyley  wrote:
>> For more clarification
>> Here is a simple test file
> 
> [snip]
> 
> I can't current reproduce. I don't use xelatex, so I did `tlmgr
> install xetex` and the same for `xetex-def`. I wasn't sure if Org
> would pick up to use xelatex or not, so I took your example, exported
> to PDF via `C-c C-e l P` (for LaTeX Beamer) and then opened a terminal
> and did `xelatex test.tex`, the file Org created from my test.org file
> containing your contents.
> 
> I attached the result.
> 
> Some observations:
> - I noticed your latex output has beamer using the split theme. Where
> is it picking that?
> - You have a line in your #+ headers: `#+BEAMER_HEADER:
> \input{header_beamer} \date{}`. I don't have that file so I'm not sure
> what it does. I just removed it.
> - Here is my .emacs Beamer setting (default from the Org 8.0 new
> Beamer Worg page):
> 
> #+begin_src .emacs
> 
> (add-to-list 'org-latex-classes
> '("beamer"
>   "\\documentclass\[presentation\]\{beamer\}"
>   ("\\section\{%s\}" . "\\section*\{%s\}")
>   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>   ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
> 
> #+end_src
> 
> Again, see if the attached looks reasonable. Feel free to tell me how
> to more properly export via xelatex if you want someone to try and
> reproduce. I'm just not familiar with it at all, so I wasn't really
> sure bit gave it the 'ole college try.
> 
> 
> John
> 




Re: [O] Problem with beamer export

2013-10-06 Thread John Hendy
On Sun, Oct 6, 2013 at 7:45 PM, Marvin Doyley  wrote:
> For more clarification
> Here is a simple test file

[snip]

I can't current reproduce. I don't use xelatex, so I did `tlmgr
install xetex` and the same for `xetex-def`. I wasn't sure if Org
would pick up to use xelatex or not, so I took your example, exported
to PDF via `C-c C-e l P` (for LaTeX Beamer) and then opened a terminal
and did `xelatex test.tex`, the file Org created from my test.org file
containing your contents.

I attached the result.

Some observations:
- I noticed your latex output has beamer using the split theme. Where
is it picking that?
- You have a line in your #+ headers: `#+BEAMER_HEADER:
\input{header_beamer} \date{}`. I don't have that file so I'm not sure
what it does. I just removed it.
- Here is my .emacs Beamer setting (default from the Org 8.0 new
Beamer Worg page):

#+begin_src .emacs

(add-to-list 'org-latex-classes
 '("beamer"
   "\\documentclass\[presentation\]\{beamer\}"
   ("\\section\{%s\}" . "\\section*\{%s\}")
   ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
   ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))

#+end_src

Again, see if the attached looks reasonable. Feel free to tell me how
to more properly export via xelatex if you want someone to try and
reproduce. I'm just not familiar with it at all, so I wasn't really
sure bit gave it the 'ole college try.


John


test.pdf
Description: Adobe PDF document


Re: [O] Problem with beamer export

2013-10-06 Thread Marvin Doyley
For more clarification
Here is a simple test file
#+STARTUP: beamer
#+LATEX_CMD: xelatex
#+LaTeX_CLASS: beamer
#+TITLE: Testing
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER: \input{header_beamer} \date{}
#+COLUMNS: %35ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)
%4BEAMER_col(Col) %8BEAMER_OPT(opt)
#+OPTIONS:   H:2 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EXPORT_EXCLUDE_TAGS: noexport

* Intro
** Apples
** Pears
- 1
- 2
- 3
** Cars

Ideally,

Apples & Cars should be two blank slide with just the frame titles, while
slide Pears should have bullets 1, 2 & 3.

This is what the file export to


\makeatletter\let\ifGm@compatii\relax\makeatother
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\input{header_beamer} \date{}
\usetheme{default}
\author{Marvin M. Doyley}
\date{\today}
\title{Testing}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs 24.3.1 (Org mode 8.2.1)}}
\begin{document}

\maketitle

\section{Intro}
\label{sec-1}
\subsection{Apples}
\label{sec-1-1}
\subsection{Pears}
\label{sec-1-2}
\begin{itemize}
\item 1
\item 2
\item 3
\end{itemize}

\subsection{Cars}
\label{sec-1-3}
% Emacs 24.3.1 (Org mode 8.2.1)
\end{document}

Header_beamer.tex is
\usetheme{split}
\setbeamertemplate{footline}[split theme]
%% Beamer style
\setbeamerfont{frametitle}{family=\rmfamily,shape=\itshape}
\setbeamercovered{invisible}
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{frametitle}[default][center]
\setbeamertemplate{navigation symbols}{}

\newcommand{\pdd}[2]{\frac{\partial {#1}}{\partial {#2}}} % partial
derivative
\newcommand{\ave}[1]{\left\langle#1\right\rangle}   % average 
\newcommand{\var}[1]{\sigma}  % for
variance
\newcommand{\abs}[1]{\left|#1\right|} %
modulus/absolute value
\newcommand{\uv}[1]{\ensuremath{\mathbf{\hat{#1   % for
unit vector
\newcommand{\degree}{\ensuremath{^\circ}} % degree

\renewcommand{\div}[1]{\gv{\nabla} \cdot #1}  % for
divergence
\newcommand{\curl}[1]{\gv{\nabla} \times #1}  % for curl
\newcommand{\grad}[1]{\gv{\nabla} #1} % for
gradient
\newcommand{\integrate}[2]{\ensuremath{\int_{#1}^{#2}}}
%Intregral with lower and upper limits
\newcommand{\summation}[2]{\displaystyle{\sum_{#1}^{#2}}}
\newcommand{\padd}[1]{\textcolor{blue}{#1}}
\newcommand{\cvb}[1]{\left(#1\right)} % ( ) delimiters
\newcommand{\clyb}[1]{\left\{#1\right\}} % { } delimiters
\newcommand{\sqb}[1]{\left[#1\right]} % [ ] delimiters
\newcommand{\sinc}{{\rm sinc}}
\newcommand{\Image}[2]{\begin{figure}\includegraphics[scale=#1]{Img/#2}\end{figure}}
   %
\newcommand{\cntr}[1]{\begin{center}#1\end{center}}
\newcommand{\eqn}[1]{\begin{equation}#1\end{equation}}
\author{Marvin Doyley \\ \copyright Copyright 2013}
\institute{University of Rochester \\ Hajim School of Engineering and
Applied Science}


[O] Problem with beamer export

2013-10-06 Thread Marvin Doyley
Hi there,

I just updated to Org 8.2.1 and for some reason when I export a frame I get

\subsection{Title}


rather than

\begin{frame}{Title}

\end{frame}


Is this a bug or am I doing something wrong ?

In my .emacs file, I have

(add-to-list 'org-latex-classes
'("beamer"
"
\\makeatletter\\let\\ifGm@compatii\\relax\\makeatother
\\documentclass\[t]{beamer\}"
 ("\\section\{%s\}" . "\\section*\{%s\}")
  ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
 ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
))

Maybe, I missed something.

Thanks
M


[O] LaTeX export with Code

2013-10-06 Thread Sam Flint
I regularly use org-mode for LP, and would like to be able to export the
name of a code chunk as a caption in LaTeX.  I have looked at the
manual, and don't see any way of doing this, are there?

Thanks,

Sam


-- 
Sam Flint
swfl...@flintfam.org
freenode: swflint
(402) 517-8468
http://flintfam.org/~swflint
BAFBF3FF



[O] org-agenda-prefix-format %s returns null string

2013-10-06 Thread Samuel Wales
The following custom agenda has a couple of problems.  Can anybody
suggest fixes?

  1) slow
  2) there is no agenda prefix telling me the date or scheduling information

My understanding is that %s is supposed to show scheduling
information?  Do people typically use %(org-get-property
\"SCHEDULED\") and similar instead?

Thanks.

===
`(("i" . "views -- agenda, next")
  ("iu" "upcoming scheduled and deadline, by timestamp -- experimental"
   tags ,(concat "+SCHEDULED>\"\"+SCHEDULED<\"<+1m>\""
 "|+DEADLINE>\"\"+DEADLINE<\"<+1m>\"")
   ((org-use-tag-inheritance nil)
(org-agenda-prefix-format "%s")
(org-agenda-sorting-strategy '(timestamp-up
...
===

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

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

Denmark: free Karina Hansen NOW.



Re: [O] Clocking in on non-org files

2013-10-06 Thread Marcin Borkowski
Dnia 2013-10-06, o godz. 17:11:25
Suvayu Ali  napisał(a):

> On Sun, Oct 06, 2013 at 02:07:45PM +0200, Marcin Borkowski wrote:
> > Hi all,
> > 
> > I have a bunch of TODO items connected with LaTeX files (in general:
> > projects) I'm working on.  I was wondering whether it might be
> > possible and/or wise to set things up so that I could clock in (C-c
> > C-x C-i) in a buffer containing such a file.  Currently, executing
> > org-clock-in in a non-Org buffer results in an error (at least with
> > my setup); with a prefix argument, everything is fine, I'm asked
> > for one of the last clocked items.  My dream is that I can clock in
> > my buffer with just
> 
> Try capture: (info "(org) Template elements").
> 

Thanks, I didn't think about it, though it's not exactly what I'm
looking for.  My dream setup is like this: I bind globally C-c C-x C-i
to something, and when typing this key sequence /outside/ Org-mode, I
am asked about a /node/ somewhere in my Org files (preferably with
autocompletion, like refiling).  Then, apart from starting the clock, a
file-local variable remembering this node is added /to the file I'm in/
(as a comment at the end, for instance), so that the /next/ time I'm
editing this file, C-c C-x C-i just starts clocking.

Best,

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



Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Michael Brand
Hi Karl

On Sun, Oct 6, 2013 at 10:06 PM, Karl Voit  wrote:
> Please do apply the patch!

Done.

Michael



Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Karl Voit
Hi!

* Michael Brand  wrote:
>
> On Sun, Oct 6, 2013 at 8:31 PM, Karl Voit  wrote:
>>
>> I mentioned only the "feature-show" since it is a much wider range
>> than spreadsheet only.
>
> Yes. but someone looking around only in the Worg tutorial section
> "Tables, Spreadsheet, Plotting" will not find it and also from the
> link above the content I would like to point to is not to be expected
> and is still a long way to go: two clicks on the right links and
> browse to the right section. What I had in mind is something like the
> attached patch for Worg as a suggestion. What do you think?

You are absolutely right.

Please do apply the patch!


PS: Good to know that Org-mode headings could be referenced via HTML
anchors on Github :-)

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] Tangle with conditional statement

2013-10-06 Thread Andreas
Hi Fabrice and Eric,

A long over due response. Apologies.

I got a unanimous answer about not putting the conditional statements in
the code block header, that was reassuring =). I guess the use case here is
if you have different configurations for different users or machines or
something similar.

I looked at the code I was shown. I noticed there was some pieces missing
but even though adding them I could not get the code to work properly. I
figured it was due to me using el-get for my packages and no packages are
actually required, but somehow autoloaded instead, by the el-get setup, or
it's just a matter of me being a noob elisper.

Anyway,  when I was fiddling around with the code I stumbled upon el-gets
built in functions. I noticed that, of course, el-get has functions for
checking install status of packages. My current solution therefore looks
like this:
(if (el-get-package-exists-p "")
  (do stuff) )

which seems to work well for now but is not optimal. Of course it's only
works with el-get installed packages but I'll have to live with it for now.

Thanks Fabrice and Eric for your swift responses.

Regards

Andreas


Re: [O] list items not treated as such.

2013-10-06 Thread Carsten Dominik

On 4.10.2013, at 20:47, Paul Rudin  wrote:

> Nicolas Goaziou  writes:
> 
>> Hello,
>> 
>> Paul Rudin  writes:
>> 
>>> Paul Rudin  writes:
>>> 
>>> (about lists)
>>> 
>>> Here is a test for this problem. Notice that if you change the "a)" to "1."
>>> - for example - the test passes. So this is something specific to
>>> alphabetically labelled list items.
>>> 
>>> 
>>> (ert-deftest org-list-item-test ()
>>>  (with-temp-buffer
>>>(org-mode)
>>>(let ((org-allow-alphabetical t)
>>>   (fill-column 70))
>>>  (insert "1. some stuff\n"
>>>   "   a) an alphabetic list item with text longer that the current 
>>> fill column so that it gets wrapped by fill-paragraph")
>>>  (fill-paragraph)t
>>>  (should (not (equal (org-in-item-p) 1))
>> 
>> Quoting `org-list-allow-alphabetical' docstring:
>> 
>>  This variable needs to be set before org.el is loaded.  If you
>>  need to make a change while Emacs is running, use the customize
>>  interface or run the following code, where VALUE stands for the
>>  new value of the variable, after updating it:
>> 
>>(when (featurep 'org-element) (load "org-element" t t))
>> 
>> So let-binding it cannot work.
> 
> 
> Aha. So how do you test things like that? This seems to be OK. Is it?
> 
> (ert-deftest org-list-item-test ()
>  (with-temp-buffer
>(org-mode)
>(let ((fill-column 70))
>  (custom-set-variables '(org-list-allow-alphabetical t))
>  (insert "1. some stuff\n"
> "   a) an alphabetic list item with text longer that the current 
> fill column so that it gets wrapped by fill-paragraph")
>  (fill-paragraph)
>  (should (not (equal (org-in-item-p) 1))
> 
> 
> This also explains what I was seeing, as I was setting it in my init
> file after org was loaded. I was lulled into a false sense of security
> because some aspects of alphabetical list label work in this
> circumstance.
> 
> All I need now is roman numeral list labels too :)

No chance!  :)

- Carsten


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Michael Brand
Hi Karl

On Sun, Oct 6, 2013 at 8:31 PM, Karl Voit  wrote:
> * Michael Brand  wrote:
>> Yes, with all the explanations of how the formulas work your github
>> novoid/org-mode-workshop contains a very nice spreadsheet
>> documentation, for more than just referencing remote tables. Can you
>> please link the section here with mentioning that it contains
>> explanations of how the formulas work?:
>> http://orgmode.org/worg/org-tutorials/index.html
>
> It is already linked with "Org-mode Workshop by Karl Voit, conducted
> at Graz University of Technology in November 2012 (3x4 hours). It
> includes a newer version of the feature-show from the entry above.".
>
> I mentioned only the "feature-show" since it is a much wider range
> than spreadsheet only.

Yes. but someone looking around only in the Worg tutorial section
"Tables, Spreadsheet, Plotting" will not find it and also from the
link above the content I would like to point to is not to be expected
and is still a long way to go: two clicks on the right links and
browse to the right section. What I had in mind is something like the
attached patch for Worg as a suggestion. What do you think?

Michael
From ca580793cb4ac7cc46342b3416527ebbb9ea60d8 Mon Sep 17 00:00:00 2001
From: Michael Brand 
Date: Sun, 6 Oct 2013 21:35:50 +0200
Subject: [PATCH] More links in tutorials for tables

---
 org-hacks.org   |  4 
 org-tutorials/index.org | 15 ++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/org-hacks.org b/org-hacks.org
index cb0c66c..3679757 100644
--- a/org-hacks.org
+++ b/org-hacks.org
@@ -571,6 +571,10 @@ equivalent function after =C-c ^ f=, use this one instead:
 *** Adding Licenses to org files
   You can add pretty standard licenses, such as creative commons or gfdl to 
org articles using [[file:code/elisp/org-license.el][org-license.el]].
 ** Org Table
+   :PROPERTIES:
+   :CUSTOM_ID: Tables
+   :END:
+
 *** Align all tables in a file
 
 Andrew Young provided this function in 
[[http://thread.gmane.org/gmane.emacs.orgmode/58974/focus%3D58976][this 
thread]]:
diff --git a/org-tutorials/index.org b/org-tutorials/index.org
index 6e5195c..edc4f12 100644
--- a/org-tutorials/index.org
+++ b/org-tutorials/index.org
@@ -108,7 +108,7 @@
 - A short 
[[http://lumiere.ens.fr/~guerry/org-playing-with-lists-screencast.html][screencast]]
 presenting a few features of plain lists, by
   Bastien.
 
-** Tables, Spreadseet, Plotting
+** Tables, Spreadsheet, Plotting
 
 - [[file:tables.org][A very short introduction to tables in Org-mode]], by 
Bastien.
 
@@ -117,6 +117,9 @@
 
 - [[file:org-spreadsheet-lisp-formulas.org][Using Emacs lisp for spreadsheet 
formulas]] ([[file:org-tableur-tutoriel.org][french version]]), by Bastien.
 
+- 
[[https://github.com/novoid/org-mode-workshop/blob/master/featureshow/org-mode-teaser.org#1131-referencing-example-with-detailed-explanation][Various
 spreadsheet formulas with explanations how they work]]
+  by Karl Voit.
+
 - [[file:org-plot.org][Plotting tables in Org-Mode using org-plot]] by Eric 
Schulte
 
 - [[file:org-dot-diagrams.org][Plotting process diagrams or work flows in 
Org-Mode using dot]] by Karl Voit
@@ -131,6 +134,16 @@
 
 - [[file:org-lookups.org][Table lookup functions]] by Jarmo Hurri
 
+- The following are not tutorials but listed here somehow for
+  "completeness" of the information sources to be checked too:
+  - [[http://orgmode.org/manual/The-spreadsheet.html][Org manual, section 
about spreadsheet]]
+
+  - [[http://orgmode.org/worg/org-faq.html#Tables][Worg FAQ, section about 
tables]]
+
+  - [[http://orgmode.org/worg/org-hacks.html#Tables][Worg hacks, section about 
tables]]
+
+  - 
[[http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=testing/lisp/test-org-table.el;hb=HEAD][most
 of the automated Emacs Regression Tests (ERT) for Org tables]]
+
 ** Dates and Times
 
 - [[http://members.optusnet.com.au/~charles57/GTD/org_dates/][Using Dates and 
Times in Emacs Org-mode]] by 
[[http://members.optusnet.com.au/~charles57/GTD/][Charles Cave]].
-- 
1.7.12.4 (Apple Git-37)



Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Karl Voit
* Michael Brand  wrote:
>
> Hi Karl, hi all

Hi Michael!

> Yes, with all the explanations of how the formulas work your github
> novoid/org-mode-workshop contains a very nice spreadsheet
> documentation, for more than just referencing remote tables. Can you
> please link the section here with mentioning that it contains
> explanations of how the formulas work?:
> http://orgmode.org/worg/org-tutorials/index.html

It is already linked with "Org-mode Workshop by Karl Voit, conducted
at Graz University of Technology in November 2012 (3x4 hours). It
includes a newer version of the feature-show from the entry above.".

I mentioned only the "feature-show" since it is a much wider range
than spreadsheet only.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




[O] Babel code block linking issue

2013-10-06 Thread Michael Bach
Dear org-mode Users and Developers,


I am running org 8.2.1 and was following the nice video [1] showing off
some org-mode features.  I could follow and reproduce up to the point
where he goes on to edit a code block via C-c ' and puts a link there
via `org-store-link'.  When I try that, I get the good old
``wrong-type-argument stringp nil'' error - see backtrace on pastebin
[2].  I very much assume that the `org-store-link(nil)' call at the very
beginning is messed up.  I am using a simple `username' as link, nothing
fancy here.

Any ideas?  How to further debug?

Michael

[1] http://www.youtube.com/watch?v=lsYdK0C2RvQ
[2] http://pastebin.com/QqLFvSwn




Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Michael Brand
Hi Karl, hi all

@maintainers:
According to the below I tried to improve the Org manual with the
attached patch, please review and apply.

On Sun, Oct 6, 2013 at 1:30 PM, Karl Voit  wrote:
> The things I learned about referencing other tables I documented in [1].
>
> Maybe you'll find it handy as a reference to referencing tables :-)
>
>   1. 
> https://raw.github.com/novoid/org-mode-workshop/master/featureshow/org-mode-teaser.org
>  search for "referencing example with detailed explanation"

Yes, with all the explanations of how the formulas work your github
novoid/org-mode-workshop contains a very nice spreadsheet
documentation, for more than just referencing remote tables. Can you
please link the section here with mentioning that it contains
explanations of how the formulas work?:
http://orgmode.org/worg/org-tutorials/index.html

Your new example in github novoid/org-mode-workshop with
@2=remote(Income2012h, @3$$#)
- motivated by my example in the current Org manual
- that interprets text as a Calc algebraic expression, which is
  subject to reformatting
reminded me of that just copying fields is better done with a Lisp
formula "'(identity [...])", see attached patch for the Org manual.

Michael
From a3efc3edd94ccc21544792ddde4a6c54284100ce Mon Sep 17 00:00:00 2001
From: Michael Brand 
Date: Sun, 6 Oct 2013 19:01:15 +0200
Subject: [PATCH] Improve manual for table formulas

* doc/org.texi (Field coordinates in formulas): Rephrase and add an
example with a Lisp formula to copy from remote table.
---
 doc/org.texi | 33 -
 1 file changed, 20 insertions(+), 13 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 0271d70..0a90d33 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2551,21 +2551,28 @@ for Calc}.
 @cindex row, of field coordinates
 @cindex column, of field coordinates
 
-For Calc formulas and Lisp formulas @code{@@#} and @code{$#} can be used to
-get the row or column number of the field where the formula result goes.
-The traditional Lisp formula equivalents are @code{org-table-current-dline}
-and @code{org-table-current-column}.  Examples:
+One of the very first actions during evaluation of Calc formulas and Lisp
+formulas is to substitute @code{@@#} and @code{$#} in the formula with the
+row or column number of the field where the current result will go to.  The
+traditional Lisp formula equivalents are @code{org-table-current-dline} and
+@code{org-table-current-column}.  Examples:
 
-@example
-if(@@# % 2, $#, string(""))   @r{column number on odd lines only}
-$3 = remote(FOO, #$2)  @r{copy column 2 from table FOO into}
- @r{column 3 of the current table}
-@end example
+@table @code
+@item if(@@# % 2, $#, string(""))
+Insert column number on odd rows, set field to empty on even rows.
+@item $2 = '(identity remote(FOO, #$1))
+Copy text or values of each row of column 1 of the table named @code{FOO}
+into column 2 of the current table.
+@item @@3 = 2 * remote(FOO, @@1$$#)
+Insert the doubled value of each column of row 1 of the table named
+@code{FOO} into row 3 of the current table.
+@end table
 
-@noindent For the second example, table FOO must have at least as many rows
-as the current table.  Note that this is inefficient@footnote{The computation 
time scales as
-O(N^2) because table FOO is parsed for each field to be copied.} for large
-number of rows.
+@noindent For the second/third example, the table named @code{FOO} must have
+at least as many rows/columns as the current table.  Note that this is
+inefficient@footnote{The computation time scales as O(N^2) because the table
+named @code{FOO} is parsed for each field to be read.} for large number of
+rows/columns.
 
 @subsubheading Named references
 @cindex named references
-- 
1.7.12.4 (Apple Git-37)



[O] Org-agenda: show subtree?

2013-10-06 Thread Boyan Penkov
Hello all,

I'm writing to ask about showing a TODO item's entire subtree in the agenda 
view.

I have a series of TODO items that have plain lists as subtrees; something like 
this:

** TODO Grocery run
   DEADLINE: <2013-08-31 Sat> SCHEDULED: <2013-08-25 Sun>
*** Apples
*** Milk
*** Cottage cheese

Here, I denote that I want to to do the grocery run, and then have short notes 
that apply to that TODO below.

I'd like to show the entire subtree -- expanded! -- in the agenda view, instead 
of just the line that contains the TODO.  Is there a way to do this?

Cheers!

--
Boyan Penkov
www.boyanpenkov.com




[O] Clocking in on non-org files

2013-10-06 Thread Marcin Borkowski
Hi all,

I have a bunch of TODO items connected with LaTeX files (in general:
projects) I'm working on.  I was wondering whether it might be possible
and/or wise to set things up so that I could clock in (C-c C-x C-i) in
a buffer containing such a file.  Currently, executing org-clock-in in
a non-Org buffer results in an error (at least with my setup); with a
prefix argument, everything is fine, I'm asked for one of the last
clocked items.  My dream is that I can clock in my buffer with just
C-c C-x C-i, and Org somehow could know which item to clock.  I imagine
file-local variable might be the way to go.  It might be a good idea to
both change/advise org-clock-in to accomodate for this use case, and
define something like
org-associate-file-with-org-headline-for-the-purpose-of-clocking to
e.g. ask for the item (from org-clock history), or use the refile
interface (which I haven't used, but I guess it could work well) and
set the file-local variable accordingly.

Does there exist something like this?  Do you like this idea?  Does it
have any pitfalls I cannot see? Would anyone but me use this?  If the
answers are no, yes, no, yes, I might try to implement it when I have
some time to spare (i.e., not now - I'm extremely busy during this week
- but maybe in a week or two)

Best,

-- 
Marcin Borkowski
room B3-46, phone no +48 61 829 5375
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Deactivate babel source block

2013-10-06 Thread Michael Bach
On 10/6/13 5:09 PM, Eric Schulte wrote:
> You want to set the :eval and :tangle header arguments, this can be done
> with `org-babel-insert-header-arg' bound to "C-c C-v j".  I've just
> updated this function so that it now takes two optional arguments
> specifying the header argument and value.
> 
> So your function could now be something like the following.
> 
> (defun my-org-babel-deactivate ()
>   (interactive)
>   (org-babel-insert-header-arg "eval" "never")
>   (org-babel-insert-header-arg "tangle" "no"))
> 
> Hope this helps,
> 

Thanks for implementing this so quickly - I am currently on 8.2 release
branch, but am looking forward to it!

Michael






Re: [O] Clocking in on non-org files

2013-10-06 Thread Suvayu Ali
On Sun, Oct 06, 2013 at 02:07:45PM +0200, Marcin Borkowski wrote:
> Hi all,
> 
> I have a bunch of TODO items connected with LaTeX files (in general:
> projects) I'm working on.  I was wondering whether it might be possible
> and/or wise to set things up so that I could clock in (C-c C-x C-i) in
> a buffer containing such a file.  Currently, executing org-clock-in in
> a non-Org buffer results in an error (at least with my setup); with a
> prefix argument, everything is fine, I'm asked for one of the last
> clocked items.  My dream is that I can clock in my buffer with just

Try capture: (info "(org) Template elements").

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Deactivate babel source block

2013-10-06 Thread Eric Schulte
You want to set the :eval and :tangle header arguments, this can be done
with `org-babel-insert-header-arg' bound to "C-c C-v j".  I've just
updated this function so that it now takes two optional arguments
specifying the header argument and value.

So the following could now be something like the following.

(defun my-org-babel-deactivate ()
  (interactive)
  (org-babel-insert-header-arg "eval" "never")
  (org-babel-insert-header-arg "tangle" "no"))

Hope this helps,

Michael Bach  writes:

> Dear org-mode Users and Developers,
>
>
> I am looking for a nice way to deactivate a babel source block with
> point being anywhere on it. Imagine e.g. C-c C-v C-w to say "I want to
> toggle execution/tangling for this block".
>
> Background: I have the .emacs setup in a literate org-mode file where I
> am testing new emacs packages.  Now many blocks represent specific
> features that I want to be activated / deactivated.  This should ideally
> behave like the other source code functions (i.e. C-c C-v family).
>
> My naive approach as elisp noob was:
> #+begin_src emacs-lisp
>   (defun my-org-babel-deactivate ()
> (interactive)
> (org-edit-special)
> (mark-whole-buffer)
> (comment-region)
> (org-edit-src-exit))
> #+end_src
>
> Apart from it not working (Wrong number of arguments), this would have
> been a dirty one in any case.  Now I thought there must be a better way
> by setting/un-setting the respective header arguments in an automated
> way.  Is this already possible with org-mode version 8.2?
>
> Best Regards,
> Michael
>
>

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



Re: [O] Deactivate babel source block

2013-10-06 Thread Eric Schulte
You want to set the :eval and :tangle header arguments, this can be done
with `org-babel-insert-header-arg' bound to "C-c C-v j".  I've just
updated this function so that it now takes two optional arguments
specifying the header argument and value.

So your function could now be something like the following.

(defun my-org-babel-deactivate ()
  (interactive)
  (org-babel-insert-header-arg "eval" "never")
  (org-babel-insert-header-arg "tangle" "no"))

Hope this helps,

Michael Bach  writes:

> Dear org-mode Users and Developers,
>
>
> I am looking for a nice way to deactivate a babel source block with
> point being anywhere on it. Imagine e.g. C-c C-v C-w to say "I want to
> toggle execution/tangling for this block".
>
> Background: I have the .emacs setup in a literate org-mode file where I
> am testing new emacs packages.  Now many blocks represent specific
> features that I want to be activated / deactivated.  This should ideally
> behave like the other source code functions (i.e. C-c C-v family).
>
> My naive approach as elisp noob was:
> #+begin_src emacs-lisp
>   (defun my-org-babel-deactivate ()
> (interactive)
> (org-edit-special)
> (mark-whole-buffer)
> (comment-region)
> (org-edit-src-exit))
> #+end_src
>
> Apart from it not working (Wrong number of arguments), this would have
> been a dirty one in any case.  Now I thought there must be a better way
> by setting/un-setting the respective header arguments in an automated
> way.  Is this already possible with org-mode version 8.2?
>
> Best Regards,
> Michael
>
>

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



Re: [O] Restore raw output in LaTeX export from in-line code block

2013-10-06 Thread Liam Healy
On Wed, Oct 2, 2013 at 9:28 AM, Eric Schulte  wrote:
>
>
> inline "\\sqrt{2}" works
>
>
> Are you able to interactively execute inline code blocks?
>
> I'm not sure what the issue could be.
>
> Best,
>

Thanks for the response Eric. I do not get the results you do:
  src_lisp[:results raw]{(format nil "\\sqrt{2~c" (code-char 125))}
gives me
  "$\backslash$\sqrt{2}"
which is obviously wrong. Even so, what you get is wrong too; it should be
  \sqrt{2}
(a single backslash and no quotes), which is what I get under 7.9.4.
If I have only one backslash,
 src_lisp[:results raw]{(format nil "\sqrt{2~c" (code-char 125))}
I get
 "sqrt\{2\}"
still wrong.

It appears there is more than one problem, and one of the problems is
the Common Lisp's escaping of "\" with a second "\" is being
misinterpreted. A possible second problem is that it seems to now use
#'print (or the equivalent) on the lisp side instead of #'princ, so
that the output includes escape characters.

Thanks,
Liam



[O] exported dates in ox-rss.el

2013-10-06 Thread Andrea Rossetti

Hello everyone,
 
  I played a bit with the RSS export (contrib/lisp/ox-rss.el),
and found that the dates in the emitted output lack the month name:
Sat, 05  2013 15:44:49 +0200 (the month "Oct"
is missing).

  It turned out that the date format specifier "%h" is not
accepted by the runtime (MSVCRT.DLL) of my Windows installation
(a plain Windows 7 64 bit from year 2009). 

  I resolved my personal problem by simply replacing "%h"->"%b"
in my ox-rss.el, but may I please ask to good-willed Windows+Emacs
users around if they face the same issue (or if it's just me).

  Here is a simple test: open an empty buffer and type:

(format-time-string "day: %d, month: %h, year: %y")
C-x C-e wrongly returns "day: 06, month: , year: 13"

(format-time-string "day: %d, month: %b, year: %y")
C-x C-e returns "day: 06, month: Oct, year: 13"

  Thanks in advance, kindest regards.

  Andrea Rossetti
  http://github.com/thesoftwarebin




[O] Clocking in on non-org files

2013-10-06 Thread Marcin Borkowski
Hi all,

I have a bunch of TODO items connected with LaTeX files (in general:
projects) I'm working on.  I was wondering whether it might be possible
and/or wise to set things up so that I could clock in (C-c C-x C-i) in
a buffer containing such a file.  Currently, executing org-clock-in in
a non-Org buffer results in an error (at least with my setup); with a
prefix argument, everything is fine, I'm asked for one of the last
clocked items.  My dream is that I can clock in my buffer with just
C-c C-x C-i, and Org somehow could know which item to clock.  I imagine
file-local variable might be the way to go.  It might be a good idea to
both change/advise org-clock-in to accomodate for this use case, and
define something like
org-associate-file-with-org-headline-for-the-purpose-of-clocking to
e.g. ask for the item (from org-clock history), or use the refile
interface (which I haven't used, but I guess it could work well) and
set the file-local variable accordingly.

Also, this might allow for "automated clocking", i.e., advising
switch-buffer or something so that when I switch to a buffer belonging
to some project, clocking on it starts automatically.

Does there exist something like this?  Do you like this idea?  Does it
have any pitfalls I cannot see? Would anyone but me use this?  If the
answers are no, yes, no, yes, I might try to implement it when I have
some time to spare (i.e., not now - I'm extremely busy during this week
- but maybe in a week or two)

Best,

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



[O] buggy subscripts and superscripts escape with latex export

2013-10-06 Thread Daniele Pizzolli

Hello all,

my original problem was how to get "a_b" exported literal using the
latex exporter.  I explored a bit the sub/superscript options and I
think that there are some buggy behaviors.

The following code:

* test
- subscript a_b
- subscript escaped a\_b
- superscript a^b
- superscript escaped a\^b

Will produce with Org-mode version 7.9.4:

\begin{itemize}
\item subscript a$_b$
\item subscript escaped a\_b
\item superscript a$^b$
\item superscript escaped a\^b
\end{itemize}

And will produce with Org-mode version 8.2.1 (release_8.2.1-75-g45d81d
...)

\begin{itemize}
\item subscript a$_{\text{b}}$
\item subscript escaped a$\backslash$$_{\text{b}}$
\item superscript a$^{\text{b}}$
\item superscript escaped a$\backslash$$^{\text{b}}$
\end{itemize}

According to the manual

http://orgmode.org/manual/Subscripts-and-superscripts.html#Subscripts-and-superscripts

- The subscript escape is working correctly in 7.9.4
- The subscript escape is not working correctly in 8.2.1
- The superscript escape is not working correctly in 8.2.1.
- I do think that superscript escape is not working correctly in
  7.9.4.  It produces something like a LATIN SMALL LETTER B WITH
  CIRCUMFLEX instead of the expected b with "^" before.

I did not have any success following the suggestion in the manual, eg:

(setq org-use-sub-superscripts "{}")

But at the end writing:

#+OPTIONS: ^:{}

and a plain "a_b" solved the issue for me.

Regards,
Daniele



Re: [O] recurring events with different notes for each occurrence

2013-10-06 Thread Karl Voit
* Jarmo Hurri  wrote:
>
> Greetings Karl.

Hi!

> Karl Voit  writes:
>
>> org-clone-subtree-with-time-shift
>
> That will do the work, but as a programmer I must say that I do not
> really like this technique, since it involves copying the same
> information to a large number of places. 

:-)

I thought you wanted to get different instances per occurrence in
order to add different notes to it.

As a programmer, I do understand your objection. However, I tend to
have following structure:

* Events
** LUGG meetings  :LUGG:common:tags:

   - common information about this event

*** <...> single occurrence
*** <...> another occurrence
[...]

For other purposes, I am also using the following approach:

* Events
** LUGG meetings  :LUGG:common:tags:

   - common information about this event

   - <2013-09-30 Sun 18:00-20:00> 
   - <2013-10-06 Sun 18:00-20:00> 
   - [...]

This is a rather minimal approach and works only if you do show
each time-stamp in your agenda. You can still add notes as a
sub-list to any occurrence. 

However, AFIAK you can not use org-clone-subtree-with-time-shift
with it. (... except by using the first method above and convert the
heading to list items - the opposite to C-c C-*) 

> In any case, thanks for the tip! I learned something new, and may have
> to resort to using the approach anyway.

You're welcome.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] Help on spreadsheet/calc references and improvements

2013-10-06 Thread Karl Voit
* Karl Voit  wrote:
>
> I am no expert with calc. I enjoy using it for rather
> simple things. However, I would like to use referencing more often
> and I face an issue here.
>
> I did a very basic example in two ways: vertical layout and
> horizontal layout. The reason for this is, that I got the feeling
> that referencing a set of values (not a single cell) differs in
> capabilities from rows to columns.

I could solve all of my issues with the kind help of Michael.

The things I learned about referencing other tables I documented in [1].

Maybe you'll find it handy as a reference to referencing tables :-)

  1. 
https://raw.github.com/novoid/org-mode-workshop/master/featureshow/org-mode-teaser.org
 search for "referencing example with detailed explanation"
-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] recurring events with different notes for each occurrence

2013-10-06 Thread Jarmo Hurri

Greetings Karl.

Karl Voit  writes:

> * Jarmo Hurri  wrote:
>> 2. I have some events that take place multiple times in a week. This is
>>easy to accomplish:
>>
>>* Learn something new about org-mode
>>  <2013-10-05 Sat 17:00-18:00 +1w>
>>  <2013-10-06 Sun 12:00-14:00 +1w>
>>
>>However, I would also like to associate, with each of these
>>timestamps, a different piece of text.
>
> Now, I create a recurring event (let's say Linux User Group):
>
> ** <2013-10-07 17:00-19:00 +4w> LUGG@City
>
> Next, I invoke org-clone-subtree-with-time-shift and multiply the
> event for the next year or so. This gets me a copy of the event for
> each occurrence. Those distinct events I can delete, cancel, move,
> add notes to, and so forth.
>
> I like this much better than one heading for all occurrences.

That will do the work, but as a programmer I must say that I do not
really like this technique, since it involves copying the same
information to a large number of places. If I want to change information
common to all occurrences, I can of course do a replace-string, but
still...

In any case, thanks for the tip! I learned something new, and may have
to resort to using the approach anyway.

Jarmo




Re: [O] Hide some timestamp repetitions; timestamp property in agenda

2013-10-06 Thread Jarmo Hurri
Suvayu Ali  writes:

> On Sat, Oct 05, 2013 at 05:45:28PM +0300, Jarmo Hurri wrote:
>> 1. In general I want to see repeated timestamps, TODOs etc. appear at
>>every repeat, so I need to have the value of
>>org-agenda-repeating-timestamp-show-all set to t. However, for
>>*some* repeated timestamps I would only like to see only the next
>>repeated instance. How do I accomplish this?
>
> Maybe habits can help here: (info "(org) Tracking your habits")

Yep, that was the solution I was looking for. Thanks!

Jarmo




[O] Deactivate babel source block

2013-10-06 Thread Michael Bach
Dear org-mode Users and Developers,


I am looking for a nice way to deactivate a babel source block with
point being anywhere on it. Imagine e.g. C-c C-v C-w to say "I want to
toggle execution/tangling for this block".

Background: I have the .emacs setup in a literate org-mode file where I
am testing new emacs packages.  Now many blocks represent specific
features that I want to be activated / deactivated.  This should ideally
behave like the other source code functions (i.e. C-c C-v family).

My naive approach as elisp noob was:
#+begin_src emacs-lisp
  (defun my-org-babel-deactivate ()
(interactive)
(org-edit-special)
(mark-whole-buffer)
(comment-region)
(org-edit-src-exit))
#+end_src

Apart from it not working (Wrong number of arguments), this would have
been a dirty one in any case.  Now I thought there must be a better way
by setting/un-setting the respective header arguments in an automated
way.  Is this already possible with org-mode version 8.2?

Best Regards,
Michael




Re: [O] Hide some timestamp repetitions; timestamp property in agenda

2013-10-06 Thread Suvayu Ali
On Sat, Oct 05, 2013 at 05:45:28PM +0300, Jarmo Hurri wrote:
> 
> Greetings.
> 
> I am pretty sure that the following can be done, I just do not know how.
> 
> 1. In general I want to see repeated timestamps, TODOs etc. appear at
>every repeat, so I need to have the value of
>org-agenda-repeating-timestamp-show-all set to t. However, for *some*
>repeated timestamps I would only like to see only the next repeated
>instance. How do I accomplish this?

Maybe habits can help here: (info "(org) Tracking your habits")

-- 
Suvayu

Open source is the future. It sets us free.