[Orgmode] Parameterized custom agenda views

2009-09-28 Thread Desmond Rivet
Hi all,

Is it possible to write a custom agenda view where part of the query is
written, but the user has to supply the rest?

For example, I have a piece in my org-agenda-custom-commands variable
that looks like this:

(p All Projects tags-todo +project)

This means I want to see all TODO items with the project tag.  What if I
wanted to supply an additional tag (over and above the project tag), but
I didn't know it ahead of time?  Is there a way to get orgmode to prompt
me for the tag?

Thanks in advance,

-- 
Desmond Rivet

Pain is weakness leaving the body.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] new list item minor bug

2009-09-28 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Sep 28, 2009, at 12:35 AM, Dan Davison wrote:


If you start a numbered list with

1.

and hit M-RET then you get

2.
 ^
with a space, i.e. '2. '

However, when creating the 10th list item, there is no space after
'10.'. Same for 99 - 100. This isn't entirely trivial, because if you
start typing blindly after hitting M-RET, then the line you have  
created

(lacking the space) will not be recognised as a list item and so
e.g. the next M-RET will create a new heading, not a list item. [Has
this changed recently? This seems like something obvious that others
would have noticed.]

Here's my patch.

--8---cut here---start-8---
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 2fea57b..8ece3ea 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -813,7 +813,7 @@ with something like \1.\ or \2)\.
  (buffer-substring (point-at-bol) (match-beginning 3
;; (term (substring (match-string 3) -1))
ind1 (n (1- arg))
-   fmt bobp old new)
+   fmt bobp old new delta)
;; find where this list begins
(org-beginning-of-item-list)
(setq bobp (bobp))
@@ -835,7 +835,9 @@ with something like \1.\ or \2)\.
  (delete-region (match-beginning 2) (match-end 2))
  (goto-char (match-beginning 2))
  (insert (setq new (format fmt (setq n (1+ n)
- (org-shift-item-indentation (- (length new) (length old))
+ (setq delta (- (length new) (length old)))
+ (org-shift-item-indentation delta)
+ (if (= (org-current-line) line) (setq col (+ col delta))
(org-goto-line line)
(org-move-to-column col)))
--8---cut here---end---8---

Dan


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Question on spreadsheet formula

2009-09-28 Thread Carsten Dominik

Hi RC,

On Sep 27, 2009, at 8:35 PM, RC wrote:


Thank you benny and Andreas for your solutions to my question.

I did notice a couple of things I did not expect and would  
appreciate if someone

could tell me what I am missing.

In the following table, if I change the value in @2$4, I have to run  
C-c C-c
twice for the change to be propagated. Turning on formula debugging,  
the first
time the first formula gets executed starting only from @3$4 until  
the end of
the table, then the second substitution formula is executed for cell  
@2#4.  This
happens even if cells @2$2 and @2$3 have values in them. Does the  
presence of
the substitution formula later in the #+TBLFM line, cause execution  
of the first

formula to start only from the succeeding row?
|-+--+--+---|
| No. |P |E | B |
|-+--+--+---|
| |  |  |   300 |
|   1 | 5000 | 2000 |  3200 |
|   2 | 7000 | 1000 |  9200 |
|   3 | 5000 | 1000 | 13200 |
#+TBLFM: $...@-1$4+$2-$3::@2$4=300



Filed formulas are applied after column formulas, because
often these reference fields that have been changed by column formulas.
You have here a case where this assumption doe not apply.

Note that there is a command org-table-iterate that recomputes
the table until it is stable.   `C-u C-u C-c C-u' does call this
command when the cursor is in table.

So far this did not work when the cursor is on the TBLFM line, but
I just changed that.  C-u C-u C-c C-c from the TBLFM line now also
iterates.




For the table above, or the following, having a ! in the first  
column of the
first row (which I thought was a way to label columns) causes the  
calculation

formulas not to be executed.
|---+-+--+--+---|
| ! | No. |P |E | B |
|---+-+--+--+---|
|   |   1 | 5000 | 2000 |  3000 |
|   |   2 | 7000 | 1000 |  9000 |
|   |   3 | 5000 | 1000 | 13000 |
|   |   4 | 5000 | 2000 | 16000 |
#+TBLFM: $5=vsum(@-i$...@0$3)-vsum(@-i$...@0$4)


If you are using a special first column, only lines with # or * in the
first column will be touched by column formulas.  This is in the docs,
right where you can read about the ! rows as well.  Here is the
relevant passage:

 Important: please note that for these special tables, recalculating
 the table with C-u C-c * will only affect rows that are marked  
‘#’
 or ‘*’, and fields that have a formula assigned to the field  
itself.

 The column formulas are not applied in rows with empty first field.

HTH

- Carsten



Thanks,
RC



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Table formula referencing cells with HH:MM time strings, incorrect result

2009-09-28 Thread Carsten Dominik


On Sep 25, 2009, at 7:41 PM, Jeff Kowalczyk wrote:

I am trying to use HH:MM time strings from clocktables in a table  
formula. First

time I've used table formulas, BTW.

When fetching the cells as remote(), I got strange results. The  
behavior is the

same for regular references, so here's a regular-reference test case:

| 17:36 | 17:36 |
| 19:45 | 19:45 |
| 24:53 | 24:53 |
| 40:57 | 40:57 |
| 43:02 |  43:2 |
| 45:14 | 45:14 |
| 46:09 |  46:9 |
| 48:56 |   6:7 |
| 49:28 |   7:4 |
| 55:18 | 55:18 |
| 80:10 | 8 |
| 88:14 |  44:7 |
#+TBLFM: $2=$1

The objective is to multiply time (decimal) by a constant, so if  
anyone has a
tip for parsing HH:MM using a function instead of reinventing,  
thanks in advance.


HH:MM is interpreted by calc a integer division.  For example 80/10 = 8
and 49/28=7/4

I think for this kind of stuff you need to work with Emacs lisp  
formulas,

for example

#+TBLFM: $2='(/ (float (org-hh:mm-string-to-minutes $1)) 60.);%.2f


HTH

- Carsten





Thanks,
Jeff



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-28 Thread Carsten Dominik

Wow, Tim, thanks a lot for this excellent answer.
I am glad this is in the mailing list archive now.

- Carsten


On Sep 25, 2009, at 12:06 PM, Tim Burt wrote:


Carsten Dominik writes:

On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote:


When the headline count for a pdftolatex export gets to be more than
100 lines, the TOC renders with the headline number directly
touching the headline text. More than 1,000, and it starts to  
overlap.


This is a LaTeX issue, which I do not know how to fix.

- Carsten



It would seem that LaTeX calculates the space to allocate for the
headline number based on too few initial entries.

I have included a simple test case below.


* Executive Summary

Add the following two lines to the org file (after ensuring you have
the tocloft.sty package installed and visible to LaTeX).
#+LaTeX_HEADER: \usepackage{tocloft}
#+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em}

* Supporting Jabber

The formatting for Table of Contents (and its kin) is set deep in the
class definitions.  The tocloft package provides user-level commands
to modify those internals which the tocloft documentation describes
quite well, including a figure that shows a value called 'numwidth' is
the length of the box in which the number is set.  This value can be
different for each sectioning level (e.g. chapter, section,
subsection).  In the test case below, the first org level[1] is being
exported as a \section{}.  The box length for section can be set by
the value of \cftsecnumwidth using the \setlength command, as in
\setlength{\cftsecnumwidth}{3em}
The second argument must have a unit of length which in this example
is 'em' (the width of a capital M).  This allows the width of the box
to scale with font changes, but other units are certainly permissible
(e.g. cm, mm, in).


Good morning,
Tim


[1] Note: This test case was run using the default org export
variables for LaTeX which means the article class was used.  If
another class is used (e.g. report) then the first org level should be
exported as a \chapter{}.  In this case, replace \cftsecnumwidth with
\cftchapnumwidth.


Thanks,
Jeff

* Headline 0
* Headline 1
* Headline 2
* Headline 3
* Headline 4
* Headline 5
* Headline 6
* Headline 7
* Headline 8
* Headline 9
* Headline 10
* Headline 11
* Headline 12
* Headline 13
* Headline 14
* Headline 15
* Headline 16
* Headline 17
* Headline 18
* Headline 19
* Headline 20
* Headline 21
* Headline 22
* Headline 23
* Headline 24
* Headline 25
* Headline 26
* Headline 27
* Headline 28
* Headline 29
* Headline 30
* Headline 31
* Headline 32
* Headline 33
* Headline 34
* Headline 35
* Headline 36
* Headline 37
* Headline 38
* Headline 39
* Headline 40
* Headline 41
* Headline 42
* Headline 43
* Headline 44
* Headline 45
* Headline 46
* Headline 47
* Headline 48
* Headline 49
* Headline 50
* Headline 51
* Headline 52
* Headline 53
* Headline 54
* Headline 55
* Headline 56
* Headline 57
* Headline 58
* Headline 59
* Headline 60
* Headline 61
* Headline 62
* Headline 63
* Headline 64
* Headline 65
* Headline 66
* Headline 67
* Headline 68
* Headline 69
* Headline 70
* Headline 71
* Headline 72
* Headline 73
* Headline 74
* Headline 75
* Headline 76
* Headline 77
* Headline 78
* Headline 79
* Headline 80
* Headline 81
* Headline 82
* Headline 83
* Headline 84
* Headline 85
* Headline 86
* Headline 87
* Headline 88
* Headline 89
* Headline 90
* Headline 91
* Headline 92
* Headline 93
* Headline 94
* Headline 95
* Headline 96
* Headline 97
* Headline 98
* Headline 99
* Headline 100
* Headline 101
* Headline 102
* Headline 103
* Headline 104
* Headline 105
* Headline 106
* Headline 107
* Headline 108
* Headline 109
* Headline 110
* Headline 111
* Headline 112
* Headline 113
* Headline 114
* Headline 115
* Headline 116
* Headline 117
* Headline 118
* Headline 119
* Headline 120








___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: How to add comments in a plain list

2009-09-28 Thread Carsten Dominik


On Sep 25, 2009, at 11:10 AM, Eric S Fraga wrote:


At Thu, 24 Sep 2009 10:27:57 +0100, Carsten Dominik wrote:

On Sep 22, 2009, at 7:30 PM, René wrote:

Unfortunately, in this case Emacs doesn't fontify those lines as if
they were comments.


It does now.

- Carsten


Carsten, thanks for this.  It works perfectly.

But this leads to me a more general question for all of you emacs
experts: comments in my org files typically consist of /less
important/ text and so I like to de-emphasise the text by changing the
face used (to a light gray, in my case, compared with the default of
firebrick).  However, for programming, I prefer the default.  Can
somebody suggest how I can have a different font-lock-comment-face for
org-mode files without making a global change?  Should I put something
in the org-mode hook?

Or even on a per-file basis?  I've tried using Emacs local variables
but haven't found the right incantation... :(

Any suggestions more than welcome!


Hi Eric,

I don't know how to change `font-lock-comment-face' on a per-buffer  
level.


What you can do though (I think) is use the function `font-lock-add- 
keywords'

to add your own regular expression for matching comments and specify
an arbitrary font for this match.  For example (untested):

 (font-lock-add-keywords 'org-mode
  '((^[ \t]*#.* 0 my-org-comment-face prepend)))

- Carsten



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Eric S Fraga
At Sun, 27 Sep 2009 10:50:41 -0400,
Bernt Hansen wrote:
 I use yasnippet for this.
 
 http://doc.norang.ca/org-mode.html#Yasnippets

+1

very easy to set up and works well for this.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Parameterized custom agenda views

2009-09-28 Thread Bernt Hansen
Desmond Rivet desmond_n...@videotron.ca writes:

 Is it possible to write a custom agenda view where part of the query is
 written, but the user has to supply the rest?

Not that I'm aware of.

 For example, I have a piece in my org-agenda-custom-commands variable
 that looks like this:

 (p All Projects tags-todo +project)

 This means I want to see all TODO items with the project tag.  What if I
 wanted to supply an additional tag (over and above the project tag), but
 I didn't know it ahead of time?  Is there a way to get orgmode to prompt
 me for the tag?

I would use agenda tag filtering for this.  Do you C-c a p display and
then limit the result to some other tag with / TAB tag or /
fast-tag-selection-key

-Bernt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Question on spreadsheet formula

2009-09-28 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 Note that there is a command org-table-iterate that recomputes
 the table until it is stable.   `C-u C-u C-c C-u' does call this

  The key sequence should be   C-u C-u C-c C-c  as below.

 command when the cursor is in table.

 So far this did not work when the cursor is on the TBLFM line, but
 I just changed that.  C-u C-u C-c C-c from the TBLFM line now also
 iterates.

-Bernt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Visibility hide mode in 6.30trans doesn't hide last character in child region

2009-09-28 Thread Nick Bell
Not sure whether I'm putting this correctly, but on Windows (emacs-CVS 
23.1.50.1 and EmacsW32) and 6.30trans (retrieved from git today) 
collapsing outlines results in e.g.


* Research...
* More Stuff...:

The last character being the last in the collapsed region. I've gone 
back to 6.30e which doesn't have the problem.


I'm not using org-indent-mode as that caused crashes and life has become 
too short to fiddle around with CVS on 3 platforms!


Just thought someone should know
--
Nick Bell
m...@nickbell.org


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] LaTeX export - customize own class

2009-09-28 Thread henry atting
I am trying to customize the orgmode export to the LaTeX class `play`
A first level heading will then become the LaTeX \speaker{}, the text
under this heading will become the text the speaker says. No problem so
far, but some questions remain:

- How can I prevent the export function from creating a titlepage and a
  table of contents?
- Most important: Every header is provided with a label. How can I
  supress this?
- Finally, is it possible to automatically insert something *after*
  \begin{document}, something like \begin..\end{play}?

henry



-- 
http://literaturlatenight.de


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Superscripts in LaTeX export

2009-09-28 Thread Nick Dokos
Giovanni Ridolfi giovanni.rido...@yahoo.it wrote:

 --- Dom 27/9/09, Thomas S. Dye t...@tsdye.com ha scritto:

 
  I'm trying to generate $^{14}$C, or an equivalent, from
  org-mode to represent the isotope of carbon 
 
  ** A Brief History of Attempts to Interpret the ^{14}C
  Dates
  *** The ^{14}C Dates
 
 what about using the \( \) or $ $ delimiters?:
 
 ** A Brief History of Attempts to Interpret the 
 \( ^{14}\)C Dates
 *** The \(^{14}\)C Dates
 *** or
 *** The $^{14}$C Dates with dollar
 

That's the first thing I thought of and tried: it didn't work for me.

Did it work for you or are you saying that theoretically it *should* work?
It's not clear from your message whether you actually tried it out.

Thanks,
Nick

PS. I also tried the standard trick: {}^{14}C. It didn't work either.
The LaTeX code generated precedes all the special characters with
backslashes.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Superscripts in LaTeX export

2009-09-28 Thread Giovanni Ridolfi
--- Lun 28/9/09, Nick Dokos nicholas.do...@hp.com ha scritto:
 Giovanni Ridolfi giovanni.rido...@yahoo.it
 wrote:
  ** A Brief History of Attempts to Interpret the 
  \( ^{14}\)C Dates
 Did it work for you or are you saying that theoretically it
 *should* work?

I didn't try. I thought it should have worked. 

 PS. I also tried the standard trick: {}^{14}C. It didn't
 work either.
 The LaTeX code generated precedes all the special
 characters with backslashes.
 

So it should be something  concerning the export 
of the heading.

Giovanni






___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Must less available colors under text-mode

2009-09-28 Thread Jing Su @ Gmail

Thanks a lot!

It turns out that for Emacs 21.4 on RHEL5 there is no xterm-256color.el 
at all. As instructed by the link you sent me, I downloaded the 
xterm-256color.el from


   
http://www.splode.com/~friedman/software/emacs-lisp/src/term/xterm-256color.el


and copied it into /usr/share/emacs/21.4/lisp/term/, then

 TERM=xterm-256color emacs -nw -q -f list-colors-display

shows much more colors, so does it under org-mode.

Thank you very much, Suresh!

Best,

Jing


Suresh Kumar wrote:

At Sat, 26 Sep 2009 00:46:43 -0400,
Jing Su @ Gmail wrote:
  

Under text-mode:

black black
red   red
green green
yellowyellow
blue  blue
magenta   magenta
cyan  cyan
white white



Looks like your TERM is not exported properly.

This works for me.
,
| TERM=xterm-256color emacs -nw -q -f list-colors-display
`

See here more details
http://www.xvx.ca/~awg/emacs-colors-howto.txt

  

Uner X-mode, shows all rgb.txt colors.




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
  



--
***
Jing Su
PhD, Biomedical Engineering
Georgia Tech  Emory University
Email: jin...@gatech.edu



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-babel: interactive terminal support

2009-09-28 Thread Dan Davison
Benjamin Andresen be...@in-ulm.de writes:

 Hey Dan,

 Dan Davison davi...@stats.ox.ac.uk writes:

 Hi Benny,

 This looks very interesting and I think it's extremely likely that we'll
 want to include your code -- thanks very much. Having said that, I'm
 being a bit dense: would you mind expanding a bit on what this currently
 does, and what it has the potential to do?

 All it currently does it show you a terminal which gets the source
 code block send to. Just like an inferior process.

Hi Benny,

Thanks a lot for that, it looks really promising. Do you want to create
a branch in a publicly accessible org-mode repo containing your
additions?  I've created an org mode fork for org-babel development at

git://repo.or.cz/org-mode/babel.git

webpage

http://repo.or.cz/w/org-mode/babel.git

which you could use (I'll send you the admin password offline so you can
give yourself push rights).

Dan


 I've made a gif of the channels.org example from my first mail:
 http://github.com/bandresen/org-babel-screen/blob/master/channels.anim.gif

 The way I currently see it, it somehow works as an interactive makefile.

 An example of a use that I have is that want to extract several frames
 out of a video file and convert them to a gif animation.

 It's a commented org file with several steps such as:

 * find the part you want to extract
 #+begin_src screen :session create-gif
   mplayer -ao null -osdlevel 3 /tmp/videofile.avi 
 #+end_src
 [...snip...]
 * convert selected frames to gif
 #+begin_src screen :session create-gif
   convert -delay 100 -loop 0 .qiv-select/* animation.gif
 #+end_src

 I don't know how useful it is to other people, but because it basically
 gives you the power over a terminal emulator you could do anything in it
 that you can do in a normal terminal. Except better controlled and
 documented.

 Or one could use a standardized notation for keypresses and let screen
 translate them for you. Example:

 #+begin_src screen :session vimtutorial
   vimtutor
   85G
   fcx
   EEx
   llx
   ^Vlllx
 #+end_src

 Which might be useful in some way.

 Another thing that might be possible is to simulate an 'expect' like
 behavior by using screen's capability to dump the output of commands.
 It's certainly possible, but replacing an app like 'expect' is no small
 task. :-)






 br,
 benny


 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New footnote with folded footnote section

2009-09-28 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Sep 27, 2009, at 11:07 PM, Matt Lundin wrote:


Hi Carsten,

I have org-footnote-section set to Footnotes. If I insert a new
footnote while...

1. the * Footnotes tree already exists and

2. the * Footnotes tree is folded

...the footnote definition label is inserted, but the * Footnotes
subtree remains folded and the cursor jumps to the * Footnotes
headline rather than the definition line.

I've tried using org-reveal (C-c C-r) to open the Footnotes section,
but nothing happens. I've tried typing C-c C-c to go back to the
footnote, but since the cursor is on a headline, the result is a tag
prompt. When I hit TAB to cycle, the cursor remains on the headline.

Thanks for your help.
Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Verse construct generates invalid LaTeX code

2009-09-28 Thread Carsten Dominik

Hi Antti,

I fixed this issue, thanks.

- Carsten

On Sep 24, 2009, at 11:10 AM, Antti Kaihola wrote:


Here's an example file:


-versetest.org
Test case for verse bug

#+BEGIN_VERSE
This is
the first stanza.

This is
the second stanza.
#+END_VERSE
-versetest.org


It generates the following LaTeX code with the C-c C-e L command
(excerpt with line numbers added):


-versetest.tex
22: \begin{verse}
23: This is\\
24: the first stanza.\\
25: \\
26: This is\\
27: the second stanza.\\
28: \end{verse}
-versetest.tex


When compiled with pdflatex, it causes this error:


-pdflatex output
! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H return  for immediate help.
...

l.25 \\
-pdflatex output


Org-mode probably instructs pdflatex to ignore errors since C-c C-e d
compiles the .org file just fine, just without any break between
the stanzas.

Edition 1.6 of the LaTeX2e documentation states:

Separate the lines of each stanza with \\, and use one or more blank
lines to separate the stanzas,

so the correct LaTeX output would be:


-corrected versetest.tex
22: \begin{verse}
23: This is\\
24: the first stanza.
25:
26: This is\\
27: the second stanza.
28: \end{verse}
-corrected versetest.tex


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.30e; Error in post-command-hook

2009-09-28 Thread Carsten Dominik


On Sep 22, 2009, at 4:49 PM, George Pearson wrote:


On 20 Sep 2009, Carsten wrote:


I believe this is fixed now.  Thank you for your report.


I tried to test the fix, but maybe I don't know what I'm doing -
tried the zip file corresponding to the fix, and also tried the
org-latest.zip file.  However both fail when starting emacs
because org-install is missing.  Advice?


Make org-install by running make autoloads or copy it
from the latest full release.

- Carsten




On 20 Sep 2009 at 11:34, George Pearson wrote:


org-submit-bug-report output below.

I have been getting the following message in the minibuffer
area when marking tasks done in the daily agenda:

Error in post-command-hook: (error Cannot switch buffers in a  
dedicated

window)

The item in the underlying org file IS marked DONE, and items with
repeaters appear to be rescheduled properly.  HOWEVER, the log lines,
like

  - State DONE   from TODO   [2009-09-07 Mon 10:36]

do NOT appear.

Note I have been using:

org-agenda-window-setup 'other-frame

for some time now, but I notice there has been a recent change
related to this variable.  Could this be the source of the
problem?

I believe the error message appears on other operations in the
daily agenda as well, but have not yet studied this in detail.

-- bug report output  ---

Emacs  : GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
of 2008-09-06 on SOFT-MJASON
Package: Org-mode version 6.30e

current state:
==
(setq
org-empty-line-terminates-plain-lists t
org-remember-interactive-interface 'outline
org-agenda-files '(~/orgfiles/master.org ~/orgfiles/ 
recurring.org)

org-agenda-window-setup 'other-frame
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-todo-ignore-scheduled t
org-agenda-skip-scheduled-if-done t
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file /home/george/orgfiles/master.org
org-directory /home/george/orgfiles/
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 turn-on-font-lock)
org-agenda-ndays 1
org-global-properties '((Effort_ALL .
  0 0:05 0:10 0:15 0:20 0:30 0:45 1:00 1:30 2:00)
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
org-agenda-start-on-weekday nil
org-reverse-note-order t
org-occur-hook '(org-first-headline-recenter)
org-agenda-todo-ignore-deadlines t
org-columns-default-format %CATEGORY %35ITEM %Effort{:} %PRIORITY
%ALLTAGS
org-remember-templates '((Todo 116 * TODO %?\n  %u\n nil nil  
nil))

org-agenda-use-time-grid nil
)



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] subject lines

2009-09-28 Thread Carsten Dominik


On Sep 26, 2009, at 4:25 PM, Sean Sieger wrote:

I appreciate the concentrated development on Org Mode, but couldn't  
the
subject lines of posts be reversed, or truncated to `v 6.xx' and  
subject

first?  Pardon me for being so limited, but it's a lot of news and the
lines are hard to scan.


Hi Sean,

I am not sure I understand.

- Carsten



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.30; Links in categories break layout

2009-09-28 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Sep 23, 2009, at 1:12 PM, Peter Westlake wrote:




On Fri, 04 Sep 2009 11:44 +0100, Peter Westlake
peter.westl...@pobox.com wrote:

On Fri, 04 Sep 2009 09:19 +0200, Carsten Dominik
carsten.domi...@gmail.com wrote:



The prefix is now formatted properly, and C-c C-o gives
also access to this link.


Excellent! Thank you very much!


One small thing, though - in the agenda TODO view, pressing t to  
mark

the task as Done messes up the layout:

[[http://orgmode.org][Org-Mode]]:   TODO Demonstrate problem with link
in category

(which appears as:

Org-Mode:   TODO Demonstrate problem with link in category)


Press T on that line:

[[http://orgmode.org][Org-Mode]]:   TODO Demonstrate problemDONE
Demonstrate problem with link in category

(which appears as:

Org-Mode:   TODO Demonstrate problemDONE Demonstrate problem with link
in category)

Regards,

Peter.



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BUG] org-export-normalize-links: Invalid function: org-if-unprotected-at

2009-09-28 Thread Carsten Dominik

Hi Eric,

I have no idea how this can happen.  If you have any new information,  
let me know.


As anyone else seen the problem Eric describes?

- Carsten

On Sep 23, 2009, at 3:38 PM, Eric Schulte wrote:


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


On Sep 23, 2009, at 4:59 AM, Eric Schulte wrote:


Hi,

When publishing large html projects I sometimes run into the  
following

error.

: org-export-normalize-links: Invalid function: org-if-unprotected- 
at


This happens unpredictably, and I find that it can normally be fixed
by
some combination of...
- updating Org-mode with git pull
- running make clean  make in my Org-mode directory
- restarting Emacs

My questions are
- has anyone else seen this?
- does anyone have advice for forensic analysis I should perform  
next

time this happens?

Thanks -- Eric



Hi Eric,

I think this can happen when using a uncompiled version of org-exp.el
that is
getting a compiled version of org.el via (require 'org).

Adding

 (require 'org-macs)

to org-exp.el (I just did that) should hopefully get rid of this  
issue.


- Carsten


Hi Carsten,

I just grabbed the latest version of Org-mode, ran

$ make clean  make

restarted Emacs, and tried again and ran into the same issue.

org-export-normalize-links: Invalid function: org-if-unprotected-at

I then ran

$ make clean

restarted Emacs, and tried again, and the publish worked without a
problem.  It seems to be a problem related to compiled version of  
either

org-exp.el or org-macs.el, but I have no idea which.  For now I'm
content running uncompiled.  Please let me know if there is some way  
for

me to investigate or provide more useful debugging info.

Thanks -- Eric




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] suggestion: options for chronological agenda

2009-09-28 Thread Carsten Dominik

Hi Ilya,

have you tried

  C-a ato get the agenda,

and then

  v [

to include inactive time stamps?

HTH

- Carsten

On Sep 26, 2009, at 6:02 AM, Ilya Shlyakhter wrote:


I often need to find recently modified entries.   I try to timestamp
entries I work on with the active timestamps
(in angular brackets), and use the C-x a L command.   This mostly
works, but is imperfect:
  - when i use time logging, it inserts inactive timestamps that
are not found this way.   so, i can't use this to find
  recently worked on entries.
  - it looks at the _first_ timestamp in an entry, rather than the
_last_ timestamp
  - it is limited to one file .   would be much better if it could
be made to work across the entire agenda.
  - it would be fine to have the option to limit it to entries
within the last, say, week, if that would speed it up.

The suggestion is to enhance the timeline agenda with options to:
 - recognize inactive timestamps ([in square brackets])
 - use last, rather than first, timestamp in an entry
 - search the entire agenda, rather than just the current file
 - limit the agenda to entries within the last (say) week.

The timeview agenda was of course originally designed for another use
case -- as a personal calendar/diary.
But I'm finding myself repeatedly using it this way: organize the
entries by hierarchical subject, and use the timeline
agenda to generate a chronological listing.

It would also be _really_ great if the chronological listing could be
filtered to contain only entries matching a certain
tag/property query.   Then you could e.g. get a chronological list of
important entries, or entries on a certain
subject.

ilya


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] fullpage.sty replacement [WAS: Problem with LaTeX snippets preview]

2009-09-28 Thread Carsten Dominik

Hi Tim,

I have applied your patch, thanks.

The header for the LaTeX files used to produce PDF export independent
from this.  The stuff here is only used to create small images that
will be displayed in Emacs or used in HTML export.

- Carsten

On Sep 26, 2009, at 12:36 PM, Tim Burt wrote:



In another thread there was a discussion about replacing the
use of fullpage.sty with its functionality.
NickD Looks like the culprit is fullpage.sty - seems to be required
NickD by the LaTeX code that org-preview-latex-fragment generates.

CarstenD I believe the reason that this is used it to make sure that
CarstenD wide formulas can still be formatted reasonably well,
CarstenD without additional line breaks.  I guess we could inline
CarstenD the content of this small package.
CarstenD
CarstenD Would somebody like to try to replace this with just the
CarstenD margin setting commands of fullpage.sty?
With continued thanks to Patrick Daly, the author of fullpage.sty and
my favorite LaTeX book A Guide to LaTeX2e, I put the margin and text
size settings accomplished by fullpage.sty in org-format-latex-header
of org.el.
Org-mode version 6.30trans (release_6.30d.882.gdbd63.dirty)
The diff below is offered as a step towards inlining the
functionality.

The caveats:
1. This is untested
  - When I execute org-export-as-pdf some other header appears in
the .tex file, and I have not yet discovered the source of this
other header.
2. This is the first time I've done a git diff.

If there are troubles in testing I will be happy to help resolve.

Good morning,
Tim

Output of git diff org.el:
diff --git a/lisp/org.el b/lisp/org.el
index 89d3bc8..8772968 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2678,13 +2678,24 @@ This is a property list with the following  
properties:

 :type 'plist)

(defcustom org-format-latex-header \\documentclass{article}
-\\usepackage{fullpage} % do not remove
\\usepackage{amssymb}
\\usepackage[usenames]{color}
\\usepackage{amsmath}
\\usepackage{latexsym}
\\usepackage[mathscr]{eucal}
-\\pagestyle{empty} % do not remove
+\\pagestyle{empty} % do not remove
+\\setlength{\\textwidth}{\\paperwidth}
+\\addtolength{\\textwidth}{-3cm}
+\\setlength{\\oddsidemargin}{1.5cm}
+\\addtolength{\\oddsidemargin}{-2.54cm}
+\\setlength{\\evensidemargin}{\\oddsidemargin}
+\\setlength{\\textheight}{\\paperheight}
+\\addtolength{\\textheight}{-\\headheight}
+\\addtolength{\\textheight}{-\\headsep}
+\\addtolength{\\textheight}{-\\footskip}
+\\addtolength{\\textheight}{-3cm}
+\\setlength{\\topmargin}{1.5cm}
+\\addtolength{\\topmargin}{-2.54cm}
 The document header used for processing LaTeX fragments.
 :group 'org-latex
 :type 'string)


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.30e; Error in post-command-hook

2009-09-28 Thread George Pearson
Thanks!  Copied in org-install from 6.30e and that did the trick.
So I can now confirm that this post-command-hook error bug is
fixed.

Maybe the situation with org-install should be in the FAQ somewhere
where the use of the development version is discussed.  Just a thought.

On 28 Sep 2009 at 22:10, Carsten Dominik wrote:

 
 On Sep 22, 2009, at 4:49 PM, George Pearson wrote:
 
  On 20 Sep 2009, Carsten wrote:
 
  I believe this is fixed now.  Thank you for your report.
 
  I tried to test the fix, but maybe I don't know what I'm doing -
  tried the zip file corresponding to the fix, and also tried the
  org-latest.zip file.  However both fail when starting emacs
  because org-install is missing.  Advice?
 
 Make org-install by running make autoloads or copy it
 from the latest full release.
 
 - Carsten
 
 
 
  On 20 Sep 2009 at 11:34, George Pearson wrote:
 
  org-submit-bug-report output below.
 
  I have been getting the following message in the minibuffer
  area when marking tasks done in the daily agenda:
 
  Error in post-command-hook: (error Cannot switch buffers in a  
  dedicated
  window)
 
  The item in the underlying org file IS marked DONE, and items with
  repeaters appear to be rescheduled properly.  HOWEVER, the log lines,
  like
 
- State DONE   from TODO   [2009-09-07 Mon 10:36]
 
  do NOT appear.
 
  Note I have been using:
 
  org-agenda-window-setup 'other-frame
 
  for some time now, but I notice there has been a recent change
  related to this variable.  Could this be the source of the
  problem?
 
  I believe the error message appears on other operations in the
  daily agenda as well, but have not yet studied this in detail.
 
  -- bug report output  ---
 
  Emacs  : GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
  of 2008-09-06 on SOFT-MJASON
  Package: Org-mode version 6.30e
 
  current state:
  ==
  (setq
  org-empty-line-terminates-plain-lists t
  org-remember-interactive-interface 'outline
  org-agenda-files '(~/orgfiles/master.org ~/orgfiles/ 
  recurring.org)
  org-agenda-window-setup 'other-frame
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-agenda-todo-ignore-scheduled t
  org-agenda-skip-scheduled-if-done t
  org-export-preprocess-hook '(org-export-blocks-preprocess)
  org-tab-first-hook '(org-hide-block-toggle-maybe)
  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
  org-confirm-shell-link-function 'yes-or-no-p
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-default-notes-file /home/george/orgfiles/master.org
  org-directory /home/george/orgfiles/
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
  drawers
   org-cycle-show-empty-lines
   org-optimize-window-after-visibility-change)
  org-mode-hook '(#[nil \300\301\302\303\304$\207
[org-add-hook change-major-mode-hook org-show-block-all
 append local]
5]
  turn-on-font-lock)
  org-agenda-ndays 1
  org-global-properties '((Effort_ALL .
   0 0:05 0:10 0:15 0:20 0:30 0:45 1:00 1:30 2:00)
  )
  org-confirm-elisp-link-function 'yes-or-no-p
  org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
  org-agenda-start-on-weekday nil
  org-reverse-note-order t
  org-occur-hook '(org-first-headline-recenter)
  org-agenda-todo-ignore-deadlines t
  org-columns-default-format %CATEGORY %35ITEM %Effort{:} %PRIORITY
  %ALLTAGS
  org-remember-templates '((Todo 116 * TODO %?\n  %u\n nil nil  
  nil))
  org-agenda-use-time-grid nil
  )
 
 
 
  ___
  Emacs-orgmode mailing list
  Remember: use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
 
 
  ___
  Emacs-orgmode mailing list
  Remember: use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Merge tables

