Re: [O] org-install not defining org-mode-map?

2012-05-15 Thread Achim Gratz
Eric Abrahamsen writes:
 (require 'org-install)
 (eval-after-load 'org
 ; don't let org steal this key
   (define-key org-mode-map (kbd C-') nil))

 There are more such forms later on, they all throw the same error.

I'm out of my depth here, but I'd think that this sort of thing really
belongs into a mode hook.

 I thought org-install was meant to handle this sort of thing?

No.  It sets up all autoload forms so that the public interfaces of org
become visible without actually loading all of org.

 Or at least the eval-after-load? Still, org-mode-map is undefined
 until I've opened my first org file and org is properly loaded.

How long have you been using Emacs24, specifically has it ever worked
there?  The scoping rules for global dynamic variables have changed for
Emacs24 and the exact details seem not to be fully documented yet.  Does
it start working again if you add a

(defvar org-mode-map)

after the require form?


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-install not defining org-mode-map?

2012-05-15 Thread Christopher Schmidt
Eric Abrahamsen e...@ericabrahamsen.net writes:

 I must have done something odd here, but…

Yes.

 On emacs startup, org-mode-map is not getting defined for some reason,
 so a bunch of `eval-after-load' forms are throwing errors. I'm using
 org from git, and the following is the first offending section:
 (require 'org-install)
 (eval-after-load 'org
 ; don't let org steal this key
   (define-key org-mode-map (kbd C-') nil))

You have to quote the inner form.

Christopher



Re: [O] org-install not defining org-mode-map?

2012-05-15 Thread Eric Abrahamsen
On Tue, May 15 2012, Achim Gratz wrote:

 Eric Abrahamsen writes:
 (require 'org-install)
 (eval-after-load 'org
 ; don't let org steal this key
   (define-key org-mode-map (kbd C-') nil))

 There are more such forms later on, they all throw the same error.

 I'm out of my depth here, but I'd think that this sort of thing really
 belongs into a mode hook.

 I thought org-install was meant to handle this sort of thing?

 No.  It sets up all autoload forms so that the public interfaces of org
 become visible without actually loading all of org.

 Or at least the eval-after-load? Still, org-mode-map is undefined
 until I've opened my first org file and org is properly loaded.

 How long have you been using Emacs24, specifically has it ever worked
 there?  The scoping rules for global dynamic variables have changed for
 Emacs24 and the exact details seem not to be fully documented yet.  Does
 it start working again if you add a

 (defvar org-mode-map)

 after the require form?

I've been using emacs 24 for several months, and it's only in the past
few weeks that this has stopped working. Christopher's solution seems to
be the right one -- probably I should have been quoting that form the
whole time, but I'm quite certain it's worked, unquoted, for a while
now.

I'm assuming it does have something to with changes in how emacs 24
handles variables… Using your defvar suggestion didn't do it, though.

Thanks to you both,

Eric

-- 
GNU Emacs 24.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-05-12 on pellet
7.8.09




[O] Headline terminator with indentation on

2012-05-15 Thread Avery Chan
I have visual-line-mode and indentation turned on. I am having
difficulty (i.e. I am unable to) moving text that I don't want
associated with a headline to be demoted (i.e. flush left) after the
headline is created. It seems that org mode considers everything under
a headline to be a subsection of that headline.

So for example I have: 
-- EXAMPLE - 
* Great escape 
* Anyways 
* Help
Blah blah blah


Blah blah blah 
-- EXAMPLE -

Which, when folded, is rendered as 
-- EXAMPLE - 
* Great escape 
* Anyways 
* Help...  
-- EXAMPLE -

I would like it to look like this: 
-- EXAMPLE - 
* Great escape 
* Anyways 
* Help...

Blah blah blah 
-- EXAMPLE -

Meaning that the text at the bottom is not considered a part of the
*Help heading.

I have read the documentation on headings but haven't found anything
helpful. Is there a variable to set to determine a headline
terminator?


Emacs: v 24.0.92.1 
Org: 7.8.09




Re: [O] Headline terminator with indentation on

2012-05-15 Thread Nick Dokos
Avery Chan avery+orgm...@ootbdev.com wrote:

 I have visual-line-mode and indentation turned on. I am having
 difficulty (i.e. I am unable to) moving text that I don't want
 associated with a headline to be demoted (i.e. flush left) after the
 headline is created. It seems that org mode considers everything under
 a headline to be a subsection of that headline.
 
 So for example I have: 
 -- EXAMPLE - 
 * Great escape 
 * Anyways 
 * Help
 Blah blah blah
 
 
 Blah blah blah 
 -- EXAMPLE -
 
 Which, when folded, is rendered as 
 -- EXAMPLE - 
 * Great escape 
 * Anyways 
 * Help...  
 -- EXAMPLE -
 
 I would like it to look like this: 
 -- EXAMPLE - 
 * Great escape 
 * Anyways 
 * Help...
 
 Blah blah blah 
 -- EXAMPLE -
 
 Meaning that the text at the bottom is not considered a part of the
 *Help heading.
 
 I have read the documentation on headings but haven't found anything
 helpful. Is there a variable to set to determine a headline
 terminator?
 

Short answer: you can't do that. There's been extensive discussion on
the mailing list about this but I can't remember the topic and my quick
search was unsuccessful: maybe one of the participants can provide
pointers to the discussions?

Nick





Re: [O] Using Org for a dissertation

2012-05-15 Thread suvayu ali
Hi Richard,

On Sat, May 12, 2012 at 8:23 PM, Richard Lawrence
richard.lawre...@berkeley.edu wrote:
 I am a graduate student in philosophy, and I am about to begin writing
 my dissertation.  I am wondering about whether I should write it in Org,
 or stick to plain LaTeX.

Since others have added their bits, I'll just say I wrote my Master's
thesis in Physics last year with the then org-mode HEAD. I rather liked
the process and the end result[1]. Although I have to admit, I had to
hack around a bit because of buggy mandatory templates from my
university. Apart from that, everything was very smooth. If you are
interested, my org-mode setup is in a public repo[2]. However I haven't
had the time to make the org source for the thesis publicly available.
In case you are interested, I'm attaching some relevant bits. It has
examples on how to put in tables (with short and long captions),
figures, latex snippets and finally how I included a bibliography and
appendices.

Hope this will help.

Footnotes:

[1] 
https://theses.lib.sfu.ca/sites/all/files/public_copies/etd6682_sali_pdf_0.pdf
[2] https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el

-- 
Suvayu

Open source is the future. It sets us free.
# -*- mode: org; -*-
#+TITLE: Estimation and modelling of Standard Model backgrounds in the 
search for \(W'\) gauge bosons with ATLAS (\mu channel)
#+AUTHOR:Suvayu Ali
#+EMAIL: suvayu@cern.ch
#+DATE:  \today
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:4 num:4 toc:nil ::t |:t ^:t -:t f:t *:t :nil
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:nil pri:nil tags:nil

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport

#+STARTUP: content
#+BIND: org-confirm-babel-evaluate nil
#+BIND: org-export-latex-title-command 

#+LaTeX_CLASS: book
#+LaTeX_CLASS_OPTIONS: [12pt,letterpaper,oneside]
#+LaTeX_HEADER: \usepackage{amsfonts}
#+LaTeX_HEADER: \usepackage{amsmath}
#+LaTeX_HEADER: \usepackage{appendix}
#+LaTeX_HEADER: \usepackage{varioref}
#+LaTeX_HEADER: \usepackage[nokeyprefix]{refstyle}
# more Physics specific packages

# LaTeX Macros
#+LaTeX_HEADER: \newcommand{\p}[1]{\phantom{#1}}
#+LaTeX_HEADER: \newcommand{\modulus}[1]{\ensuremath{\lvert #1 \rvert}}
# some more Physics specific macros

# University stuff
##+LaTeX_HEADER: \usepackage[headings]{thesisstyle}
# ...
# #+LaTeX_HEADER: \include{abstract}
# \include{preamble}

* Introduction

** The Standard Model:SM:

   \label{chap:SMintro}

   The Standard Model is a quantum field theoretical approach to
   describe interactions in nature. The theory is primarily built upon
   symmetry arguments supported by experimental data. It describes the
   interactions between all fermions mediated by vector gauge bosons.
   These include the electromagnetic, weak and strong interactions.
   The formulation of the SM does not include gravity. There are
   various approaches to include gravity in BSM theories which are
   discussed elsewhere \cite{ArkaniHamed:1998rs,Randall:1999ee}.

   #+CAPTION: [Interactions and particles described by the SM.]{The 
interactions and the participating particles described by the Standard Model 
are tabulated below. Although the $Z^0$ is listed both as force carrier and a 
particle interacting by the weak force, it should be noted it does not couple 
with another $Z^0$.}
   #+LABEL: tbl:interactions
   
|--+-++-|
   | Charge   | Force   | Force carrier  | Interacting particles
   |
   
|--+-++-|
   | Electric | Electromagnetic | \gamma | all charged fermions, 
\(W^\pm\) |
   | Weak | Weak| \(W^\pm, Z^0\) | all fermions, \(W^\pm, Z^0\) 
   |
   | Colour   | Strong  | \(g\)  | all quarks, anti-quarks, 
\(g\)  |
   
|--+-++-|

   In the SM all particles carry various charges which describe all
   the interactions they undergo: the electric charge is responsible
   for all electromagnetic interactions, the weak charge for all weak
   interactions and the colour charge for all strong interactions.
   Since any quantum fields have bosonic exchange particles, all the
   interactions discussed earlier are associated with different spin-1
   bosons as force carriers. This has been summarised in
   \Tabref{tbl:interactions}.

*** Production and Decay of the \(W'\) Boson:pdf:

\label{subsec:Wprod}

#+CAPTION: A representative diagram for \(W'\) production at the LHC.
#+LABEL: fig:LO-Wprime
#+ATTR_LaTeX: width=0.6\textwidth
[[file:figs/Wprime-s-channel.eps]]

\noindent *Production:* The $W'$ boson is assumed to have a
coupling constant that is the same as its lighter SM counterpart.
This is known as the sequential SM $W'$ boson. The 

[O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.

Pressing S-down/up on a component of a timestamp decreases/increases it by one
unit of that component.

How can we include an easy and quick way to decrease/increase the timestamp by
one week. I find myself having to do that quite often (increase). It's not
difficult to hit S-right/up seven times, but there is the possibility of
miscounting.

Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 




Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Christian Moe

C-c . +1w

Yours,
Christian

On 5/15/12 3:34 PM, SW wrote:

Pressing S-left/right anywhere on a timestamp decreases/increases it by one day.

Pressing S-down/up on a component of a timestamp decreases/increases it by one
unit of that component.

How can we include an easy and quick way to decrease/increase the timestamp by
one week. I find myself having to do that quite often (increase). It's not
difficult to hit S-right/up seven times, but there is the possibility of
miscounting.

Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``?









Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Christian Moe mail at christianmoe.com writes:

 C-c . +1w

This updates the timestamp to be one week from *today*. I want to push the
timestamp one week forward from wherever it is.




Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Nick Dokos
SW sabrewo...@gmail.com wrote:

 Pressing S-left/right anywhere on a timestamp decreases/increases it by one 
 day.
 
 Pressing S-down/up on a component of a timestamp decreases/increases it by one
 unit of that component.
 
 How can we include an easy and quick way to decrease/increase the timestamp by
 one week. I find myself having to do that quite often (increase). It's not
 difficult to hit S-right/up seven times, but there is the possibility of
 miscounting.
 

I generally lean on S-up and watch the changing date until it gets to
where I want it - no counting.

 Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
 
 

I wouldn't bother but I'm not you: if you really want to, you can define a 
trivial function

   (defun sw-one-week-bump ()
   (org-timestamp-up-day 7))

and bind it.

If you need help with the latter, see the emacs manual:

   (info (emacs) Customizing Key Bindings)

and for the gory details, the emacs lisp manual:

   (info (elisp) Keymaps)

Nick

PS. Not sure how much emacs you know - if any/all of this is obvious, please 
disregard.



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Christian Moe

Oops, sorry! Forgot the double-plus.

With point on the timestamp,

C-c . ++1w

Yours,
Christian

On 5/15/12 3:42 PM, SW wrote:

Christian Moemailat  christianmoe.com  writes:


C-c . +1w


This updates the timestamp to be one week from *today*. I want to push the
timestamp one week forward from wherever it is.








Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Christian Moe mail at christianmoe.com writes:

 Oops, sorry! Forgot the double-plus.
 
 With point on the timestamp,
 
 C-c . ++1w

Ah, that works. Thanks :)






Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Nick Dokos nicholas.dokos at hp.com writes:

  Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
 
 I wouldn't bother but I'm not you: if you really want to, you can
 define a trivial function
 
(defun sw-one-week-bump ()
(org-timestamp-up-day 7))
 
 and bind it.

snip
(info (emacs) Customizing Key Bindings)

snip

 PS. Not sure how much emacs you know - if any/all of this is obvious,
 please disregard.

:) Thanks. I'm an advanced beginner with Emacs, so the example was helpful.

Aside: Hitting ``M-: (info (emacs) Customizing Key Bindings)`` gives me an
error about the info file not existing. I installed Emacs 23.2.1 in CrunchBang
Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package. Any 
ideas?







Re: [O] Remaining Work Report

2012-05-15 Thread Myles English

Forgot to copying this to the list:

 On Tue, 15 May 2012 13:07:12 +0100, Myles English said:

   Hi Sebastian,

I mean 'Sebastien'.

   Sorry it has taken a long time to reply; I have been customising my
   emacs, or has it been customising me...?

 On Thu, 03 May 2012 16:38:12 +0200, Sebastien Vauban said:

   Hi Myles,
   Myles English wrote:
   On Mon, 19 Mar 2012 14:33:17 +0100, Sebastien Vauban said:
  
The question I'm trying to give an answer to is: *what's the
remaining number of hours (or days) to finish my project*?

   So that is your goal.
 
   To exclude DONE items from the columnview I moved the Effort property out 
of
   the way to the Old_Effort property when the state changes to DONE:

   [function snipped]

   Unlike your example I made heavy use of inline tasks and also wanted 
heading
   numbers instead of asterisks, so that the final table looks like a table 
of
   contents with estimated times remaining. I had to do some more things to
   achieve this and can elaborate if you like.

   I finally spend some time to look at your answer, and give a feedback.

   First, I really thank you for your answer. It really is interesting to see 
how
   others tackle with the same (kind of) problem.

   You're welcome.  It helps to justify the amount of time I spent on it if
   I can share it with someone else.

   Second, about your workaround. It does not satisfy me (renaming the 
property
   Effort to Old_Effort upon transition change to DONE)[1] because:

   - What happens if you reopen the task, clock some time on it, and close it?
   A new move of the property will occur, with a nil (hence, null?) value?
   Your Old_Effort will be overwritten?

   Yes something like that, the function I posted is not consistent or
   even reliable really.  It was intended as a starting point.

   - My goal is to show, in a table, the progress made on all tasks (TODO, 
STRT,
   DONE), and moreover to compare spent time (CLOCK) vs estimated time
   (Effort). Hence, I need to have the effort property at all times[2].

   Okay so your goal has changed and looks like it would be approximately
   double the work of what I needed.  When you reopen a task presumably you
   would re-estimate the effort too which could lead to complications.  You
   could may be consider never reopening a task and always starting a new
   one?

   Do you have, maybe, an alternative way for those?

   No, but if you look at the functions I sent originally and diff them
   against the org- functions mentioned in their descriptions then you will
   see what I had to change, which was not that much really, and maybe you
   can build on it.

   I would be interested to hear if you make something great with this.

   -- 
 `--[ Myles ]

-- 
  `--[ Myles ]



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Nick Dokos
SW sabrewo...@gmail.com wrote:

 Nick Dokos nicholas.dokos at hp.com writes:
 
   Should I just bind ``C-u 7 S-right`` and ``C-u 7 S-left``? 
  
  I wouldn't bother but I'm not you: if you really want to, you can
  define a trivial function
  
 (defun sw-one-week-bump ()
 (org-timestamp-up-day 7))
  
  and bind it.
 
 snip
 (info (emacs) Customizing Key Bindings)
 
 snip
 
  PS. Not sure how much emacs you know - if any/all of this is obvious,
  please disregard.
 
 :) Thanks. I'm an advanced beginner with Emacs, so the example was helpful.
 
 Aside: Hitting ``M-: (info (emacs) Customizing Key Bindings)`` gives me an
 error about the info file not existing. I installed Emacs 23.2.1 in CrunchBang
 Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package. Any 
 ideas?
 

I don't know if there is a separate doc package on your distro (or any
distro for that matter): I generally install emacs from source and both
the emacs and elisp info files are built and installed along with it.

Nick

PS. C-x C-e will evaluate a form in any bufferm, with no need for ``M-: foo 
RET''



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Brian van den Broek
On 15 May 2012 17:25, SW sabrewo...@gmail.com wrote:

snip

 Aside: Hitting ``M-: (info (emacs) Customizing Key Bindings)`` gives me
an
 error about the info file not existing. I installed Emacs 23.2.1 in
CrunchBang
 Linux (Debian Stable) and (IIRC) org-mode 7.8.06 via a Debian package.
Any ideas?


A data point:

I've the same broken info system on the ssame version of CrunchBang. I
really like cb, but there are wrinkles like that. The TODO for solving that
hasn't percolated up my list yet :-)

Best,

Brian vdB


[O] org-goto-local-search-headings usage?

2012-05-15 Thread Myles English

Hi,

Can anyone see what I am doing wrong here?  I just want to open a file
~/tmp/gtd.org and goto the heading * My workflow.  So, starting like
this:

emacs -Q -l ~/tmp/gtd

with ~/tmp/gtd:

(add-to-list 'load-path
 ~/.emacs.d/plugins/org-mode/lisp)
(require 'org-install) ;; to use the emacs-org-mode rather than the one
   ;; installed with emacs

(defun gtd()
   (interactive)
   (find-file ~/tmp/gtd.org)
   (goto-char (point-min))
   (setq wf My workflow)
   (org-goto-local-search-headings wf nil nil)
)

and ~/tmp/gtd.org:

* My workflow

then I do:

M-x gtd

and get the message:

byte-code: Search failed: My workflow

I have tried edebugging but didn't get anywhere, perhaps I am not using
it properly.

Thanks,

-- 
  `--[ Myles ]



Re: [O] org-goto-local-search-headings usage?

2012-05-15 Thread Nick Dokos
Myles English mylesengl...@gmail.com wrote:

 
 Hi,
 
 Can anyone see what I am doing wrong here?  I just want to open a file
 ~/tmp/gtd.org and goto the heading * My workflow.  So, starting like
 this:
 
 emacs -Q -l ~/tmp/gtd
 
 with ~/tmp/gtd:
 
 (add-to-list 'load-path
~/.emacs.d/plugins/org-mode/lisp)
 (require 'org-install) ;; to use the emacs-org-mode rather than the one
;; installed with emacs
 
 (defun gtd()
(interactive)
(find-file ~/tmp/gtd.org)
(goto-char (point-min))
(setq wf My workflow)
(org-goto-local-search-headings wf nil nil)
 )
 
 and ~/tmp/gtd.org:
 
 * My workflow
 
 then I do:
 
 M-x gtd
 
 and get the message:
 
 byte-code: Search failed: My workflow
 

Works for me: the cursor is placed at the end of the headline.
I tried both with just the one headline and also with half a 
dozen.

Maybe M-x toggle-debug-on-error and try again to get a backtrace?
Or add

   (setq debug-on-error t)

to your initialization file.

Nick





Re: [O] PDF file was not produced! Too deeply nested!??

2012-05-15 Thread Bastien


Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Please precisely point at what we should fix in the FAQ so that someone
 can do it.

 The false information is not in Org's FAQ; it's in LaTeX's FAQ. So, nothing to
 do here on this matter...

Okay, thanks :)

-- 
 Bastien




Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Brian van den Broek brian.van.den.broek at gmail.com writes:

 A data point:
 I've the same broken info system on the ssame version of CrunchBang.
 I really like cb, but there are wrinkles like that. The TODO for
 solving that hasn't percolated up my list yet

In the meantime, I've posed it on the CrunchBang forums:
http://crunchbanglinux.org/forums/topic/19641/emacs-info-pages/





Re: [O] Using Org for a dissertation

2012-05-15 Thread Markus Grebenstein

Hi Richard,

I recently have written my dissertation in orgmode.

I switched to latex for the final 4 weeks between the correction version 
(completely written in orgmode) and the final version.


What I liked about org:
- Outlining functionality
- Synopsis drawers and view
- Markup
- Compiling subtrees
- noexport tag
- tagging

What I disliked/ preferred in auctex:
- missing footnote folding in stable version
- footnotes frequently lead to trouble with overlapping latex groups.
- missing/spare syntax highlighting
- reference handling in especial w.r.t headings (if you change the 
heading you use the reference)

- debugging
- missing subfigure abilities
- compile time i.e. if you have much babel-snippets
- whitespace handling i.e. after e.g. \si{someunit} (you cannot place a 
footnote at the place where it should be.


The main reasons to switch to auctex in the end for me has been the 
much  better debugging possibilities and the better reftex integration 
(you have to fix quite a bit of wrong references in the final stage of 
your work. Furthermore, I had to do some additional time consuming 
debugging of the orgmode markup several times (most frequently related 
to org-babel).


I would do it again but I'd switch to latex as soon as the basic 
structure of the text is fixed.


Just my 2 cents.

Best Markus



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Nick Dokos
SW sabrewo...@gmail.com wrote:

 Brian van den Broek brian.van.den.broek at gmail.com writes:
 
  A data point:
  I've the same broken info system on the ssame version of CrunchBang.
  I really like cb, but there are wrinkles like that. The TODO for
  solving that hasn't percolated up my list yet
 
 In the meantime, I've posed it on the CrunchBang forums:
 http://crunchbanglinux.org/forums/topic/19641/emacs-info-pages/
 

On Ubuntu 11.04, they are in the package emacs23-common. When I
installed emacs23, emacs23-common came along for the ride.

But I saw a message implying that Debian does not consider emacs
documentation free (!?!?), so the info files may be in
emacs23-common-non-dfsg in this case.

Nick






Re: [O] Using Org for a dissertation

2012-05-15 Thread Nicolas Goaziou
Hello,

Richard Lawrence richard.lawre...@berkeley.edu writes:

 I have seen mention of the new exporter on this list a bit, but I don't
 read the list enough to know where to find it.  How can I try it, if I
 want to see how it compares to the current exporter?  Is it in a public
 branch somewhere?  

Assuming contrib directory is in your load-path, just evaluate

  (require 'org-export)

Then, you can call the dispatcher with M-x org-export-dispatch.

 Would feedback from me be helpful?

Certainly.


Regards,

-- 
Nicolas Goaziou



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Memnon Anon
Nick Dokos nicholas.do...@hp.com writes:

 But I saw a message implying that Debian does not consider emacs
 documentation free (!?!?), so the info files may be in
 emacs23-common-non-dfsg in this case.

The FSF isn't the only one caring about Freedom.
Where more than one entity exists, they are bound to disagree sometimes :).


,[ https://en.wikipedia.org/wiki/DFSG#GFDL ]
| Much documentation written by the GNU Project, the Linux Documentation
| Project and others licensed under the GNU Free Documentation License
| contain invariant sections, which do not comply with the DFSG. This
| assertion is the end result of a long discussion and the General
| Resolution 2006-001.[11]
| 
| Due to the GFDL invariant sections, content under this license must be
| separately contained in an additional non-free repository which is not
| officially considered part of Debian.
`

hth
Memnon




Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread SW
Nick Dokos nicholas.dokos at hp.com writes:

snip
 
 But I saw a message implying that Debian does not consider emacs
 documentation free (!?!?), so the info files may be in
 emacs23-common-non-dfsg in this case.

Thanks, that's the package :)

FWIW, I think you meant:

(info (emacs) Key Binding Commands)

earlier, or else I don't have the node you mentioned.





Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Nick Dokos
Memnon Anon gegendosenflei...@googlemail.com wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  But I saw a message implying that Debian does not consider emacs
  documentation free (!?!?), so the info files may be in
  emacs23-common-non-dfsg in this case.
 
 The FSF isn't the only one caring about Freedom.
 Where more than one entity exists, they are bound to disagree sometimes :).
 
 
 ,[ https://en.wikipedia.org/wiki/DFSG#GFDL ]
 | Much documentation written by the GNU Project, the Linux Documentation
 | Project and others licensed under the GNU Free Documentation License
 | contain invariant sections, which do not comply with the DFSG. This
 | assertion is the end result of a long discussion and the General
 | Resolution 2006-001.[11]
 | 
 | Due to the GFDL invariant sections, content under this license must be
 | separately contained in an additional non-free repository which is not
 | officially considered part of Debian.
 `
 

Yup - as I indicated, I found it somewhat surprising, so I found and
read the resolution.  I think it's all pretty small nits, but thank
goodness IANAL (haven't even played one on TV): the havoc that I could
wreak would be unimaginable...

Nick



Re: [O] Timestamp: Forward or backward by a week

2012-05-15 Thread Nick Dokos
SW sabrewo...@gmail.com wrote:

 Nick Dokos nicholas.dokos at hp.com writes:
 
 snip
  
  But I saw a message implying that Debian does not consider emacs
  documentation free (!?!?), so the info files may be in
  emacs23-common-non-dfsg in this case.
 
 Thanks, that's the package :)
 
 FWIW, I think you meant:
 
 (info (emacs) Key Binding Commands)
 
 earlier, or else I don't have the node you mentioned.
 

That may very well be: I was looking in the emacs24 info files which are
probably different.




Re: [O] Inline LaTeX fragments in emacs buffer

2012-05-15 Thread Nicolas Goaziou
Hello,

Dov Grobgeld dov.grobg...@gmail.com writes:

 I got it. Org-mode erroneously interpreted the + sign on the second row as
 a list token. Rearranging the latex text so that it does not start with -
 or + is a workaround.

Actually, it's not erroneous. Plain lists in Org mode have precedence
over paragraphs. It may be surprising sometimes but it would be the same
if you had:

\[
some equation
* This would be an headline
some other equation
\]


Regards,

-- 
Nicolas Goaziou



Re: [O] org-goto-local-search-headings usage?

2012-05-15 Thread Myles English
 On Tue, 15 May 2012 11:48:55 -0400, Nick Dokos said:

   Myles English mylesengl...@gmail.com wrote:
   
   Hi,
   
   Can anyone see what I am doing wrong here?  I just want to open a file
   ~/tmp/gtd.org and goto the heading * My workflow.  So, starting like
   this:
   
   emacs -Q -l ~/tmp/gtd
   
   with ~/tmp/gtd:
   
   (add-to-list 'load-path
   ~/.emacs.d/plugins/org-mode/lisp)
   (require 'org-install) ;; to use the emacs-org-mode rather than the one
   ;; installed with emacs
   
   (defun gtd()
   (interactive)
   (find-file ~/tmp/gtd.org)
   (goto-char (point-min))
   (setq wf My workflow)
   (org-goto-local-search-headings wf nil nil)
   )
   
   and ~/tmp/gtd.org:
   
   * My workflow
   
   then I do:
   
   M-x gtd
   
   and get the message:
   
   byte-code: Search failed: My workflow
   

   Works for me: the cursor is placed at the end of the headline.
   I tried both with just the one headline and also with half a 
   dozen.

Thanks for taking a look Nick.  My real usage also uses a much bigger
file and sometimes it works when the .emacs file is open or if I have
been working in the gtd.org file but I haven't been able to track down
when it works or doesn't.  Hence this MWE.

   Maybe M-x toggle-debug-on-error and try again to get a backtrace?
   Or add

  (setq debug-on-error t)

   to your initialization file.

Adding (setq debug-on-error t) to the top of the file gtd then
proceeding as before gives me the *Backtrace*:

  org-goto-local-search-headings(My workflow nil nil)
  gtd()
  call-interactively(gtd t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

which doesn't even really look like an error, does it?

-- 
  `--[ Myles ]



Re: [O] org-goto-local-search-headings usage?

2012-05-15 Thread Nick Dokos
Myles English mylesengl...@gmail.com wrote:

  On Tue, 15 May 2012 11:48:55 -0400, Nick Dokos said:
 
Myles English mylesengl...@gmail.com wrote:

Hi,

Can anyone see what I am doing wrong here?  I just want to open a file
~/tmp/gtd.org and goto the heading * My workflow.  So, starting like
this:

emacs -Q -l ~/tmp/gtd

with ~/tmp/gtd:

(add-to-list 'load-path
~/.emacs.d/plugins/org-mode/lisp)
(require 'org-install) ;; to use the emacs-org-mode rather than the one
;; installed with emacs

(defun gtd()
(interactive)
(find-file ~/tmp/gtd.org)
(goto-char (point-min))
(setq wf My workflow)
(org-goto-local-search-headings wf nil nil)
)

and ~/tmp/gtd.org:

* My workflow

then I do:

M-x gtd

and get the message:

byte-code: Search failed: My workflow

 
Works for me: the cursor is placed at the end of the headline.
I tried both with just the one headline and also with half a 
dozen.
 
 Thanks for taking a look Nick.  My real usage also uses a much bigger
 file and sometimes it works when the .emacs file is open or if I have
 been working in the gtd.org file but I haven't been able to track down
 when it works or doesn't.  Hence this MWE.
 
Maybe M-x toggle-debug-on-error and try again to get a backtrace?
Or add
 
   (setq debug-on-error t)
 
to your initialization file.
 
 Adding (setq debug-on-error t) to the top of the file gtd then
 proceeding as before gives me the *Backtrace*:
 
   org-goto-local-search-headings(My workflow nil nil)
   gtd()
   call-interactively(gtd t nil)
   execute-extended-command(nil)
   call-interactively(execute-extended-command nil nil)
 
 which doesn't even really look like an error, does it?
 

No, but there are missing stack frames: it fails on the search-backward
that org-goto-local-search-headings does. In the best let's cure the
symptom, not the disease manner, try changing the point-min to
point-max in the definition of gtd.

Nick



Re: [O] org-goto-local-search-headings usage?

2012-05-15 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Myles English mylesengl...@gmail.com wrote:
 
   On Tue, 15 May 2012 11:48:55 -0400, Nick Dokos said:
  
 Myles English mylesengl...@gmail.com wrote:
 
 Hi,
 
 Can anyone see what I am doing wrong here?  I just want to open a file
 ~/tmp/gtd.org and goto the heading * My workflow.  So, starting like
 this:
 
 emacs -Q -l ~/tmp/gtd
 
 with ~/tmp/gtd:
 
 (add-to-list 'load-path
 ~/.emacs.d/plugins/org-mode/lisp)
 (require 'org-install) ;; to use the emacs-org-mode rather than the one
 ;; installed with emacs
 
 (defun gtd()
 (interactive)
 (find-file ~/tmp/gtd.org)
 (goto-char (point-min))
 (setq wf My workflow)
 (org-goto-local-search-headings wf nil nil)
 )
 
 and ~/tmp/gtd.org:
 
 * My workflow
 
 then I do:
 
 M-x gtd
 
 and get the message:
 
 byte-code: Search failed: My workflow
 
  
 Works for me: the cursor is placed at the end of the headline.
 I tried both with just the one headline and also with half a 
 dozen.
  
  Thanks for taking a look Nick.  My real usage also uses a much bigger
  file and sometimes it works when the .emacs file is open or if I have
  been working in the gtd.org file but I haven't been able to track down
  when it works or doesn't.  Hence this MWE.
  
 Maybe M-x toggle-debug-on-error and try again to get a backtrace?
 Or add
  
(setq debug-on-error t)
  
 to your initialization file.
  
  Adding (setq debug-on-error t) to the top of the file gtd then
  proceeding as before gives me the *Backtrace*:
  
org-goto-local-search-headings(My workflow nil nil)
gtd()
call-interactively(gtd t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
  
  which doesn't even really look like an error, does it?
  
 
 No, but there are missing stack frames: it fails on the search-backward
 that org-goto-local-search-headings does. In the best let's cure the
 symptom, not the disease manner, try changing the point-min to
 point-max in the definition of gtd.
 

I meant to comment on the use of isearch-forward inside
org-goto-local-search-headings.  I'm not sure how it changes value (but
it does), and I really don't understand why org-glsh uses it at all. The
point is however that depending on the value of isearch-forward and
where you start in the buffer (min or max), you will get the error if
the variable is the wrong direction for your starting point.

IOW, you probably don't want to use the org-glsh function: define your
own that always goes in one direction (forward) and start at min.

Usual disclaimers apply,
Nick



[O] LaTeX templates?

2012-05-15 Thread Marcelo de Moraes Serpa
Hey guys,

Does anyone know where could I get beautiful LaTeX templates (i.e:
beautiful layout + typography) I could use / modify to use with org? I'm
not expecting anything free, I'm willing to pay.

I'm about to publish an ebook, but the regular pdfs I managed to generate
so far lack some life.

What I could do is simplify my life and just use HTML+CSS to layout it (I
could probably easily transform from org to markdown to HTML and then use
CSS3 to style the hell out of it, and print to PDF, but I'm not sure how
professional would it look in the PDF or if I ever print the book).

Also I know @Avdi Grimm used org as a publishing system for his ebooks,
Avdi, would you be willing to sell / share your org publishing
infrastructure?

Any insights appreciated!

 - Marcelo.


Re: [O] LaTeX templates?

2012-05-15 Thread John Hendy
On Tue, May 15, 2012 at 5:28 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hey guys,

 Does anyone know where could I get beautiful LaTeX templates (i.e:
 beautiful layout + typography) I could use / modify to use with org? I'm
 not expecting anything free, I'm willing to pay.


Have you just googled Latex templates or Latex book templates?
-- http://www.latextemplates.com/
-- 
http://sureshemre.wordpress.com/2010/12/04/latex-book-template-with-fancy-header/
-- http://sigquit.wordpress.com/2010/01/12/simple-latex-template-for-books/
-- 
http://www.iospress.nl/service/authors/latex-and-word-tools-for-book-authors/
-- The memoir class was also mentioned; here's docs/examples:
-
http://www.tex.ac.uk/tex-archive/info/MemoirChapStyles/MemoirChapStyles.pdf

I'm no LaTeX guru, but my understanding is that the whole point of LaTeX is
to let you define your template/options and then just write. Thus, you
should be able to take any of the above and redefine simple options since
the meat remains the same (section titles are are section titles, indents
are indents, etc.).

Worg also discusses a bit how to tailor org-mode with custom class options:
-- http://orgmode.org/worg/org-tutorials/org-latex-export.html

Perhaps you're looking more for something like a custom class file you can
just set via org-mode and use headers like chapters/sections and have it
work. At the very least, looking around at some of the above might help
give you ideas about the packages you would want to include in a custom
export format.

Hope that's slightly helpful?


Best regards,
John



 Any insights appreciated!

  - Marcelo.



Re: [O] Using Org for a dissertation

2012-05-15 Thread Richard Lawrence
Tom and Nicolas,

Thanks!  I will give the new exporter a shot when I have a chance and
let you know how it goes.

Best,
Richard




Re: [O] Minimal overhead Org-mode blogging system

2012-05-15 Thread Neil Smithline
I like your indexing idea. I use a less-complex system involving 
symbolic links for my agenda files. Yours sounds better.


This is what I use for my agendas:

(setq org-agenda-files
  (list (expand-file-name ~/Documents/+OrgAgendas)))

(defun org-add-agenda-file ()
  (interactive)
  (make-symbolic-link (buffer-file-name) ~/Documents/+OrgAgendas))

It is just a quick-and-dirty solution. If I remove or move a file, I get 
errors. Also, if I stop using a file for agenda items I must manually 
unlink the symlink.


Have you implemented your indexing system Jude or just designed it? I'd 
love to see it if you have something working. I imagine it could be used 
for todos, cross-referencing tags, properties, etc...


And to prevent Carsten from yelling at me :-D, I would insist that, by 
default, Emacs would not create the cross-referencing database. You'd 
have to explicitly enable it.


Neil

On Mon May 14 22:24:08 2012, Jude DaShiell wrote:

Understand, I use update here in the sense of some file modification
that subsequently gets saved.  If files to be modified get archived into
org-mode's revision control system, the blog tag and associated done tag
could be searched for within the save process and an org database could
build with file name and then tripplets of date stamp, line number for
blog tag, line number for done tag and each tripplet would hold another
blog entry in that unique file which is the first field in the data
base.  So you want to find a blog entry?  Search the org-generated data
base for a date stamp and you come up with the file and the range of
line numbers holding that blog entry.  Search one file and go to
specific location in second file.  That if it's done or gets done will
keep file searching to a nice minimum permanently.

On Sun, 13 May 2012, Neil Smithline wrote:



Karl Voit devnull at Karl-Voit.at writes:

Therefore I sat down and thought about a workflow that should be
enough for writing simple weblog entries:

   - create an Org-mode heading (anywhere!)
   - make sure that there is an (uniq) :ID: property
   - add the tag :blog: to heading
   - write content, subheadings, ...
   - change state of top-heading to DONE
 - this enables blog entries ?in the queue?
   - (manually) invoke generation-script

This enables me quick blogging with a list of advantages:

   - a blog entry can be located anywhere in all of my Orgmode files
   - no extra formatting steps
   - very small (almost non-existent) overhead to create a blog entry
   - no duplicate information
 - updates only in Orgmode, not HTML or any in-between format
   - static (fast) pages
   - self-hosting without any fancy services behind like RDBS
Karl,


I'm wondering if you've played around with this at all? I happen to really like
the idea but I wonder about its performance.

Unless I'm mistaken, and I very likely may be, won't you have to scan all of
your .org files to look for the special tags/properties/todo states/whatever?

If not, I'd love to have a pointer to how you can accomplish this without
scanning every .org file. That would be cool.






Jude jdashiel-at-shellworld-dot-net
http://www.shellworld.net/~jdashiel/nj.html





Re: [O] Using Org for a dissertation

2012-05-15 Thread Richard Lawrence
Hi Suvayu,

suvayu ali fatkasuvayu+li...@gmail.com wrote:

 In case you are interested, I'm attaching some relevant bits. It has
 examples on how to put in tables (with short and long captions),
 figures, latex snippets and finally how I included a bibliography and
 appendices.
 
 Hope this will help.

Thanks!  This is definitely helpful.  The ignoreheading tag is a nice
hack -- fixes one of those niggling issues I've had with LaTeX export.

Best,
Richard



Re: [O] Using Org for a dissertation

2012-05-15 Thread Richard Lawrence
Hi Markus,

Thanks for your advice.  I figure that, like you, I may eventually need
to switch to LaTeX, but will stick with Org for now, at least until my
document structure is quite settled.

Can you elaborate a bit on the following?

Markus Grebenstein p...@mgrebenstein.de wrote:

 What I disliked/ preferred in auctex:
 - missing footnote folding in stable version

Stable version of Org, or Auctex?  What exactly is missing?

 - footnotes frequently lead to trouble with overlapping latex groups.

What is a Latex group? How they could overlap?  (I would especially like
to be aware of potential footnote problems ahead of time.)

 - reference handling in especial w.r.t headings (if you change the
 heading you use the reference)

Do you mean you prefer \label and \ref in Latex over Org's abstraction?

Thanks!

Best,
Richard