Re: [Orgmode] Feature request: an org user variable for which "latex" command to run

2009-04-22 Thread Carsten Dominik

This is now implemented, please check the variable
`org-latex-to-pdf-process'.

Nick, I used a a modified version of your patch, to make the whole
process configurable, and to make it possible to include a BibTeX run.

Thanks to all who have contributed to this discussion.

- Carsten

On Apr 22, 2009, at 4:47 PM, Scot Becker wrote:


All,

org-latex.el currently runs the passes this to the shell when running
the `C-c C-e p' or `C-c C-e d' (process via LaTeX to PDF) commands:

"pdflatex -interaction nonstopmode %s"

But a person (like this person) might want to use a different shell
command to invoke latex, in particular LuaTeX, or XeTeX, two
unicode-aware successors to pdflatex which also output pdf files.

I use xelatex for it's unicode compatibility and font handling, and
I'd love to be able to use the speedy C-c C-e d command to get myself
from .org file to visible PDF---like all the other kids on my street.

I note that emacs already has a variable 'latex-run-command' used by
latex-mode for invoking latex with C-c C-b.  You will know better than
I the relative advantages and disadvantages to reusing it.  However
(1) it is still set to 'latex' out of the box, and so could require
user changes on some systems to get it to process to a PDF and not to
a DVI (though not on TeXLive 2008, where latex -> pdflatex). (2) It
seems a refined (i.e. complex) system:  latex-mode uses
'latex-run-command' as its 'tex-command' to process the contents of a
buffer.  What it passes to the shell is the value of
'latex-run-command' + 'tex-start-options' + 'tex-start-commands' and
finally the filename (though it can be inserted elsewhere with a '*',
not org's typical '%s'), at least that's as far as I understand it.

Perhaps we don't need to be so clever.  Maybe just an
'org-latex-to-pdf-command' variable,  with the default as above?

Thanks,
Scot


___
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: IDs

2009-04-22 Thread Bernt Hansen
sran...@gmail.com writes:

> I saw some discussion on the list about custom IDs, but it confused
> me. So, here is my problem.
>
> I upgraded to 6.26. Now, when I export my index.org file to html, the
> headlineline
>
> * Courses
>
> is exported to
>
> 
> Courses 
> 
>
> instead of
>
> 
> Courses 
> .

This was a bug in the 6.26 release that was fixed in 6.26a

>
> This happens for all other headlines in index.org too.
>
> I don't want to define a custom ID for every headline, I want org-mode
> to generate them automatically as it did in the past. For now, I've
> gone back to 6.25b.
>
> I see that 6.26d is out. I haven't tried it yet. Is this issue
> resolved in 6.26d, or is the new way the default. If so, how do I make
> things work the old way?

6.26d should work fine.  Yes it is resolved.

-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] agenda export error

2009-04-22 Thread Eraldo Helal
>
>
> > So, I guess htmlize.el is not part of org-mode.
> > Is there a way of keeping uptodate with this file?
> > Will it survive when I do my git pull, etc?
> >
>
> No, it's fine - Carsten got permission from Hrvoje Niksic (the author of
> htmlize.el) to include it in the contrib/lisp/ directory of org-mode. So
> you don't need to get it from emacswiki: my apologies for misleading
> you - I forgot about Carsten's mail.  Here's the link to the email:
>
>   http://article.gmane.org/gmane.emacs.orgmode/12956/match=hrvoje
>
> Nick


Yep it is there... but I still get the error message.
How can I get it to work? Load it in .emacs?
___
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] IDs

2009-04-22 Thread srandby
I saw some discussion on the list about custom IDs, but it confused me. 
So, here is my problem.


I upgraded to 6.26. Now, when I export my index.org file to html, the 
headlineline


* Courses

is exported to


Courses 


instead of


Courses 
.

This happens for all other headlines in index.org too.

I don't want to define a custom ID for every headline, I want org-mode 
to generate them automatically as it did in the past. For now, I've gone 
back to 6.25b.


I see that 6.26d is out. I haven't tried it yet. Is this issue resolved 
in 6.26d, or is the new way the default. If so, how do I make things 
work the old way?


Scott Randby


___
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] agenda export error

2009-04-22 Thread Nick Dokos
Eraldo Helal  wrote:


> On Wed, Apr 22, 2009 at 22:48, Nick Dokos  wrote:
> 
> > Eraldo Helal  wrote:
> >
> > > I get the following error when trying to export my agenda:
> > >
> > > > org-write-agenda: Cannot open load file: htmlize
> > >
> > >
> > > Any idea how to fix this?
> > >
> >
> > Get htmlize.el from
> >
> >http://www.emacswiki.org/emacs/htmlize.el
> >
> > install it somewhere in your load-path and (optionally) byte-compile it.
> >
> > This version includes Carsten's fixes for face properties, making it
> > compatibel with Emacs 23 (as well as older versions).
> >

