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

2013-09-29 Thread Paul Rudin
Paul Rudin  writes:

> Daniele Pizzolli  writes:
>
>> On 09/29/2013 08:40 PM, Paul Rudin wrote:
>>>
>>> Example:
>>>
>>> 1. Some text that extends over more than one line, I'm not sure if the exact
>>> length is relevant.
>>> a) stuff; and then
>>> b) this item will not be recognised as a list item, which can be a bit 
>>> of a
>>> pain, so if you're typing with auto-fill on it will be formatted like 
>>> this,
>>> but really the second line should align underneath the text of the 
>>> start of
>>> the item.
>>>
>>>
>>> Is this working as intended? It seems wrong to me - if I type item b)
>>> above it surely should fill properly?
>>
>> Hello Paul,
>> Be sure to have this setting:
>>
>> #+BEGIN_SRC emacs-lisp :results none
>> (setq org-list-allow-alphabetical t)
>> #+END_SRC
>
> Yeah, I have that in my init.el, it's not a general problem with
> alphabetic labels, it's only in some contexts that problem happens.
> hitting alt-enter at the end of item a) works just fine for example - I
> get the b) label inserted correctly for example.

Another data point on this. I have just noticed that if there is a blank
line prior to the first list item then things work as they should.




Re: [O] Network Diagram

2013-09-29 Thread Noorul Islam K M
Esben Stien  writes:

> Any way to create something like a network diagram with org-mode?
>
> I looked in the manual and found state change diagrams and sequence
> diagrams, but nothing that would help me plan a network with routers and
> switches. 
>
> Any pointers?

You can find example here http://doc.norang.ca/org-mode.html for the
tools others mentioned in this thread.

Thanks and Regards
Noorul



Re: [O] Network Diagram

2013-09-29 Thread Nick Dokos
Michael Gauland  writes:

> Esben Stien  esben-stien.name> writes: 
>> Any way to create something like a network diagram with org-mode?
>
> I haven't tried doing network diagrams, but I've found dot (graphviz),
> PlantUML, and Asymptote very flexible.
>

I used dot for some fairly simple network diagrams. It produced decent
output with minimum effort: not perfect, but good enough given my time
constraints at the time.

-- 
Nick




Re: [O] example filter for code blocks?

2013-09-29 Thread Thomas S. Dye
Hi John,

I tried the following, which works on my Mac.