2009-09-28 Thread Dan Davison
Bernt Hansen be...@norang.ca writes:

 Hector Villafuerte hecto...@gmail.com writes:

 Hi,
 I've just discovered Org and are truly impressed with it; using it for
 more and more tasks.

 Here's what I want to do: I have 2 tables with the same number of rows
 (one row per subject). I would like to make just one big table by
 copying the second table to the right of the first one. This is a
 no-brainer in a spreadsheet but my attempts in Org have failed. Any
 ideas?

Hi Hector,

Here are two ways of doing this in org-babel.

* Binding tables together by columns

Suppose the tables are

#+tblname: tab1
| 1 | 2 | 3 |
| 7 | 8 | 9 |

#+tblname: tab2
|  4 |  5 |  6 |
| 10 | 11 | 12 |

Here's a solution in emacs lisp:

#+srcname: column-bind-elisp(a=tab1, b=tab2)
#+begin_src emacs-lisp 
(mapcar* 'append a b)
#+end_src

#+resname: column-bind-elisp
| 1 | 2 | 3 |  4 |  5 |  6 |
| 7 | 8 | 9 | 10 | 11 | 12 |

And here's a solution in R, which has the advantage that it copes with
column names (and the code is even simpler).

#+tblname: tab3
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
| 7 | 8 | 9 |

#+tblname: tab4
|  d |  e |  f |
|++|
|  4 |  5 |  6 |
| 10 | 11 | 12 |

#+srcname: column-bind-R(a=tab3, b=tab4)
#+begin_src R :colnames t
cbind(a, b)
#+end_src

#+resname: column-bind-R
| a | b | c | d | e | f |
|-+-+-+-+-+-|
|   1 |   2 |   3 |   4 |   5 |   6 |
|   7 |   8 |   9 |  10 |  11 |  12 |


Once someone has written them, even simple code blocks like these can be
stored in the library of babel for users who aren't familiar with a
suitable programming language (I'll add them on worg).

Dan


 Rectangular cut and paste maybe?

 -Bernt


 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.30e; Error in post-command-hook

2009-09-28 Thread Carsten Dominik


On Sep 28, 2009, at 10:29 PM, George Pearson wrote:


Thanks!  Copied in org-install from 6.30e and that did the trick.
So I can now confirm that this post-command-hook error bug is
fixed.

Maybe the situation with org-install should be in the FAQ somewhere
where the use of the development version is discussed.  Just a  
thought.


org-install.el should be present in the latest zip, just as it is in  
the distros.

I am going to fix this.

Thanks.

- Carsten




On 28 Sep 2009 at 22:10, Carsten Dominik wrote:



On Sep 22, 2009, at 4:49 PM, George Pearson wrote:


On 20 Sep 2009, Carsten wrote:


I believe this is fixed now.  Thank you for your report.


I tried to test the fix, but maybe I don't know what I'm doing -
tried the zip file corresponding to the fix, and also tried the
org-latest.zip file.  However both fail when starting emacs
because org-install is missing.  Advice?


Make org-install by running make autoloads or copy it
from the latest full release.

- Carsten




On 20 Sep 2009 at 11:34, George Pearson wrote:


org-submit-bug-report output below.

I have been getting the following message in the minibuffer
area when marking tasks done in the daily agenda:

Error in post-command-hook: (error Cannot switch buffers in a
dedicated
window)

The item in the underlying org file IS marked DONE, and items with
repeaters appear to be rescheduled properly.  HOWEVER, the log  
lines,

like

 - State DONE   from TODO   [2009-09-07 Mon 10:36]

do NOT appear.

Note I have been using:

org-agenda-window-setup 'other-frame

for some time now, but I notice there has been a recent change
related to this variable.  Could this be the source of the
problem?

I believe the error message appears on other operations in the
daily agenda as well, but have not yet studied this in detail.

-- bug report output  ---

Emacs  : GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
of 2008-09-06 on SOFT-MJASON
Package: Org-mode version 6.30e

current state:
==
(setq
org-empty-line-terminates-plain-lists t
org-remember-interactive-interface 'outline
org-agenda-files '(~/orgfiles/master.org ~/orgfiles/
recurring.org)
org-agenda-window-setup 'other-frame
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-todo-ignore-scheduled t
org-agenda-skip-scheduled-if-done t
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file /home/george/orgfiles/master.org
org-directory /home/george/orgfiles/
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 turn-on-font-lock)
org-agenda-ndays 1
org-global-properties '((Effort_ALL .
  0 0:05 0:10 0:15 0:20 0:30 0:45 1:00 1:30 2:00)
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-mode-hook '((lambda nil (hl-line-mode 1)))
org-agenda-start-on-weekday nil
org-reverse-note-order t
org-occur-hook '(org-first-headline-recenter)
org-agenda-todo-ignore-deadlines t
org-columns-default-format %CATEGORY %35ITEM %Effort{:} %PRIORITY
%ALLTAGS
org-remember-templates '((Todo 116 * TODO %?\n  %u\n nil nil
nil))
org-agenda-use-time-grid nil
)



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode







___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: subject lines

2009-09-28 Thread Sean Sieger
Carsten Dominik carsten.domi...@gmail.com writes:

On Sep 26, 2009, at 4:25 PM, Sean Sieger wrote:

 I appreciate the concentrated development on Org Mode, but couldn't
 the
 subject lines of posts be reversed, or truncated to `v 6.xx' and
 subject
 first?  Pardon me for being so limited, but it's a lot of news and the
 lines are hard to scan.

Hi Sean,

I am not sure I understand.

- Carsten

A dumb complaint, the subject line of the Org Mode list are so often too
long.



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: subject lines

2009-09-28 Thread Samuel Wales
I think he's using a mail reader with a short header margin, and wants
the significant words up front.

I try to front-load subject headers for that reason.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] fullpage.sty replacement [WAS: Problem with LaTeX snippets preview]

2009-09-28 Thread Tim Burt
Carsten ---

Ah, I see.  I had not become one with the thread to see that this was
not used for documents.  Now I get to learn something new.  It's a
good day.

Good evening,
Tim

Carsten Dominik writes:
  Hi Tim,
  
  I have applied your patch, thanks.
  
  The header for the LaTeX files used to produce PDF export independent
  from this.  The stuff here is only used to create small images that
  will be displayed in Emacs or used in HTML export.
  
  - Carsten
  
  On Sep 26, 2009, at 12:36 PM, Tim Burt wrote:
  
  
   In another thread there was a discussion about replacing the
   use of fullpage.sty with its functionality.
   NickD Looks like the culprit is fullpage.sty - seems to be required
   NickD by the LaTeX code that org-preview-latex-fragment generates.
  
   CarstenD I believe the reason that this is used it to make sure that
   CarstenD wide formulas can still be formatted reasonably well,
   CarstenD without additional line breaks.  I guess we could inline
   CarstenD the content of this small package.
   CarstenD
   CarstenD Would somebody like to try to replace this with just the
   CarstenD margin setting commands of fullpage.sty?
   With continued thanks to Patrick Daly, the author of fullpage.sty and
   my favorite LaTeX book A Guide to LaTeX2e, I put the margin and text
   size settings accomplished by fullpage.sty in org-format-latex-header
   of org.el.
   Org-mode version 6.30trans (release_6.30d.882.gdbd63.dirty)
   The diff below is offered as a step towards inlining the
   functionality.
  
   The caveats:
   1. This is untested
 - When I execute org-export-as-pdf some other header appears in
   the .tex file, and I have not yet discovered the source of this
   other header.
   2. This is the first time I've done a git diff.
  
   If there are troubles in testing I will be happy to help resolve.
  
   Good morning,
   Tim
  
   Output of git diff org.el:
   diff --git a/lisp/org.el b/lisp/org.el
   index 89d3bc8..8772968 100644
   --- a/lisp/org.el
   +++ b/lisp/org.el
   @@ -2678,13 +2678,24 @@ This is a property list with the following  
   properties:
:type 'plist)
  
   (defcustom org-format-latex-header \\documentclass{article}
   -\\usepackage{fullpage} % do not remove
   \\usepackage{amssymb}
   \\usepackage[usenames]{color}
   \\usepackage{amsmath}
   \\usepackage{latexsym}
   \\usepackage[mathscr]{eucal}
   -\\pagestyle{empty} % do not remove
   +\\pagestyle{empty} % do not remove
   +\\setlength{\\textwidth}{\\paperwidth}
   +\\addtolength{\\textwidth}{-3cm}
   +\\setlength{\\oddsidemargin}{1.5cm}
   +\\addtolength{\\oddsidemargin}{-2.54cm}
   +\\setlength{\\evensidemargin}{\\oddsidemargin}
   +\\setlength{\\textheight}{\\paperheight}
   +\\addtolength{\\textheight}{-\\headheight}
   +\\addtolength{\\textheight}{-\\headsep}
   +\\addtolength{\\textheight}{-\\footskip}
   +\\addtolength{\\textheight}{-3cm}
   +\\setlength{\\topmargin}{1.5cm}
   +\\addtolength{\\topmargin}{-2.54cm}
The document header used for processing LaTeX fragments.
:group 'org-latex
:type 'string)
  
  
   ___
   Emacs-orgmode mailing list
   Remember: use `Reply All' to send replies to the list.
   Emacs-orgmode@gnu.org
   http://lists.gnu.org/mailman/listinfo/emacs-orgmode
  


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.30trans; Cursor does not move to end-of-line in agenda view