> So, I guess htmlize.el is not part of org-mode.
> Is there a way of keeping uptodate with this file?
> Will it survive when I do my git pull, etc?
> 

No, it's fine - Carsten got permission from Hrvoje Niksic (the author of
htmlize.el) to include it in the contrib/lisp/ directory of org-mode. So
you don't need to get it from emacswiki: my apologies for misleading
you - I forgot about Carsten's mail.  Here's the link to the email:

   http://article.gmane.org/gmane.emacs.orgmode/12956/match=hrvoje

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] agenda export error

2009-04-22 Thread Eraldo Helal
On Wed, Apr 22, 2009 at 22:48, Nick Dokos  wrote:

> Eraldo Helal  wrote:
>
> > I get the following error when trying to export my agenda:
> >
> > > org-write-agenda: Cannot open load file: htmlize
> >
> >
> > Any idea how to fix this?
> >
>
> Get htmlize.el from
>
>http://www.emacswiki.org/emacs/htmlize.el
>
> install it somewhere in your load-path and (optionally) byte-compile it.
>
> This version includes Carsten's fixes for face properties, making it
> compatibel with Emacs 23 (as well as older versions).
>
> HTH,
> Nick
>

So, I guess htmlize.el is not part of org-mode.
Is there a way of keeping uptodate with this file?
Will it survive when I do my git pull, etc?

Thank's
Eraldo
___
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] Problem in the http://orgmode.org/Changes.html

2009-04-22 Thread Xin Shi

Hi Sebastian,

Thanks for your quick fix! (Also thanks for Greg's confirm).

Now, here is another question:  if you go to that page:

http://orgmode.org/Changes.html

1. Suppose one clicks the "Version 6.23"  on the left panel, then 
Version 6.23 will show up in the top (notice it's slanted and not a link 
as before)
2. In the "contents", you click "Details". This time the Version 6.23 
show up again on the top (this time not a link either, but it was a link 
before using the CUSTOM_ID)


To verify my statement, you can remove the custom_id in one of the 
versions, for example Version 6.25, you will be able to click the title 
in the above step 2.


The clickable feature is very nice for a smooth browsing, I'm wondering 
if it's possible to apply them for the custom_id sections. Thanks!


Xin




Sebastian Rose wrote:

Oh god,

my failure ... forgot to delete a line...

I push the fix. Should be gone after the next update...


Sorry

   Sebastian
  




___
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] Problem in the http://orgmode.org/Changes.html

2009-04-22 Thread Sebastian Rose
Oh god,

my failure ... forgot to delete a line...

I push the fix. Should be gone after the next update...


Sorry

   Sebastian


___
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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Bernt Hansen
Carsten Dominik  writes:

> On Apr 22, 2009, at 10:16 PM, Tassilo Horn wrote:
>
>> I think Bernt meant that he doesn't notice a difference in how long it
>> takes till the agenda is displayed.
>
> Ahh, of course.

Yes that's what I meant :)

-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] Problem in the http://orgmode.org/Changes.html

2009-04-22 Thread Xin Shi

Hi,

This webpage behaves strange in firefox:
http://orgmode.org/Changes.html

A lot of dialog box jumps up saying the section number. 


Xin






___
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] agenda export error

2009-04-22 Thread Nick Dokos
Eraldo Helal  wrote:

> I get the following error when trying to export my agenda:
> 
> > org-write-agenda: Cannot open load file: htmlize
> 
> 
> Any idea how to fix this?
> 

Get htmlize.el from

http://www.emacswiki.org/emacs/htmlize.el

install it somewhere in your load-path and (optionally) byte-compile it.

This version includes Carsten's fixes for face properties, making it
compatibel with Emacs 23 (as well as older versions).

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


[Orgmode] Re: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Carsten Dominik


On Apr 22, 2009, at 10:16 PM, Tassilo Horn wrote:


Carsten Dominik  writes:


  Toggling this variable doesn't seem to change how long the agenda
  displays for me.


It does for me.  With Tassilos original example:

* Übung Grundlagen der Softwaretechnik (B 016) :teaching:
<2009-04-22 Wed 08:30-10:00 +1w>
<2009-04-29 Wed 10:15-11:45> (Für Hannes übernehmen)

I get either one or two entries on April 29.


I think Bernt meant that he doesn't notice a difference in how long it
takes till the agenda is displayed.


Ahh, of course.

- Carsten


 Same for me, with 5 org-files with