#+name: supplementary-material-latex-header
#+header: :tangle supplementary-material-header.tex
#+begin_src latex
  \usepackage{attachfile}
  \newcommand{\LaunchBinary}[2]{%
% #1: layer name,
% #2: link text
\leavevmode%
\pdfstartlink  attr{/C [0.9 0 0] /Border [0 0 2]} user {
  /Subtype /Link
  /A <<
/F <<
  /DOS (#1)
  /Mac (#1)
  /Unix (#1)
>>
/S /Launch
  >>
} #2%
\pdfendlink%
  }  
#+end_src

Thanks for the link.

All the best,
Tom

John Kitchin  writes:

> indeed, there is specific code for DOS/Mac I think.
>
> I grabbed that code from here:
> http://stackoverflow.com/questions/2341364/link-to-external-application-in-latex-beamer
>
> which suggests these options are possible
>
>  /DOS (xxx)
>  /Unix (xxx)
>  /Mac (#1)
>
> I have not tried to see if you can put them all in. Let me know if it
> works to put them all in.
>
> I have some Mac users in my class that might need that!
>
>
>
> John
>
> ---
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
>
>
>
> On Sun, Sep 29, 2013 at 8:33 PM, Thomas S. Dye  wrote:
>
>> Hi John,
>>
>> John Kitchin  writes:
>>
>> > Hi everyone,
>> > Thanks for  the tips in using export filters for code blocks. I thought I
>> > would share my current solution. The goal was to export all the code
>> blocks
>> > in an org-file to files systematically named part1/script-%d.py where %d
>> is
>> > a number. I didnot want to tangle exactly, because I wanted to avoid
>> naming
>> > the code block tangle files.
>> >
>> > Then, I wanted to insert a pdf link that would open the file, after the
>> > syntax highlighted code.
>> >
>> > I wanted this because it is not convenient to copy and paste the
>> > syntax-highlighted code into an editor. I teach from the pdf that is
>> > generated, and it would be convenient to just open the code, edit and
>> rerun
>> > to explore solutions.
>> >
>> > So, here is the solution:
>> >
>> > At the top of my orgfile, I have this definition which creates a pdf
>> link.
>> >
>> > #+LATEX_HEADER: \newcommand{\LaunchBinary}[2]{%
>> > #+LATEX_HEADER:   % #1: layer name,
>> > #+LATEX_HEADER:   % #2: link text
>> > #+LATEX_HEADER:   \leavevmode%
>> > #+LATEX_HEADER:   \pdfstartlink  attr{/C [0.9 0 0] /Border [0 0 2]} user
>> {
>> > #+LATEX_HEADER: /Subtype /Link
>> > #+LATEX_HEADER: /A <<
>> > #+LATEX_HEADER:   /F <<
>> > #+LATEX_HEADER:  /DOS (#1)
>> > #+LATEX_HEADER:   >>
>> > #+LATEX_HEADER:   /S /Launch
>> > #+LATEX_HEADER: >>
>> > #+LATEX_HEADER:   } #2%
>> > #+LATEX_HEADER:   \pdfendlink%
>> > #+LATEX_HEADER: }
>>
>> With this in my LaTeX file:
>>
>> \LaunchBinary{lkfs-structure.org}{Open the file Org mode file.}
>>
>> I get a red boxed link in the pdf output.
>>
>> When I click on it, Adobe Reader complains:
>>
>> Could not find an application to open the file ' '.
>>
>> I can't understand the code for LaunchBinary, but noticed "DOS" and
>> wondered if the code is somehow dependent on the operating system.
>>
>> I'm using a Mac.
>>
>> All the best,
>> Tom
>>
>> >
>> >
>> > Then, I use the code snippet below to export the file to latex. It is
>> > stored in a noexport section at the end of the document. basically I set
>> a
>> > counter, and wrote a filter function for src blocks. the function
>> captures
>> > the lines between the first and last (first is \begin{minted}... and last
>> > is \end{minted} in this case. I write those lines to a file named
>> according
>> > to the counter, and finally insert \LaunchBinary... into the string
>> > returned by the filter. everything else in this let block is just
>> > fine-tuning the latex packages, and export behavior.
>> >
>> > (let (
>> >   ;; these packages are loaded in the latex file
>> >   (org-latex-default-packages-alist
>> >'(("utf8" "inputenc" nil)
>> >  ("T1" "fontenc" nil)
>> >  ("" "fixltx2e" nil)
>> >  ("" "natbib" t)
>> >  ("" "url" t)
>> >  ("" "graphicx" t)
>> >  ("" "textcomp" t)
>> >  ("" "underscore" t)
>> >  ("" "amsmath" t)
>> >  ("version=3" "mhchem" t)
>> >  ("tight,pdftex" "web" nil)
>> >  ("" "exerquiz" nil)
>> >  ("ImplMulti" "dljslib" nil)
>> > ))
>> >   (async nil)
>> >   (subtreep nil)
>> >   (visible-only nil)
>> >   (body-only nil))
>> >
>> > (setq counter 0)
>> >
>> >   (defun ox-mrkup-filter-src-block (text back-end info)
>> > (setq counter (+ counter 1))
>> >
>> > (let ((filename (format "part1-scripts/script-%d.py" counter)))
>> >   (with-temp-buffer
>> > (insert (mapconcat 'identity (butlast (cdr (split-string text
>> "\n"
>> > t))) "\n"))
>> > (write-region (point-mi

Re: [O] C-C C-W (refile) makes copy when invoked in Agenda view?!

2013-09-29 Thread Samuel Wales
It might have nothing to do with it, just a possibility.  Aquamacs
might be an issue; many package developers consider it nonstandard.

Samuel

-- 
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] example filter for code blocks?

2013-09-29 Thread John Kitchin
indeed, there is specific code for DOS/Mac I think.

I grabbed that code from here:
http://stackoverflow.com/questions/2341364/link-to-external-application-in-latex-beamer

which suggests these options are possible

 /DOS (xxx)
 /Unix (xxx)
 /Mac (#1)

I have not tried to see if you can put them all in. Let me know if it
works to put them all in.

I have some Mac users in my class that might need that!



John

---
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, Sep 29, 2013 at 8:33 PM, Thomas S. Dye  wrote:

> Hi John,
>
> John Kitchin  writes:
>
> > Hi everyone,
> > Thanks for  the tips in using export filters for code blocks. I thought I
> > would share my current solution. The goal was to export all the code
> blocks
> > in an org-file to files systematically named part1/script-%d.py where %d
> is
> > a number. I didnot want to tangle exactly, because I wanted to avoid
> naming
> > the code block tangle files.
> >
> > Then, I wanted to insert a pdf link that would open the file, after the
> > syntax highlighted code.
> >
> > I wanted this because it is not convenient to copy and paste the
> > syntax-highlighted code into an editor. I teach from the pdf that is
> > generated, and it would be convenient to just open the code, edit and
> rerun
> > to explore solutions.
> >
> > So, here is the solution:
> >
> > At the top of my orgfile, I have this definition which creates a pdf
> link.
> >
> > #+LATEX_HEADER: \newcommand{\LaunchBinary}[2]{%
> > #+LATEX_HEADER:   % #1: layer name,
> > #+LATEX_HEADER:   % #2: link text
> > #+LATEX_HEADER:   \leavevmode%
> > #+LATEX_HEADER:   \pdfstartlink  attr{/C [0.9 0 0] /Border [0 0 2]} user
> {
> > #+LATEX_HEADER: /Subtype /Link
> > #+LATEX_HEADER: /A <<
> > #+LATEX_HEADER:   /F <<
> > #+LATEX_HEADER:  /DOS (#1)
> > #+LATEX_HEADER:   >>
> > #+LATEX_HEADER:   /S /Launch
> > #+LATEX_HEADER: >>
> > #+LATEX_HEADER:   } #2%
> > #+LATEX_HEADER:   \pdfendlink%
> > #+LATEX_HEADER: }
>
> With this in my LaTeX file:
>
> \LaunchBinary{lkfs-structure.org}{Open the file Org mode file.}
>
> I get a red boxed link in the pdf output.
>
> When I click on it, Adobe Reader complains:
>
> Could not find an application to open the file ' '.
>
> I can't understand the code for LaunchBinary, but noticed "DOS" and
> wondered if the code is somehow dependent on the operating system.
>
> I'm using a Mac.
>
> All the best,
> Tom
>
> >
> >
> > Then, I use the code snippet below to export the file to latex. It is
> > stored in a noexport section at the end of the document. basically I set
> a
> > counter, and wrote a filter function for src blocks. the function
> captures
> > the lines between the first and last (first is \begin{minted}... and last
> > is \end{minted} in this case. I write those lines to a file named
> according
> > to the counter, and finally insert \LaunchBinary... into the string
> > returned by the filter. everything else in this let block is just
> > fine-tuning the latex packages, and export behavior.
> >
> > (let (
> >   ;; these packages are loaded in the latex file
> >   (org-latex-default-packages-alist
> >'(("utf8" "inputenc" nil)
> >  ("T1" "fontenc" nil)
> >  ("" "fixltx2e" nil)
> >  ("" "natbib" t)
> >  ("" "url" t)
> >  ("" "graphicx" t)
> >  ("" "textcomp" t)
> >  ("" "underscore" t)
> >  ("" "amsmath" t)
> >  ("version=3" "mhchem" t)
> >  ("tight,pdftex" "web" nil)
> >  ("" "exerquiz" nil)
> >  ("ImplMulti" "dljslib" nil)
> > ))
> >   (async nil)
> >   (subtreep nil)
> >   (visible-only nil)
> >   (body-only nil))
> >
> > (setq counter 0)
> >
> >   (defun ox-mrkup-filter-src-block (text back-end info)
> > (setq counter (+ counter 1))
> >
> > (let ((filename (format "part1-scripts/script-%d.py" counter)))
> >   (with-temp-buffer
> > (insert (mapconcat 'identity (butlast (cdr (split-string text
> "\n"
> > t))) "\n"))
> > (write-region (point-min) (point-max) filename))
> >
> >   (format "%s
> >
> > \\LaunchBinary{%s}{Open the python script (%s).}
> >
> > " text filename filename)))
> >
> > (let ((org-export-filter-src-block-functions
> '(ox-mrkup-filter-src-block)))
> >   (org-latex-export-to-latex async subtreep visible-only body-only
> >  '(:with-author t
> > :with-date t
> > :with-title t
> > :with-timestamps t
> > :with-todo-keywords t
> > :with-toc nil
> >
> >
> > After building the pdf with pdflatex, I get a link with a red box around
> it
> > that I can 

Re: [O] example filter for code blocks?

2013-09-29 Thread Thomas S. Dye
Hi John,

John Kitchin  writes:

> Hi everyone,
> Thanks for  the tips in using export filters for code blocks. I thought I
> would share my current solution. The goal was to export all the code blocks
> in an org-file to files systematically named part1/script-%d.py where %d is
> a number. I didnot want to tangle exactly, because I wanted to avoid naming
> the code block tangle files.
>
> Then, I wanted to insert a pdf link that would open the file, after the
> syntax highlighted code.
>
> I wanted this because it is not convenient to copy and paste the
> syntax-highlighted code into an editor. I teach from the pdf that is
> generated, and it would be convenient to just open the code, edit and rerun
> to explore solutions.
>
> So, here is the solution:
>
> At the top of my orgfile, I have this definition which creates a pdf link.
>
> #+LATEX_HEADER: \newcommand{\LaunchBinary}[2]{%
> #+LATEX_HEADER:   % #1: layer name,
> #+LATEX_HEADER:   % #2: link text
> #+LATEX_HEADER:   \leavevmode%
> #+LATEX_HEADER:   \pdfstartlink  attr{/C [0.9 0 0] /Border [0 0 2]} user {
> #+LATEX_HEADER: /Subtype /Link
> #+LATEX_HEADER: /A <<
> #+LATEX_HEADER:   /F <<
> #+LATEX_HEADER:  /DOS (#1)
> #+LATEX_HEADER:   >>
> #+LATEX_HEADER:   /S /Launch
> #+LATEX_HEADER: >>
> #+LATEX_HEADER:   } #2%
> #+LATEX_HEADER:   \pdfendlink%
> #+LATEX_HEADER: }

With this in my LaTeX file:

\LaunchBinary{lkfs-structure.org}{Open the file Org mode file.}

I get a red boxed link in the pdf output.

When I click on it, Adobe Reader complains:

Could not find an application to open the file ' '.

I can't understand the code for LaunchBinary, but noticed "DOS" and
wondered if the code is somehow dependent on the operating system. 

I'm using a Mac.

All the best,
Tom

>
>
> Then, I use the code snippet below to export the file to latex. It is
> stored in a noexport section at the end of the document. basically I set a
> counter, and wrote a filter function for src blocks. the function captures
> the lines between the first and last (first is \begin{minted}... and last
> is \end{minted} in this case. I write those lines to a file named according
> to the counter, and finally insert \LaunchBinary... into the string
> returned by the filter. everything else in this let block is just
> fine-tuning the latex packages, and export behavior.
>
> (let (
>   ;; these packages are loaded in the latex file
>   (org-latex-default-packages-alist
>'(("utf8" "inputenc" nil)
>  ("T1" "fontenc" nil)
>  ("" "fixltx2e" nil)
>  ("" "natbib" t)
>  ("" "url" t)
>  ("" "graphicx" t)
>  ("" "textcomp" t)
>  ("" "underscore" t)
>  ("" "amsmath" t)
>  ("version=3" "mhchem" t)
>  ("tight,pdftex" "web" nil)
>  ("" "exerquiz" nil)
>  ("ImplMulti" "dljslib" nil)
> ))
>   (async nil)
>   (subtreep nil)
>   (visible-only nil)
>   (body-only nil))
>
> (setq counter 0)
>
>   (defun ox-mrkup-filter-src-block (text back-end info)
> (setq counter (+ counter 1))
>
> (let ((filename (format "part1-scripts/script-%d.py" counter)))
>   (with-temp-buffer
> (insert (mapconcat 'identity (butlast (cdr (split-string text "\n"
> t))) "\n"))
> (write-region (point-min) (point-max) filename))
>
>   (format "%s
>
> \\LaunchBinary{%s}{Open the python script (%s).}
>
> " text filename filename)))
>
> (let ((org-export-filter-src-block-functions '(ox-mrkup-filter-src-block)))
>   (org-latex-export-to-latex async subtreep visible-only body-only
>  '(:with-author t
> :with-date t
> :with-title t
> :with-timestamps t
> :with-todo-keywords t
> :with-toc nil
>
>
> After building the pdf with pdflatex, I get a link with a red box around it
> that I can click on, and on my system it opens the python file in the
> python editor I have configured to open the file!
>
>
> Thanks again!
>
> John
>
> ---
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
> Hi everyone, 
> Thanks for the tips in using export filters for code blocks. I thought
> I would share my current solution. The goal was to export all the code
> blocks in an org-file to files systematically named part1/script-%d.py
> where %d is a number. I didnot want to tangle exactly, because I
> wanted to avoid naming the code block tangle files. 
>
> Then, I wanted to insert a pdf link that would open the file, after
> the syntax highlighted code. 
>
> I wanted this because it is not convenient to copy and paste the
> syntax-highlighted code into an editor. I teach from the

Re: [O] Network Diagram

2013-09-29 Thread Michael Gauland
Esben Stien  esben-stien.name> writes: 
> Any way to create something like a network diagram with org-mode?

I haven't tried doing network diagrams, but I've found dot (graphviz),
PlantUML, and Asymptote very flexible.




[O] proposed patch for org-export-latex-hyperref-options-format

2013-09-29 Thread Andrea Rossetti

Hello everyone, 

  may I please ask if this tiny patch looks reasonable and can
be committed by the mantainers.

  Customizable option org-export-latex-hyperref-options-format
is currently available in Org, but is ignored by the export.
This patch enables use of org-export-latex-hyperref-options-format.

  A simple test case (to see the effect before/after patching) is
reported in the "How to reproduce" section at the bottom of this
mail.

Kindest regards,

Andrea
https://github.com/thesoftwarebin

---8<--patch file start-->8
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 196e50f..91dbeff 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1120,7 +1120,7 @@ holding export options."
  (format "\\title{%s}\n" title)
  ;; Hyperref options.
  (when (plist-get info :latex-hyperref-p)
-   (format "\\hypersetup{\n  pdfkeywords={%s},\n  pdfsubject={%s},\n  
pdfcreator={%s}}\n"
+   (format org-export-latex-hyperref-options-format
   (or (plist-get info :keywords) "")
   (or (plist-get info :description) "")
   (if (not (plist-get info :with-creator)) ""
---8<--patch file end>8

> From: andrea.rosse...@gmail.com
> Subject: Bug: Customization of "Org Export Latex Hyperref Options Format" 
> ignored
> To: emacs-orgmode@gnu.org
> Date: Sat, 21 Sep 2013 18:58:12 +0200 (1 week, 1 day, 6 hours ago)
>
> Hello everyone,
>
>   option "Org Export Latex Hyperref Options Format"
> (aka org-export-latex-hyperref-options-format)
> seems to have no effect on my latex exports, i.e.
> the latex pramble always contains this same text:
>
> ===
> \hypersetup{
>   pdfkeywords={},
>   pdfsubject={},
>   pdfcreator={Emacs 24.3.1 (Org mode 8.2)}}
> ===
>
>   May I please ask if this is reproducible on
> your installation as well, or if it's just me.
>
> Thanks in advance, kindest regards.
>
>   Andrea
>   https://github.com/thesoftwarebin
>
> =
> How to reproduce:
>
> 1) check that option "Org Latex With Hyperref"
> is enabled
>
> 2) create a simple example.org file:
> * hello
> ** blah
> ** bleah
> * end
>
> 3) export to latex buffer (C-c C-e l L),
> look at the \hypersetup{...} lines
>
> 4) close the *Org LATEX Export* buffer
> with C-x k
>
> 5) add text "blah" somewhere in the value of
> option "Org Export Latex Hyperref Options Format"
>
> 6) export again to latex buffer (C-c C-e l L)
>
> 7) \hypersetup{...} lines should have changed
> accordingly to changes made in step 3), but 
> they don't change for me
> =



Re: [O] Network Diagram

2013-09-29 Thread Suvayu Ali
On Mon, Sep 30, 2013 at 12:54:12AM +, Esben Stien wrote:
> Any way to create something like a network diagram with org-mode?
> 
> I looked in the manual and found state change diagrams and sequence
> diagrams, but nothing that would help me plan a network with routers and
> switches. 

You can try TikZ.  Org supports processing of TikZ blocks.  If your
needs are simpler, try ditaa; again Org supports ditaa blocks natively.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



[O] Network Diagram

2013-09-29 Thread Esben Stien
Any way to create something like a network diagram with org-mode?

I looked in the manual and found state change diagrams and sequence
diagrams, but nothing that would help me plan a network with routers and
switches. 

Any pointers?

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] TeXInfo question

2013-09-29 Thread Marcin Borkowski
Dnia 2013-09-29, o godz. 22:44:49
Carsten Dominik  napisał(a):

> Hi,
> 
> I have a question about macros used in the Org manual.
> I see that I can use the @cmdnames switch to turn off the display
> of command names in the manual.  However, when I do this, there is
> an indentation problem:  The first line of the description of
> a command is indented a bit further than subsequent lines.
> 
> Does anyone understand why that is, and can anyone suggest a fix?

Not me, but quickly looking at the org.texi file, I can see a few
places with:

@ifclear cmdnames
@kindex \key\
@item ...

Note that I'm making a wild guess, but: if it the the \kindex (or
@kindex, in texinfo language) is the culprit, then /maybe/ switching
lines with @kindex and @item would help.

But note that I do not understand the innards of texinfo format.

> Thanks.
> 
> - Carsten

Hth,

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



Re: [O] org-export-async-init-file

2013-09-29 Thread Thomas S. Dye
Of course! 

Thanks for your help,
Tom

Rasmus  writes:

> t...@tsdye.com (Thomas S. Dye) writes:
>
>
>
>> My question: how to change the value of org-export-async-init-file when I
>> export the subtree?
>
> Perhaps babel and org-element?  I'm not sure of the order of
> execution, but perhaps you can can check the title and set the init
> file condtional on that.
>
> In any case based on your example—which may be a simplified reflection
> of reality or which I may have misunderstood—it is not necessary to
> change the init file to load different packages.
>
>
> Example 1:
>
> * main doc
>   lorem ipsum
> * supplementary material:noexport:
>   :PROPERTIES:
>   :EXPORT_LATEX_HEADER: \usepackage{test}
>   :END:
>   more txt
>
> Alternatively, since you're using different LATEX_CLASSes you could
> load different packages here.
>
>
>> In the spirit of an ECM, I offer the following EIM to illustrate what
>> I'm trying to do.
>>
>> #+TITLE: Paper
>> #+LATEX_CLASS: journal-article
>>
>> * Paper Section 1
>> * Paper Section 2
>> * Supplementary Material
>>
>> Describe supplementary material ...
>>
>> ** Supplementary Material Document :noexport:
>>:PROPERTIES:
>>:EXPORT_FILE_NAME: supplementary-material
>>:EXPORT_TITLE: Supplementary Material for Paper
>>:EXPORT_LATEX_CLASS: journal-article-supplement
>>:END:
>>
>> * Editing setup:noexport:
>> #+name: editing-setup
>> #+begin_src emacs-lisp
>>   (require 'ox-latex)
>>   (setq org-export-in-background t)
>>   (setq org-export-async-debug t)
>>   (setq org-export-async-init-file (expand-file-name 
>> "init-journal-article.el"))
>> ...
>> #+end_src
>>
>> * Initialization File for Journal Article  :noexport:
>>
>> #+name: export-setup-journal-article
>> #+header: :tangle init-journal-article.el
>> #+begin_src emacs-lisp
>>   (setq org-latex-packages-alist nil)
>>   (add-to-list 'org-latex-packages-alist '("" "setspace"))
>> ...
>> #+end_src
>>
>> * Initialization File for Journal Article Supplementary Material   :noexport:
>>
>> #+name: export-setup-journal-article-supplement
>> #+header: :tangle init-journal-article-supplement.el
>> #+begin_src emacs-lisp
>>   (setq org-latex-packages-alist nil)
>>   (add-to-list 'org-latex-packages-alist '("" "setspace"))
>>   (add-to-list 'org-latex-packages-alist '("" "attachfile"))
>> ...
>> #+end_src

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Transpose or open functions for table cells

2013-09-29 Thread Suvayu Ali
Hi Michael,

Sorry, I forgot to respond to your response.

On Sat, Sep 28, 2013 at 09:27:45AM +0200, Michael Brand wrote:
> Hi Suvayu
> 
> On Sat, Sep 28, 2013 at 12:52 AM, Suvayu Ali
>  wrote:
> > | 2 | b |  -->  | 2 | b |
> > | 3 | d |   | 3 |   |
> > | 4 | e |   | 4 | d |
> > | 5 |   |   | 5 | e |
> >
> > If neither exists, any thoughts how might one go about writing one?
> 
> Some time ago I wrote helper functions that do similar things for a
> row:
> http://orgmode.org/worg/org-hacks.html#column-sequence-in-row
> Now I added a suggestion for the same in a column:
> http://orgmode.org/worg/org-hacks.html#row-sequence-in-column

These look like the transpose functions I was looking for.

> 
> > I am also
> > looking for something like org-open-line, but only for a table cell.
> 
> Are you looking for something different than the above?

Yes, the above allows easy rearrangement of table cells.  I'm looking
for something that allows me to insert cells in a row or column.  In my
example from the earlier email, I insert a cell in a column.

Thanks,

:)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] C-C C-W (refile) makes copy when invoked in Agenda view?!

2013-09-29 Thread M
Dear Samuel,

thanks for your answer.
It is possible, however how could I undo in Agenda - I did not find any
command for that?

I quit Aquamacs and after launching it again it seems to work. By using Undo
in the org-files after refile, I could not reproduce the weird behavior yet.

Martin


> Von: Samuel Wales 
> Datum: Sun, 29 Sep 2013 12:41:44 -0700
> An: M 
> Cc: emacs orgmode-mailinglist 
> Betreff: Re: [O] C-C C-W (refile) makes copy when invoked in Agenda view?!
> 
> Did you by any chance undo in the agenda?  There is a serious
> undo-boundary bug that I haven't been able to report yet.
> 
> On 9/29/13, M  wrote:
>> Hi,
>> 
>> I'm having a problem with the refile command (invoked by C-C C-W):
>> 
>> when I' using it in agenda view (for the selected line or as bulk command
>> on
>> marked items), it creates a copy of the items at the new place, but leaves
>> the old ones in place (and thus creates unwnted duplicates)!
>> 
>> However, when I'm directly in an org-file and use C-C C-W, it moves the
>> selected subtree, as it is supposed to do.
>





Re: [O] org-table-duplicate-column

2013-09-29 Thread Michael Brand
Hi Karl

On Sun, Sep 29, 2013 at 9:56 PM, Karl Voit  wrote:
> | *Option* | *Evaluation 123* | *Evaluation 234* |
> |--+--+--|
> | Option 1 |   27 |   26 |
> | Option 2 |   22 |   24 |
> | Option 3 |   16 |   16 |
> | Option 4 |   16 | 13.5 |
> | Option 5 |8 |9 |
> | Option 6 |2 |4 |
> |--+--+--|
> |  |   91 | 92.5 |
> #+TBLFM: @8$2=vsum(@I$2..@II$2)::@8$3=vsum(@I$3..@II$3)

I would use

#+TBLFM: @>$<<..@>$> = vsum(@I$0..@II$0)

or the shorter

#+TBLFM: @>$<<..@>$> = vsum(@I..@II)

The $<< vs. $2 etc. leaves TBLFM alone when moving around e. g. column
$2.

Michael



[O] TeXInfo question

2013-09-29 Thread Carsten Dominik
Hi,

I have a question about macros used in the Org manual.
I see that I can use the @cmdnames switch to turn off the display
of command names in the manual.  However, when I do this, there is
an indentation problem:  The first line of the description of
a command is indented a bit further than subsequent lines.

Does anyone understand why that is, and can anyone suggest a fix?

Thanks.

- Carsten


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] org-table-duplicate-column

2013-09-29 Thread Karl Voit
* Michael Brand  wrote:
> Hi Karl

Hi!

> If you are not looking for range formulas
>
>|  | a | b |
>|--+---+---|
>| 2014 | x | x |
>| 2015 | x | x |
> #+TBLFM: @<<$<<..@>$> = x
>
> an example would help me to understand.

Sure:

| *Option* | *Evaluation 123* | *Evaluation 234* |
|--+--+--|
| Option 1 |   27 |   26 |
| Option 2 |   22 |   24 |
| Option 3 |   16 |   16 |
| Option 4 |   16 | 13.5 |
| Option 5 |8 |9 |
| Option 6 |2 |4 |
|--+--+--|
|  |   91 | 92.5 |
#+TBLFM: @8$2=vsum(@I$2..@II$2)::@8$3=vsum(@I$3..@II$3)

The third column is similar to the second. This is a very simple
example with only one formula per column. Usually I end up with more
formulas which I want to be duplicated as well.

-- 
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] Restore raw output in LaTeX export from in-line code block

2013-09-29 Thread Eric Schulte
Liam Healy  writes:

> I noticed that raw results from in-line code blocks were disappearing in
> the new LaTeX exporter, and bisected the repo to the change 7117ad4f92. I
> have created the attached patch to fix the problem and restore the previous
> behavior.
>
> example file
>   * Test
> 1. Inline common lisp raw: src_lisp[:results raw]{(+ 2 2)}, should
> say 4.
>
>
> Desired output, restored by patch
>   \item Inline common lisp raw: 4, should say 4.
> Output without patch
>\item Inline common lisp raw: , should say 4.
>
> If this looks right, please apply.
>
> Liam
>

Hi Liam,

You're actually noticing a symptom of an error in the way lisp code
blocks were handling results (conflating the output/results and the
scalar/vector distinction).  I've just pushed up a fix, please let me
know if you continue to see these types of errors.

Best,

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



Re: [O] C-C C-W (refile) makes copy when invoked in Agenda view?!

2013-09-29 Thread Samuel Wales
Did you by any chance undo in the agenda?  There is a serious
undo-boundary bug that I haven't been able to report yet.

On 9/29/13, M  wrote:
> Hi,
>
> I'm having a problem with the refile command (invoked by C-C C-W):
>
> when I' using it in agenda view (for the selected line or as bulk command
> on
> marked items), it creates a copy of the items at the new place, but leaves
> the old ones in place (and thus creates unwnted duplicates)!
>
> However, when I'm directly in an org-file and use C-C C-W, it moves the
> selected subtree, as it is supposed to do.
>
> How could it technically be possible, that the 2 same commands do different
> things?
> I read about an option org-refile-keep, but I can not find it with M-x
> customive-variable.
>
> I'm sorry - I don't know how to track this down for creating a minmal
> example.
>
> I'm using Aquamacs 2.5 on OS X 10.6 with org-mode 8.2
> GNU Emacs 23.4.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
>  of 2013-06-14 on acs-trailblazer.ist.psu.edu - Aquamacs Distribution 2.5
>
> Kind regards
>
> Martin
>
>
>
>


-- 
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] list items not treated as such.

2013-09-29 Thread Paul Rudin
Daniele Pizzolli  writes:

> On 09/29/2013 08:40 PM, Paul Rudin wrote:
>>
>> Example:
>>
>> 1. Some text that extends over more than one line, I'm not sure if the exact
>> length is relevant.
>> a) stuff; and then
>> b) this item will not be recognised as a list item, which can be a bit 
>> of a
>> pain, so if you're typing with auto-fill on it will be formatted like 
>> this,
>> but really the second line should align underneath the text of the start 
>> of
>> the item.
>>
>>
>> Is this working as intended? It seems wrong to me - if I type item b)
>> above it surely should fill properly?
>
> Hello Paul,
> Be sure to have this setting:
>
> #+BEGIN_SRC emacs-lisp :results none
> (setq org-list-allow-alphabetical t)
> #+END_SRC

Yeah, I have that in my init.el, it's not a general problem with
alphabetic labels, it's only in some contexts that problem happens.
hitting alt-enter at the end of item a) works just fine for example - I
get the b) label inserted correctly for example.






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

2013-09-29 Thread Daniele Pizzolli

On 09/29/2013 08:40 PM, Paul Rudin wrote:


Example:

1. Some text that extends over more than one line, I'm not sure if the exact
length is relevant.
a) stuff; and then
b) this item will not be recognised as a list item, which can be a bit of a
pain, so if you're typing with auto-fill on it will be formatted like this,
but really the second line should align underneath the text of the start of
the item.


