[O] Talks about Org Babel

2012-02-21 Thread Carsten Dominik
Dear all,

a colleague from the computer science department of our university
saw our paper about Org-mode in the Journal of Statistical Software,
and has asked me to give a seminar about it.

I myself only make limited use of Org Babel myself, and I would
have to start from scratch to prepare that presentation.  So I was
wondering if anyone here has already given talks about Org Babel,
and if there is some material (Slides and examples good for a talk)
that I could use to get a fast start.

Thanks

- Carsten






Re: [O] [dev] Implement ref link types

2012-02-21 Thread Nicolas Goaziou
Hello,

David Maus dm...@ictsoc.de writes:

 I don't see why we should drop the link type in fuzzy links. After all
 they /are/ are special type of link.

There is no link type in fuzzy links : [[something]] matches
something in master.

 Without the link type we will run into trouble, won't we?.

 In the example file:

 ,
 | We end the list at item [[itm:last]].
 `

 So, itm:last is a fuzzy link but it could as well be a regular link
 of type itm with a path component of last and no description.

I realize my examples are confusing. I shouldn't have used colons. In
fact, the output will be the same if the target is itm-last,
table-last or even foo.

In other words, the itm: part wasn't meant as a link type, but as
a cosmetic part of the name. So the list example could as well be:

#+begin_src org
  1. A first item in a list.
  2. Another item
 1. With three subparts. This one.
 2. Another one.
 3. last And the last subpart.

  We end the list at item [[last]].
#+end_src

 If we say that we use itm:last as a fuzzy link iff there is no
 registered link type itm we might put people into trouble if in some
 point in the future Org mode introduces a link of type itm and the
 fuzzy links stop working.

Certainly. I should have used another name for my examples.

The point is that a fuzzy link [[foo]] will detect the context of its
matching target (foo) or element (#+name: foo) and return an
appropriate sequence number.

The main difference with the current behaviour is that the target part
is ignored. At the moment, in LaTeX, path becomes
\label{path}path. It will be only \label{path} with the patch. This
allows for more flexibility (note that other types of targets, like
radio targets are unchanged).

 Or is there any technical reason to use [[itm:last]] instead of
 [[ref:itm:last]]?

I won't answer this question, since it came out from a mistake of
mine. Though, I'd answer another one: Why do I prefer [[something]]
over [[ref:something]]?.

Thank you for asking this... Well, that's because Org also recognizes
plain links, i.e. http//orgmode.org. And, for an internal link, I'd
rather enforce the use of square brackets, as it is done actually.

Also, we don't require extra syntax, unless we don't want to change
behaviour of targets.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-21 Thread Rainer Stengele
Am 20.02.2012 21:38, schrieb Nick Dokos:
 Nick Dokos nicholas.do...@hp.com wrote:
 
 Adding

   ...
   (org-agenda-start-day (ndk/org-first-of-month))
   (org-agenda-span 'month)
   ...

 to your custom agenda command, with

 (defun ndk/org-first-of-month ()
   (let ((d (calendar-current-date)))
 (calendar-absolute-from-gregorian (list (car d) 1 (caddr d)

 should do it.

 
 Same thing but somewhat more readable:
 
 --8---cut here---start-8---
 (defun ndk/org-first-of-month ()
   (let* ((d (calendar-current-date))
(m (calendar-extract-month d))
(y (calendar-extract-year d)))
 (calendar-absolute-from-gregorian (list m 1 y
 --8---cut here---end---8---
 
 Nick
 
 
Hi Nick,

thanks for helping! I now see the current whole month.
Is there a variable which includes the current starting date of the agenda 
instead of the calendar-current-date?
Using that I could start my month-overview for the month I see in my agenda.


Configuring (org-agenda-archives-mode 'trees) also show the archived trees.
What I cannot achieve is starting the log with clockcheck mode.
(org-agenda-show-log 'clockcheck) does not work.

Any ideas?

- Rainer

My current config is here:

..
(0m agenda + no todos - whole month - log-mode - ARCHIVE included - 
clock report agenda 
 (
  (org-agenda-sorting-strategy '(time-up priority-down))
  (org-agenda-span 'month)
  (org-agenda-start-with-log-mode t)
  (org-agenda-archives-mode 'trees)
  (org-agenda-start-day (ndk/org-first-of-month))
  (org-agenda-start-with-clockreport-mode t)
  (org-agenda-show-log 'clockcheck)
  ))
..



Re: [O] agenda view for TODOs without deadline and a certain tag

2012-02-21 Thread Brian van den Broek
On 21 Feb 2012 09:59, Renato renn...@gmail.com wrote:

 On Mon, 20 Feb 2012 22:41:21 +0100
 Renato renn...@gmail.com wrote:

  Hi, how can I make C-c a M (org-tags-view) respect the variable
  org-agenda-todo-ignore-deadlines? What I want to do is list my active
  TODOs which do not have a deadline and which do not have a certain
  tag.
 

 better still, I'd like for org-agenda-list to ignore entries with a
 certain tag...

snip

 pretty common thing... I've got lots of TODOs for example regarding
 my computer software environment (find

snip

 tagged :computer: - and I really don't want to see those unless I have
 an hour of spare time which I decide to dedicate to such things. I

snip

Hi Renato and all,

One simple solution, albeit not in the spirit of your question, is to keep
such tasks in an org file that is not an agenda file.

Best,

Brian vdB


Re: [O] Talks about Org Babel

2012-02-21 Thread Andreas Leha
Carsten Dominik carsten.domi...@gmail.com writes:

 Dear all,

 a colleague from the computer science department of our university
 saw our paper about Org-mode in the Journal of Statistical Software,
 and has asked me to give a seminar about it.

 I myself only make limited use of Org Babel myself, and I would
 have to start from scratch to prepare that presentation.  So I was
 wondering if anyone here has already given talks about Org Babel,
 and if there is some material (Slides and examples good for a talk)
 that I could use to get a fast start.

 Thanks

 - Carsten

Hi Carsten,

First thing:  I think Stephen Eglen curates a list of org mode
material.  So maybe you'll find sth there.

Also feel free to make use of my presentation at the useR2011.  But
beware, it is quite theoretical (reproducible research) and the examples
are very basic.  You can find the pdf and the sources (old babel
syntax...) here:
http://www.ams.med.uni-goettingen.de/amsneu/download/2011_useR.pdf
http://www.ams.med.uni-goettingen.de/amsneu/download/org-mode_useR2011.tar.gz

- Andreas




[O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread James Harkins
First, a kind of icky problem. I had some problems with the example 
presentation at [1] -- tags are exporting as bold text instead of being 
interpreted.

\item[Thanks to Eric Fraga \textbf{:BMCOL:B\_block:}]\label{sec-1.1.1}

I thought this was probably because of an old org version, so I downloaded org 
7.8.03, checked paths in the Makefile, did make and sudo make install. Now 
emacs shows org-version as 7.8.03, but C-c C-e p just gives me the message 
org-export-preprocess-string: Cannot open load file: org-nil -- 

Per this thread [2], I am looking for a variable called backend-name but it 
doesn't exist in my environment (C-h v backend-name == no match). I have no 
idea how to fix this.


Now...

Apologies in advance for what is surely a basic question. I've searched quite a 
bit online yesterday and today for a document about org-mode beamer export that 
goes a bit beyond the (very useful) for dummies tutorial at [3].

I am new to LaTeX. (*shame*) :-p

Since reading this, I've downloaded the LaTeXe and beamer PDF manuals and 
learned:

- It's going to take a while to learn to think like LaTeX. That's okay with me.

- The key is thinking about structure rather than layout. Like, yesterday I 
wanted to center and boldface a paragraph. Center and boldface might not be 
the right terms. Better to figure out a structural unit appropriate for the 
material. (One challenge here is that the Beamer user's guide doesn't have much 
in the way of summary.)

- If I'm going to influence the layout in anything more than a trivial way, I 
need to understand LaTeX environments.

- Beamer class export documentation [1] is really dense.

It would really help me to get some pointers on where to look first. I don't 
mind doing research, but it's a huge amount of documentation and I have no way 
right now to guess what's critical to read first, what's important and what I 
could leave for later.

Thanks,
James

[1] http://orgmode.org/manual/Beamer-class-export.html#Beamer-class-export
[2] http://permalink.gmane.org/gmane.emacs.orgmode/39788
[3] http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread Jambunathan K
James Harkins jamshar...@gmail.com writes:

 org-export-preprocess-string: Cannot open load file: org-nil --

Try one or both of

(require 'org-latex)
(require 'org-beamer)


-- 



Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread James Harkins
At Tue, 21 Feb 2012 17:05:38 +0530,
Jambunathan K wrote:
 
 James Harkins jamshar...@gmail.com writes:
 
  org-export-preprocess-string: Cannot open load file: org-nil --
 
 Try one or both of
 
 (require 'org-latex)
 (require 'org-beamer)

Thank you! OK... closer. Now, all looks reasonable until:

(/usr/share/texmf-texlive/tex/latex/float/float.sty
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count155
\float@exts=\toks43
\float@box=\box56
\@float@everytoks=\toks44
\@floatcapt=\box57
)

! LaTeX Error: File `wrapfig.sty' not found.

