Re: [O] Org-toggle-checkbox broken in 7.5?

2011-06-12 Thread Achim Gratz
Wikström, Gustav gustav.wikst...@sogeti.se writes:
 The command C-c C-x C-b has stopped working for me and I quietly blame
 7.5 for it. Anyone who can attest or reject this statement?

I can't do either or both since you don't tell what exactly isn't
working, but there had been extensive changes to the list stuff before
the 7.5 release and there have been fixes and enhancements to it after
that release.  At least one of those fixes involved the toggle boxes (it
had to do with drawers IIRC), so maybe you should try the newest version
of org and see if that fixes your problem.


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Audio/video file playback in org mode

2011-06-12 Thread Christian Moe

Hi,


1. write a few lines into this that would open another buffer,
possibly through capture, starting the relative timer automagically.
2. figure out how to pause the video and the timer simultaneously.


As it happens, I've been sitting on some code to do just that, meaning 
to post it when I got all the bugs out. Which, needless to say, I 
haven't. But I'll clean it up and post to this thread shortly, since 
it's a hot topic.


Yours,
Christian



Re: [O] Literate Programming - Continue a Source Block?

2011-06-12 Thread Achim Gratz
Eric Schulte schulte.e...@gmail.com writes:
 I think append is just as clear as concatenate,

Fair enough, in my mind append needs an existing entity, but I guess
it could be an empty one.

 and collate implies shuffling which is not happening.

Well, I was getting ahead of myself...  I hope you don't mind me harping
on about this.

 I'm wary of adding too much duplicate functionality.  It is already
 possible to organize the tangling of many named code blocks using noweb
 reference expansion (a feature which I've used myself on real projects
 in the past).  This existing method allows for unique block names and
 for arbitrary tangling order.

The examples presented in this thread pointed out one difficulty with
how noweb references currently work, namely that you need to know in
advance all block names for finally tangling them and that when adding
or removing things you need to remember to keep these references current
in potentially many places.

 Simplicity is the only reason that the new name-based appending behavior
 was implemented, simplicity which (in my opinion) is lost when the user
 defines a naming and sorting schema.

My general objection is that since you now require that the names be all
the same, there is no way to distinguish between those blocks anymore.
This will come back to bite you when you then later need to make a
distinction since you'll then have to rework everything to unique names
again.  I consider that sort of simplicity a trap for the unwary.

Splitting between a basename and an index extension would instead allow
for appending with the basename and still getting at individual blocks
using the full name (with the index part).  I've had one specific
use-case in mind where this would be needed.  You'd normally just
concatenate all source blocks (let's assume for the moment that the
index part is separated from the basename by ::)

  source::*

Let's say you have three source blocks and need to point-patch the
second one for this run:

  source::1
  source-patch::2
  source::3

If the three source blocks are all just named source, there's no way
to do this short of changing their names and all the references that use
them.

The index part doesn't have to be numeric, it just needs to be
orderable.  Anyone not using index extensions gets an implicit one by
order of appearance, so that wouldn't require any code duplication and
you can in this case still say

  source

Being able to provide custom naming and sorting schemes could be
deferred to hook functions the user has to provide, as they will indeed
be rarely needed.  So an implementation that keeps current behaviour
would provide an implicit indexer (by order of appearance), an empty
sorter and three selectors (all=append, first last).  Anyone who needs
more than that has to customize those functions, but I suppose the more
common application scenarios will sneak into the baseline sooner or
later.  The move from implicit to explicit indexing should be supported
by providing another hook in the implicit indexer.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Audio/video file playback in org mode

2011-06-12 Thread Michael Brand
Hi Alan and Christian

On Sun, Jun 12, 2011 at 01:55, Alan E. Davis lngn...@gmail.com wrote:
 The main point of this
 was to play videos asynchronously, so I could continue editing, taking notes
 using the relative timer of org-mode.

Thank you for this cool idea.

On Sun, Jun 12, 2011 at 10:23, Christian Moe m...@christianmoe.com wrote:
On Sun, Jun 12, 2011 at 01:55, Alan E. Davis lngn...@gmail.com wrote:
 Two more things would make this process work better, at least for me:

1. write a few lines into this that would open another buffer,
 possibly through capture, starting the relative timer automagically.
