[Orgmode] Two questions about latex export

2009-04-27 Thread Robert Goldman
1.  I am making a table of conditional probabilities.  This means the
table headers look like this: p(e|\omega), for example.  The vbar in the
header confuses orgmode.  It thinks that's a column-delimiter.  Adding a
prefix \ does not help.  Is there a work around?  For the moment I put
\newcommand{\vbar}{|} in a latex block and use \vbar in place of |.
Works, but makes the table a little less readable than I'd like.

more importantly:

2.  I put an eqnarray* environment in my org file.  The equation breaks
across multiple lines so it looks like this:

\begin{eqnarray*}

x = blah blah blah \\
  = blah blah blah \\
= blah blah blah \\
\end{eqnarray*}

org-mode quotes (backslashes) the = so they don't get interpreted
correctly.  Is there something I can do to keep that from happening?

thanks!
Robert


___
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: More convenient methods for creating appointments?

2009-04-27 Thread Eric S Fraga
Matthew Lundin m...@imapmail.org writes:

 Glad I could be of help. Yes, the timestamp shortcuts are indeed very
 nice. Once again, a great big thank you to Carsten for another hidden
 wonder of org-mode!

And I second this vote of thanks!  It's these little bits of org-mode
that make for such an appealing package.  I don't think I've ever had
the date recognition system get the date wrong (i.e. end up with a date
I did not intend).



___
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: Idea for agenda notifications

2009-04-27 Thread Eric S Fraga
Marcelo de Moraes Serpa celose...@gmail.com writes:

 Awesome! This idea could be extended to add other kind of events, like
 send emails, SMS, play some audio file, whatever (turn org-mode in a
 kind of PIM server too.. hmm, lots of cool ideas come to my mind). I
 still prefer using the gnome-notifier but it shouldn't be hard to
 adapt it for that.

 Well -- the first thing I need to do though is to master elisp :)

I use a similar mechanism based on osd (on screen display) which doesn't
pop up windows but simply writes text directly onto the display (over
top of anything and everything).  Much less intrusive than a pop-up
window (IMO... YMMV) and is completely window manager agnostic (perfect
for my Asus running X with ratpoison, for instance).

The original code comes from Richard Riley and I believe the code I have
was modified by Nick Dokos?  In any case, the code is below.  My elisp
is not good enough to determine which bits are absolutely necessary,
mind you...  On Debian systems, you would need to install the gnome-osd
package.

Hope this helps!

--- cut here --