Type X to quit or RETURN to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
read * 
 
l.15 \usepackage
{soul}^^M
*** (cannot \read from terminal in nonstop modes)

Full log attached.

Maybe I need to use bleeding edge LaTeX, not the (old) ubuntu 10.04 packages?

hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) 
(format=pdflatex 2012.2.20)  21 FEB 2012 20:56
entering extended mode
 %-line parsing enabled.
**/home/dlm/Documents/xinghai/beamer-demo.tex
(/home/dlm/Documents/xinghai/beamer-demo.tex
LaTeX2e 2009/09/24
Babel v3.8l and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf/tex/latex/beamer/base/beamer.cls
(/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres
entations (rcs-revision 1.70)
(/usr/share/texmf/tex/latex/beamer/base/beamerbasemodes.sty
Package: beamerbasemodes 2007/01/28 (rcs-revision 1.22)
\beamer@tempbox=\box26
\beamer@tempcount=\count79
\c@beamerpauses=\count80

(/usr/share/texmf/tex/latex/beamer/base/beamerbasedecode.sty
Package: beamerbasedecode 2007/01/28 (rcs-revision 1.20)
\beamer@slideinframe=\count81
\beamer@minimum=\count82
)
\beamer@commentbox=\box27
\beamer@modecount=\count83
)
\headheight=\dimen102
\headdp=\dimen103
\footheight=\dimen104
\sidebarheight=\dimen105
\beamer@tempdim=\dimen106
\beamer@finalheight=\dimen107
\beamer@animht=\dimen108
\beamer@animdp=\dimen109
\beamer@animwd=\dimen110
\beamer@leftmargin=\dimen111
\beamer@rightmargin=\dimen112
\beamer@leftsidebar=\dimen113
\beamer@rightsidebar=\dimen114
\beamer@boxsize=\dimen115
\beamer@vboxoffset=\dimen116
\beamer@descdefault=\dimen117
\beamer@descriptionwidth=\dimen118
\beamer@lastskip=\skip41
\beamer@areabox=\box28
\beamer@animcurrent=\box29
\beamer@animshowbox=\box30
\beamer@sectionbox=\box31
\beamer@logobox=\box32
\beamer@linebox=\box33
\beamer@sectioncount=\count84
\beamer@subsubsectionmax=\count85
\beamer@subsectionmax=\count86
\beamer@sectionmax=\count87
\beamer@totalheads=\count88
\beamer@headcounter=\count89
\beamer@partstartpage=\count90
\beamer@sectionstartpage=\count91
\beamer@subsectionstartpage=\count92
\beamer@animationtempa=\count93
\beamer@animationtempb=\count94
\beamer@xpos=\count95
\beamer@ypos=\count96
\beamer@showpartnumber=\count97
\beamer@currentsubsection=\count98
\beamer@coveringdepth=\count99
\beamer@sectionadjust=\count100
\beamer@tocsectionnumber=\count101

(/usr/share/texmf/tex/latex/beamer/base/beamerbaseoptions.sty
Package: beamerbaseoptions 2007/01/28 (rcs-revision 1.8)

(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
))
(/usr/share/texmf/tex/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/etc/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live
)
Package graphics Info: Driver file: pdftex.def on input line 91.

(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2009/08/25 v0.04m Graphics/color for pdfTeX
\Gread@gobject=\count102
))
\Gin@req@height=\dimen119
\Gin@req@width=\dimen120
)
(/usr/share/texmf/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks15
)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-latex.def)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex
Package: pgfrcs 2008/02/20 v2.00 (rcs-revision 1.21)
))
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex
Package: pgfsys 

Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread Nick Dokos
James Harkins jamshar...@gmail.com wrote:

 At Tue, 21 Feb 2012 17:05:38 +0530,
 Jambunathan K wrote:
  
  James Harkins jamshar...@gmail.com writes:
  
   org-export-preprocess-string: Cannot open load file: org-nil --
  
  Try one or both of
  
  (require 'org-latex)
  (require 'org-beamer)
 
 Thank you! OK... closer. Now, all looks reasonable until:
 
 (/usr/share/texmf-texlive/tex/latex/float/float.sty
 Package: float 2001/11/08 v1.3d Float enhancements (AL)
 \c@float@type=\count155
 \float@exts=\toks43
 \float@box=\box56
 \@float@everytoks=\toks44
 \@floatcapt=\box57
 )
 
 ! LaTeX Error: File `wrapfig.sty' not found.
 
 Type X to quit or RETURN to proceed,
 or enter new name. (Default extension: sty)
 
 Enter file name: 
 ! Emergency stop.
 read * 
  
 l.15 \usepackage
 {soul}^^M
 *** (cannot \read from terminal in nonstop modes)
 
 Full log attached.
 
 Maybe I need to use bleeding edge LaTeX, not the (old) ubuntu 10.04 packages?
 

Both soul.sty and wrapfig.sty are in the package texlive-latex-extra,
so you just need to install that:

  sudo apt-get install texlive-latex-extra

Nick


 hjh
 
 
 --
 James Harkins /// dewdrop world
 jamshar...@dewdrop-world.net
 http://www.dewdrop-world.net
 
 Come said the Muse,
 Sing me a song no poet has yet chanted,
 Sing me the universal.  -- Whitman
 
 blog: http://www.dewdrop-world.net/words
 audio clips: http://www.dewdrop-world.net/audio
 more audio: http://soundcloud.com/dewdrop_world/tracks
 



Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread James Harkins
At Tue, 21 Feb 2012 09:39:27 -0500,
Nick Dokos wrote:
 Both soul.sty and wrapfig.sty are in the package texlive-latex-extra,
 so you just need to install that:
 
   sudo apt-get install texlive-latex-extra

Ah, thanks. Some progress, but still:

! LaTeX Error: File `marvosym.sty' not found.

Type X to quit or RETURN to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
read * 
 
l.18 \usepackage
{wasysym}^^M
!  == Fatal error occurred, no output PDF file produced!

Does anyone have a comprehensive list of all ubuntu packages that are required 
for beamer to work with org 7.8.03?

hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?

2012-02-21 Thread Nick Dokos
Rainer Stengele rainer.steng...@online.de wrote:

 Is there a variable which includes the current starting date of the
 agenda instead of the calendar-current-date?  Using that I could
 start my month-overview for the month I see in my agenda.
 

I don't know: a first look didn't uncover anything obvious, and
a second look will probably have to wail a while.

 
 ...
 What I cannot achieve is starting the log with clockcheck mode.
 (org-agenda-show-log 'clockcheck) does not work.
 

I really haven't done due diligence here, but this feels like a bug: I
tried setting it in my minimal .emacs, both with setq and setq-default,
as well as in the custom agenda command, but when I get to the agenda,
the value is nil, even though the global value is clockcheck. So
something seems to whack it.

Nick




Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread Nick Dokos
James Harkins jamshar...@gmail.com wrote:

 ! LaTeX Error: File `marvosym.sty' not found.
 
 Type X to quit or RETURN to proceed,
 or enter new name. (Default extension: sty)
 
 Enter file name: 
 ! Emergency stop.
 read * 
  
 l.18 \usepackage
 {wasysym}^^M
 !  == Fatal error occurred, no output PDF file produced!
 
 Does anyone have a comprehensive list of all ubuntu packages that are 
 required for beamer to work with org 7.8.03?
 

Check 

  http://orgmode.org/worg/org-dependencies.html

It's out of date, but maybe it's still useful.

Nick




Re: [O] Talks about Org Babel

2012-02-21 Thread Eric Schulte
Hi Carsten,

I was also asked to give a talk in relation to our recent paper (by the
high performance computing group at my university).  My talk will be on
March 25th, and I have not yet begun to prepare slides, but I will
certainly share them with you once I get started.  I'll likely keep them
in a public git repository on github -- I'll follow up to this email
once I've created the repository.

I'm planning on using epresent [1] to run my presentation directly from
an Org-mode file as that way I should be able to run demos directly from
the presentation, but such a file should likely also be useful for
export to Beamer.

Cheers,

Carsten Dominik carsten.domi...@gmail.com writes:

 Dear all,

 a colleague from the computer science department of our university
 saw our paper about Org-mode in the Journal of Statistical Software,
 and has asked me to give a seminar about it.

 I myself only make limited use of Org Babel myself, and I would
 have to start from scratch to prepare that presentation.  So I was
 wondering if anyone here has already given talks about Org Babel,
 and if there is some material (Slides and examples good for a talk)
 that I could use to get a fast start.

 Thanks

 - Carsten






Footnotes: 
[1]  https://github.com/eschulte/epresent

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



[O] can inline tasks export to latex via batch?

2012-02-21 Thread Myles English
Hello,

Does anyone know if I can export inline tasks to latex using --batch
from bash?  When passed as the --funcall option, org-export-as-ascii
will export inline tasks but org-export-as-latex-batch won't.  Setting
file level options don't appear to help.

A minimal example follows.

Emacs 23.4.1
org release_7.8.03.420.gaf2a4

Thanks,

Myles

#- b.org ---

#+EXPORT_EXCLUDE_TAGS: noexport

* A Heading
** A Sub heading
   And now here is an inline task

*** TODO Here I am, I'm inline
Notes notes notes
*** END

** TODO I'm not inline
   Can you see me?

* Tests:noexport:
** Test LaTeX export
#+BEGIN_SRC sh :results verbatim
  emacs --batch \
  --load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
  --visit=~/tmp/tstexp/b.org \
  --funcall org-export-as-latex-batch
  cat ~/tmp/tstexp/b.tex
#+END_SRC

#+RESULTS:
#+begin_example
% Created 2012-02-21 Tue 16:41
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}

\title{b}
\author{}
\date{\today}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{A Heading}
\label{sec-1}
\subsection{A Sub heading}
\label{sec-1-1}

   And now here is an inline task
\subsection{\textbf{TODO} I'm not inline}
\label{sec-1-2}

   Can you see me?

\end{document}
#+end_example


** Test text export
   #+BEGIN_SRC sh :results verbatim
 emacs --batch \
 --load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
 --visit=~/tmp/tstexp/b.org \
 --funcall org-export-as-ascii
 cat ~/tmp/tstexp/b.txt
   #+END_SRC

   #+RESULTS:
   #+begin_example
 b
 =

   Author: 
   Date: 2012-02-21 16:42:07 GMT


   Table of Contents
   =
   1 A Heading
   1.1 A Sub heading
   1.2 I'm not inline


   1 A Heading 
   

   1.1 A Sub heading 
   ==
  And now here is an inline task

 - TODO Here I am, I'm inline 
   Notes notes notes
 - END 


   1.2 TODO I'm not inline 
   
  Can you see me?

#+end_example

(emacs-version)GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9)
 of 2012-02-01 on shirley.hoetzel.info

(org-version) Org-mode version 7.8.03 (release_7.8.03.420.gaf2a4)



Re: [O] anyway to create link to a line number in a file

2012-02-21 Thread Not To Miss
On Mon, Feb 20, 2012 at 12:58 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Not To Miss not.to.m...@gmail.com wrote:

  Thanks, Nick! It works, though it works only to the specified file(s)
  by overruling the original org-store-link-functions.

 Yes, org marches down the link handlers and takes the first positive
 response as the answer. You can make the function arbitrarily complicated
 of course, if you don't like the behavior, but in any case, it will have
 to say yes (and provide the link in some format) or no - in the latter
 case, org will continue on with the rest of the functions in the list (and
 fall back to its default if *no* function says yes).

  Ideally, it would
  be great if in the normal stored org link, line number could be
  included in the link and would be ripped off from the text to search
  the linked file.
 

 I'm confused - what exactly are you asking for here? If you don't use
 the line number for searching, why would you want to store it?

Because I think sometimes the line number gives valuable information in
addition to the text. I meant to create a link like [[file:foo.txt::123
whatever_text]], when users open the link, org-mode searches
whatever_text; if it doesn't find anything, jump to the line 123. The
idea behind that is that it is possible the line is changed and is
unsearchable but still remains in the same line number. This, however, is
probably an issue of built-in org-mode design, beyond the scope of user
customization.

Anyway, thanks for your help.



 Nick

  On Sat, Feb 18, 2012 at 4:58 PM, Nick Dokos nicholas.do...@hp.com
 wrote:
   Nick Dokos nicholas.do...@hp.com wrote:
  
   Not To Miss not.to.m...@gmail.com wrote:
  
I looked that section carefully and the whole manual briefly. I
haven't found anything yet. That's why I am asking on the mailing
 list
to see if anyone has some workaround.
   
On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin 
 sean.ohal...@gmail.com wrote:
 On Fri, Feb 17, 2012 at 4:54 PM, Not To Miss 
 not.to.m...@gmail.com wrote:
 Hi all,

 I am reading a long text file and want to write down my notes
 with
 org-mode. I extremely would like to put the line numbers down
 along
 with my notes. Although there is a way to store a link for text
 search
 for the current line, I haven't found a way to create a link to
 a line
 number in the current buffer. Is there anyway to do that? Thanks

 Take a look at org-capture:
 http://orgmode.org/manual/Capture.html
  
  
   The problem is to make sure org-store-link will actually store the
 line
   number (along with everything else) so that then org-insert-link can
   insert the link in the proper format. I don't think there is a
 function
   to do that out of the box for line numbers, but you can easily (for
 some
   value of easily) write your own. Look in
  
   (info (org)Adding hyperlink types)
  
   for some hints. Briefly, you write a function that checks whether it
   wants to deal with the link or not, and you add it to
   org-store-link-functions. I don't have the time to try it out right
 now,
   but I believe this should work for what you want.
  
  
   Following up on this, the following seems to work, although you
 probably
   want to tweak the criterion of when you want *this* function to take
   care of links - this particular implementation only applies the line
   number treatment to links generated in the file named
   /path/to/the.file.txt and only that file:
  
   --8---cut here---start-8---
   (defun org-file-lineno-store-link()
(when (string-equal (buffer-file-name) /path/to/the.file.txt)
  (let* ((link (format file:%s::%d (buffer-file-name)
 (line-number-at-pos
(org-store-link-props
 :type file
 :link link
  
   (add-hook 'org-store-link-functions 'org-file-lineno-store-link)
   --8---cut here---end---8---
  
   Nick
  
 
 
 
  --
  Best,
  Zhenjiang
 




-- 
Best,
Zhenjiang


Re: [O] anyway to create link to a line number in a file

2012-02-21 Thread Nick Dokos
Not To Miss not.to.m...@gmail.com wrote:

  Ideally, it would
  be great if in the normal stored org link, line number could be
  included in the link and would be ripped off from the text to search
  the linked file.
 

 I'm confused - what exactly are you asking for here? If you don't use
 the line number for searching, why would you want to store it?
 
 Because I think sometimes the line number gives valuable information
 in addition to the text. I meant to create a link like
 [[file:foo.txt::123 whatever_text]], when users open the link,
 org-mode searches whatever_text; if it doesn't find anything, jump
 to the line 123. The idea behind that is that it is possible the line
 is changed and is unsearchable but still remains in the same line
 number. 

I guess the main idea is that it is more likely for the text around the
link to remain the same: the line number can change (e.g. if you add
stuff at the beginning of the file), but the surrounding text will
probably remain the same, so a context search is more likely to find you
what you want. But you are right in that a line number can sometimes
disambiguate things, e.g. the etags functionality in emacs works
(worked?  not sure if the implementation is still the same) by using a
position to go to and then searching in ever-widening circles around
that position in order to find the appropriate context. That way,
identical contexts could be used (a necessity for etags) and still be
distinguished from each other.

 This, however, is probably an issue of built-in org-mode
 design, beyond the scope of user customization. 
 

Yup.

Nick



[O] Question: split up files for subprojects using taskjuggler-export (tj3)

2012-02-21 Thread mail

Hello,

I am looking for a solution to split one project into sub-projects, so 
I can distribute the project into sub-files as suggested here:

http://groups.google.com/group/taskjuggler-users/browse_thread/thread/a98489a0e343ddac

In my project some resources are involved in multiple sub-projects 
while others only work on a single sub-project. Sub-projects in 
separated files makes it more manageable and clear.


Regards,
Michael




Re: [O] can inline tasks export to latex via batch?

2012-02-21 Thread Jambunathan K

 Hello,

 Does anyone know if I can export inline tasks to latex using --batch
 from bash?  When passed as the --funcall option, org-export-as-ascii
 will export inline tasks but org-export-as-latex-batch won't.  Setting
 file level options don't appear to help.

Does your command line contain (require 'org-inlinetask)?

 A minimal example follows.

 Emacs 23.4.1
 org release_7.8.03.420.gaf2a4

 Thanks,

 Myles

 #- b.org ---

 #+EXPORT_EXCLUDE_TAGS: noexport

 * A Heading
 ** A Sub heading
And now here is an inline task

 *** TODO Here I am, I'm inline
   Notes notes notes
 *** END

 ** TODO I'm not inline
Can you see me?

 * Tests  :noexport:
 ** Test LaTeX export
 #+BEGIN_SRC sh :results verbatim
   emacs --batch \
   --load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
   --visit=~/tmp/tstexp/b.org \
   --funcall org-export-as-latex-batch
   cat ~/tmp/tstexp/b.tex
 #+END_SRC

 #+RESULTS:
 #+begin_example
 % Created 2012-02-21 Tue 16:41
 \documentclass[11pt]{article}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{fixltx2e}
 \usepackage{graphicx}
 \usepackage{longtable}
 \usepackage{float}
 \usepackage{wrapfig}
 \usepackage{soul}
 \usepackage{textcomp}
 \usepackage{marvosym}
 \usepackage{wasysym}
 \usepackage{latexsym}
 \usepackage{amssymb}
 \usepackage{hyperref}
 \tolerance=1000
 \providecommand{\alert}[1]{\textbf{#1}}

 \title{b}
 \author{}
 \date{\today}

 \begin{document}

 \maketitle

 \setcounter{tocdepth}{3}
 \tableofcontents
 \vspace*{1cm}

 \section{A Heading}
 \label{sec-1}
 \subsection{A Sub heading}
 \label{sec-1-1}

And now here is an inline task
 \subsection{\textbf{TODO} I'm not inline}
 \label{sec-1-2}

Can you see me?

 \end{document}
 #+end_example


 ** Test text export
#+BEGIN_SRC sh :results verbatim
  emacs --batch \
  --load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
  --visit=~/tmp/tstexp/b.org \
  --funcall org-export-as-ascii
  cat ~/tmp/tstexp/b.txt
#+END_SRC

#+RESULTS:
#+begin_example
b
=

Author: 
Date: 2012-02-21 16:42:07 GMT


Table of Contents
=
1 A Heading
1.1 A Sub heading
1.2 I'm not inline


1 A Heading 


1.1 A Sub heading 
==
   And now here is an inline task

- TODO Here I am, I'm inline 
  Notes notes notes
- END 


1.2 TODO I'm not inline 

   Can you see me?

 #+end_example

 (emacs-version)GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 
 2.24.9)
  of 2012-02-01 on shirley.hoetzel.info

 (org-version) Org-mode version 7.8.03 (release_7.8.03.420.gaf2a4)



-- 



[O] bug report: agenda timeline crashes

2012-02-21 Thread Ilya Shlyakhter
In the head revision, if the org file has headlines that start with a
timestamp, the command to create a timeline of the file (C-a L)
crashes.


* things
*** 2011-10-06 Thu 22:24

some text


mapcar: Args out of range: #(   0 2 (org-category mt3 tags nil
org-highest-priority 65 org-lowest-priority 69 time-of-day 2224 ...)),
0, 37

thanks,
ilya



Re: [O] agenda view for TODOs without deadline and a certain tag

2012-02-21 Thread Simon Thum

Hi Renato,

one of my block agendas has
(tags-todo @workTODO=\TODO\SCHEDULED=\\DEADLINE=\\)

i.e. lists todos which are tagged @work and aren't scheduled or deadlined.

I guess for interactive you have to unquote the s.

HTH,

Simon


On 02/20/2012 10:41 PM, Renato wrote:

Hi, how can I make C-c a M (org-tags-view) respect the variable
org-agenda-todo-ignore-deadlines? What I want to do is list my active
TODOs which do not have a deadline and which do not have a certain tag.

kind regards,
renato







Re: [O] Bug: regression on exporting latex \footnote [7.8.03]

2012-02-21 Thread Nicolas Goaziou
Hello,

Thomas Caswell tcasw...@uchicago.edu writes:

 7.5 correctly exports the \footnote latex commands when exporting to
 beamer, version 7.8 escapes the {} resulting in a the { being in the
 footnote text instead intended text.  I have attached a simple test
 case, the correct output and the failed out put.

I can confirm the problem. Though, out of curiosity, why don't you use
built-in footnotes instead?


Regards,

-- 
Nicolas Goaziou



Re: [O] agenda view for TODOs without deadline and a certain tag

2012-02-21 Thread Renato
On Tue, 21 Feb 2012 23:36:27 +0100
Simon Thum simon.t...@gmx.de wrote:

 Hi Renato,
 
 one of my block agendas has
   (tags-todo @workTODO=\TODO\SCHEDULED=\\DEADLINE=\\)
 
 i.e. lists todos which are tagged @work and aren't scheduled or
 deadlined.
 

thank you very much Simon, I added this to my .emacs:

(setq org-agenda-custom-commands
   '((T tags-todo
TODO=\TODO\+SCHEDULED=\\+DEADLINE=\\-play-computer|bug )))

and now I have exactly what I wanted (and learned more than something
on custom agenda views and tag/properties matching).

cheers!
renato



Re: [O] can inline tasks export to latex via batch?

2012-02-21 Thread Myles English
On 21 February 2012 18:18, Jambunathan K wrote:

A few hours ago, Myles wrote:
 Hello,

 Does anyone know if I can export inline tasks to latex using --batch
 from bash?  When passed as the --funcall option, org-export-as-ascii
 will export inline tasks but org-export-as-latex-batch won't.  Setting
 file level options don't appear to help.

 Does your command line contain (require 'org-inlinetask)?

Thanks for the suggestion.  In the minimal test file b.org (reattached
here with one more headline), neither the block using
org-export-as-latex-batch nor the one using org-export-as-ascii
contained (require 'org-inlinetask) however the ascii export *did*
export the inline task.

My .emacs used to have (require 'org-inlinetask) but doesn't anymore,
I think it merged with something, and I can export latex with inline
todos from my normal emacs.

Nonetheless, I tried adding the 'require' (see headline 'WITH require
org-inline') and still no banana.

Any other ideas?

Myles


b.org
Description: Binary data


Re: [O] Beamer export: upgrade problem, and basic questions

2012-02-21 Thread James Harkins
At Tue, 21 Feb 2012 10:21:51 -0500,
Nick Dokos wrote:
  Does anyone have a comprehensive list of all ubuntu packages that are 
  required for beamer to work with org 7.8.03?
  
 
 Check 
 
   http://orgmode.org/worg/org-dependencies.html
 
 It's out of date, but maybe it's still useful.

:) Actually I already had all the mentioned packages installed.

Fortunately wasysym is in the description of ubuntu's 
texlive-fonts-recommended package, so I found it that way.

And... success!

So, at least texlive-fonts-recommended should be added to the dependencies 
page. I haven't checked for tex* packages that I installed but which aren't on 
that page.

hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] bug report: agenda timeline crashes

2012-02-21 Thread Nick Dokos
Ilya Shlyakhter ilya_...@alum.mit.edu wrote:

 In the head revision, if the org file has headlines that start with a
 timestamp, the command to create a timeline of the file (C-a L)
 crashes.
 
 
 * things
 *** 2011-10-06 Thu 22:24
 
 some text
 
 
 mapcar: Args out of range: #(   0 2 (org-category mt3 tags nil
 org-highest-priority 65 org-lowest-priority 69 time-of-day 2224 ...)),
 0, 37
 

Confirmed. The culprit seems to be some not-so-robust code in
org-agenda-highlight-todo. Here's the code:

--8---cut here---start-8---
  ...
  (let ((pl (text-property-any 0 (length x) 'org-heading t x)))
  (setq re (get-text-property 0 'org-todo-regexp x))
  (when (and re
 (equal (string-match (concat \\(\\.*\\) re \\( +\\))
  x (or pl 0)) pl))
(add-text-properties
 (or (match-end 1) (match-end 0)) (match-end 0)
 (list 'face (org-get-todo-face (match-string 2 x)))
 x)
(when (match-end 1)
  (setq x (concat (substring x 0 (match-end 1))
  (format org-agenda-todo-keyword-format
  (match-string 2 x))
  (org-add-props   (text-properties-at 0 x))
  (substring x (match-end 3)))
  ...
--8---cut here---end---8---

The problem is that pl is nil in this case and so is the
value of

  (string-match (concat \\(\\.*\\) re \\( +\\)) x (or pl 0))

but they compare equal, so the body of the

(when (and re ...)
  body
 )

is evaluated with disastrous results: the string-match has failed so it
has not set any matches for (match-end ...) to find. In this case,
(match-end 1) evaluated to 36 (that's in a 3-character string :-).

AFAICT, the whole body should be skipped in the case when pl is nil:

(let ((pl ...))
  (when pl
(setq re (...)
(when (and re (...))
   ...
   ...

But it's not clear to me whether this is the only bug.

Nick