about 2000 lines in total.

Bye,
Tassilo




___
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] agenda export error

2009-04-22 Thread Eraldo Helal
I get the following error when trying to export my agenda:

> org-write-agenda: Cannot open load file: htmlize


Any idea how to fix this?

Greetings,
Eraldo
___
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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Tassilo Horn
Carsten Dominik  writes:

>>Toggling this variable doesn't seem to change how long the agenda
>>displays for me.
>
> It does for me.  With Tassilos original example:
>
> * Übung Grundlagen der Softwaretechnik (B 016)   
> :teaching:
>  <2009-04-22 Wed 08:30-10:00 +1w>
>  <2009-04-29 Wed 10:15-11:45> (Für Hannes übernehmen)
>
> I get either one or two entries on April 29.

I think Bernt meant that he doesn't notice a difference in how long it
takes till the agenda is displayed.  Same for me, with 5 org-files with
about 2000 lines in total.

Bye,
Tassilo


___
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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Carsten Dominik


On Apr 22, 2009, at 9:21 PM, Bernt Hansen wrote:


Carsten Dominik  writes:


Anyway, get the latest version and do

  (setq org-agenda-find-multiple-timestamps-per-entry t)

Question to everyone:  Should this be the default?


I don't think I ever use more than one timestamp per entry.

As long as there is no noticeable performance hit then I have no
preference for what the default is.

-Bernt

PS. I can't find this variable in the latest git sources so I couldn't
   try it myself to see if there was a noticeable performance hit.

   It seems the variable is really
   org-agenda-skip-additional-timestamps-same-entry instead.


Yes, I went back and forth between these two names.  However,
all the other vriables doing similar stuff are called -skip-,
so I decided to do the same here.  Sorry for the mixup.



   Toggling this variable doesn't seem to change how long the agenda
   displays for me.


It does for me.  With Tassilos original example:

* Übung Grundlagen der Softwaretechnik (B 016) :teaching:
 <2009-04-22 Wed 08:30-10:00 +1w>
 <2009-04-29 Wed 10:15-11:45> (Für Hannes übernehmen)

I get either one or two entries on April 29.

- 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] Blocked Agenda without newlines but with separator

2009-04-22 Thread Eraldo Helal
> x  > - Blocked Agenda without newlines
>
> How does this sound?
>
> --8<---cut here---start->8---
> (setq org-agenda-custom-commands
>  '(("E" "Eraldo's Agenda"
> ((tags-todo "Internet" ((org-agenda-overriding-header
> "\nInternet")))
>  (tags-todo "Home" ((org-agenda-overriding-header
> "\nHome")))
> --8<---cut here---end--->8---
>
> --
> Manish
>

I tried that... but it gives me a fixed amount of "=" signs  // compared to
the separator

Maybe the content of the variable org-agenda-compact-blocks could have an
additional value: ( nil | t | nonewline )
or a separate variable org-agenda-compact-blocks-newline ( t | nil )

Could that be an option?

Thank you for the answer though!

On Wed, Apr 22, 2009 at 21:37, Manish  wrote:
 On Wed, Apr 22, 2009 at 11:34 PM, Eraldo Helal wrote:
 > At the moment my blocked agenda looks somthing like this:
 >
 >>
 >> ==
==
 >> internet:
 >>
 >>
 >>

 >> home:
 >>  eraldo: ACTION do bla  :SomeName::home:
 >>  eraldo: ACTION do bla2  :SomeName::home:
 >>
 >>
 >>
===
 >> etc...
 >
 > What I expect/want:
 >
 >>
 >>

 >> internet:
 >>
 >>

 >> home:
 >>  eraldo: ACTION do bla  :SomeName::home:
 >>  eraldo: ACTION do bla2  :SomeName::home:
 >>
 >>
===
 >> etc...
 >
 > In words:
 > - "Agenda Compact Blocks" but with separator
___
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] Blocked Agenda without newlines but with separator

2009-04-22 Thread Manish
  On Wed, Apr 22, 2009 at 11:34 PM, Eraldo Helal wrote:
  > At the moment my blocked agenda looks somthing like this:
  >
  >>
  >> 

  >> internet:
  >>
  >>
  >> 

  >> home:
  >>  eraldo: ACTION do bla  :SomeName::home:
  >>  eraldo: ACTION do bla2  :SomeName::home:
  >>
  >>
  >> 
===
  >> etc...
  >
  > What I expect/want:
  >
  >>
  >> 

  >> internet:
  >>
  >> 

  >> home:
  >>  eraldo: ACTION do bla  :SomeName::home:
  >>  eraldo: ACTION do bla2  :SomeName::home:
  >>
  >> 
===
  >> etc...
  >
  > In words:
  > - "Agenda Compact Blocks" but with separator
x  > - Blocked Agenda without newlines

How does this sound?

--8<---cut here---start->8---
(setq org-agenda-custom-commands
  '(("E" "Eraldo's Agenda"
 ((tags-todo "Internet" ((org-agenda-overriding-header
"\nInternet")))
  (tags-todo "Home" ((org-agenda-overriding-header
"\nHome")))
--8<---cut here---end--->8---

-- 
Manish


___
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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Bernt Hansen
Carsten Dominik  writes:

> Anyway, get the latest version and do
>
>(setq org-agenda-find-multiple-timestamps-per-entry t)
>
> Question to everyone:  Should this be the default?

I don't think I ever use more than one timestamp per entry.

As long as there is no noticeable performance hit then I have no
preference for what the default is.

-Bernt

PS. I can't find this variable in the latest git sources so I couldn't
try it myself to see if there was a noticeable performance hit.

It seems the variable is really
org-agenda-skip-additional-timestamps-same-entry instead.

Toggling this variable doesn't seem to change how long the agenda
displays for me.




___
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: org-mode is turning off soft word wrapping.

2009-04-22 Thread Bernt Hansen
Good Bad  writes:

> When I visit a text file, a C file or a TeX file, it is in soft word wrapping
> mode, i.e. long lines get wrapped, but without really inserting newlines.
>
> But when I visit an org file, it is not in word wrapping mode, i.e. longs 
> lines
> never gets wrapped, you can't see the whole line if the line is too long.
>
> 1. How do I turn on soft word wrapping in org-mode?

I have a function key mapped to this.  There is a function
(set-truncate-lines) that toggles wrapping on and off.

,[ from my .emacs ]
| (global-set-key (kbd "") 'set-truncate-lines)
`

I personally like the not-wrapped default but if I need to read a long
line I just hit F7, read it, and then unwrap it with F7 again.

> 2. If org-mode automatically turning off word wrapping is a feature, what is 
> the
> reason non-wrapping mode should be prefered in org-mode? I can see why in 
> ediff
> mode tho.
>
> I don't know what word wrapping mode and non-word wrapping mode are called in
> emacs speak.

Having lines not wrap when viewing wide org-mode tables is a good thing.

HTH,
-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] Blocked Agenda without newlines but with separator

2009-04-22 Thread Eraldo Helal
At the moment my blocked agenda looks somthing like this:


> internet:
>
>
> 
> home:
>   eraldo: ACTION do bla:SomeName::home:
>   eraldo: ACTION do bla2   :SomeName::home:
>
>
> ===
> etc...
>

What I expect/want:


> internet:
>
> 
> home:
>   eraldo: ACTION do bla:SomeName::home:
>   eraldo: ACTION do bla2   :SomeName::home:
>
> ===
> etc...
>

In words:
- "Agenda Compact Blocks" but with separator
- Blocked Agenda without newlines

Any ideas?
___
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] org-mode is turning off soft word wrapping.

2009-04-22 Thread Good Bad

When I visit a text file, a C file or a TeX file, it is in soft word wrapping
mode, i.e. long lines get wrapped, but without really inserting newlines.

But when I visit an org file, it is not in word wrapping mode, i.e. longs lines
never gets wrapped, you can't see the whole line if the line is too long.

1. How do I turn on soft word wrapping in org-mode?

2. If org-mode automatically turning off word wrapping is a feature, what is the
reason non-wrapping mode should be prefered in org-mode? I can see why in ediff
mode tho.

I don't know what word wrapping mode and non-word wrapping mode are called in
emacs speak.


  



___
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] Agenda headlines match tag and todo keyword.

2009-04-22 Thread Manish
  On Wed, Apr 22, 2009 at 10:32 PM, Eraldo Helal wrote:
  > How do I get only the headlines that match the tag "test" and the
  > todo-keyword "ACTION" ?
  >
  > I read through the manual and this site
  > "http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php";
  > but did not find it.

How about "C-c a T ACTION RET" and then filter the list with "/ TAB test RET" ?

-- 
Manish


___
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] Agenda headlines match tag and todo keyword.

2009-04-22 Thread Nick Dokos
Eraldo Helal  wrote:


> How do I get only the headlines that match the *tag* "test" *and* the *
> todo-keyword* "ACTION" ?
> 

Check the "Matching tags and properties" section of the manual, and pay
particular attention to the "Special properties" link. In your
case, I think the following will work (untested):

  C-c a m test+TODO="ACTION" http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Agenda headlines match tag and todo keyword.

2009-04-22 Thread Eraldo Helal
How do I get only the headlines that match the *tag* "test" *and* the *
todo-keyword* "ACTION" ?

I read through the manual and this site "
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php"; but
did not find it.

Thank's,
Eraldo (a little confused)
___
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] exporting without DEADLINE keyword

2009-04-22 Thread Yuval Hager
On Tuesday 21 April 2009, Carsten Dominik wrote:
> On Apr 21, 2009, at 9:06 AM, Yuval Hager wrote:
> > Hi,
> >
> > One of my uses to orgmode is to write an invoice, export it to PDF
> > and send
> > it to the customer.
> >
> > I like to mark the DEADLINE for the invoice, for my tracking, but I
> > do not
> > want that to show in the exported PDF this way, rather in a more
> > subtle
> > manner, like 'payment is due by '.
> > I have looked at org-export-with-timestamps and a couple others
> > org-export-*, but either all timestamps are gone (including the ones
> > I'd
> > like to include), or they all stay.
> >
> > I am looking for a way to hide the 'DEADLINE' keyword.
> >
> > Here's an example of how it looks like in my org file:
> > ,
> >
> > | * TODO invoice
> > |   DEADLINE: <2009-04-28 Tue>
> > |
> > |   :PROPERTIES:
> > |   :EXPORT_TITLE: Invoice
> > |   :EXPORT_OPTIONS: toc:nil
> > |   :END:
> > |
> > | [invoice information here...]
> > |
> > | Payment is due by [2009-04-28 Tue].
>
> * Invoice
>
>:PROPERTIES:
>:EXPORT_TITLE: Invoice
>:EXPORT_OPTIONS: toc:nil
>:END:
>
>   [invoice information here...]
>
>   Payment is due by [2009-04-28 Tue].
>
> ** TODO Handle the invoice:noexport:
> DEADLINE: <2009-04-28 Tue>
>
>
> HTH
>
> - Carsten

Brilliant. Thanks.

--y


signature.asc
Description: This is a digitally signed message part.
___
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


[PATCH] Make pdf command and args customizable. [was: [Orgmode] Feature request: an org user variable for which "latex" command to run]

2009-04-22 Thread Nick Dokos
Here's a patch to make the command and its arguments customizable. The
patch organizes the customization groups as follows:

org-export -> org-export-latex -> org-export-pdf


I don't know if Carsten will want to apply it, but even if he does, he
might want to tweak the customization groups differently.

Nick

Add variables for the pdf command and its args and create
appropriate customization tree structure.
---
 lisp/org-latex.el |   25 +++--
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 9371b24..c56690d 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -292,16 +292,25 @@ only postscript files can be included."
 
 (defgroup org-export-pdf nil
   "Options for exporting Org-mode files to PDF, via LaTeX."
-  :tag "Org Export LaTeX"
-  :group 'org-export-latex
-  :group 'org-export)
+  :tag "Org Export PDF"
+  :group 'org-export-latex)
 
 (defcustom org-export-pdf-remove-logfiles t
   "Non-nil means, remove the logfiles produced by PDF production.
 These are the .aux, .log, .out, and .toc files."
-  :group 'org-export-latex
+  :group 'org-export-pdf
   :type 'boolean)
 
+(defcustom org-export-pdf-command "pdflatex"
+  "Command to produce PDF."
+  :group 'org-export-pdf
+  :type 'string)
+
+(defcustom org-export-pdf-command-args "-interaction nonstopmode"
+  "Command args for org-export-pdf-command."
+  :group 'org-export-pdf
+  :type 'string)
+
 ;;; Autoload functions:
 
 ;;;###autoload
@@ -550,9 +559,13 @@ when PUB-DIR is set, use this as the publishing directory."
 (pdffile (concat base ".pdf")))
 (and (file-exists-p pdffile) (delete-file pdffile))
 (message "Processing LaTeX file...")
-(shell-command (format "pdflatex -interaction nonstopmode %s"
+(shell-command (format "%s %s %s"
+   org-export-pdf-command
+   org-export-pdf-command-args
   (shell-quote-argument file)))
-(shell-command (format "pdflatex -interaction nonstopmode %s"
+(shell-command (format "%s %s %s"
+   org-export-pdf-command
+   org-export-pdf-command-args
   (shell-quote-argument file)))
 (message "Processing LaTeX file...done")
 (if (not (file-exists-p pdffile))
-- 
1.5.4.3




___
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 colouring and properties

2009-04-22 Thread Simon Brown
Hi all,

Is it possible to colour the output in pdf export in the same way it is 
done in html export? The colouring of tags and timestamps is very 
useful.

Also is it possible to include properties in the output? I'm adding 
effort estimates to the tasks which I'd like to be included in the 
exported pdf.

Thanks,

Simon




___
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] Feature request: an org user variable for which "latex" command to run

2009-04-22 Thread Scot Becker
All,

org-latex.el currently runs the passes this to the shell when running
the `C-c C-e p' or `C-c C-e d' (process via LaTeX to PDF) commands:

"pdflatex -interaction nonstopmode %s"

But a person (like this person) might want to use a different shell
command to invoke latex, in particular LuaTeX, or XeTeX, two
unicode-aware successors to pdflatex which also output pdf files.

I use xelatex for it's unicode compatibility and font handling, and
I'd love to be able to use the speedy C-c C-e d command to get myself
from .org file to visible PDF---like all the other kids on my street.

I note that emacs already has a variable 'latex-run-command' used by
latex-mode for invoking latex with C-c C-b.  You will know better than
I the relative advantages and disadvantages to reusing it.  However
(1) it is still set to 'latex' out of the box, and so could require
user changes on some systems to get it to process to a PDF and not to
a DVI (though not on TeXLive 2008, where latex -> pdflatex). (2) It
seems a refined (i.e. complex) system:  latex-mode uses
'latex-run-command' as its 'tex-command' to process the contents of a
buffer.  What it passes to the shell is the value of
'latex-run-command' + 'tex-start-options' + 'tex-start-commands' and
finally the filename (though it can be inserted elsewhere with a '*',
not org's typical '%s'), at least that's as far as I understand it.

Perhaps we don't need to be so clever.  Maybe just an
'org-latex-to-pdf-command' variable,  with the default as above?

Thanks,
Scot


___
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] A Mark-up rule question

2009-04-22 Thread Xin Shi

Hi Carsten,

That's great! It would be nice that we document all of this symbols in 
the manual.


Another question related to the Mark-up:

Is there any way to by pass the "+" mark-up except using space? The 
reason is that I have a table like this:


| D^{+}\to K^{-}\pi^{+}\pi^{+} | 44120 \plusmn 211 | 43800 
\plusmn 210 | +0.7% (+1.5\sigma)|


The above will have several "punch through line". If I use space 
surround the "+", the output looks not as tight as as one symbol ...


Any suggestions?

Thanks!

Xin



Carsten Dominik wrote:


On Apr 22, 2009, at 2:05 AM, Xin wrote:


Hello Experts,

I'm wondering if it's possible to implement some special character 
for displaying math in HTML in addition to the already well performed 
greek letter.  For example, 35 ± 5 can be written as 35 \pm 5, which 
in the html correspond to ±, etc.   See this page:


http://comers.citadel.edu/math_sym2005.htm


That exact table lists ± as the way to write
this symbol, which is why \plusmn does work in Org.
However, since Org is LaTeX based for symbols like this,
I agree that \pm should work, and it will in the future.

The full list of these commands is in org-html-entities,
you are welcome to go through this list and point out omissions.

- Carsten



Thanks!

Xin



___
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: BUG: Exporting and empty LOGBOOK drawers results in missing data in the export file

2009-04-22 Thread Bernt Hansen
Carsten Dominik  writes:

> Fixed, thanks.
>
> - Carsten

Thanks!  It works great now :)

-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: here's a working version of org-generic

2009-04-22 Thread Wes Hardaker
> On Wed, 22 Apr 2009 09:59:21 +0200, Carsten Dominik 
>  said:

CD> One problem I notices:  I think multiple lines starting with ": "
CD> must be seen as one block, most backends will need this.

Yep.  It was, err...  not on my todo list because I failed to write it
down.  But I did realize the problem existed...  Thanks for reminding me
so I added it to the documented list :-)
-- 
"In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find."  -- Terry Pratchett


___
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] A Mark-up rule question

2009-04-22 Thread Carsten Dominik


On Apr 22, 2009, at 2:05 AM, Xin wrote:


Hello Experts,

I'm wondering if it's possible to implement some special character  
for displaying math in HTML in addition to the already well  
performed greek letter.  For example, 35 ± 5 can be written as 35  
\pm 5, which in the html correspond to ±, etc.   See this page:


http://comers.citadel.edu/math_sym2005.htm


That exact table lists ± as the way to write
this symbol, which is why \plusmn does work in Org.
However, since Org is LaTeX based for symbols like this,
I agree that \pm should work, and it will in the future.

The full list of these commands is in org-html-entities,
you are welcome to go through this list and point out omissions.

- Carsten



Thanks!

Xin



___
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] A Mark-up rule question