Is this working as intended? It seems wrong to me - if I type item b)
above it surely should fill properly?


Hello Paul,
Be sure to have this setting:

#+BEGIN_SRC emacs-lisp :results none
(setq org-list-allow-alphabetical t)
#+END_SRC

Regards,
Daniele



Re: [O] org-export-async-init-file

2013-09-29 Thread Rasmus
t...@tsdye.com (Thomas S. Dye) writes:



> My question: how to change the value of org-export-async-init-file when I
> export the subtree?

Perhaps babel and org-element?  I'm not sure of the order of
execution, but perhaps you can can check the title and set the init
file condtional on that.

In any case based on your example—which may be a simplified reflection
of reality or which I may have misunderstood—it is not necessary to
change the init file to load different packages.


Example 1:

* main doc
  lorem ipsum
* supplementary material:noexport:
  :PROPERTIES:
  :EXPORT_LATEX_HEADER: \usepackage{test}
  :END:
  more txt

Alternatively, since you're using different LATEX_CLASSes you could
load different packages here.


> In the spirit of an ECM, I offer the following EIM to illustrate what
> I'm trying to do.
>
> #+TITLE: Paper
> #+LATEX_CLASS: journal-article
>
> * Paper Section 1
> * Paper Section 2
> * Supplementary Material
>
> Describe supplementary material ...
>
> ** Supplementary Material Document :noexport:
>:PROPERTIES:
>:EXPORT_FILE_NAME: supplementary-material
>:EXPORT_TITLE: Supplementary Material for Paper
>:EXPORT_LATEX_CLASS: journal-article-supplement
>:END:
>
> * Editing setup:noexport:
> #+name: editing-setup
> #+begin_src emacs-lisp
>   (require 'ox-latex)
>   (setq org-export-in-background t)
>   (setq org-export-async-debug t)
>   (setq org-export-async-init-file (expand-file-name 
> "init-journal-article.el"))
> ...
> #+end_src
>
> * Initialization File for Journal Article  :noexport:
>
> #+name: export-setup-journal-article
> #+header: :tangle init-journal-article.el
> #+begin_src emacs-lisp
>   (setq org-latex-packages-alist nil)
>   (add-to-list 'org-latex-packages-alist '("" "setspace"))
> ...
> #+end_src
>
> * Initialization File for Journal Article Supplementary Material   :noexport:
>
> #+name: export-setup-journal-article-supplement
> #+header: :tangle init-journal-article-supplement.el
> #+begin_src emacs-lisp
>   (setq org-latex-packages-alist nil)
>   (add-to-list 'org-latex-packages-alist '("" "setspace"))
>   (add-to-list 'org-latex-packages-alist '("" "attachfile"))
> ...
> #+end_src



-- 
You people at the NSA are becoming my new best friends!




[O] list items not treated as such.

2013-09-29 Thread Paul Rudin

Example:

1. Some text that extends over more than one line, I'm not sure if the exact
   length is relevant.
   a) stuff; and then
   b) this item will not be recognised as a list item, which can be a bit of a
   pain, so if you're typing with auto-fill on it will be formatted like this,
   but really the second line should align underneath the text of the start of
   the item.
 