2009-09-28 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 Besides that (only good) reason, I guess it just looks weird...
 I reported this problem before as well.

 OK, I gave it a try - lets see what it breaks

Works nice so far, thanks a lot!

-- 
 Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] subject lines

2009-09-28 Thread Bastien
Sean Sieger sean.sie...@gmail.com writes:

 I appreciate the concentrated development on Org Mode, but couldn't the
 subject lines of posts be reversed, or truncated to `v 6.xx' and subject
 first?  Pardon me for being so limited, but it's a lot of news and the
 lines are hard to scan.

+1

For example, I suggest that this subject line: 

  Org-mode version 6.30trans (release_6.30d.869.g4cb3); Footnotes not
  working in figure caption

becomes:

  Footnotes not working in figure caption -- 6.30trans 
(release_6.30d.869.g4cb3)

Carsten, shall I change to this?

-- 
 Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Nick Dokos: Re: [Orgmode] Superscripts in LaTeX export

2009-09-28 Thread Nick Dokos
[Forgot to copy the list - again. Giovanni, apologies for
the duplicate.]

--- Forwarded Message

Date:Mon, 28 Sep 2009 20:04:33 -0400
From:Nick Dokos nicholas.do...@hp.com
To:  Giovanni Ridolfi giovanni.rido...@yahoo.it
cc:  nicholas.do...@hp.com
Subject: Re: [Orgmode] Superscripts in LaTeX export

Giovanni Ridolfi giovanni.rido...@yahoo.it wrote:

 --- Lun 28/9/09, Nick Dokos nicholas.do...@hp.com ha scritto:
  Giovanni Ridolfi giovanni.rido...@yahoo.it
  wrote:
   ** A Brief History of Attempts to Interpret the 
   \( ^{14}\)C Dates
  Did it work for you or are you saying that theoretically it
  *should* work?
 
 I didn't try. I thought it should have worked. 
 
  PS. I also tried the standard trick: {}^{14}C. It didn't
  work either.
  The LaTeX code generated precedes all the special
  characters with backslashes.
  
 
 So it should be something  concerning the export 
 of the heading.
 

No, it happens in other places as well: ``foo ^{14}C'' is mishandled
both in headings and in content, whereas ``foo x^{14}C'' is handled
correctly, so as Thomas surmised initially, it seems to be the space
preceding the ^ that causes it. The breakage seems to happen in
org-export-latex-treat-sub-super-char where the following test fails for
string-before when it is a space, but succeeds when it is e.g. ``x'':

,
|   ...
|   ;; this is part of a math formula
|   ((and (string-match \\S-+ string-before)
| (string-match \\S-+ string-after))
`