2. figure out how to pause the video and the timer simultaneously.

 As it happens, I've been sitting on some code to do just that, meaning to
 post it when I got all the bugs out. Which, needless to say, I haven't. But
 I'll clean it up and post to this thread shortly, since it's a hot topic.

Only as a collection of ideas: Even better if the Org relative timer
would not start/stop by user interaction and count the time on its own
but if the Org relative timer in this case would only just be
replaced by reading the current play time from the media player
through the same mechanisms that already update the current play time
for display in Emacs. Then the note taking time would also stay in
sync with fast forward and rewind. Useful e. g. when searching a
certain time in a paused audio file that loops in place. And if the
point in the note taking buffer would even move up and down - when
enabled - when an already taken note is passed by time from fast
forward or rewind this would be neat.

Michael



Re: [O] MobileOrg Android

2011-06-12 Thread Tassilo Horn
Nathan Neff nathan.n...@gmail.com writes:

Hi Nate,

 I just joined the 21st century and got a smart phone.

Me, too. :-)

 I downloaded the MobileOrg for Android application, and have some
 questions, most of them are probably dumb, because I have only played
 with the phone for a bit.

 1) Is there documentation regarding the various setups/syncing modes?

Read (info (org)MobileOrg).  First, I also thought that I simply put
my original org files on the phone and that's it.  Well, not true. ;-)

Bye,
Tassilo

BTW: I can recommend k-9 mail as a pretty good (and free as in freedom)
email app.




Re: [O] Documentation suggestion re: buffers containing crypted entries

2011-06-12 Thread Dave Abrahams
 I was hit by this last week when I was investigating why my emacs
 initialization was taking so long. Later I found out that org-crypt was the
 culprit, since it added a sit for 5s in order for the user to actually
 see this warning.

 The problem is that org-crypt tests the value of the auto-save-default
 variable during loading time. This reflects the default behavior and not
 the actual auto-save status of the current buffer.

 Maybe a variable to disable this warning could be introduced so that the
 user could disable it after understanding the problem.

Oh, yes please!  I'm finding the delays introduced by this problem
almost intolerable.  Call me picky but I've gone to great lengths to
make emacs very responsive and this sit-for really interferes!

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




[O] [Feature Functionality Question]

2011-06-12 Thread Matthew Sauer
I am using a file variable to invoke Longlines mode for a particular
file that I am using for editing college papers (it's an experiment to
help me get formats of papers a certain way).

The structure is and under visual wrap it looks like this folded:

* Assignments. . .
* Class Calendar . . .
* Notes . . .
* Papers . .

When I add the file variable to invoke Longlines it does the following:

* Assignments¶
. . .¶
* Class Calendar ¶
. . . ¶
* Notes ¶
. . .¶
* Papers ¶
. . .¶


I think what it is doing is seeing the Hard line at the end of the
headline and putting the . . .  to show a folded headline on the next
line and then the final ¶ after the . . .  is the one at the end of
the underlying data that is folded up?

Anyone know of something I am missing to get it to look more like:
*Assignments . . . ¶
* Class Calendar . . .¶
* Notes . . . ¶
* Papers . . .¶

It is somewhat an aesthetics issue but I didn't know if I am missing a
switch in fill, longlines or file structure that I can play with to
get a prettier look for the file?

Matthew


Engl102.org
Description: Binary data


[O] #+begin_example broken when #+begin_src included inside?

2011-06-12 Thread Erik Iverson

Hello,

Can anyone confirm the following:

Export the following org-mode markup to, say, latex

* a headline
here's an example of a code block ...
#+BEGIN_EXAMPLE
#+BEGIN_SRC language header arguments
code
#+END_SRC
#END_EXAMPLE


I get (only relevant portion included):

\section{a headline}
\label{sec-1}

here's an example of a code block \ldots{}
\lstset{language=language}
\begin{lstlisting}
code
\end{lstlisting}


So, somehow the begin_src block is getting interpreted as such even though it's 
in a begin_example block...I of course want the whole of the text inside the 
example to simply be in the output verbatim. Did a bug creep in perhaps?


Thanks!

--erik



Re: [O] org-bbdb-anniversaries gives error 'bad sexp'

2011-06-12 Thread Philipp Haselwarter
On 2011-05-16 14:08 UT, Matt Lundin m...@imapmail.org wrote:

ML Leo sdl@gmail.com writes:

 On 2011-05-16 00:58 +0800, Matt Lundin wrote:
 I'd be happy to take this on.AFAICT, there are three functions in
 org-bbdb that no longer exist in bbdb v3.
 
 If you want you can build on top of my version.The anniversaries is
 still broken since I don't use BBDB-anniv.el.The rest works well for
 the past few weeks.

ML Thanks Leo!This is very helpful.

ML I have anniversaries working in my own setup, so between the two
ML sets of modifications, I should be able to provide a full set of
ML fixes.More soon...

ML Best, Matt

Hi Matt,

Would you mind sharing the working bits of your setup?
I just tried %%(org-bbdb-anniversaries) and got a
Bad sexp at line […]

thanks for the effort!

-- 
Philipp Haselwarter




Re: [O] #+begin_example broken when #+begin_src included inside?

2011-06-12 Thread Nick Dokos
Erik Iverson er...@ccbr.umn.edu wrote:


 Can anyone confirm the following:
 
 Export the following org-mode markup to, say, latex
 
 * a headline
 here's an example of a code block ...
 #+BEGIN_EXAMPLE
 #+BEGIN_SRC language header arguments
 code
 #+END_SRC
 #END_EXAMPLE
 
 
 I get (only relevant portion included):
 
 \section{a headline}
 \label{sec-1}
 
 here's an example of a code block \ldots{}
 \lstset{language=language}
 \begin{lstlisting}
 code
 \end{lstlisting}
 
 
 So, somehow the begin_src block is getting interpreted as such even
 though it's in a begin_example block...I of course want the whole of
 the text inside the example to simply be in the output verbatim. Did a
 bug creep in perhaps?
 

I can certainly confirm that: I reported it a week ago - see

http://thread.gmane.org/gmane.emacs.orgmode/42546

Nick







Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread suvayu ali
On Fri, Jun 10, 2011 at 3:31 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

  They should certainly be documented as hacks on Worg, but I'm not
  sure they should be documented in the manual. Of course, it may
  happen that a really good hack (by some definition of really
  good) should be elevated to a standard and documented in the
  manual, but IMO this one does not qualify. /soapbox
 

 Along with the revisions for the manual, I will document my hack on
 Worg.

 I made an account with repo.or.cz. I will soon push the changes
 documenting the hack on Worg.

Here is the documentation on Worg. Comments are welcome.