2009-04-22 Thread Xin

Hello Experts,

I'm wondering if it's possible to implement some special character for 
displaying math in HTML in addition to the already well performed greek 
letter.  For example, 35 ± 5 can be written as 35 \pm 5, which in the 
html correspond to ±, etc.   See this page:


http://comers.citadel.edu/math_sym2005.htm

Thanks!

Xin



___
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] Custom_ID problem with org-info.js display

2009-04-22 Thread Xin

Hi Carsten and Sebastian,

Thanks for your quick response!

The current solution is good for me.  :)

Xin


Carsten Dominik wrote:


On Apr 21, 2009, at 4:16 PM, Sebastian Rose wrote:




Hmm - the script supports two kinds of human readable IDs now. The old
ones (which where defined in the anchor inside the the headline), and
the new ones, which are now defined in the headlines 'id' property.

Which one is now to prefer?

What I did now, is to remove the regexp search at all (`^sec-') and
switched to prefer the ID in the anchor (to be backward compatible).


Is there a need for numeric `sec-x.x' IDs?


Yes, for all the headings that do not have a human readable ID.




To put that in again is not a big deal.


Please do.  The algorithm could be:

Look at both the ID of the  tag, and the anchors in the headline.
Take the first on in the combined list that does not match sec-x.x.  
If none does, use the sec-... one.


- Carsten







  Sebastian


Carsten Dominik  writes:

On Apr 21, 2009, at 1:31 PM, Sebastian Rose wrote:




OK. Should work now.

Old human readable IDs in headline's anchors are still prefered.

Also, org-info.js is now minified (no obfuscation) to decrease the 
file

size by about 40%.

For those interested in hacking it, the plain org-info.js was moved to
org-info-src.js.


You may pull the script from the usual sources. E.g:

http://repo.or.cz/w/Worg.git?a=blob_plain;f=code/org-info-js/org-info.js;hb=31f6317f2aaebe18ea8ec3a9e0a5b0426e062164 



Hi Sebastian,

this looks great.  However:

Let's look at the first heading now in Changes.html:


Version 6.26 


As you can see, in this case, where there is a custom ID "v6.26" 
that is used,
I have added "sec-1" as an anchor to the headline, just to make sure 
that the

full systemacs of sec-NN anchors remains available.

However, it seems that the link extraction commands "l" and "L" now 
both access
the sec-1 name.  I believe it would be better, in this case, to use 
v6.26.


- 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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Tassilo Horn
Carsten Dominik  writes:

Hi Carsten,

>> Why does org stop with the first match?  Efficiency?  At least I
>> don't care about that, so if this could be made customizable I
>> wouldn't object.
>
> Efficiency, and to avoid cluttering if you have recorded several time
> stamps in an entry.  See, the problem is that all these lines will
> look exactly the same in the agenda, because they all show the same
> headline!
>
> However, I do see that your applications, with a different
> time-of-day, does in fact make sense.
>
> Anyway, get the latest version and do
>
>(setq org-agenda-find-multiple-timestamps-per-entry t)

Carsten, you are incredible!

> Question to everyone:  Should this be the default?

I tend to t.  If an entry has more than one timestamp for a day, then
it looks like an exception to me.  If not, then the entry should have a
better structure, i.e. if it was

--8<---cut here---start->8---
* Some meeting with Hugo
  <2009-04-22 Wed>
  - breakfast <2009-04-22 Wed 09:44>
  - lunch <2009-04-22 Wed 12:44>
--8<---cut here---end--->8---

it should better be:

--8<---cut here---start->8---
* Some meeting with Hugo
  <2009-04-22 Wed>
** breakfast <2009-04-22 Wed 09:44>
** lunch <2009-04-22 Wed 12:44>
--8<---cut here---end--->8---

Or if you don't want the breakfast and lunch in the agenda anyway, one
could use 09:44 or an inactive timestamp instead.

Bye,
Tassilo
-- 
VI VI VI - The Roman Number Of The Beast


___
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: Headline with 2 timestamps is displayed only once in the agenda

2009-04-22 Thread Carsten Dominik


On Apr 21, 2009, at 6:00 PM, Tassilo Horn wrote:


Carsten Dominik  writes:

Hi Carsten,


What do I have to do to make that entry showing up twice on 29th
April?


Make the second one a SCHEDULED time stamp, for example.  When Org
collects entries for the day, it goes through the files, once for
plain time stamps, once for scheduled, once for deadlines.  When an
entry matches, it stops looking for timestamps in the same entry.  So
you need to make the stamps of different kind to make them show up
both.


Hm, ok, that works.  But what if I have to enter a few other  
exceptions?

What do other people do in that situation?  Add a subheading with all
exception dates?

Why does org stop with the first match?  Efficiency?  At least I don't
care about that, so if this could be made customizable I wouldn't
object.


Efficiency, and to avoid cluttering if you have recorded
several time stamps in an entry.  See, the problem is that
all these lines will look exactly the same in the agenda,
because they all show the same headline!

However, I do see that your applications, with a different
time-of-day, does in fact make sense.

Anyway, get the latest version and do

   (setq org-agenda-find-multiple-timestamps-per-entry t)

Question to everyone:  Should this be the default?

- Carsten




BTW: Is it possible to specify an end date for repeating events?


No, except if you use a diary sexp in the time stamp.  But not with
native Org syntax.


Ok, thanks.

Bye,
Tassilo
--
No person,  no idea, and no  religion deserves to be  illegal to  
insult,

not even the Church of Emacs. (Richard M. Stallman)



___
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] here's a working version of org-generic

2009-04-22 Thread Carsten Dominik

Hi Wes, this is fun, I hope you continue to improve it.

One problem I notices:  I think multiple lines starting with ": "
must be seen as one block, most backends will need this.

- Carsten

On Apr 15, 2009, at 9:23 PM, Wes Hardaker wrote:



I have a bunch of random things that I'd like to export org stuff too
and it seemed to me that much of the work of writing code to export
stuff from org-mode into external documents could be conquered by  
simple

string specifiers.  So yesterday I hacked something together that is
actually working enough I should be able to use it to other random xml
formats, etc.  It's far from complete but it's usable by the average
elisp hacker.  See the todo list at the top for all the things it
*doesn't* do (sigh).

EG, the demo specifier in the example specifier list (see the code)  
can

be used to take this:

 Test

 * level 1
   text level 1
 *** level 2
 text level 2
 :  this
 :   is
 :critical
 * level 3
   text [[file:foo2.org][level 3]]
 * Another 3
   more text level 3
 *** level 2 again
 more text level 2
 *** jump to level 4
level 4 text
 *** back to 2

To produce this:

 
 Test
 
 Date: 2009-04-15 12:21:42 PDT

 
 __Table of Contents__
 
 
 #(1)--level 1 --
 #(1.1)--level 2 --
 #(1.1.1)--level 3 --
 #(1.1.2)--Another 3 --
 #(1.2)--level 2 again --
 #(1.3)--back to 2 --
 #(2)--back to 1 --

 

 
 1 level 1 
 
   text level 1
 
 1.1 level 2 
 
 text level 2
  this
 
 
   is
 
 
critical
 
 
 
 level 3 
 
 ...



--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find."  -- Terry Pratchett
___
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] variables to get the export date and other export data

2009-04-22 Thread Daniel Clemente
El dc, abr 15 2009, Carsten Dominik va escriure:
>>  just like [TABLE-OF-CONTENTS] inserts the table of contents, are there other
>> variables which will be translated on export? For  instance [EXPORT-DATE] to
>> get the export date, [VERSION] for the Org  version, [FILE-NAME] for this
>> file's name, …
> If you make me a complete list of what you'd like to have, I
> can add them to the macros. 

  I actually only miss the export date, but after seeing for instance what 
txt2tags (another markup syntax) provides, I think this will cover most needs:

- export date (that is, current date). So that you can say „Page updated on 
22/4/2009“. txt2tags for instance has %%date and %%date(format-string), as in 
%%date(%d-%m-%Y)
- file modification time; useful for instance if you export *all* pages 
frequently (then the export date would be the same for all even for unmodified 
pages)
- input file name; useful to say „See the Org source for this page: 
blabla.org“. It can also have a format string to select whether you want the 
extension, the full path, etc.
- output file name; only to say „This is page blabla.html“.
- table of contents


> I don't want to add more [NAME],
> I don't think it is "strange" enough.

  Better use longer words like [EXPORT-FILE-NAME], or more Org-like syntax.



  Is there other metainformation that people need at export time?
  Org version? User name? File attributes?



-- Daniel


___
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: Counter cookies and mixed checkbox lists/subtasks

2009-04-22 Thread Ulf Stegemann
Hi Carsten,

Carsten Dominik  wrote:

> On Apr 20, 2009, at 10:00 AM, Ulf Stegemann wrote:
>
>> Carsten Dominik  wrote:
>>
>>> Hmmm, I am still not convinced, in particular about adding new syntax.
>>>
>>> One thing I could imagine though, is this:
>>> If an entry has checkboxes, always put those into the cookie, not the
>>> children.
>>> Or maybe a variable, stating your preference for this.  This would at
>>> least
>>> give predictable behavior.
>>
>> or how about a property?
>
> You win.
>
> After your next git update, set the property "COOKIE_DATA" to either "todo"
> or "checkbox".

great! Works like a charm here. Thank you for the effort.

Ulf



___
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