(require 'appt)
(defun rgr/xml-escape (s)
  (setq s (replace-regexp-in-string ' apos; 
  (replace-regexp-in-string \ quot;
  (replace-regexp-in-string  amp; 
  (replace-regexp-in-string  lt;
  (replace-regexp-in-string  gt; s)))

(when window-system
  (defun rgr/osd-display (id msg optional delay vattrib hattrib font) 
Display a message msg using OSD. Currently requires gnome-osd-client
(unless vattrib (setq vattrib top))
(unless hattrib (setq hattrib right))
(unless delay (setq delay 5000))
(unless font (setq font Arial 12))
(save-window-excursion
  (shell-command
   (format
gnome-osd-client -f \message id='%s' osd_fake_translucent_bg='off' 
osd_font='%s' animations='on' hide_timeout='%d' osd_vposition='%s' 
osd_halignment='%s'%s/message\
id
font
delay
vattrib
hattrib
(rgr/xml-escape msg)
)
(when window-system

  (setq appt-display-format 'window)
  
  (defun org-osd-display (min-to-app new-time msg)
(rgr/osd-display msg msg -1 center left Verdana 20))
  
  (setq appt-disp-window-function (function org-osd-display))
  
  ;; Run once, activate and schedule refresh
  (run-at-time nil 3600 'org-agenda-to-appt)
  (appt-activate t))

(setq appt-time-msg-list nil)
(org-agenda-to-appt)

(defadvice  org-agenda-redo (after org-agenda-redo-add-appts)
  Pressing `r' on the agenda will also add appointments.
  (progn 
(setq appt-time-msg-list nil)
(org-agenda-to-appt)))

(ad-activate 'org-agenda-redo)



___
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: Sorting org-mode Outlines with xemacs

2009-04-27 Thread Eric S Fraga
Hendrik Radke hendrik.ra...@informatik.uni-oldenburg.de writes:

 Hello,

 first, thank you for this wonderful program that helps me organize my day.

 I am using XEmacs 21.4.21 on a Debian Lenny system, together with
 Org-Mode version 6.25d, which works quite well.

Hi,

I think there was a recent announcement on the org-mode list that emacs
21 is no longer supported?  Isn't emacs 22 available for lenny?
Upgrading your emacs would probably be beneficial in other ways as
well.  Just a thought.

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


[Orgmode] Re: Two questions about latex export

2009-04-27 Thread Robert Goldman
Robert Goldman wrote:
 1.  I am making a table of conditional probabilities.  This means the
 table headers look like this: p(e|\omega), for example.  The vbar in the
 header confuses orgmode.  It thinks that's a column-delimiter.  Adding a
 prefix \ does not help.  Is there a work around?  For the moment I put
 \newcommand{\vbar}{|} in a latex block and use \vbar in place of |.
 Works, but makes the table a little less readable than I'd like.
 
 more importantly:
 
 2.  I put an eqnarray* environment in my org file.  The equation breaks
 across multiple lines so it looks like this:
 
 \begin{eqnarray*}
 
 x = blah blah blah \\
   = blah blah blah \\
 = blah blah blah \\
 \end{eqnarray*}
 
 org-mode quotes (backslashes) the = so they don't get interpreted
 correctly.  Is there something I can do to keep that from happening?

A quick follow up to this one.  The bug does NOT occur if I substitute
eqnarray for eqnarray*.  I believe that this means that the constant
org-latex-entities in org-latex.el needs to be modified to admit the
starred (unnumbered) variants of the latex math operators.

Unfortunately, my simple-minded attempt to butcher in stars has run
aground on the shoals of my ignorance of the combination of emacs-lisp
string escapes, and emacs regexpressions.  Simply adding

\\begin{eqnarray*}

to that list won't work, and even

\\begin{eqnarray\\*}

doesn't seem to do the right thing.  if anyone can put me on the right
track, I'll try to provide a patch.

Thanks!


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

2009-04-27 Thread Manish
  On Sat, Apr 25, 2009 at 2:44 AM, Eraldo Helal wrote:
   Thank you Nick for helping me troubleshoot!
  
   Are you using the upstream org-mode or the one that comes with
   your emacs? In particular, what version?[1]
  
   Org-mode version 6.26trans
  
   And how do you load org-mode from
   your .emacs (including any settings of load-path)?
  
   ; Orgmode
   ; http://orgmode.org
   ; using orgmode-dev requires org-install
   (setq load-path (cons ~/system/elisp/org-mode/lisp load-path))
   (add-to-list 'load-path ~/system/elisp/org-mode/contrib/lisp)
   (require 'org-install)
   (require 'org)
^^
You do not need the last require.

-- 
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


Fwd: [Orgmode] ascii export error

2009-04-27 Thread Eraldo Helal
Okay, thank's.
Unfortunately my main problem is still unsolved. :(

 org-export: Autoloading failed to define function org-export-as-ascii


On Mon, Apr 27, 2009 at 21:00, Manish mailtomanish.sha...@gmail.com wrote:

  On Sat, Apr 25, 2009 at 2:44 AM, Eraldo Helal wrote:
   Thank you Nick for helping me troubleshoot!
  
   Are you using the upstream org-mode or the one that comes with
   your emacs? In particular, what version?[1]
  
   Org-mode version 6.26trans
  
   And how do you load org-mode from
   your .emacs (including any settings of load-path)?
  
   ; Orgmode
   ; http://orgmode.org
   ; using orgmode-dev requires org-install
   (setq load-path (cons ~/system/elisp/org-mode/lisp load-path))
   (add-to-list 'load-path ~/system/elisp/org-mode/contrib/lisp)
   (require 'org-install)
   (require 'org)
 ^^
 You do not need the last require.

 --
 Manish



signature.asc
Description: PGP signature
___
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: Sorting org-mode Outlines with xemacs

2009-04-27 Thread Ian Barton

I think there was a recent announcement on the org-mode list that emacs
21 is no longer supported?  Isn't emacs 22 available for lenny?
Upgrading your emacs would probably be beneficial in other ways as
well.  Just a thought.


Yes, it's available in various flavours:

emacs22 - The GNU Emacs editor
emacs22-gtk - The GNU Emacs editor (with GTK user interface)
emacs22-nox - The GNU Emacs editor (without X support)

Ian.


___
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] How to view tasks with certain Property tag in Agenda view

2009-04-27 Thread Matthew Lundin
Hi Varnit,

Varnit Suri vs...@brocade.com writes:

 So here's my code:

 (setq org-agenda-custom-commands
   '((h Agenda and Home-related tasks
((agenda  ((org-agenda-skip-function
 '(org-agenda-skip-entry-if 'regexp :HOME:

 The only problem I 'm left to solve is, that this skips entries with the
 tag HOME, rather than including them. I 'm only trying a way to do the
 inverse match (ie skip entries that don't match HOME), but I havent been
 able to nail the syntax.

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((h Agenda and Home-related tasks
 ((agenda  ((org-agenda-skip-function
 '(org-agenda-skip-entry-if 'notregexp :HOME:
--8---cut here---end---8---

I think this should do it.

Regards,   
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