Is this working as intended? It seems wrong to me - if I type item b)
above it surely should fill properly?





[O] org-export-async-init-file

2013-09-29 Thread Thomas S. Dye
Aloha all,

I've been following up on John Kitchin's recipe for creating a pdf file
compendium that can be used as the supplementary material for a journal
article.  The journal I'm targeting provides a list of LaTeX packages
that must be used exactly, without omissions or additions.

John's recipe uses the LaTeX package attachfile, which is not on the
list of packages that can be used in preparing the journal article.  It
is OK to use attachfile to prepare the pdf file distributed as supplementary
material. 

I'm trying to set up the Org-mode file to use asynchronous export, both
for the paper and for the supplementary material.  I want to use one
init file when I export the paper, and a different init file when I
export the subtree that contains the supplementary material.

My question: how to change the value of org-export-async-init-file when I
export the subtree?

In the spirit of an ECM, I offer the following EIM to illustrate what
I'm trying to do.

#+TITLE: Paper
#+LATEX_CLASS: journal-article

* Paper Section 1
* Paper Section 2
* Supplementary Material

Describe supplementary material ...

** Supplementary Material Document :noexport:
   :PROPERTIES:
   :EXPORT_FILE_NAME: supplementary-material
   :EXPORT_TITLE: Supplementary Material for Paper
   :EXPORT_LATEX_CLASS: journal-article-supplement
   :END:

* Editing setup:noexport:
#+name: editing-setup
#+begin_src emacs-lisp
  (require 'ox-latex)
  (setq org-export-in-background t)
  (setq org-export-async-debug t)
  (setq org-export-async-init-file (expand-file-name "init-journal-article.el"))
...
#+end_src

* Initialization File for Journal Article  :noexport:

#+name: export-setup-journal-article
#+header: :tangle init-journal-article.el
#+begin_src emacs-lisp
  (setq org-latex-packages-alist nil)
  (add-to-list 'org-latex-packages-alist '("" "setspace"))
...
#+end_src

* Initialization File for Journal Article Supplementary Material   :noexport:

#+name: export-setup-journal-article-supplement
#+header: :tangle init-journal-article-supplement.el
#+begin_src emacs-lisp
  (setq org-latex-packages-alist nil)
  (add-to-list 'org-latex-packages-alist '("" "setspace"))
  (add-to-list 'org-latex-packages-alist '("" "attachfile"))
...
#+end_src

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Org Tutorials need more structure

2013-09-29 Thread Rustom Mody
Some years ago I had sent a mail on this subject (Feb 6 2009).  I fished it
out and was editing it (below) and then see that Eric Abrahamsen has said
most what I wanted to say.

Anyways Ive kept the subject list below and want to add only this much:

People come to org for different reasons/needs/inclinations.
It is definitely worthwhile clubbing these diverse/contrasting ways into a
few (5-10?) foci/approaches

My subject list

* Publishing
** Web
** Latex
** Doc

* Brainstorming

* Managing My Data
  own private hyperlink system

* Time/project mgmt
*** Agenda
*** Time tracking
*** GTD
*** Journalling

* Tables and spreadsheets
* Programming (Babel)
** Literate programming
** Reproducible research
** Meta Programming


Re: [O] Org Tutorials need more structure

2013-09-29 Thread Matt Price
On Sun, Sep 29, 2013 at 4:44 AM, Eric Abrahamsen
 wrote:
> Carsten Dominik  writes:
>
>> Hi everyone,
>>
>> today I looked at our tutorial page at
>>
>> http://orgmode.org/worg/org-tutorials/index.html
>>
>> and came away with the feeling that that this page has become
>> somewhat useless for people who are really new to Org.  I think
>> the page should start with a section of true recommendations
>> for beginners, a path we tell every new users to take in order to
>> learn about Org mode.
>>
>> Can we have a discussion here on how this path should look like?
>> When you came to Org-mode as a newby, what were the three resources
>> that really made an impression on by being accessible and
>> providing feel and promise for digging deeper?
>>
>> - Carsten
>
> My feeling is, the tutorial structure might look like this:
>
> Start with the basics: outlining and structure editing, plus
> introductions to links and properties.
>
> Then four other tutorials, presented in no particular order:
>
> 1. TODOs/agendas/task management (plus clocking)
> 2. Exporting
> 3. Babel
> 4. Tables/spreadsheets

I would only add that "exporting" is closely linked to "writing in
org" whcih is what I mostly do.  This includes topics like footnotes,
which I haven't really figured out yet after 3 years of using org
(admittedly I haven't really tried either).

It might also be nice if these tutorials included some sample setup
code to get intermediate-to-advanced features working even before one
fully understands them.

Very busy the net 2 weeks but afte that I'd like to try to give back a
little bit to the org community, so I could take a crack at some of
these areas (not 3 & 4 though!).

Matt

>
> Those four areas seem pretty distinct and independent to me (except
> there's special cross-over between exporting and babel blocks). Any
> given prospective org user will probably immediately gravitate to one or
> more areas, leaving the others for later. Personally, I immediately
> jumped into task management, then went to exporting, and I've only ever
> dabbled in babel and spreadsheets. I think it would be good to keep
> these areas fairly self-contained.
>
> 2 cents,
> Eric
>
>



Re: [O] Bug: dates in heading break beamer export

2013-09-29 Thread Marcin Borkowski
Dnia 2013-09-29, o godz. 16:53:14
Nicolas Goaziou  napisał(a):

> Hello,
> 
> Daniele Pizzolli  writes:
> 
> > Dates in org-format in heading break the beamer export:
> >
> > Minimal case:
> >
> > #+OPTIONS: H:3
> > * title [2013-09-29 Sun]
> > ** section
> > *** frame
> > text
> >
> > Result for beamer export:
> >
> > org-latex-compile: PDF file ./beamer-bug-date.pdf wasn't produced:
> > [undefined control sequence] Runaway argument
> 
> It's a LaTeX Beamer problem: it doesn't like
> 
>   \section{title \textit{[2013-09-29 Sun]}}
> 
> produced by Org, although regular LaTeX accepts it.
> 
> Do you know about a workaround for this?

This is really a workaround: put a \protect before \textit.

In general, putting formatting commands in \section title etc., even if
not erroneous, is considered a bad practice.

Hth,

> 
> 
> Regards,
> 



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



Re: [O] Bug: dates in heading break beamer export

2013-09-29 Thread Nicolas Goaziou
Hello,

Daniele Pizzolli  writes:

> Dates in org-format in heading break the beamer export:
>
> Minimal case:
>
> #+OPTIONS: H:3
> * title [2013-09-29 Sun]
> ** section
> *** frame
> text
>
> Result for beamer export:
>
> org-latex-compile: PDF file ./beamer-bug-date.pdf wasn't produced:
> [undefined control sequence] Runaway argument

It's a LaTeX Beamer problem: it doesn't like

  \section{title \textit{[2013-09-29 Sun]}}

produced by Org, although regular LaTeX accepts it.

Do you know about a workaround for this?


Regards,

-- 
Nicolas Goaziou



Re: [O] Symbol's function definition is void: org-export-dispatch

2013-09-29 Thread Joseph Vidal-Rosset
Thanks Nick. You reply helps.
I'm using the org-mode development version and emacs-24 in Ubuntu.
I am not with my computer at the moment, but I will check my installation
tonight, and I will tell you if it works after a clean install.

Many thanks for your help.

Best wishes,

Jo.


2013/9/29 Nick Dokos 

> Joseph Vidal-Rosset  writes:
>
> > Hello,
> >
> > For the first time I've tried to export into a .tex file an draft .org.
> >
> > But C-c C-e  produces an error message in my emacs :
> >
> > symbol's function definition is void: org-export-dispatch
> >
> > I've tried to read the manual, read the discussion about this point via
> google, and I am lost.
> >
> > Can I find some help? I am a beginner...
> >
>
> org-export-dispatch is the top-level function used by the exporter in
> version 8.x of org-mode: it does not exist in earlier versions. It
> should just work if you have installed org-mode correctly, so the fact
> that it doesn't indicates that there is probably an installation
> problem. So the main questions are:
>
> o What version of emacs are you running and what version of org-mode?
>
>   M-x emacs-version
>
> and
>
>   M-x org-version
>
> will tell you that.
>
> o The source of your org-mode installation: are you using the org-mode
> that came with your emacs, or did you download a different version? If
> the latter, did you use a tarball, did you clone the git repo, did you
> download from ELPA, or perhaps something else?
>
> Answers to these questions should help to determine your next course of
> action.
> --
> Nick
>
>
>


Re: [O] [bug] how to specify the format for clock table summaries and bug in formula calculations

2013-09-29 Thread Daniele Pizzolli

On 09/29/2013 02:33 PM, Eric S Fraga wrote:

Hello,


Hello Eric,


I am clocking a number of tasks and need a summary.  The functionality
provided by the org-clock table is ideal for my use case.

However, the total time summaries use numbers of days when the number of
hours exceeds 24.  Although this is fine most of the time, I would like
to have total hours instead.  Is this possible?


I found this snippet in the past:

#+BEGIN_SRC elisp :results silent
(setq org-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d" 
:require-minutes t))
#+END_SRC

[]


More importantly, the ":formula %" option does not work as soon as days
appear in the summaries!


With the suggested format it seems to be correct:

#+BEGIN: clocktable :maxlevel 2 :scope file :formula %
#+CAPTION: Clock summary at [2013-09-29 Sun 15:22]
| Headline | Time|   | % |
|--+-+---+---|
| *Total time* | *50:03* |   | 100.0 |
|--+-+---+---|
| clocking | 50:03   |   | 100.0 |
| \__ task A   | | 12:02 |  24.0 |
| \__ task B   | | 12:51 |  25.7 |
| \__ task C   | | 25:10 |  50.3 |
#+TBLFM: $4='(org-clock-time% @2$2 $2..$3);%.1f
#+END: clocktable

Regards,
Daniele



Re: [O] [bug] how to specify the format for clock table summaries and bug in formula calculations

2013-09-29 Thread Carsten Dominik
Hi Eric,

this would be

(setq org-time-clocksum-format "%d:%02d")

For more information, take a look at the function
`org-minutes-to-clocksum-string' and the variables mentioned
in its docstring.

HTH

- Carsten


On 29.9.2013, at 14:33, Eric S Fraga  wrote:

> Hello,
> 
> I am clocking a number of tasks and need a summary.  The functionality
> provided by the org-clock table is ideal for my use case.  
> 
> However, the total time summaries use numbers of days when the number of
> hours exceeds 24.  Although this is fine most of the time, I would like
> to have total hours instead.  Is this possible?
> 
> More importantly, the ":formula %" option does not work as soon as days
> appear in the summaries!  The calculations for the percentages use only
> the hours in the totals, regardless of the number of days leading to
> some very interesting results (percentages > 100).  I don't know enough
> emacs calc to start to suggest how this could be fixed
> unfortunately... :(
> 
> ECM attached.
> 
> Any pointers appreciated! 
> 
> Thanks, 
> eric
> 
> -- 
> : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2-20-gc5f370
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


[O] [bug] how to specify the format for clock table summaries and bug in formula calculations

2013-09-29 Thread Eric S Fraga
Hello,

I am clocking a number of tasks and need a summary.  The functionality
provided by the org-clock table is ideal for my use case.  

However, the total time summaries use numbers of days when the number of
hours exceeds 24.  Although this is fine most of the time, I would like
to have total hours instead.  Is this possible?

More importantly, the ":formula %" option does not work as soon as days
appear in the summaries!  The calculations for the percentages use only
the hours in the totals, regardless of the number of days leading to
some very interesting results (percentages > 100).  I don't know enough
emacs calc to start to suggest how this could be fixed
unfortunately... :(

ECM attached.

Any pointers appreciated! 

Thanks, 
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2-20-gc5f370
* clocking
** task A
CLOCK: [2013-09-21 Sat 12:00]--[2013-09-21 Sat 18:00] =>  6:00
CLOCK: [2013-09-19 Thu 14:49]--[2013-09-19 Thu 17:50] =>  3:01
CLOCK: [2013-09-19 Thu 08:49]--[2013-09-19 Thu 11:50] =>  3:01
** task B
CLOCK: [2013-09-20 Fri 08:49]--[2013-09-20 Fri 18:50] => 10:01
CLOCK: [2013-09-19 Thu 11:50]--[2013-09-19 Thu 14:40] =>  2:50
** task C
CLOCK: [2013-09-18 Wed 08:00]--[2013-09-18 Wed 14:50] =>  6:50
CLOCK: [2013-09-17 Tue 08:35]--[2013-09-17 Tue 18:50] => 10:15
CLOCK: [2013-09-16 Mon 08:45]--[2013-09-16 Mon 16:50] =>  8:05
** Summary
#+BEGIN: clocktable :maxlevel 2 :scope file :formula %
#+CAPTION: Clock summary at [2013-09-29 Sun 13:29]
| Headline   | Time| | % |
|+-+-+---|
| *Total time* | *2d 2:03* | | 100.0 |
|+-+-+---|
| clocking   | 2d 2:03 | | 100.0 |
| \__ task A | |   12:02 | 587.0 |
| \__ task B | |   12:51 | 626.8 |
| \__ task C | | 1d 1:10 |  56.9 |
#+TBLFM: $4='(org-clock-time% @2$2 $2..$3);%.1f
#+END:



Re: [O] Feature request: info-org-manual

2013-09-29 Thread Memnon Anon
Marcin Borkowski  writes:

> and - even
> though I've read the Org-mode manual (almost) cover to cover - I now
> also grepped it: this command is never mentioned there!  So I guess
> that my lack of knowledge was justifiable. :)


Well, the manual does not contain everything; never did, never will.

One quick 'n easy way to find it with apropos and Icicles (my own 
keybindings...):
1. C-u C-h f 
2. org- 
3. Tab (=icicle-prefix-complete)
4. C-s (=icicle-narrow-candidates)
5. info

=>
,[ *completion buffer* ]
| org-add-planning-info   org-babel-view-src-block-info 
| org-infoorg-table-field-info 
| org-texinfo-convert-region-to-texinfo 
`

or M-x apropos-command for "org info" ...

Memnon




Re: [O] Symbol's function definition is void: org-export-dispatch

2013-09-29 Thread Nick Dokos
Joseph Vidal-Rosset  writes:

> Hello,
>
> For the first time I've tried to export into a .tex file an draft .org. 
>
> But C-c C-e  produces an error message in my emacs :
>
> symbol's function definition is void: org-export-dispatch
>
> I've tried to read the manual, read the discussion about this point via 
> google, and I am lost. 
>
> Can I find some help? I am a beginner... 
>

org-export-dispatch is the top-level function used by the exporter in
version 8.x of org-mode: it does not exist in earlier versions. It
should just work if you have installed org-mode correctly, so the fact
that it doesn't indicates that there is probably an installation
problem. So the main questions are:

o What version of emacs are you running and what version of org-mode?

  M-x emacs-version 

and

  M-x org-version

will tell you that.

o The source of your org-mode installation: are you using the org-mode
that came with your emacs, or did you download a different version? If
the latter, did you use a tarball, did you clone the git repo, did you
download from ELPA, or perhaps something else?

Answers to these questions should help to determine your next course of
action.
-- 
Nick




Re: [O] C-C C-W (refile) makes copy when invoked in Agenda view?!

2013-09-29 Thread Carsten Dominik
Hi Martin,

I am not able to reproduce this with my current setup.

- Carsten

On 29.9.2013, at 11:05, M  wrote:

> Hi,
> 
> I'm having a problem with the refile command (invoked by C-C C-W):
> 
> when I' using it in agenda view (for the selected line or as bulk command on
> marked items), it creates a copy of the items at the new place, but leaves
> the old ones in place (and thus creates unwnted duplicates)!
> 
> However, when I'm directly in an org-file and use C-C C-W, it moves the
> selected subtree, as it is supposed to do.
> 
> How could it technically be possible, that the 2 same commands do different
> things?
> I read about an option org-refile-keep, but I can not find it with M-x
> customive-variable.
> 
> I'm sorry - I don't know how to track this down for creating a minmal
> example.
> 
> I'm using Aquamacs 2.5 on OS X 10.6 with org-mode 8.2
> GNU Emacs 23.4.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
> of 2013-06-14 on acs-trailblazer.ist.psu.edu - Aquamacs Distribution 2.5
> 
> Kind regards
> 
> Martin
> 
> 
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


[O] Bug: dates in heading break beamer export

2013-09-29 Thread Daniele Pizzolli

Hello @all,

Dates in org-format in heading break the beamer export:

Minimal case:

#+OPTIONS: H:3
* title [2013-09-29 Sun]
** section
*** frame
text

Result for beamer export:

org-latex-compile: PDF file ./beamer-bug-date.pdf wasn't produced: [undefined 
control sequence] Runaway argument

The same error for:

#+OPTIONS: H:3
* title <2013-09-29 Sun>
** section
*** frame
text

This works:

#+OPTIONS: H:3
* title (2013-09-29 Sun)
** section
*** frame
text

The export in latex for the same snippets works in all cases in version:
Org-mode version 8.2 (release_8.2-6-gd08917 ...)

Regards,
Daniele



Re: [O] [PATCH] [org-table] user-chosen separator in org-table-convert-region

2013-09-29 Thread Carsten Dominik
Hi Francois,

thanks for the explanation.  I have checked in a modified version which does
what you proposal and also allows the user to call `C-c |' with a triple prefix
arg.  In that case, the command will prompt the user for a regular expression
that will be used.

Useful, thank you!

- Carsten

On 3.9.2013, at 12:20, franc...@avalenn.eu wrote:

> Hello,
> 
> I made this patch to make easier conversion to
> org-table from csv-like text with arbitrary separator.
> 
> ---
> lisp/org-table.el |2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/lisp/org-table.el b/lisp/org-table.el
> index c7e7eb8..c8c2462 100644
> --- a/lisp/org-table.el
> +++ b/lisp/org-table.el
> @@ -575,6 +575,8 @@ nil  When nil, the command tries to be smart and 
> figure out the
>(if (< separator 1)
>(user-error "Number of spaces in separator must be >= 1")
>  (format "^ *\\| *\t *\\| \\{%d,\\}" separator)))
> + ((stringp separator)
> +(format "^ *\\|%s" separator))
>   (t (error "This should not happen"
>   (while (re-search-forward re end t)
>   (replace-match "| " t t)))
> -- 
> 1.7.9
> 
> 
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] org-table-duplicate-column

2013-09-29 Thread Michael Brand
Hi Karl

On Sun, Sep 29, 2013 at 10:35 AM, Karl Voit  wrote:
> I often end up creating a table where I do the header and the outer
> leftmost column. Then I start by creating the second column with
> formulas. In many cases, the following columns are like the previous
> one but with, e.g., $3 instead of $2 in all formulas.

If you are not looking for range formulas

|  | a | b |
|--+---+---|
| 2014 | x | x |
| 2015 | x | x |
#+TBLFM: @<<$<<..@>$> = x

an example would help me to understand.

Michael



[O] C-C C-W (refile) makes copy when invoked in Agenda view?!

2013-09-29 Thread M
Hi,

I'm having a problem with the refile command (invoked by C-C C-W):

when I' using it in agenda view (for the selected line or as bulk command on
marked items), it creates a copy of the items at the new place, but leaves
the old ones in place (and thus creates unwnted duplicates)!

However, when I'm directly in an org-file and use C-C C-W, it moves the
selected subtree, as it is supposed to do.

How could it technically be possible, that the 2 same commands do different
things?
I read about an option org-refile-keep, but I can not find it with M-x
customive-variable.

I'm sorry - I don't know how to track this down for creating a minmal
example.

I'm using Aquamacs 2.5 on OS X 10.6 with org-mode 8.2
GNU Emacs 23.4.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
 of 2013-06-14 on acs-trailblazer.ist.psu.edu - Aquamacs Distribution 2.5

Kind regards

Martin





Re: [O] Org Tutorials need more structure

2013-09-29 Thread Eric Abrahamsen
Carsten Dominik  writes:

> Hi everyone,
>
> today I looked at our tutorial page at
>
> http://orgmode.org/worg/org-tutorials/index.html
>
> and came away with the feeling that that this page has become
> somewhat useless for people who are really new to Org.  I think
> the page should start with a section of true recommendations
> for beginners, a path we tell every new users to take in order to
> learn about Org mode.
>
> Can we have a discussion here on how this path should look like?
> When you came to Org-mode as a newby, what were the three resources
> that really made an impression on by being accessible and
> providing feel and promise for digging deeper?
>
> - Carsten

My feeling is, the tutorial structure might look like this:

Start with the basics: outlining and structure editing, plus
introductions to links and properties.

Then four other tutorials, presented in no particular order:

1. TODOs/agendas/task management (plus clocking)
2. Exporting
3. Babel
4. Tables/spreadsheets

Those four areas seem pretty distinct and independent to me (except
there's special cross-over between exporting and babel blocks). Any
given prospective org user will probably immediately gravitate to one or
more areas, leaving the others for later. Personally, I immediately
jumped into task management, then went to exporting, and I've only ever
dabbled in babel and spreadsheets. I think it would be good to keep
these areas fairly self-contained.

2 cents,
Eric




Re: [O] Bug: Wrong type argument: arrayp, nil when exporting to beamer [8.2 (8.2-elpa @ /Users/jason/.emacs.d/elpa/org-20130919/)]

2013-09-29 Thread Nicolas Goaziou
Hello,

Jason Lewis  writes:

> However in my opinion, the user shouldn't be able to break exporting
> simply by having headlines in the wrong level, without at least a
> descriptive error of what the problem is.

I added a more informative error message to the back-end. Thanks for
suggesting it.

Cc'ing the ML.


Regards,

-- 
Nicolas Goaziou



[O] org-table-duplicate-column

2013-09-29 Thread Karl Voit
Hi!

I often end up creating a table where I do the header and the outer
leftmost column. Then I start by creating the second column with
formulas. In many cases, the following columns are like the previous
one but with, e.g., $3 instead of $2 in all formulas.

Either there is another solution to my work-flow or
org-table-duplicate-column would be a cool new feature :-)

-- 
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] Symbol's function definition is void: org-export-dispatch

2013-09-29 Thread Joseph Vidal-Rosset
Hello,

For the first time I've tried to export into a .tex file an draft .org.

But C-c C-e  produces an error message in my emacs :

symbol's function definition is void: org-export-dispatch

I've tried to read the manual, read the discussion about this point via
google, and I am lost.

Can I find some help? I am a beginner...

Thanks

Jo.


Re: [O] Org Tutorials need more structure

2013-09-29 Thread Suvayu Ali
Hi,

On Sat, Sep 28, 2013 at 07:29:26PM -0500, John Hendy wrote:
> On Sat, Sep 28, 2013 at 6:29 PM, Thomas S. Dye  wrote:
> >
> > In this vein, I think it would be useful to have a brief statement about
> > Org-mode that gives the interested reader from any background a good
> > feel for the scope of Org-mode and how it presents itself to the user.
> > I don't think the current statements about what Org-mode "is" do this
> > very effectively, though they might have done so in the past.
> >
> 
> Absolutely love that, and this puts some of your earlier comments in
> perspective -- you're looking for the 30sec elevator pitch for
> Org-mode, and saying "this outline-y task manager" is not cutting it.

To me the best way to describe Org is: a programmable and dynamic
plain-text note taking platform.  All its features are essentially built
on this ability: planning & task management, authoring or publishing,
literate programming, and what not.  On top of this, it can interact
with external applications for tasks like referencing (links, citation,
etc).  Of course trying to faithfully outline this in a few words is a
herculean task.

-- 
Suvayu

Open source is the future. It sets us free.