http://orgmode.org/worg/org-hacks.html#sec-1_6_1

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread Nick Dokos
Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 Hello everyone,
 
 On Wed, 1 Jun 2011 12:08:25 -0700
 Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
  On Wed, 01 Jun 2011 14:50:34 -0400
  Nick Dokos nicholas.do...@hp.com wrote:
  
   soapbox I've tried to keep a neutral tone in (most of) the rest of
   the mail, but I have to say that I think clever hacks like this are
   too clever for their own good - they are at best an accident of
   implementation. The fact that the trick uses the placement option in
   order to change the font testifies to that.
  
  After the very clear description above, I agree 100%. I will remove my
  addition to the manual and instead try to improve the #+ATTR_LaTeX:
  documentation based on your code commentary. At the moment I am
  facing a very important deadline for the 8th of June, I will submit a
  revised patch after that.
  
 
 I have attached a patch removing the hack from the manual and making
 some other small improvements to the latex export of images. However I
 did leave in one sentence regarding the placement option which alludes
 that a hack is possible.
 
 Please let me know if this is an improvement.
 
   They should certainly be documented as hacks on Worg, but I'm not
   sure they should be documented in the manual. Of course, it may
   happen that a really good hack (by some definition of really
   good) should be elevated to a standard and documented in the
   manual, but IMO this one does not qualify. /soapbox
   
  
  Along with the revisions for the manual, I will document my hack on
  Worg.
 
 I made an account with repo.or.cz. I will soon push the changes
 documenting the hack on Worg.
 
 -- 
 Suvayu
 
 Open source is the future. It sets us free.
 From 7f66dba736136fc1a2ee8e2d4fbce47e07db3ca6 Mon Sep 17 00:00:00 2001
 From: Suvayu Ali (ThinkPad) fatkasuvayu+li...@gmail.com
 Date: Fri, 10 Jun 2011 14:57:48 -0700
 Subject: [PATCH] Improve Images in LaTeX export documentation
 
 * Mention use of keywords like multicolumn and float
 * Remove previous mention of hack with placement option
   as per comments on the mailing list. Hack better
   suited for Worg.
 ---
  doc/org.texi |   30 --
  1 files changed, 12 insertions(+), 18 deletions(-)
 
 diff --git a/doc/org.texi b/doc/org.texi
 index 92343de..c98bd53 100644
 --- a/doc/org.texi
 +++ b/doc/org.texi
 @@ -10207,24 +10207,14 @@ output file resulting from @LaTeX{} processing.  
 Org will use an
  @code{\includegraphics} macro to insert the image.  If you have specified a
  caption and/or a label as described in @ref{Images and tables}, the figure
  will be wrapped into a @code{figure} environment and thus become a floating
 -element.  You can use an @code{#+ATTR_LaTeX:} line to specify the various
 -options that can be used in the optional argument of the
 -@code{\includegraphics} macro.  To modify the placement option of the
 -@code{figure} environment, add something like @samp{placement=[h!]} to the
 -Attributes. It is to be noted this option can be used with tables as well.
 -The options are passed as the placement option to floating environments like
 -@code{figure} or @code{table}. One can pass other compatible options as well.
 -For example the @code{#+ATTR_LaTeX:} line below is exported as the
 -@code{figure} environment below it.
 -
 -@cindex #+ATTR_LaTeX
 -@example
 -#+ATTR_LaTeX: placement=[options]\footnotesize
 -
 -\begin@{figure@}[options]\footnotesize
 -...
 -\end@{figure@}
 -@end example
 +element.  You can use an @code{#+ATTR_LaTeX:} line to specify various other
 +options.  You can ask org to export an image as a float without specifying
 +a label or a caption by using the keyword @code{float} in this line.  Various
 +optional arguments to the @code{\includegraphics} macro can also be specified
 +in this fashion.  To modify the placement option of the floating environment,
 +add something like @samp{placement=[h!]} to the attributes.  It is to be 
 noted
 +this option can be used with tables as well.  One can also pass other
 +compatible options.
  

The question here is: what does compatible mean? Compatible with what?
Now that you added the hack to Worg, it might be better to say: 

One can also take advantage of this option to pass other, unrelated options
into the figure or table environment (see
[[http://orgmode.org/worg/org-hacks.html#sec-1_6_1][here]] for an example.)

or something like that.


  If you would like to let text flow around the image, add the word @samp{wrap}
  to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the left
 @@ -10246,6 +10236,10 @@ for @code{\includegraphics} and @code{wrapfigure}.
  [[./img/hst.png]]
  @end example
  
 +If you wish to include an image which spans multiple columns in a page,
 +you can use the keyword @code{multicolumn} in the @code{#+ATTR_LaTeX}
 +line. This will export the image wrapped in a @code{figure*} environment.
 +
  If you need references to a label created in this way, write
  

[O] [PATCH] Improve Images in LaTeX export documentation

2011-06-12 Thread Suvayu Ali
Hi,

As per discussion and comments in this thread,

http://thread.gmane.org/gmane.emacs.orgmode/42196/focus=42775

I wrote this patch.

-- 
Suvayu

Open source is the future. It sets us free.
From 779294ea8da5bd3ac45a7eaaf966d5617e9a3854 Mon Sep 17 00:00:00 2001
From: Suvayu Ali (ThinkPad) fatkasuvayu+li...@gmail.com
Date: Fri, 10 Jun 2011 14:57:48 -0700
Subject: [PATCH] Improve Images in LaTeX export documentation

* Mention use of keywords like multicolumn and float
* Remove previous mention of hack with placement option
  as per comments on the mailing list. Hack better
  suited for Worg.
---
 doc/org.texi |   34 --
 1 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 92343de..61a17ca 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -10207,24 +10207,18 @@ output file resulting from @LaTeX{} processing.  Org will use an
 @code{\includegraphics} macro to insert the image.  If you have specified a
 caption and/or a label as described in @ref{Images and tables}, the figure
 will be wrapped into a @code{figure} environment and thus become a floating
-element.  You can use an @code{#+ATTR_LaTeX:} line to specify the various
-options that can be used in the optional argument of the
-@code{\includegraphics} macro.  To modify the placement option of the
-@code{figure} environment, add something like @samp{placement=[h!]} to the
-Attributes. It is to be noted this option can be used with tables as well.
-The options are passed as the placement option to floating environments like
-@code{figure} or @code{table}. One can pass other compatible options as well.
-For example the @code{#+ATTR_LaTeX:} line below is exported as the
-@code{figure} environment below it.
-
-@cindex #+ATTR_LaTeX
-@example
-#+ATTR_LaTeX: placement=[options]\footnotesize
-
-\begin@{figure@}[options]\footnotesize
-...
-\end@{figure@}
-@end example
+element.  You can use an @code{#+ATTR_LaTeX:} line to specify various other
+options.  You can ask org to export an image as a float without specifying
+a label or a caption by using the keyword @code{float} in this line.  Various
+optional arguments to the @code{\includegraphics} macro can also be specified
+in this fashion.  To modify the placement option of the floating environment,
+add something like @samp{placement=[h!]} to the attributes.  It is to be noted
+this option can be used with tables as well@footnote{One can also take
+advantage of this option to pass other, unrelated options into the figure or
+table environment.  For an example see the section ``Exporting org files'' in
+@url{http://orgmode.org/worg/org-hacks.html}}.  For example the
+@code{#+ATTR_LaTeX:} line below is exported as the @code{figure} environment
+below it.
 
 If you would like to let text flow around the image, add the word @samp{wrap}
 to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the left
@@ -10246,6 +10240,10 @@ for @code{\includegraphics} and @code{wrapfigure}.
 [[./img/hst.png]]
 @end example
 
+If you wish to include an image which spans multiple columns in a page,
+you can use the keyword @code{multicolumn} in the @code{#+ATTR_LaTeX}
+line. This will export the image wrapped in a @code{figure*} environment.
+
 If you need references to a label created in this way, write
 @samp{\ref@{fig:SED-HR4049@}} just like in @LaTeX{}.
 
-- 
1.7.4.4



Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread Suvayu Ali
Hi Nick,

On Sun, 12 Jun 2011 21:52:51 -0400
Nick Dokos nicholas.do...@hp.com wrote:

 The question here is: what does compatible mean? Compatible with
 what? Now that you added the hack to Worg, it might be better to say: 
 
 One can also take advantage of this option to pass other, unrelated
 options into the figure or table environment (see
 [[http://orgmode.org/worg/org-hacks.html#sec-1_6_1][here]] for an
 example.)
 
 or something like that.

Thanks for the comment.

I modified the patch as per your suggestion. For the link however,
instead of a direct link to the section I linked to the org hacks page
and named the section, just in case the section ordering changes in
the future for some reason.

Here is my submission:
http://thread.gmane.org/gmane.emacs.orgmode/42776

:)

-- 
Suvayu

Open source is the future. It sets us free.



[O] installing the OpenDocumentText Exporter

2011-06-12 Thread Julian Burgos
Apologies for the basic question.  I need some help installing the
OpenDocumentText Exporter using the ELPA (package manager).  I´ve
added the org-odt repository by adding this to my .emacs file:

(setq package-archives '((ELPA . http://tromey.com/elpa/;)
 (gnu . http://elpa.gnu.org/packages/;)
  (org-odt .
http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)
 ))

but the OpenDocumentText Exporter does not show up in the list of
available packages.  What I am missing?

Many thanks,

Julian


-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu



Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread Nick Dokos
Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 Hi Nick,
 
 On Sun, 12 Jun 2011 21:52:51 -0400
 Nick Dokos nicholas.do...@hp.com wrote:
 
  The question here is: what does compatible mean? Compatible with
  what? Now that you added the hack to Worg, it might be better to say: 
  
  One can also take advantage of this option to pass other, unrelated
  options into the figure or table environment (see
  [[http://orgmode.org/worg/org-hacks.html#sec-1_6_1][here]] for an
  example.)
  
  or something like that.
 
 Thanks for the comment.
 
 I modified the patch as per your suggestion. For the link however,
 instead of a direct link to the section I linked to the org hacks page
 and named the section, just in case the section ordering changes in
 the future for some reason.
 
 Here is my submission:
 http://thread.gmane.org/gmane.emacs.orgmode/42776
 
 :)
 

Looks good to me.

Thanks,
Nick




Re: [O] installing the OpenDocumentText Exporter

2011-06-12 Thread Jambunathan K
Julian Burgos jmbur...@uw.edu writes:

 Apologies for the basic question.  I need some help installing the
 OpenDocumentText Exporter using the ELPA (package manager).  I´ve
 added the org-odt repository by adding this to my .emacs file:

 (setq package-archives '((ELPA . http://tromey.com/elpa/;)
  (gnu . http://elpa.gnu.org/packages/;)
 (org-odt .
 http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)
))
   
 but the OpenDocumentText Exporter does not show up in the list of
 available packages.  What I am missing?

I am not sure what the problem could be at your end. Does the
archive-contents get downloaded succesfully? Are you able to see
packages from the other repos?

Does the package manager report any problems in the *Messages* buffer. 

I ran M-x list-packages with the settings that you have. I see that
archive-contents file is getting succesfully downloaded.

I see the following line in the *Packages* buffer. 

--8---cut here---start-8---
  org-odt20110519 available  OpenDocumentText exporter for 
Orgmode
--8---cut here---end---8---

I see following lines in the *Messages* buffer:

--8---cut here---start-8---
Contacting host: tromey.com:80
Reading [text/plain]... 11k of 11k (100%)
Reading... done.
Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/ELPA/archive-contents...
Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/ELPA/archive-contents

Contacting host: elpa.gnu.org:80
Reading [text/plain]... 738 bytes of 726 bytes (102%)
Reading... done.
Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/gnu/archive-contents...
Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/gnu/archive-contents

Contacting host: repo.or.cz:80 
Saving file c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/org-odt/archive-contents...
Wrote c:/Documents and Settings/kjambunathan/My Documents/My 
Data/.emacs.d/elpa/archives/org-odt/archive-contents
--8---cut here---end---8---




 Many thanks,

 Julian

-- 



Re: [O] org-bbdb-anniversaries gives error 'bad sexp'

2011-06-12 Thread Nick Dokos
Philipp Haselwarter philipp.haselwar...@gmx.de wrote:

 On 2011-05-16 14:08 UT, Matt Lundin m...@imapmail.org wrote:
 
 ML Leo sdl@gmail.com writes:
 
  On 2011-05-16 00:58 +0800, Matt Lundin wrote:
  I'd be happy to take this on.AFAICT, there are three functions in
  org-bbdb that no longer exist in bbdb v3.
  
  If you want you can build on top of my version.The anniversaries is
  still broken since I don't use BBDB-anniv.el.The rest works well for
  the past few weeks.
 
 ML Thanks Leo!This is very helpful.
 
 ML I have anniversaries working in my own setup, so between the two
 ML sets of modifications, I should be able to provide a full set of
 ML fixes.More soon...
 
 ML Best, Matt
 
 Hi Matt,
 
 Would you mind sharing the working bits of your setup?
 I just tried %%(org-bbdb-anniversaries) and got a
 Bad sexp at line […]
 
 thanks for the effort!
 

I haven't tried bbdb-3.0 yet - I'm still on bbdb-2.36 devo,
so I can't help with 3.0 problems. But if you want to debug
it a bit, then the following method should give you some idea
of what's going wrong.

Switch to the *scratch* buffer and evaluate the following:

(setq debug-on-error t)
(setq date '(6 13 2011))   ; you can set the date to different things
   ; in order to pick up different anniversaries etc.
(org-bbdb-anniversaries)

I hope this gives you a backtrace but it may be that the error is caught
(in order to produce the Bad diary sexp at ... message) and I'm not
sure whether a backtrace is produced in this case, but it's still worth
trying I think.  In any case, check the *Messages* buffer as well.

HTH,
Nick





Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread Suvayu Ali
Hi Nick and Tom,

On Mon, 13 Jun 2011 00:27:31 -0400
Nick Dokos nicholas.do...@hp.com wrote:

 Thomas S. Dye t...@tsdye.com wrote:
 
  Nick's got a good editorial eye: compatible options is probably
  not correct.  In the example on Worg hacks, \footnotesize is not an
  optional argument to the \table environment, it is a LaTeX command
  whose scope is determined by the \table environment within which it
  is issued.  So, instead of One can also pass other compatible
  options it would be good to say One can also pass LaTeX commands
  into the \table environment or something along those lines.
  
  The entry in Worg hacks looks good to me.  Thanks for taking care of
  this, Suvayu.
  
  Many thanks to Nick and Suvayu for figuring out how to get inside
  the table environment from Org-mode.  I can't remember how many
  times I tried and failed to figure this out on my own ...
  
 
 Now that the Worg entry exists, I'd like to expand it a bit to add
 essentially what Tom mentions in his first paragraph and also to add a
 pointer to the other solution of this problem.
 

I have modified the Worg entry like this

*** Specifying LaTeX commands to floating environments

The keyword ~placement~ can be used to specify placement options to
floating environments (like =\begin{figure}= and =\begin{table}=}) in
LaTeX export. Org passes along everything passed in options as long as
there are no spaces. One can take advantage of this to pass other
LaTeX commands limited within the scope of the floating environment.

For example one can set the fontsize of a table different from the
rest of the document by putting something like =\footnotesize= right
after the placement options. During LaTeX export using the
~#+ATTR_LaTeX:~ line below:

#+begin_src org
  ,#+ATTR_LaTeX: placement=[options]\footnotesize
#+end_src

exports the associated floating environment as shown in the following
block.

#+begin_src latex
\begin{table}[options]\footnotesize
...
\end{table}
#+end_src

If both of you agree and there is no important detail or subtlety
missing, I will commit this to Worg.

 Suvauy, is that OK with you? Or would you rather I created a
 separate hack?
 

Worg is a community resource. I would definitely be okay with and
encourage others improving upon whatever I contribute. :)

 Nick
 


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Passing font size to exported LaTeX table

2011-06-12 Thread Nick Dokos
Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 Hi Nick and Tom,
 
 On Mon, 13 Jun 2011 00:27:31 -0400
 Nick Dokos nicholas.do...@hp.com wrote:
 
  Thomas S. Dye t...@tsdye.com wrote:
  
   Nick's got a good editorial eye: compatible options is probably
   not correct.  In the example on Worg hacks, \footnotesize is not an
   optional argument to the \table environment, it is a LaTeX command
   whose scope is determined by the \table environment within which it
   is issued.  So, instead of One can also pass other compatible
   options it would be good to say One can also pass LaTeX commands
   into the \table environment or something along those lines.
   
   The entry in Worg hacks looks good to me.  Thanks for taking care of
   this, Suvayu.
   
   Many thanks to Nick and Suvayu for figuring out how to get inside
   the table environment from Org-mode.  I can't remember how many
   times I tried and failed to figure this out on my own ...
   
  
  Now that the Worg entry exists, I'd like to expand it a bit to add
  essentially what Tom mentions in his first paragraph and also to add a
  pointer to the other solution of this problem.
  
 
 I have modified the Worg entry like this
 
 *** Specifying LaTeX commands to floating environments
 
 The keyword ~placement~ can be used to specify placement options to
 floating environments (like =\begin{figure}= and =\begin{table}=}) in
 LaTeX export. Org passes along everything passed in options as long as
 there are no spaces. One can take advantage of this to pass other
 LaTeX commands limited within the scope of the floating environment.
 

I'd rewrite this last line slightly - the scope belongs to the command and
the environment withing which the command is placed, limits the scope of the
command:

...LaTeX commands and have their scope limited to the floating environment.

 For example one can set the fontsize of a table different from the
 rest of the document by putting something like =\footnotesize= right

This is not quite right: the fontsize in the table is by default set to
normal size, but the rest of the document does not have to be normal
size. I suggest

...For example one can set the fontsize of a table different from the
default normal size by putting something like =\footnotesize= right...

 after the placement options. During LaTeX export using the
 ~#+ATTR_LaTeX:~ line below:
 
 #+begin_src org
   ,#+ATTR_LaTeX: placement=[options]\footnotesize
 #+end_src
 
 exports the associated floating environment as shown in the following
 block.
 
 #+begin_src latex
 \begin{table}[options]\footnotesize
 ...
 \end{table}
 #+end_src
 
 If both of you agree and there is no important detail or subtlety
 missing, I will commit this to Worg.
 

Otherwise, looks good.

  Suvauy, is that OK with you? Or would you rather I created a
  separate hack?
  
 
 Worg is a community resource. I would definitely be okay with and
 encourage others improving upon whatever I contribute. :)
 

But common courtesy dictates that I should at least ask :-) In any case,
I'm planning to post to the ML for review whatever changes I come up
with.

Thanks,
Nick