The question is what would break if the first string-match were allowed
to match a space. E.g. the following fixes this problem but I have no
idea what it breaks - probably too many things:

,
|   ...
|   ;; this is part of a math formula
|   ((and t ;(string-match \\S-+ string-before)
| (string-match \\S-+ string-after))
`


Note btw that ``foo ^{14}C'' is exported correctly to HTML (both in headers and
in content).

Thanks,
Nick

PS. Here is the org file I've been playing with:

,
| #+OPTIONS: LaTeX:t ^:t
| 
| * foo ^{14}C
| 
| foo ^{14}C
`



--- End of Forwarded Message



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Water Lin
Bernt Hansen be...@norang.ca writes:

 Water Lin water...@ymail.com writes:

 While I am using org to publish my source code, I include my code in
 following way:

 #+BEGIN_SRC emacs-lisp
 some emacs-lisp code
 #+END_SRC

 Everytime I copy the begin and the end tag which is

 #+BEGIN_SRC emacs-lisp

 and

 #+END_SRC

 to my org file.

 I want to find a way to inset them handly. Is there a key binding for
 this?

 I use yasnippet for this.

 http://doc.norang.ca/org-mode.html#Yasnippets

 -Bernt


 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



I am using YASnippets according to your suggestion. But my YASnippet
works in other modes like Perl, but just doesn't work in org-mode.

I have already added file org-mode/block under folder
snippets\text-mode.
But while I type block and press TAB in org-mode, nothing happens. I
think the org must be use the TAB key for special work.

Is it true?

-- 
Water Lin's blog: http://blog.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] subject lines

2009-09-28 Thread Carsten Dominik


On Sep 29, 2009, at 1:58 AM, Bastien wrote:


Sean Sieger sean.sie...@gmail.com writes:

I appreciate the concentrated development on Org Mode, but couldn't  
the
subject lines of posts be reversed, or truncated to `v 6.xx' and  
subject
first?  Pardon me for being so limited, but it's a lot of news and  
the

lines are hard to scan.


+1

For example, I suggest that this subject line:

 Org-mode version 6.30trans (release_6.30d.869.g4cb3); Footnotes not
 working in figure caption

becomes:

 Footnotes not working in figure caption -- 6.30trans  
(release_6.30d.869.g4cb3)


Carsten, shall I change to this?


Hi Bastien, yes, this would be much better.  Please go ahead.

- Carsten



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Nick Dokos
Water Lin water...@ymail.com wrote:

 Bernt Hansen be...@norang.ca writes:
 
  Water Lin water...@ymail.com writes:
 
  ...
  I want to find a way to inset them handly. Is there a key binding for
  this?
 
  I use yasnippet for this.
 
  http://doc.norang.ca/org-mode.html#Yasnippets
 
 
 I am using YASnippets according to your suggestion. But my YASnippet
 works in other modes like Perl, but just doesn't work in org-mode.
 
 I have already added file org-mode/block under folder
 snippets\text-mode.
 But while I type block and press TAB in org-mode, nothing happens. I
 think the org must be use the TAB key for special work.
 
 Is it true?
 

Using Bernt's setup, I can get the block expanded using C-i, but the tab
key itself is bound to org-cycle. When I say

C-h c tab

emacs says tab, whereas if I say

C-h c C-i

emacs says TAB. In an emacs without yasnippets, otoh,

C-h c tab

says TAB (translated from tab. This is all under X of course: I suspect
that on a console, things would be simpler.

HTH,
Nick


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] suggestion: options for chronological agenda

2009-09-28 Thread Ilya Shlyakhter
Ah, didn't know about that.   Things have changed since I last read
the full manual :)
Thanks for help!

ilya

On Mon, Sep 28, 2009 at 4:10 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi Ilya,

 have you tried

  C-a a    to get the agenda,

 and then

  v [

 to include inactive time stamps?

 HTH

 - Carsten

 On Sep 26, 2009, at 6:02 AM, Ilya Shlyakhter wrote:

 I often need to find recently modified entries.   I try to timestamp
 entries I work on with the active timestamps
 (in angular brackets), and use the C-x a L command.   This mostly
 works, but is imperfect:
  - when i use time logging, it inserts inactive timestamps that
 are not found this way.   so, i can't use this to find
  recently worked on entries.
  - it looks at the _first_ timestamp in an entry, rather than the
 _last_ timestamp
  - it is limited to one file .   would be much better if it could
 be made to work across the entire agenda.
  - it would be fine to have the option to limit it to entries
 within the last, say, week, if that would speed it up.

 The suggestion is to enhance the timeline agenda with options to:
  - recognize inactive timestamps ([in square brackets])
  - use last, rather than first, timestamp in an entry
  - search the entire agenda, rather than just the current file
  - limit the agenda to entries within the last (say) week.

 The timeview agenda was of course originally designed for another use
 case -- as a personal calendar/diary.
 But I'm finding myself repeatedly using it this way: organize the
 entries by hierarchical subject, and use the timeline
 agenda to generate a chronological listing.

 It would also be _really_ great if the chronological listing could be
 filtered to contain only entries matching a certain
 tag/property query.   Then you could e.g. get a chronological list of
 important entries, or entries on a certain
 subject.

 ilya


 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Visibility hide mode in 6.30trans doesn't hide last character in child region

2009-09-28 Thread Carsten Dominik

Hi Nick,

I cannot reproduce this, but I am not on windows.

- Carsten

On Sep 28, 2009, at 4:30 PM, Nick Bell wrote:

Not sure whether I'm putting this correctly, but on Windows (emacs- 
CVS 23.1.50.1 and EmacsW32) and 6.30trans (retrieved from git today)  
collapsing outlines results in e.g.


* Research...
* More Stuff...:

The last character being the last in the collapsed region. I've gone  
back to 6.30e which doesn't have the problem.


I'm not using org-indent-mode as that caused crashes and life has  
become too short to fiddle around with CVS on 3 platforms!


Just thought someone should know
--
Nick Bell
m...@nickbell.org


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Bernt Hansen
Nick Dokos nicholas.do...@hp.com writes:

 Water Lin water...@ymail.com wrote:

 Bernt Hansen be...@norang.ca writes:
 
  Water Lin water...@ymail.com writes:
 
  ...
  I want to find a way to inset them handly. Is there a key binding for
  this?
 
  I use yasnippet for this.
 
  http://doc.norang.ca/org-mode.html#Yasnippets
 
 
 I am using YASnippets according to your suggestion. But my YASnippet
 works in other modes like Perl, but just doesn't work in org-mode.
 
 I have already added file org-mode/block under folder
 snippets\text-mode.
 But while I type block and press TAB in org-mode, nothing happens. I
 think the org must be use the TAB key for special work.
 
 Is it true?
 

 Using Bernt's setup, I can get the block expanded using C-i, but the tab
 key itself is bound to org-cycle. When I say

 C-h c tab

 emacs says tab, whereas if I say

 C-h c C-i

 emacs says TAB. In an emacs without yasnippets, otoh,

 C-h c tab

 says TAB (translated from tab. This is all under X of course: I suspect
 that on a console, things would be simpler.

For me both TAB and C-i run the command yas/expand (according to C-h k).
I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of
2008-11-09 on raven, modified by Debian.

I get tab and TAB as Nick does but both run yas/expand.

I've never tried it in Emacs 23.

-Bernt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Water Lin
Nick Dokos nicholas.do...@hp.com writes:

 Water Lin water...@ymail.com wrote:

 Bernt Hansen be...@norang.ca writes:
 
  Water Lin water...@ymail.com writes:
 
  ...
  I want to find a way to inset them handly. Is there a key binding for
  this?
 
  I use yasnippet for this.
 
  http://doc.norang.ca/org-mode.html#Yasnippets
 
 
 I am using YASnippets according to your suggestion. But my YASnippet
 works in other modes like Perl, but just doesn't work in org-mode.
 
 I have already added file org-mode/block under folder
 snippets\text-mode.
 But while I type block and press TAB in org-mode, nothing happens. I
 think the org must be use the TAB key for special work.
 
 Is it true?
 

 Using Bernt's setup, I can get the block expanded using C-i, but the tab
 key itself is bound to org-cycle. When I say

 C-h c tab

 emacs says tab, whereas if I say

 C-h c C-i

 emacs says TAB. In an emacs without yasnippets, otoh,

 C-h c tab

 says TAB (translated from tab. This is all under X of course: I suspect
 that on a console, things would be simpler.

 HTH,
 Nick


Yes, thanks, it works.

Water Lin

-- 
Water Lin's blog: http://blog.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: short way to insert source tag in org mode?

2009-09-28 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote:

  Using Bernt's setup, I can get the block expanded using C-i, but the tab
  key itself is bound to org-cycle. When I say
 
  C-h c tab
 
  emacs says tab, whereas if I say
 
  C-h c C-i
 
  emacs says TAB. In an emacs without yasnippets, otoh,
 
  C-h c tab
 
  says TAB (translated from tab. This is all under X of course: I suspect
  that on a console, things would be simpler.
 
 For me both TAB and C-i run the command yas/expand (according to C-h k).
 I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of
 2008-11-09 on raven, modified by Debian.
 
 I get tab and TAB as Nick does but both run yas/expand.
 
 I've never tried it in Emacs 23.
 

I thought that Emacs23 would be the explanation, but I get the different
behavior even with Emacs 22. Ah, well: a mystery that will remain a mystery
(at last, afaiac...)

Nick


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Superscripts in LaTeX export

2009-09-28 Thread Thomas S. Dye

Aloha Carsten, Giovanni, and Nick,

It seems like magic to me, but now my org file correctly exports  
^{14}C to LaTeX.  The viewers of my beamer slide show will immediately  
recognize the radioactive isotope of carbon in the frame's title.   
They will have this pleasure with little effort on my part because org- 
mode is substantially reducing the amount of time it takes me to put  
the slides together.


Many thanks,
Tom


On Sep 28, 2009, at 4:42 PM, Carsten Dominik wrote:


Hi Thomas, Giovanni, Nick,

indeed, LaTeX export was thrown off by the space before the cared.
THis i fixed now, thanks.

- Carsten

On Sep 27, 2009, at 10:20 PM, Thomas S. Dye wrote:


Aloha all,

I'm trying to generate $^{14}$C, or an equivalent, from org-mode to  
represent the isotope of carbon important in archaeological dating.


Reading the manual, I tried this:

** A Brief History of Attempts to Interpret the ^{14}C Dates
*** The ^{14}C Dates

Which, in my #+LaTeX_CLASS: beamer export, yields

\subsection{A Brief History of Attempts to Interpret the \^{}{14}C  
Dates}

...
\begin{frame}\frametitle{The \^{}{14}C Dates}

The problem seems to be the space before the ^.

This input:

** A Brief History of Attempts to Interpret the x^{14}C Dates
*** The x^{14}C Dates

yields the correct LaTeX:

\subsection{A Brief History of Attempts to Interpret the x 
$^{\mathrm{14}}$C Dates}

...
\begin{frame}\frametitle{The x$^{\mathrm{14}}$C Dates}

Am I missing something?  Or, is the LaTeX export thrown off by the  
space before ^?


All the best,
Tom


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode






___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: LaTeX export - customize own class

2009-09-28 Thread henry atting
On Di, Sep 29 2009, Carsten Dominik wrote:

 On Sep 28, 2009, at 4:41 PM, henry atting wrote:

 I am trying to customize the orgmode export to the LaTeX class `play`
 A first level heading will then become the LaTeX \speaker{}, the text
 under this heading will become the text the speaker says. No problem
 so
 far, but some questions remain:

 - How can I prevent the export function from creating a titlepage
 and a
  table of contents?

#+TITLE:

 with no title specified will turn off the title.

#+OPTIONS: toc:nil

 will turn off the table of contents.

Ah, I did know it already but forgot it. I ordered `Improve Your Memory
in 600 Days' right away.

 - Most important: Every header is provided with a label. How can I
  supress this?

 You cannot, really.
 However, I have just added a new hook, org-export-latex-final-hook.
 You could use it to test if the class is play, and if yes, run through
 the buffer and remove all labels.

 - Finally, is it possible to automatically insert something *after*
  \begin{document}, something like \begin..\end{play}?

 You could also use the hook to do this.

I pulled the newest git version, reloaded org.el  and tried to load the hook 
with

(add-hook 'org-mode-hook 'org-export-latex-final-hook)

but when I am trying to export an org file to LaTeX I get an error message:

run-hooks: Symbol's function definition is void:
org-export-latex-final-hook

henry

-- 
http://literaturlatenight.de


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: LaTeX export - customize own class

2009-09-28 Thread Nick Dokos
henry atting nsmp...@online.de wrote:


 I pulled the newest git version, reloaded org.el  and tried to load the hook 
 with
 
 (add-hook 'org-mode-hook 'org-export-latex-final-hook)
 
 but when I am trying to export an org file to LaTeX I get an error message:
 
 run-hooks: Symbol's function definition is void:
 org-export-latex-final-hook
 

org-export-latex-final-hook is just another hook, so you have to use it
like this:

(defun my-func ()
   body
   )

(add-hook 'org-export-latex-final-hook (function my-func))

Then your function will be called at the time that the hook is run:
after the latex export is done.

HTH,
Nick



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode