Re: [Orgmode] Exporting to HTML - underscores cause unwanted sub-script

2008-08-15 Thread Daniel J. Sinder
For the record, you can also fix this problem using the following 
file-local customization:


#+OPTIONS:   ^:{}

I'm a regular LaTeX user, but find that escaping underscores (with 
'\') gets tedious when cutting and pasting multiple file names 
and/or variable names that include them.


With the above option, before_after is left as is, while 
before_{after} has after set as a subscript.  See section 12.2 
of the documentation.


Dan



Parker, Matthew wrote:

Perfect. Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick Dokos
Sent: Thursday, August 14, 2008 9:52 PM
To: Parker, Matthew
Cc: Emacs-orgmode@gnu.org
Subject: Re: [Orgmode] Exporting to HTML - underscores cause unwanted
sub-script 


Parker, Matthew [EMAIL PROTECTED] wrote:



One thing that I'm tripping up on is that I'm trying to list data base


names that have underscores, e.g. prc_tms.


And the 'second word' is coming out subscript: 'prc[tms'] field

I realize this may be a feature and not a bug... but how to turn it


off?


Escape the underscore with a backslash: prc\_tms. Similarly, ^ produces
a superscript whereas \^ produces a caret. And for something completely
different, \alpha produces alpha; which is rendered as the first letter
of the Greek alphabet etc.

This notation is TeX-inspired: Carsten is a scientist, he uses TeX/LaTeX
for papers and he uses org-mode for notes, so it was natural for him to
adopt the notation.

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




___
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 to HTML - underscores cause unwanted sub-script

2008-08-15 Thread Rick Moynihan

Parker, Matthew wrote:

Hi,

The export to HTML is really great 


One thing that I'm tripping up on is that I'm trying to list data base
names that have underscores, e.g. prc_tms. 


And the 'second word' is coming out subscript: 'prctms' field


I had this same problem and tried to find a way to turn it off, but 
noticed that whenever I used underscores I was referring to elements of 
a program, e.g. method_name, variable_name, database_name, or /file/path 
etc...


So my solution was to use the following syntax:

=method_name=

=/file/path=

Surrounding the word in ='s like above causes the font to be exported 
inside an inline code tag, which renders as a fixed width font and 
ensures it's not confused as something else.  It also nicely disables 
the subscripting.


R.


___
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] date marking with (org-diary)

2008-08-15 Thread Ulf Stegemann
Hi all,

I was recently playing around with marking org agenda items in the
calendar using (org-diary) in the diary file. I encountered a problem
already described by Wanrong Lin some time ago (see
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg05839.html).
Unfortunately no answers were given to his original request so here it
comes again:

Including agenda items into the diary with '%%(org-diary ...' is
something I personally find pretty useless as the dates of those items
are not fontified in the calendar. Using '%%(org-diary ...' would be
fine but the entries to use (':scheduled', ':todo' aso) cannot be
limited any further. This not only leads to unacceptable delays while
calendar tries to fontify its buffer but also to a calendar with nearly
everyday marked. My intent was to mark dates with appointments only (I
have scheduled items, todos etc. nearly everyday so there's no need to
mark them). In my case this means that (org-diary) would need to
distinct between different TODO keywords. However, filtering based on
tags or date/time formats would be fine, too.

My question now is: Is there currently any way to achieve such a
filtering with (org-diary)? And if not, are there any plans to enhance
(org-diary) in that direction?

Regards,

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


RE: [Orgmode] Problem with date calculations in a table

2008-08-15 Thread Chris Randle
Nick Dokos wrote:
 I've been trying to make a table with the following structure: column
 1 contains either a date or is empty; column 2 contains a date that's
 calculated from the corresponding date in column 1 (if column 1
 contains a date) or is empty (if column 1 is empty). In the example
 below, column 2 is supposed to be the date 12 hours or 0.5 days after
 the date in column 1 (assuming that it is non-empty). 

I had problems getting date arithmetic to work in tables. I posted my
findings and solutions here:

http://article.gmane.org/gmane.emacs.orgmode/6536/

Don't know if it will fix your problem (too lazy to try!) but I suspect
it will.

-- 
Chris Randle
Org-mode 6.06b - Emacs 22.1.1 - Windows XP



___
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 with date calculations in a table

2008-08-15 Thread Nick Dokos
Chris Randle [EMAIL PROTECTED] wrote:

 Nick Dokos wrote:
  I've been trying to make a table with the following structure: column
  1 contains either a date or is empty; column 2 contains a date that's
  calculated from the corresponding date in column 1 (if column 1
  contains a date) or is empty (if column 1 is empty). In the example
  below, column 2 is supposed to be the date 12 hours or 0.5 days after
  the date in column 1 (assuming that it is non-empty). 
 
 I had problems getting date arithmetic to work in tables. I posted my
 findings and solutions here:
 
 http://article.gmane.org/gmane.emacs.orgmode/6536/
 
 Don't know if it will fix your problem (too lazy to try!) but I suspect
 it will.
 

It did! I don't understand the details yet but the following seems to do
what I want:

| start| ETA (start + 12 hrs)   |
|--+|
| 2008-08-14 Thu 18:15 | 2008-08-15 Fri 06:15 |
|  ||

#+TBLFM: $2=(date($1) ? $1+0.5 : string())

The date in the first column can be just a string as above, a passive
date or an active date (the file is not in the agenda list so I don't
really have to worry about active dates).

Thanks very much,
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] Re: Very slow agenda view

2008-08-15 Thread Jason F. McBrayer
Rainer Stengele [EMAIL PROTECTED] writes:

 takes several seconds on my EmacsW32 3 GHz CPU. After changing the tag
 inheritance setting to nil the view shows in about 1 second! Which is
 good enough!

I have the same behaviour here; I had thought that the slowness was
mainly due to some of my agenda files being on a slow flash drive, but
tag inheritance turns out to be a much bigger factor.  Which is kind of
unfortunate, as some of my searches depended on tag inheritance, but I'm
willing to re-tag some things to get my agenda showing faster.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
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 with date calculations in a table

2008-08-15 Thread Stephan Schmitt

Nick Dokos wrote:

Chris Randle wrote:

I had problems getting date arithmetic to work in tables. I posted my
findings and solutions here:

http://article.gmane.org/gmane.emacs.orgmode/6536/

Don't know if it will fix your problem (too lazy to try!) but I suspect
it will.


It did! I don't understand the details yet but the following seems to do
what I want:

| start| ETA (start + 12 hrs)   |
|--+|
| 2008-08-14 Thu 18:15 | 2008-08-15 Fri 06:15 |
|  ||

#+TBLFM: $2=(date($1) ? $1+0.5 : string())

The date in the first column can be just a string as above, a passive
date or an active date (the file is not in the agenda list so I don't
really have to worry about active dates).

Thanks very much,
Nick




Hi,

I tried it, too, but got the same time (6:15) when adding 
1.0 or 2.0.

how bizarre!


| start| ETA (start + 48 hrs)   |
|--+|
| 2008-08-14 Thu 18:15 | 2008-08-16 Sat 06:15 |
|  ||
#+TBLFM: $2=(date($1) ? $1+2.0 : string())

Greetings,
Stephan


___
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] protecting ascii art

2008-08-15 Thread Scott Otterson
Is there a way to protect text regions from org mode parsing?  When I 
paste the following under an org mode headline:


  +---+  +-- future x
  ++  |predict|  |   +---+
 x --|TDL +--|   x   |--+--|   |
  ++  +---+  |predict|-- future y
 |   |
  ++ |   y   |
 y --|TDL +|   |
  ++ +---+

org mode scrambles it.  If I precede each line with a ':', org mode 
still scrambles it, but less so.


Thanks,

Scott



___
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] protecting ascii art

2008-08-15 Thread Eddward DeVilla
I think that's a bug.  prefixing the lines with : ought to do it.  It
prevents the | character from becoming tables, but it's not preventing
the + from creating strike throughs.  I would think that #+BEGIN_QUOTE
ought to work too, but it doesn't.  That maybe for export only.

Edd

On Fri, Aug 15, 2008 at 4:54 PM, Scott Otterson [EMAIL PROTECTED] wrote:
 Is there a way to protect text regions from org mode parsing?  When I paste
 the following under an org mode headline:

  +---+  +-- future x
  ++  |predict|  |   +---+
 x --|TDL +--|   x   |--+--|   |
  ++  +---+  |predict|-- future y
 |   |
  ++ |   y   |
 y --|TDL +|   |
  ++ +---+

 org mode scrambles it.  If I precede each line with a ':', org mode still
 scrambles it, but less so.

 Thanks,

 Scott



 ___
 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] org-refile gets the level wrong

2008-08-15 Thread Trey Jackson
All,

Just started using org (6.06b).

I've got .emacs customization:
(setq org-log-done t)
(setq org-directory ~/org/)
(setq org-agenda-files (list ~/org/orgTutorial.org))
(setq org-default-notes-file ~/org/orgTutorial.org)
(setq org-return-follows-link t)
(setq org-blank-before-new-entry '((heading . t)
   (plain-list-item . nil)))


And I've got a file that looks like this:
,
| #+STARTUP: showstars
| #+STARTUP: hidestars
| #+STARTUP: odd
| #+STARTUP: oddeven
| 
| * first header 
| 
| * second header
| *** TODO thing to refile
`

On the 'TODO' item I run M-x org-refile
and when prompted enter 'first header'

After refiling it looks like:

,
| * first header 
| ** TODO thing to refile
| 
| * second header
`

Note there are only two asterisks.  Is this expected behavior?  Or a bug?


thanks,



TJ

-- 
Trey Jackson
[EMAIL PROTECTED]

Rule number one: don't inhale water.
-- Daniel Russell


___
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