Re: [Orgmode] Search files in a folder

2010-09-12 Thread Eric S Fraga
On Mon, 13 Sep 2010 04:11:48 +0900, 노정태  wrote:
> 
> [1  ]
> [1.1  ]
> Hello.
> 
> I want to search org files in my /org folder.
> But I can't find a command to search files wholly.
> C-c a s (org-search-view) does search only with headline.
> I can't search the contents of my org files with just one command.
> 
> Does Org-mode have the function what I'm looking for?

maybe org-mode does not but of course emacs does: M-x grep RET
or M-x occur RET

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] image size in html export

2010-09-13 Thread Eric S Fraga
On Mon, 13 Sep 2010 07:01:24 +0100 (BST), etimecowboy 
 wrote:
> 
> Hi everyone,
> 
> Does anybody know how to set the size of an in-line image when
> exporting html? I know that org can set that when exporting latex
> (with #+ATTR_LaTeX: width=), but could not find a similar way when
> exporting html. Thanks for the help.

The following

: #+attr_html: width="50%"
: [[./image.png]]

for instance, works just fine for me.  This is with up-to-date org.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] problem exporting region from within a read-only file

2010-09-13 Thread Eric S Fraga
Hello,

For standalone org files that are not part of any larger project, I
often use RCS as my revision control system.  RCS will make a file
read-only when you /check in/ changes, waiting for the user to
/check out/ the file explicitly for further changes.  I like the way
this works.

Org, however, doesn't! ;-)

If I have a read-only file, I can export the whole file (say to HTML)
and it works.  If, however, I select a region and try to export that,
org fails with the error message:

: org-export-get-title-from-subtree: Buffer is read-only: #

This appears to be because of this function adding text properties (a
specific one which I don't understand completely) to the text:

: (org-unmodified
:  (add-text-properties (point) (1+ (point-at-eol))
: (list :org-license-to-kill t)))

(in org-exp.el).  It would be nice if export would work with read-only
files but I have no idea where to start in trying to fix this.

Obviously, this bug (feature?) is *not* a show-stopper!

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Mon, 13 Sep 2010 13:46:30 -0400, Matthew Jones  wrote:
> 
> There was one other thing that I forgot to mention... I've re-enabled
> installing this application for Android 1.5 phones, you should be able to
> see it in the Market now.
> 
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net

Thanks Matthew.  I have just tried to download this from the Market
but, after unloading, it then fails to install: "Installation
error. Package was not signed correctly."  I have no further
information other than this was on a Samsung Galaxy Portal which is
running Android 1.5.  Sorry if this is not of much help...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 09:11:07 +0200, Rainer M Krug  wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 14/09/10 02:36, Sebastian Rose wrote:
> > Rainer M Krug  writes:
> >> Hi
> >>
> >> when exporting code blocks to html, strings are exported as yellow
> >> (#00), which is really difficult to read. Is there a possibility to
> >> customize the colors (specifically the one used for strings) used for
> >> the fontification when exporting to html?
> >>
> >> Thanks,
> >>
> >> Rainer
> > 
> > 
> Hi Sebastian,
> 
> > Change the CSS styles for strings using a stylesheet. 
> 
> I must admit, I know nerly nothing about html, and even less about CSS
> stylesheets. So what do I have o do with the code you gave below?
> 
> I found the following statement in the org manual:
> 
> 
> To set the latter variable individually for each file, you can
> use
> #+STYLE: 
> For longer style definitions, you can use several such lines. You could
> also directly write a
>   section in this way, without referring to an external file.
> ###
> 
> As I only want to change the color for .string (right?), I am thinking
> about specifying it in the properties - but
> 
> #+STYLE:  .string {color: #ff4500;}
> 
> failed.
> 
> Any suggestions or CSS stylesheets?

Did you C-c C-c after adding that line so that org setup is reset?  Is
there actually any HTML code in the exported file that has the
sequence

: 

where XXX might be SPAN or DIV?  That is, is there any HTML code that
is actually using the string class?  Maybe try a very small example
and post the html file that results?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] todos without timestamp in agenda

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 08:27:48 +0200, henry atting  wrote:
> 
> When I have some kind of todo items in an *.org file without timestamp they
> do not show up in the agenda. I can start the agenda with the
> appropriate shortcut then only these items are diplayed. 
> But if I am already in org-agenda I have to quit then start again
> with the speacial agenda view.
> Is there a more comfortable way to simply switch the view when in
> org-agenda, or let these todo items show up in the first place (e.g. at
> the bottom of the agenda)?

You don't have to "quit" the current view; simply ask for a new view
by "C-c a X" where X is the particular short-cut.  If you have your
agenda in a separate frame, that frame will be updated.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] image alt text for HTML export

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 19:01:12 +1200, Aidan Gauland  
wrote:
> 
> [1  ]
> [1.1  ]
> Is it possible to set the alt attribute of an image for HTML export?
> If I insert an inline image into an Org buffer like so...
> 
> [[./foo.png]]
> 
> ...and export it to HTML, I get something like this...
> 
> 
> 
> But I want the alt attribute to be "foo" (or something else), not the
> filename.
> 
> I know this is an HTML-specific setting, but I still want the image be
> exported to other formats, so inserting literal HTML (see below) isn't
> really suitable.
> 
> #+HTML: 
> 
> If there is no way to do this, should I file a feature request?

The following works for me:

: #+attr_html: width="50%" alt="This is a test image"
: [[file:image.png]]

(without the : obviously) and with

: Org-mode version 7.01trans (release_7.01h.501.gc19a0)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  wrote:

[...]

> The string
> 
>  .string {color: #ff4500;}
> 
> is in the html file, but it is not used - the color is hardcoded as
> #00:

so this has nothing to do with CSS as style specifications can only
affect specific tags, not hard-coded style information.

The question then becomes one of which particular tool in the chain is
generating hard-coded colours and can that tool be configured to do
this in a different more general manner?

[...]

> plot(
>  res,
>  stages=c(
>"flower",
>"parFlower",
>"gall",
>"midgeAdult",
>"grePod",
>"weavilAdult",
>"seed"
>),
>  plot.type="multiple"
>  )
> 

Which tool generates this pre-formatted code snippet?  I'm not up to
speed on the whole export tool chain for org unfortunately.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:13:12 +0200, Sebastian Rose  
wrote:
> 
> Rainer M Krug  writes:
> > On 14/09/10 10:16, Eric S Fraga wrote:
> >> On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  
> >> wrote:
> >> 
> >> [...]
> >> 
> >>> The string
> >>>
> >>>  .string {color: #ff4500;}
> >>>
> >>> is in the html file, but it is not used - the color is hardcoded as
> >>> #00:
> >> 
> >> so this has nothing to do with CSS as style specifications can only
> >> affect specific tags, not hard-coded style information.
> >
> > Agreed.
> 
> 
> M-x customize-variable RET org-export-htmlize-output-style
> 
> and set it to 'css'
> 
> HTH
> 
>   Sebastian

Thanks Sebastian.  I think that will definitely help the OP.  However,
at least on my system, I believe the variable is actually
org-export-htmlize-output-type (type, not style).

cheers,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:02:46 -0400, Matthew Jones  wrote:
> 
> Hey Eric... did you already have MobileOrg installed on your phone via the
> APK downloaded from my site?  If so, could you uninstall that and then try
> installing the app from the market?
> 
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net

Thanks.  That did the trick, in terms of being able to download and
install.  I've just tried configuring and it gave me a force close
dialogue but let me play some with it to see what is going on...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:58:23 -0400, Matthew Jones  wrote:
> 
> [1  ]
> Hey Eric, if you find some issues please open bugs here:
> http://github.com/matburt/mobileorg-android/issues
> 
> I've found some force closes related to SD Card Synchronization but
> appreciate any bug report you can provide.
> 
> Also, if the app gives you the change to submit a report after a crash then
> please do that... as it will give me a stack trace to work with when trying
> to resolve the problem.

I'd be happy to.  Is there some way to ask the phone to generate the
report?  I've never seen such an option.

Anyway, the first problem was that I had introduced, by mistake, a
space (0x20) in the URL for the source of org files and deleting that
appears to have fixed the force close I had.  Seems to work so far.
I'll play with it over the next few days and will feed back any
problems via the github bugs page.

Thanks!
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Relative dates with sexep

2010-09-17 Thread Eric S Fraga
On Thu, 16 Sep 2010 18:27:18 +0200, julien cubizolles  
wrote:
> 
> I'm trying to specify a date relative to another date in an org file.
> I've tried to adapt one of the examples from worg, with :
> 
>  <%%(= 7 (- (calendar-absolute-from-gregorian date)
> (calendar-absolute-from-gregorian (02 02 2010>
> 
> to get the date one week after the 2nd of february 2010. Bad sexp...

Quote the date: ... '(02 02 2010)
as it is trying to evaluate the function "02" otherwise.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Bug] Level 2 text not exported in LaTeX (well in HTML) + some comments

2010-09-17 Thread Eric S Fraga
On Fri, 17 Sep 2010 15:01:58 +0200, Sébastien Vauban 
 wrote:
> 
> Hi Nicolas,
> 
> --8<---cut here---start->8---
> #+TITLE: Problems in LaTeX with nested list levels
> #+LANGUAGE:  en_US
> 
> * Imaginary example
> 
> We have two steps:
> 
> 1) Ask for it.
> 
> 2) Make it, answering the following questions:
> 
>- Got the docs?
>- Signed them?
>- Checked it?
> 
>THIS LINE DOES NOT SHOW UP in LaTeX!!!

I can confirm this with:

: Org-mode version 7.01trans (release_7.01h.514.g878d)
: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
:  of 2010-08-14 on raven, modified by Debian

it appears the nested lists within an item that is to continue makes
all remaining text within that item disappear.  I actually had this
problem three days ago with a very large document in which whole
sections disappeared but, as it was 3am, I thought it was me doing
something silly.

if the line after the nested list is not indented, it appears in the
exported file albeit not part of the enumerated list.

However, more strange behaviour appears as soon as you have multiple
nested lists.  Consider this org snippet:

--8<---cut here---start->8---
Consider the following list:

1. the first numbered item
   - the first item
   - the second
   - not the fourth

   followed by some paragraph that is indented which disappears on latex export.

   - another nested list but this appears in the outer list
   - as does this!

   and some more text which does appear.

and now something that is not indented.
--8<---cut here---end--->8---

this generates:

--8<---cut here---start->8---
Consider the following list:

\begin{itemize}
\item the first numbered item

\begin{itemize}
\item the first item
\item the second
\item not the fourth
\end{itemize}

\item another nested list but this appears in the outer list
\item as does this

   and some more text which does appear.
\end{itemize}

and now something that is not indented.
--8<---cut here---end--->8---

notice that the outer list is itemize and not enumerate.

> #+begin_src emacs-lisp
> ;; an empty line does not end all plain list levels
> (setq org-empty-line-terminates-plain-lists nil)
> 
> ;; default value
> (setq org-list-ending-method 'both)
> #+end_src

I have these same settings.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Relative dates with sexep

2010-09-18 Thread Eric S Fraga
On Fri, 17 Sep 2010 16:41:55 +0200, julien cubizolles  
wrote:
> 
> Le vendredi 17 septembre 2010 à 09:01 +0100, Eric S Fraga a écrit :
> > On Thu, 16 Sep 2010 18:27:18 +0200, julien cubizolles 
> >  wrote:
> > > 
> > > I'm trying to specify a date relative to another date in an org file.
> > > I've tried to adapt one of the examples from worg, with :
> > > 
> > >  <%%(= 7 (- (calendar-absolute-from-gregorian date)
> > > (calendar-absolute-from-gregorian (02 02 2010>
> > > 
> > > to get the date one week after the 2nd of february 2010. Bad sexp...
> > 
> > Quote the date: ... '(02 02 2010)
> > as it is trying to evaluate the function "02" otherwise.
> 
> I'm trying to make it reusable by defining a function in my .emacs :
> 
> (defun diary-relative (n day)
>   "Diary entry that will always appear N days from day"
>   (=
>(calendar-absolute-from-gregorian date)
>(+ n (calendar-absolute-from-gregorian day
> 
> I try to use it with a sexp like :
> <%%(diary-relative (7 '(09 15 2010)))>
> 
> which doesn't work. I really need to seriously read about lisp
> programming...

Possibly! ;-)

Try <%%(diary-relative 7 '(09 15 2010))>
as the arguments to a function should not be in ()s.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Bug] Level 2 text not exported in LaTeX (well in HTML) + some comments

2010-09-18 Thread Eric S Fraga
On Sat, 18 Sep 2010 20:02:24 +0200, Nicolas Goaziou  wrote:
> 
> Hello,
> 
> >>>>> Eric S Fraga writes:
> 
> > However, more strange behaviour appears as soon as you have multiple
> > nested lists.
> 
> Just to avoid any misconception: if I get it correctly, what you do
> call "multiple nested lists" cannot exist.
> 
> You can have nested lists, but no more than one sub-list at each
> level. As soon as a line is less indented than the preceding item of
> the list, *all* sub-lists end at that line.
> 
> Regards,
> 
> -- Nicolas

So you are saying, if I understand you correctly, that you cannot have
something like this:

--8<---cut here---start->8---
1. some text

   - a nested list
   - with two items

   some more text for the first numbered item

   - another nested list
   - with two items

2. the second outer list item
--8<---cut here---end--->8---

If so, why not?  This would seem to be quite a likely and useful
scenario.  

I do this all the time in latex and I was sure that I had done this
before in org.  Is my recollection wrong?  Was this not possible
before?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Emacs hangs forever when running in batch mode and calling a export org function

2010-09-20 Thread Eric S Fraga
On Sat, 18 Sep 2010 22:59:59 -0500, Marcelo de Moraes Serpa 
 wrote:
> 
> Hello all,
> 
> So, I was trying to create a simple bash script to export my org items
> as iCal, upload it somewhere and subscribe to it from iCal / Google
> Calendar. Here's what I came with:
> 
> emacs --batch --eval \
>  "(progn \
>   (add-to-list 'load-path \"~/.emacs.d/vendor/org/lisp\") \
>   (load-file \"~/.emacs.d/vendor/org/lisp/org.el\")
>   (load-file \"~/.emacs.d/vendor/org/lisp/org-icalendar.el\") \
>  (setq org-combined-agenda-icalendar-file \"~/org/org.ics\") \
>  (setq org-agenda-files (quote (\"~/org/gtd/gtd.org\")))
>  )" \
>  -f org-export-icalendar-combine-agenda-files
> 
> If I run the exact same code on a vanilla emacs, it works. If I try to
> run this command in the shell, I get the following output:
> 
> sh org-ical-export.sh
> Loading /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/org.el (source)...
> Loading subst-ksc...
> Loading subst-gb2312...
> Loading subst-big5...
> Loading subst-jis...
> Loading /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/org-icalendar.el
> (source)...
> 
> And it hangs forever. No error message nothing.
> 
> I've checked the Activity Monitor, and this specific instance of emacs
> quickly starts using ~100% of the CPU. However, I can't really debug
> what's wrong.
> 
> I am on OSX Snow Leopard, GNU Emacs 23.2.1 (x86_64-apple-darwin, NS
> apple-appkit-1038.29) of 2010-05-08, org release_7.01h-524-gcf5f.
> 
> Any ideas?
> 
> Thanks,
> 
> Marcelo.

I use the following within a shell script:

--8<---cut here---start->8---
DIARY=${HOME}/git/notes/diary
emacs -Q --batch --debug-init \
--directory=${HOME}/s/emacs --directory=/usr/share/emacs/site-lisp/auctex \
--load=esf-org.el --visit=${DIARY}.org 
--eval='(org-export-icalendar-this-file)'
scp ${DIARY}.ics SOMEWHERE_ON_THE_INTERNET
--8<---cut here---end--->8---

I have all relevant settings for org in the file esf-org.el and,
because that file makes use of some auctex variables/functions, I have
to specify a load path for auctex.  The debug-init is not necessary
but I just never got around to deleting it...

I am on Debian Linux (testing/unstable) with emacs 23.2.x and
up-to-date org.

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Bug] Level 2 text not exported in LaTeX (well in HTML) + some comments

2010-09-20 Thread Eric S Fraga
On Sun, 19 Sep 2010 11:24:09 +0200, Nicolas Goaziou  wrote:
> 
> >>>>> Eric S Fraga writes:
> 
> > So you are saying, if I understand you correctly, that you cannot
> > have something like this:
> 
> > --8<---cut here---start->8--- 
> > 1. some text
> >- a nested list
> >- with two items
> >some more text for the first numbered item
> >- another nested list - with two items
> > 2. the second outer list item 
> > --8<---cut here---end--->8---
> 
> Exactly.
> 
> > If so, why not? This would seem to be quite a likely and useful
> > scenario.
> 
> It would require a slightly different model with an added depth of
> complexity. To tell the truth, I had looked into this, but hadn't
> found a satisfying (clean) solution.

Okay.

> For example, how should Org handle indentation of such a line, or any
> line within the list? Should it "round" the indentation to the closest
> level of a sub-list? 

Good question!  I don't know the answer to this.

[...]

> Those questions are more rhetorical than anything else. My point is
> just that this kind of scenario, while certainly doable, would need
> more thought, and much more work to implement. Is it _that_ useful?

I think it would be useful but not having it is definitely not a show
stopper!  It has come up as an issue for me recently because I have
been managing the writing of a proposal with contributions from many
authors and some of those authors like having multiple lists within
other lists.  It was when exporting a draft of the whole document that
I realised that I was losing text, but I only noticed this because I
lost a whole section which was several pages long!

I think the key is not necessarily to support multiple sub-lists
within an item but to *ensure* that no text is lost in export.  I can
see at a glance possibly whether text is formatted correctly but I
cannot tell as easily that text has been lost in export.  When working
on a 30+ page document, this is crucial.  

From your previous message, it sounds like you have a fix for the lost
text issue; that would be the main improvement for my usage.

> > I do this all the time in latex and I was sure that I had done this
> > before in org. Is my recollection wrong? Was this not possible
> > before?
> 
> As far as I remember, LaTeX exporter has never been able to parse
> this, though the HTML one did.

That could very well be.

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tips for writing lecture notes in org-beamer?

2010-10-01 Thread Eric S Fraga
On Fri, 24 Sep 2010 14:56:34 +0100, Stephen Eglen  
wrote:
> 
> Dear all,
> 
> Has anyone recently used org-beamer to write lecture notes?  I'm now

[...]

> So far I've found the following two sites useful:
> 
> http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
> 
> http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php
> [In this tutorial.php, the link in footnote 1 is brokenn -- how do I
> download presentation.org?]

Yes, the target of the link has been converted for the web site, which
it shouldn't have.  I am not sure how to get the Worg automatic
publishing mode to not do this...  hopefully somebody else can answer
and/or fix the link in that footnote.

In the meantime, attached is the file =presentation.org=.

HTH,
eric
#+TITLE: Writing Beamer presentations in org-mode
#+AUTHOR:Eric S Fraga
#+EMAIL: e.fr...@ucl.ac.uk
#+DATE:  2010-03-30 Tue
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 

#+startup: oddeven

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [bigger]
#+latex_header: \mode{\usetheme{Madrid}}
#+BEAMER_FRAME_LEVEL: 2

#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) 
%7BEAMER_extra(Extra)

* Introduction
** Overview
- org-mode template
- beamer structure
- beamer settings


* Methodology

** A simple slide
This slide consists of some text with a number of bullet points:
- the first, very @important@, point!
- the previous point shows the use of the special markup which
  translates to the Beamer specific /alert/ command for highlighting
  text.
The above list could be numbered or any other type of list and may
include sub-lists.

** A more complex slide
This slide illustrates the use of Beamer blocks.  The following text,
with its own headline, is displayed in a block:
*** Org mode increases productivity   :B_theorem:
:PROPERTIES:
:BEAMER_env: theorem
:END:
- org mode means not having to remember \LaTeX commands.
- it is based on ascii text which is inherently portable.
- Emacs!

\hfill \(\qed\)

** Two columns

*** A block   :B_ignoreheading:BMCOL:
:PROPERTIES:
:BEAMER_env: ignoreheading
:BEAMER_col: 0.4
:END:
- this slide consists of two columns
- the first (left) column has no heading and consists of text
- the second (right) column has an image and is enclosed in an
  @example@ block

*** A screenshot:BMCOL:B_example:
:PROPERTIES:
:BEAMER_col: 0.6
:BEAMER_env: example
:END:
#+ATTR_LATEX: width=\textwidth
[[file:../../images/org-beamer/a-simple-slide.png]]


* Conclusions

** Summary
   - org is an incredible tool for time management
   - @but@ it is also excellent for writing and for preparing presentations
   - Beamer is a very powerful \LaTeX{} package for presentations
   - the combination is unbeatable!

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tips for writing lecture notes in org-beamer?

2010-10-02 Thread Eric S Fraga
On Fri, 1 Oct 2010 15:35:00 -0500, John Hendy  wrote:
> 
> Eric,
> 
> 
> Per Bastien, you put the file wherever, but you link to the file at
> http://orgmode.org/worg/sources/path/to/file/file.org. For example:

[...]

> Hope that helps,
> John

It does.  Thanks.  I've updated the tutorial on Worg to use a direct
http: link for the footnote entry.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-06 Thread Eric S Fraga
On Wed, 06 Oct 2010 13:30:30 +0200, Sébastien Vauban 
 wrote:
> 
> Hi Rafael and Erik,
> 
> Erik Iverson wrote:
> > Rafael Calsaverini wrote:
> >> Hi there,
> >>
> >> I'm trying to use org-mode to compose latex documents and I'm having a
> >> problem with bibtex. When I export to pdf with C-c C-e p, pdflatex runs and
> >> everything works gracefully with respect to the latex code (the output is
> >> even prettier than I used to have patience to do only with latex), but
> >> bibtex isn't called.
> >
> > I've just now looked into the org-latex.el file, and found:
> >
> > (defcustom org-latex-to-pdf-process
> >   '("pdflatex -interaction nonstopmode -output-directory %o %f"
> > "pdflatex -interaction nonstopmode -output-directory %o %f")
> >   "Commands to process a LaTeX file to a PDF file.
> > [...]
> > Looks like you can just customize that variable, easy!
> 
> FYI, this should be fixed now.
> 
> Best regards,
>   Seb
> 
> -- 
> Sébastien Vauban
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Hello,

between yesterday and today, something changed that no longer allows
me to create PDFs from my org files, causing momentary panic as I
making the final changes to a lecture I had to give this morning --
luckily, latex export worked just fine.  

Reading between the lines, I gather it is the change to
org-latex-to-pdf-process that has caused me problems.  The output I
get when the export takes place is:

,
| /usr/bin/texi2dvi: Processing /home/ucecesf/.../file.tex ...
| egrep: Invalid range end
| /usr/bin/texi2dvi: cannot read .//home/ucecesf/.../file.tex, skipping.
`

The current value of that variable is:

,
| org-latex-to-pdf-process is a variable defined in `org-latex.el'.
| Its value is 
| ("texi2dvi -p -b -c -V %f")
`

I can obviously change back to the setting that was the default before
but I do like the idea of using texi2dvi.  Can anybody suggest what
may be wrong on my system or my configuration?

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [beamer] export a long source block as in several frames

2010-10-06 Thread Eric S Fraga
On Wed, 29 Sep 2010 18:37:50 +0800, zwz  wrote:
> 
> Now I am preparing a presentation using the beamer feature supported by
> org-mode.
> 
> When exporting, I want some long source code (more than one frame can
> contain) to be arranged in several frames rather than partially
> invisible.
> 
> I know there's once a discussion on the support of the frame option
> allowframebreaks, but I am thinking "would it be good to add the option
> by default when exporting for the frame that contains some source code?"

Can I suggest that, as it is so easy to add an option to an individual
frame [1], that it's better for this to be under direct user control?
I don't want framebreaks unless I've asked for them.  In any case, it
would be difficult to ascertain, from the org text directly, whether
the code is actually going to be part of the slide.  E.g. I use a lot
of babel in my slides and, more often than not, I don't export the
code, just the results.

cheers,
eric

Footnotes: 
[1]   key sequence "C-c C-x p envarg TAB [allowframebreaks] RET"
which you could obviously add to a single keystroke, via fset say

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How do I convert org to OpenOffice?

2010-10-06 Thread Eric S Fraga
On Wed, 29 Sep 2010 19:01:26 +0200, Lennart Borgman  
wrote:
> 
> There is a way, isn't there? ;-)

I do this a lot because, unfortunately, most of my collaborators
insist on word processors such as OO and Word.  What works for me
(with structure, emphasis, tables, figures and footnotes) is:

org document
 -> export as HTML (C-c e h)
 -> open in OOo 
 -> select and copy all (C-a C-c)
 -> open new document in OOo (A-f n t [I believe]) 
 -> paste selection (C-v)
 -> save (in my case, often as MS Word)
 -> go and cry because you have to degrade org mode so much ;-)

Most things work okay for me.   I then ask collaborators to track
changes and I incorporate those changes manually (yech -- but there's
no other way yet) into my org document.

I have also customised 

: org-export-html-xml-declaration (quote (("php" . "\"; ?>")))
  
to avoid the problem with OOo not understanding the first line of the
HTML created by org html export.

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-06 Thread Eric S Fraga
I should have added:

,
| org-version: release_7.01h-638-gd9e44
| Org-mode version 7.01trans (release_7.01h.638.gd9e44)
| 
| GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
| 2010-08-14 on raven, modified by Debian
`

Thanks again,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How do I convert org to OpenOffice?

2010-10-07 Thread Eric S Fraga
On Wed, 06 Oct 2010 14:10:30 -0700, Henri-Paul Indiogine  
wrote:
> 
> Hi Eric!
> 
> Eric S Fraga  writes:
> > org document
> >  -> export as HTML (C-c e h)
> >  -> open in OOo 
> >  -> select and copy all (C-a C-c)
> >  -> open new document in OOo (A-f n t [I believe]) 
> >  -> paste selection (C-v)
> >  -> save (in my case, often as MS Word)
> >  -> go and cry because you have to degrade org mode so much ;-)
> 
> 1. export should be "C-c C-e h"

Yes, sorry, typo.

> 2. My BibTeX references are not exported.  Am I missing something or is
> it not possible this way?

Not possible this way.  If you need bibtex then latex2rtf, as
mentioned by others, is what I have used in the past.

> 3. How could I have some sort of version control?  My advisor uses the
> accursed MS Word and that is all he knows.

I am not sure what you are asking.  I use version control (git/hg/rcs)
for all of my org files regardless of whether I export them or not.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Wed, 06 Oct 2010 19:21:33 +0200, Achim Gratz  wrote:
> 
> Hi Eric,
> 
> Eric S Fraga  writes:
> > | /usr/bin/texi2dvi: Processing /home/ucecesf/.../file.tex ...
> > | egrep: Invalid range end
> > | /usr/bin/texi2dvi: cannot read .//home/ucecesf/.../file.tex, skipping.
> 
> Something somewhere tries to make a local path from an absolute one by
> prepending "./", which fails (predictably).  Is the input readable at
> the original path?  Not sure the error message from egrep has to do with
> it or not, but it must be in any case one of the processes started by
> texi2dvi (does not show up on my system, I only have calls to grep when
> I trace it, but one of the sub-processes might still use it).  I think
> texi2dvi also invokes shell scripts, so any funny configuration in the
> environment, especially where path points to, could throw it off.

As far as I know, there is nothing out of the ordinary with my paths
etc (please note that the /.../ above was an edit on my part to hide a
rather long path).  Any hints as to what I can do to explore this
would be most helpful.  How can I get a trace on what texi2dvi is
doing?  (sh -v /usr/bin/texi2dvi?)

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Wed, 6 Oct 2010 18:40:12 +0200, Carsten Dominik  
wrote:
> On Oct 6, 2010, at 5:02 PM, Eric S Fraga wrote:

[...]

> > Reading between the lines, I gather it is the change to
> > org-latex-to-pdf-process that has caused me problems.  The output I
> > get when the export takes place is:
> >
> > ,
> > | /usr/bin/texi2dvi: Processing /home/ucecesf/.../file.tex ...
> > | egrep: Invalid range end
> > | /usr/bin/texi2dvi: cannot read .//home/ucecesf/.../file.tex,
> > skipping.
> > `
> >
> 
> That is bad - I have no idea here.  Maybe a non-standard
> version of egrep?  But I am really guessing here.

Well, I'm running Debian Linux (testing+unstable mix) so it could be
something I (or Debian) have done.  I've got grep-2.6.3-3 installed
which is from Debian testing.

Is there any way to see what egrep is trying to do? 

> Lets see if this affects more people - for the time being you might
> just change the variable to have it make 2-3 pdflatex runs.

Yes, no problem at all.  This is what I did later but exporting to
latex and running pdflatex myself got me through when the crisis
happened!

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Thu, 07 Oct 2010 09:29:59 -0400, Nick Dokos  wrote:
> 
> Eric S Fraga  wrote:
> 
> > On Wed, 06 Oct 2010 19:21:33 +0200, Achim Gratz  wrote:
> > > 
> > > Hi Eric,
> > > 
> > > Eric S Fraga  writes:
> > > > | /usr/bin/texi2dvi: Processing /home/ucecesf/.../file.tex ...
> > > > | egrep: Invalid range end
> > > > | /usr/bin/texi2dvi: cannot read .//home/ucecesf/.../file.tex, skipping.
> > > 
> > > Something somewhere tries to make a local path from an absolute one by
> > > prepending "./", which fails (predictably).  Is the input readable at
> > > the original path?  Not sure the error message from egrep has to do with
> > > it or not, but it must be in any case one of the processes started by
> > > texi2dvi (does not show up on my system, I only have calls to grep when
> > > I trace it, but one of the sub-processes might still use it).  I think
> > > texi2dvi also invokes shell scripts, so any funny configuration in the
> > > environment, especially where path points to, could throw it off.
> > 
> > As far as I know, there is nothing out of the ordinary with my paths
> > etc (please note that the /.../ above was an edit on my part to hide a
> > rather long path).  Any hints as to what I can do to explore this
> > would be most helpful.  How can I get a trace on what texi2dvi is
> > doing?  (sh -v /usr/bin/texi2dvi?)
> > 
> 
> There is an explicit egrep on line 1563 or thereabouts (my version
> says
> 
> # texi2dvi --- produce DVI (or PDF) files from Texinfo (or (La)TeX) sources.
> # $Id: texi2dvi,v 1.104 2007/09/10 00:36:30 karl Exp $
> 
> at the top of the file):
> 
> 
>   # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
>   # prepend `./' in order to avoid that the tools take it as an option.
>   echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
>   || command_line_filename="./$command_line_filename"
> 
> 
> The regular expression seems a bit weird (upper case A to lower case
> z?), but I can't see off the top of my head how it gets tripped up.  For
> tracing, try
> 
>sh -x texi2dvi 
> 
> Nick

Thanks Nick.  If I do this:

: (setq org-latex-to-pdf-process '("sh -x /usr/bin/texi2dvi -p -b -c -V %f"))

the following is a snippet of the output:

,
| + echo /home/ucecesf/s/teaching/cape/lectures/matlab.tex+ egrep ^(/|[A-z]:/)
| egrep: Invalid range end
| + command_line_filename=.//home/ucecesf/s/teaching/cape/lectures/matlab.tex
| + test -r .//home/ucecesf/s/teaching/cape/lectures/matlab.tex
| + error 1 cannot read .//home/ucecesf/s/teaching/cape/lectures/matlab.tex, 
skipping.
`

Because the egrep fails completely, the script assumes that it does
need to prepend "./" to the file name even though the file name
already starts with "/" (and is definitely *not* a DOS type file name
;-).

I don't understand why the egrep is failing although it definitely has
something to do with A-z range; if I try the egrep at the shell and
use "A-Za-z" instead of "A-z", the command works fine.  Does it work
for anybody else on Linux?

I wonder if the problem with the range is locale dependent?  My locale
is en_GB.UTF-8.  The manual page for egrep does indicate that ranges
may not mean the same thing in different locales and suggests using
locale C.  I don't want to change my locale but maybe it could be set
for the invocation of texi2dvi...  (yech).

This is obviously not an org problem as such but I am surprised it's
working for anybody at all...

I guess I'll stick to multiple invocations of pdflatex directly for
the time being.

cheers,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Thu, 07 Oct 2010 10:22:25 -0400, Nick Dokos  wrote:
> 
> Eric S Fraga  wrote:
> 
> > : (setq org-latex-to-pdf-process '("sh -x /usr/bin/texi2dvi -p -b -c -V 
> > %f"))
> > 
> > the following is a snippet of the output:
> > 
> > ,
> > | + echo /home/ucecesf/s/teaching/cape/lectures/matlab.tex+ egrep 
> > ^(/|[A-z]:/)
> > | egrep: Invalid range end
> > | + 
> > command_line_filename=.//home/ucecesf/s/teaching/cape/lectures/matlab.tex
> > | + test -r .//home/ucecesf/s/teaching/cape/lectures/matlab.tex
> > | + error 1 cannot read 
> > .//home/ucecesf/s/teaching/cape/lectures/matlab.tex, skipping.
> > `
> > 
> 
> What's that '+' sign at the end of the path? 

I think that's "sh -x" indicating a | between commands; it's not
actually in the file name.  Mind you, even if it were part of the file
name, things should work (well, maybe not latex itself...).

> > I don't understand why the egrep is failing although it definitely has
> > something to do with A-z range; if I try the egrep at the shell and
> > use "A-Za-z" instead of "A-z", the command works fine.  Does it work
> > for anybody else on Linux?
> > 
> I'm using en_US.UTF-8  on Ubuntu 8.10 and it seems to work for me.

Interesting.

> The regexp does look funny: there are non-letters included in the
> range and it may be that different versions of egrep are more or less
> strict in checking it. I would change the texi2dvi script to use [A-Za-z]
> and submit a bug report to texinfo.

I think I will do so.  The thing is that the check is very much for
DOS file names so I don't actually care what that part of the regex is
doing!

> You can always change the LOCALE just for the texi2dvi invocation.
> I believe that the following works (untested):
> 
> LANG=C texi2dvi 
> 
> or maybe
> 
> LC_ALL=C texi2dvi ...

but this may have unexpected side effects?  I'm not sure if any of the
latex suite use the locale...

Thanks again,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Thu, 07 Oct 2010 10:43:21 +0200, Sébastien Vauban 
 wrote:
> 
> Hi Eric,
> 
> Eric S Fraga wrote:
> > As far as I know, there is nothing out of the ordinary with my paths etc
> > (please note that the /.../ above was an edit on my part to hide a rather
> > long path). Any hints as to what I can do to explore this would be most
> > helpful. How can I get a trace on what texi2dvi is doing? (sh -v
> > /usr/bin/texi2dvi?)
> 
> I tried:
> 
> #+begin_src emacs-lisp
> (setq org-latex-to-pdf-process '("sh -v -x texi2dvi -p -b -c -V %f"))
> #+end_src
> 
> and only see the following in *Messages*:

You can see the full output in the special buffer org creates: 
: *Org PDF LaTeX Output*
All the output from the actual commands, such as the following, is
placed in this buffer.  Very useful for when there are problems with
the latex.

,
| This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
|  restricted \write18 enabled.
| entering extended mode
| (/home/ucecesf/s/teaching/cape/lectures/matlab.tex
| LaTeX2e <2009/09/24>
| Babel  and hyphenation patterns for english, usenglishmax, dumylang, 
noh
| yphenation, loaded.
| (/usr/share/texmf/tex/latex/beamer/base/beamer.cls
| (/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty)
`

This is different from the messages generated by the elisp code which
appear in *Messages*.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-07 Thread Eric S Fraga
On Thu, 07 Oct 2010 10:37:52 -0400, Nick Dokos  wrote:
> 
> Eric S Fraga  wrote:
> 
> > > ... I would change the texi2dvi script to use [A-Za-z]
> > > and submit a bug report to texinfo.
> > 
> > I think I will do so.  The thing is that the check is very much for
> > DOS file names so I don't actually care what that part of the regex is
> > doing!
> > 
> 
> M$ will get you one way or another :-)
> 
> BTW, if you do
> 
>  echo /foo | egrep '^(/|[A-z]:/)'
> 
> do you get the bad range end error message? If so, then your egrep
> is indeed stricter than mine.

I do indeed:

: egrep: Invalid range end.

Very strange.

> > > LC_ALL=C texi2dvi ...
> > 
> > but this may have unexpected side effects?  I'm not sure if any of the
> > latex suite use the locale...
> 
> Yeah, perhaps...

Interestingly, it *is* a locale issue:

: $ echo /foo | LC_ALL=C egrep '^(/|[A-z]:/)'
: /foo

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-08 Thread Eric S Fraga
On Thu, 07 Oct 2010 16:11:32 -0400, Nick Dokos  wrote:
> 
> Eric S Fraga  wrote:
> 
> > >  echo /foo | egrep '^(/|[A-z]:/)'
> > > 
> > > do you get the bad range end error message? If so, then your egrep
> > > is indeed stricter than mine.
> > 
> > I do indeed:
> > 
> > : egrep: Invalid range end.
> > 
> > Very strange.
> > 
> > > > > LC_ALL=C texi2dvi ...
> > > > 
> > > > but this may have unexpected side effects?  I'm not sure if any of the
> > > > latex suite use the locale...
> > > 
> > > Yeah, perhaps...
> > 
> > Interestingly, it *is* a locale issue:
> > 
> > : $ echo /foo | LC_ALL=C egrep '^(/|[A-z]:/)'
> > : /foo
> > 
> 
> Yup: the egrep man page says
> 
> ,
> | Within a bracket expression, a range expression consists of two
> | characters separated by a hyphen.  It matches any single character that
> | sorts between the two characters, inclusive, using the locale’s
> | collating sequence and character set.  For example, in the default C
> | locale, [a-d] is equivalent to [abcd].  Many locales sort characters in
> | dictionary order, and in these locales [a-d] is typically not equivalent
> | to [abcd]; it might be equivalent to [aBbCcDd], for example.  To obtain
> | the traditional interpretation of bracket expressions, you can use the C
> | locale by setting the LC_ALL environment variable to the value C.
> `
> 
> So as Achim pointed out, unless texi2dvi explicitly specifies the locale
> for egrep, that regexp is busted. Even [A-Za-z] is busted in the absence
> of a locale: it would have to be something like [:alpha:], although I'm
> not sure what DOS allows/requires as a drive prefix. And even in the C
> locale, [A-z] allows non-letters which, I'm pretty sure, cannot be used
> as drive prefixes.
> 
> Nick
> 

Okay, I think this has convinced me to file a bug report.  I'll start
with Debian's system (reporting a bug against the texinfo package) and
hope it filters upstream appropriately.  texi2dvi definitely does not
specify the locale for egrep.  [:alpha:] is probably the right choice
from the little I know about DOS...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-08 Thread Eric S Fraga
On Fri, 8 Oct 2010 01:43:25 -0700, suvayu ali  
wrote:

[...]

> 
> I have the exact same problem ever since I updated org today. (from
> commit 344785b 2010-10-03 Bernt Hansen to commit 0901585 2010-10-06
> Eric Schulte)
> 
> My locale is en_IN.utf8, and I am on Fedora 13. I couldn't quite
> understand the discussion where the bug actually is. To resolve this
> do I need to file a bug with the Fedora bugzilla? I am confused how
> can that be possible because I can successfully export to pdf if I
> downgrade org to commit 344785b.
> 
> Any suggestions welcome.
> 
> > cheers,
> > eric
> >
> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.

Suvayu,

the bug is due to the expression in the texi2dvi script used in an
egrep command.  The reason it is hitting you now and not before is
that the default sequence of commands for exporting org files to PDF
has changed from a sequence of "pdflatex" and "bibtex" commands to one
of using only "texi2dvi".  You can fix the problem by changing the
variable org-latex-to-pdf-process.  I have set it to

: ("pdflatex %f" "bibtex %f" "pdflatex %f" "pdflatex %f")

and this works just fine for me.  If you don't need bibtex at all, you
can remove that entry.  You only need multiple runs of pdflatex if you
have cross-references (including tables of contents etc).

This is a solution in one sense but the real bug is the egrep
expression in texi2dvi which is why it is suggested that a bug report
be filed.

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] bug with respect to org-read-date-prefer-future

2010-10-08 Thread Eric S Fraga
Hi,

Recently, but I cannot say for how long, I have found that dates
entered, for instance using "j" in the standard agenda view, no longer
choose a time/day in the future but seem to default to the current
year.  For instance, today, typing "j 2 feb RET" (with a real space
between 2 and feb) jumps me to 2010 February 2, not 2011.


#+begin_src emacs-lisp :results 
(describe-variable 'org-read-date-prefer-future)
#+end_src

#+results:
#+begin_example
org-read-date-prefer-future is a variable defined in `org.el'.
Its value is time

Documentation:
Non-nil means assume future for incomplete date input from user.
This affects the following situations:
1. The user gives a month but not a year.
For example, if it is April and you enter "feb 2", this will be read
as Feb 2, *next* year.  "May 5", however, will be this year.
2. The user gives a day, but no month.
For example, if today is the 15th, and you enter "3", Org-mode will
read this as the third of *next* month.  However, if you enter "17",
it will be considered as *this* month.

If you set this variable to the symbol `time', then also the following
will work:

3. If the user gives a time, but no day.  If the time is before now,
to will be interpreted as tomorrow.

Currently none of this works for ISO week specifications.

When this option is nil, the current day, month and year will always be
used as defaults.

You can customize this variable.
#+end_example

so according to the documentation should work as I expect but
doesn't...  Have I misunderstood something?

Thanks,
eric


#+begin_src emacs-lisp :results 
(format "%s\n%s\n" (org-version) (emacs-version))
#+end_src

#+results:
: Org-mode version 7.01trans (release_7.01h.645.g09015)
: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
:  of 2010-08-14 on raven, modified by Debian
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bibtex and latex export

2010-10-08 Thread Eric S Fraga
On Fri, 08 Oct 2010 13:27:15 -0400, Nick Dokos  wrote:
> 
> There is a thread in the bugs-texinfo mailing list on the egrep
> problem in texi2dvi:
> 
>   http://lists.gnu.org/archive/html/bug-texinfo/2010-03/msg00031.html
> 
> Nick
> 

Yeah, it sure looks like we're not the only runs bitten by this bug.
I guess there's no point in filing a bug with them but I may still do
it with Debian.

Thanks for digging this up.  The scary thing is that nobody seems to
be seriously suggesting fixing this on that list?  Also, nobody has
suggested [:alpha:] as a replacement, although this may not be
strictly correct for DOS disk designators if alpha includes all
accented letters etc...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: bug with respect to org-read-date-prefer-future

2010-10-08 Thread Eric S Fraga
On Fri, 08 Oct 2010 15:01:49 -0400, Bernt Hansen  wrote:
> 
> Eric S Fraga  writes:
> 
> > Recently, but I cannot say for how long, I have found that dates
> > entered, for instance using "j" in the standard agenda view, no longer
> > choose a time/day in the future but seem to default to the current
> > year.  For instance, today, typing "j 2 feb RET" (with a real space
> > between 2 and feb) jumps me to 2010 February 2, not 2011.

[...]

> 
> Hi Eric,
> 
> This was recently changed in commit
> 03b178d (Do not prefer future when jumping to a date in the agenda, 
> 2010-09-21)
> by Carsten after an offline discussion with me.
> 
> The behaviour changed for the 'j' command in the agenda only but not for
> other date prompts.

Ah, okay, so I am not totally losing it... ;-)

> The justification for this was at the start of a new month you need to
> enter the year to go back to a date a week or two ago in the agenda
> which seemed inconvenient.
> 
> Carsten noticed that I had set org-read-date-prefer-future to nil in
> http://doc.norang.ca/org-mode.html and questioned why that was
> necessary.  After a short discussion he decided to change the default
> behaviour for the agenda j command only.
> 
> Please comment on whether this change is good or bad.  The docstring
> should be more clear about this change if we decide to keep it.
> 
> Regards,
> Bernt

Well, I must say that I prefer the old way as it is more likely (on a
simple probabilistic view considering the full twelve months of the
year) that I am going to want a future date if I refer to a month
before the current one.  I can understand your justification for
earlier in a month but I typically simply use, say, -7 or -10 then (as
I use +7 or +10 say for days in the future).  So, I guess my view is
that the change is more bad than good...  At the very least, I would
like this to be configurable, if that is at all possible?  If not, I
am sure I can adjust!

By the way, I guess I could see an argument for a date alone being for
the current month, whether future or past, much as time can be
considered already to be for the current day, whether future or past,
if the variable is configured as I have it (time), but even then we
should have a configurable variable?

Regardless, the docs definitely have to change!

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Karl Berry: Re: Nick Dokos: texi2dvi egrep regexp

2010-10-09 Thread Eric S Fraga
On Fri, 8 Oct 2010 21:06:24 -0700, suvayu ali  
wrote:

[...]

> I have filed a bug report on the Fedora bugzilla[1] pointing to all
> the relevant discussions about this issue. Feel free to add to/edit
> it. Thanks everyone for narrowing this down. :)

And this bug has already been reported (twice) to Debian, as it turns
out:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584191
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586134

No resolution in either bug stream although suggestions do include
[A-Za-z] and [[:alpha:]].

I have simply edited /usr/bin/texi2dvi (but need to do this on all of
my other systems) and hope that next time it is upgraded the bug will
have been fixed...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] full production use of org-mode: time to say thanks again!

2010-10-09 Thread Eric S Fraga
Hi,

I have spent the last 2 months (or more) working on a serious project
proposal which required the production of a 30+ page document,
including tables, figures, footnotes and cross-references.  The
preparation required working with 20+ people and managing a large
number of tasks.  I used org for the whole process and for the
creation of the actual document.

I just want to say *thanks* to all (Carsten, of course, but also all
the others that have contributed to org and babel) as it made the
whole process as painless as something like this can be!

I used the following features:

- outlining, obviously!  very necessary as the document had a
  pre-defined structure imposed by an external party.
- todo items, including in-line todos [1].
- babel for figures and some in-line calculations
- exporting, including to HTML (for conversion to Word via OOo) for
  allowing colleagues to edit text and to PDF for the actual delivery
  of the document (with very strict page formatting requirements).
- version control, obviously, but not part of org, of course

Everything worked (except for maybe the texi2dvi blip in the past few
days) and did so incredibly smoothly!  Org didn't get in the way and I
could really concentrate on the content instead of the formatting
etc.  Brilliant!

As an aside, I also had to prepare a new set of lecture slides for a
course I teach.  I used org, of course, with beamer support.  Again,
everything worked well.  What was particularly nice this time was that
this particular course requires showing Octave code and the outputs of
such code.  Babel, in combination with the listings latex package, is
an ideal tool for this!  My slides look (in my obviously biased
opinion) incredibly professional.

So, thanks all!

eric

PS - I now need to sleep for the next month or two... ;-)

Footnotes: 
[1]  If I have one niggle to report it is that indenting text after an
 in-line todo doesn't seem to work properly: it indents any
 subsequent paragraphs much too far, lining up with the headline
 text for the in-line todo.  This seems conceptually wrong to me.
 Not a big deal, mind you.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] full production use of org-mode: time to say thanks again!

2010-10-10 Thread Eric S Fraga
On Sat, 09 Oct 2010 19:00:29 +0200, Nicolas Goaziou  wrote:
> 
> Hello,
> 
> >>>>> Carsten Dominik writes:
> 
> > On Oct 9, 2010, at 12:46 PM, Eric S Fraga wrote:
> 
> >> Footnotes: [1] If I have one niggle to report it is that indenting
> >> text after an in-line todo doesn't seem to work properly: it
> >> indents any subsequent paragraphs much too far, lining up with the
> >> headline text for the in-line todo. This seems conceptually wrong
> >> to me. Not a big deal, mind you.
> 
> > This is clearly a bug. Nicolas, could you be persuaded to have a
> > look at that? You have worked on the indentation code reently in
> > connection with the plain lists.
> 
> I can have a look at it, but I would need an example to work on as I
> never use "inline todo". I don't want to sound too lazy, but could
> Eric provide a minimal example to get me started ?
> 
> Regards,
> 
> -- Nicolas

Gladly.  Attached is a very small example, self-documented!
# -*- mode: org; mode: auto-fill; -*-
#+TITLE: test.org
#+AUTHOR:Eric S Fraga
#+EMAIL: e.fr...@ucl.ac.uk
#+DATE:  2010.10.10 19:00:34
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t 
skip:nil d:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+DRAWERS: HIDDEN hidden extra details
#+STARTUP: lognotedone lognoteclock-out

#+ STARTUP: indent

* Introduction
The introduction, most obviously introduces
material in an introductory manner.
* TODO Remember to expand this section
* END

  The following text is indented to line
  up with the in-line todo heading which
  it should not be.  The whole point of an
  in-line todo is that it is not meant to
  disrupt the flow of the rest of the
  document.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Karl Berry: Re: Nick Dokos: texi2dvi egrep regexp

2010-10-10 Thread Eric S Fraga
On Sat, 09 Oct 2010 12:42:41 -0400, Nick Dokos  wrote:
> 
> Carsten Dominik  wrote:
> 
> 
> > I am looking for a way out which will allow pdf compilation of Org
> > work out of the box, and still allow texi2dvi to be used where possible.

[...]

> Alternatively, the texi2dvi method can be reverted: it was an idea that
> was worth trying, but it has caused more harm than good at this point
> - maybe it can be revisited in six months.
> 
> > Any ather ideas?  Comments?
> > 
> 
> Nick

I would vote this way.  I like texi2dvi but maybe keep to pdflatex++
for now?  Anybody who wishes to use texi2dvi (as I would right now on
those systems where I have fixed the texi2dvi script) can easily do
so but those not aware of the problems won't be caught out.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [WIP] OpenOffice Exporter

2010-10-11 Thread Eric S Fraga
On Sun, 10 Oct 2010 12:09:50 +0530, Jambunathan K  
wrote:
> 
> 
> I am working on a Org->OpenOffice/ODT exporter. 
> 
> This is a WIP announcement. I am posting this with an intention to hear
> of and preferably avoid any parallell efforts.
> 
> I am basing it on org-html.el. 
> 
> As it stands now in my own work area, it can export an outline structure
> and has support for
> 
> 1. character styles 
>- bold, italic, underline, strikethrough, code, verbatim
> 
> 2. paragraph styles
>- quote, verse, center, example and source code
> 
> 3. lists
>- numbered, bulleted and description lists
> 
> 4. table of contents
> 
> Still a long a way to go ...

but sounds good so far.  Although org->html->OOo works fine, I would
definitely like to remove the one unnecessary step.

How are you going to handle images?  I want to make sure that the
document that is exported has images "inside" the document (as opposed
to links), at least optionally, so that I can share documents
properly.  Will this be possible?

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] full production use of org-mode: time to say thanks again!

2010-10-11 Thread Eric S Fraga
On Mon, 11 Oct 2010 10:01:53 +0200, Carsten Dominik  
wrote:
> 
> 
> On Oct 10, 2010, at 7:56 PM, Eric S Fraga wrote:

[...]

> >
> > I can't as such (some copyright material) but I can give an
> > illustration of the type of slide (attached) that babel now allows me
> > to do every so easily!  From a pedagogical point of view, having code
> > which runs and automatically creates the content to be presented is
> > fantastic.  No errors in transcription etc.
> 
> Thanks, this looks really good.  I am wondering if I can recruit you
> to add such an example including the required babel setup to your
> BEAMER tutorial?
> 
> - Carsten
> 
> 
> 

I'd be happy to!  On my todo list now ;-)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] column view: "local" doesn't seem to work for me

2010-10-11 Thread Eric S Fraga
Hello,

simple question: does using "local" as the source for column capture
view work?  I've not been able to get it to work at all, always being
told that "Cannot find entry with :ID: local".  Am I doing something
wrong?  I have followed the org manual (7.5.3) directives as far as I
can tell...

Using the actual ID works, however, but is clumsy compared with being
able to specify the local subtree quickly.

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] full production use of org-mode: time to say thanks again!

2010-10-11 Thread Eric S Fraga
On Mon, 11 Oct 2010 10:04:15 +0200, Carsten Dominik  
wrote:
> 
> Hi,
> 
> On Oct 11, 2010, at 8:34 AM, Nicolas Goaziou wrote:
> 
> > Hello,
> >
> > Could you try the following patch and tell me if it fixes your issue?
> 
> A quick test shows that things seem to work well in inlinetasks which
> are properly ended with an END line.
> 
> There is also a dirty form of inline tasks which allows
> only a planning line (SCHEDULED etc) and one or several
> drawers directly after the task line, and then no
> END line is necessary.  But I guess it is fair
> to force the END line if you do want to have
> proper indentation.

That requirement would seem to make sense.

> Eric Fraga, have you tested the patch yet?  Please do
> so when you wake up from your two-week sleep, so that
> we can check this in.

I have tested it and it seems to work fine.  I've not seen anything
major break but I haven't done a thorough test.

> I am seeing now two things that should be added:
> 
>   - M-RET after inline tasks should ignore the inline task
> and make a new entry with normal indentation

Yes, that would be nice especially as it takes quite a few TABs to get
back to a proper level and sometimes I cannot tell what that level
should have been...  Actually, it might be nice if the TAB immediately
after a M-RET would go back to the next previously used level in the
hierarchy?  Although this might be tricky...

>   - Maybe I should treat inline tasks with proper END
> statement as a drawer and fold it?  Comments?

Could be useful but it's not critical for me: I don't tend to put too
much text between the start and end of inline tasks so it's not too
intrusive.

Thanks to both you and Nicolas,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


indenting after inline task (was Re: [Orgmode] full production use of org-mode: time to say thanks again!)

2010-10-11 Thread Eric S Fraga
On Mon, 11 Oct 2010 08:34:53 +0200, Nicolas Goaziou  wrote:
> 
> Hello,
> 
> Could you try the following patch and tell me if it fixes your issue?

Works perfectly.  Thanks!
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] full production use of org-mode: time to say thanks again!

2010-10-12 Thread Eric S Fraga
On Mon, 11 Oct 2010 15:33:37 -0400, Jeff Horn  wrote:
> 
> Christian and Nick,
> 
> I suppose the advantage of inline tasks is that they appear even when
> the document is folded? So far I've been moving/refiling todos into a
> top-level Tasks header in each document to get this sort of behavior.
> But this sounds like less overhead, so it is a plus in that regard.

The main advantage for me is simply one of not having to interrupt my
flow of writing.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Worg buglet

2010-10-12 Thread Eric S Fraga
On Tue, 12 Oct 2010 08:55:00 +0530, Puneeth  wrote:
> 
> On Tue, Oct 12, 2010 at 6:39 AM, Robert Goldman  wrote:
> > The link to the sample presentation, from
> >
> > http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php
> >
> > to
> >
> > http://orgmode.org/worg/org-tutorials/org-beamer/presentation.org
> >
> > is broken.
> 
> Fixed.

Actually, it's not!  It is now broken...  I fixed this on 2 October
but there may be a problem with the publishing process if the
resulting published files are wrong?

To explain, the footnote was previously fixed to point to the actual
"org" file, not the "php" created by the publishing mechanism on Worg.
The file, presentation.org, is meant to be an example document that
can be downloaded, not a document for viewing on the web.

Can you please revert your change?

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Worg buglet

2010-10-12 Thread Eric S Fraga
On Tue, 12 Oct 2010 14:49:26 +0530, Puneeth  wrote:
> 
> On Tue, Oct 12, 2010 at 1:45 PM, Eric S Fraga  wrote:
> >
> > Actually, it's not!  It is now broken...  I fixed this on 2 October
> > but there may be a problem with the publishing process if the
> > resulting published files are wrong?
> >
> > To explain, the footnote was previously fixed to point to the actual
> > "org" file, not the "php" created by the publishing mechanism on Worg.
> > The file, presentation.org, is meant to be an example document that
> > can be downloaded, not a document for viewing on the web.
> >
> > Can you please revert your change?
> 
> Apologies.
> 
> Reverted my change.
> 
> -- Puneeth

Thanks.  Once the latest version of the tutorial is published, I'll
check to see what is happening to the footnote.  I know there have
been some problems with publishing links to org files in the past...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Handling of errors when using Ledger

2010-10-13 Thread Eric S Fraga
On Tue, 12 Oct 2010 21:58:46 +0200, Sébastien Vauban 
 wrote:
> 
> Hi Dan,
> 
> Dan Davison wrote:
> > Sébastien Vauban writes:
> > [...]
> >> Let's imagine I thought (which was the case at some point) I needed to
> >> enclose the parameters between quotes:
> >>
> >> #+srcname: quoted-params
> >> #+begin_src ledger :cmdline "reg unknown" :noweb yes :session
> >> <>
> >> #+end_src
> >>
> >> #+results: quoted-params
> >>
> >> Nothing is returned. In fact, I would expect an error to be thrown [...] I
> >> don't know if this is a common problem (to Org-Babel) or only to the Ledger
> >> part of it, but I think *we* should somehow improve the handling of errors.
> >
> > Babel has a standard mechanism for evaluating shell commands and displaying
> > errors if any. It is the function `org-babel-eval' in ob-eval.el. The
> > problem is that ob-ledger is not using this mechanism. Would you be
> > interested in fixing this? Basically what is required is to re-implement
> > `org-babel-execute:ledger' using `org-babel-eval'. (There are plenty of
> > examples in the other langauges to follow.) Please don't worry if you are
> > too busy though.
> 
> I'd be interested to try and fix it. I am busy, yes: I am just recovering 3

[...]

> So, I'd propose to fight for being the first one to fix that... And let's see
> who will win... ;-)

Please do!!  As the original author (basing my code on other babel
codes, mind you), I am happy to lose this fight ;-)  I really don't
know enough babel to make the changes required quickly and I also am
struggling with "free" time at the moment.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Babel for blogging

2010-10-15 Thread Eric S Fraga
On Fri, 15 Oct 2010 11:07:05 -0600, "Eric Schulte"  
wrote:
> 
> Hi Manuel,
> 
> The following works for me, it creates an index of all files in the same
> directory as the Org-mode file.
> 
> --8<---cut here---start->8---
> * index
> 
> Create an index automatically with an elisp code block.
> 
> #+begin_src emacs-lisp :exports results :results raw
>   (mapconcat
>(lambda (file)
>  (unless (file-directory-p file)
>(format "- [[%s][%s]]" (file-name-sans-extension file) file)))
>(directory-files (or default-directory
> (file-name-directory (buffer-file-name
>"\n")
> #+end_src
> --8<---cut here---end--->8---

Maybe the format statement should look like this instead (swap the two
arguments to the format string around):

:   (format "- [[%s][%s]]" file (file-name-sans-extension file

Also, maybe change the link to include the current directory:

:   (format "- [[./%s][%s]]" file (file-name-sans-extension file

Just some thoughts late on a Friday night... ;-)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Babel] Library calls and begin_example

2010-10-16 Thread Eric S Fraga
On Sat, 16 Oct 2010 08:59:03 -0600, "Eric Schulte"  
wrote:
> 
> Hi Tom,
> 
> See the "Evaluating code blocks" section of the manual for information
> on how to pass header arguments to #+call: lines
> 
> http://orgmode.org/manual/Evaluating-code-blocks.html#Evaluating-code-blocks
> 
> something like 
> 
>   #+lob: elispgantt(table=gantttest) :results latex
> 
> should work
> 
> Cheers -- Eric

I guess the question is why doesn't the function call take the
specified arguments in the definition of the babel code as defaults?
I thought you were merging the parameters?  If the ":results latex"
argument has been specified in the #+begin_src line, why do we need to
repeat it here?

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: bug with respect to org-read-date-prefer-future

2010-10-17 Thread Eric S Fraga
On Sun, 17 Oct 2010 08:33:50 +0200, Carsten Dominik  
wrote:

[...]

> There is now a new option, org-agenda-jump-prefer-future.
> The default is to recycle the setting of org-read-date-prefer-future,
> but you can set your own specific preference as well.
> 
> Cheers.
> 
> - Carsten
> 

Excellent.  Thanks for this!  Works perfectly.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Library calls and begin_example, where may I find the code ?

2010-10-17 Thread Eric S Fraga
On Sat, 16 Oct 2010 19:12:24 +0200, Marc-Oliver Ihm  wrote:
> 
> Hello !
> 
> Sorry for bothering but I have not been able to find this code.
> Could you please provide a pointer ?
> 
> Thanx a lot !
> 
> with kind regards, Marc-Oliver Ihm
> 
> 
> Am 16.10.2010 04:55, schrieb Thomas S. Dye:
> > Aloha all,
> > 
> > I'm working with Eric Fraga's GANTT chart code, posted here recently.  
> > I'd like to move it into the Library of Babel so I can call it from any
> > Org-mode buffer.  Here is the (modified) header:

[...]

Marc-Oliver,

what exactly is it that you have not been able to find?  if it's the
gantt generating code (emacs-lisp and latex) that I posted to this
list, I was going to say that you can find it by searching the org
mailing list:

 http://orgmode.org/index.html#sec-5_2

However, I cannot find my own message using the search engine.  Does
anybody know why this might be?  I've tried a number of combinations
including just looking for emails from myself.

Oh well, in any case, here is the link to my message (which I found by
simply going back through the list manually):

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

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-default-notes-file

2010-10-18 Thread Eric S Fraga
On Mon, 18 Oct 2010 19:36:18 +0800, Louis Turk  
wrote:
> 
>  On 10/18/2010 07:17 PM, Noorul Islam K M wrote:
> > Louis Turk  writes:
> >
> >>   On 10/18/2010 06:03 PM, Noorul Islam K M wrote:
> >>
> >>> Can you move following line to the beginning for org-mode settings?
> >>>
> >>> (add-to-list 'load-path "~/org-mode/lisp/")
> >>>
> >>> Thanks and Regards
> >>> Noorul
> >> Thanks, you are really trying hard to help me. But I still get the
> >> same error message.

yes but did you move it to the right place?  further, you should also
move the (require 'org-install) to come before anything else, but
after the load-path setting.

I have the following at the start of my org customisations:

: (add-to-list 'load-path "~/git/org-mode/lisp")
: (require 'org-install)

After making the changes, check org-version again.  Are you still
getting 6.33 or are you now in 7.01xxx?

I should also add that I set my default org notes file to a file name
without a path but define org-directory to point to the appropriate
directory:

: (setq org-directory "~/git/notes"
:   org-default-notes-file "notes.org")

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Re: TaskJuggler 3, revisited

2010-10-18 Thread Eric S Fraga
On Mon, 18 Oct 2010 16:54:37 +0200, Christian Egli  
wrote:
> 
> Eric S Fraga  writes:
> 
> > For the recent project I had to prepare, I did have to generate a
> > GANTT chart.  I tried using TJ2 via org but found the current
> > implementation not suitable for my way of working.  
> 
> What are the problems you encountered?

The main problem (not really a problem per se) is the need to define
sub-headings for tasks and so on for the exporter to find the
necessary project information.  This makes sense for a running
project, say, but not for the type of document I was preparing (a
project proposal where the level of project workplan detail is much
lower).  I found it much easier, for the latter, to use a simple
table.  Of course, for a running project where you wish to keep track
of how far each task has progressed and allocations of resources etc,
my simple approach won't be of much use and a table is probably not
the ideal representation in any case.

A secondary problem (also not a problem) was the (current) lack of
babel integration for TJ.  I have become addicted to having all my
code etc within org.  I can no longer write anything without at least
one #+begin_src ... directive in my documents!

In terms of org->tj export, there were some issues (can't remember the
details now unfortunately) with default interpretation of values for
times and so on, none of which appeared to be insurmountable but I
didn't spend much time on this aspect due to the above points.

In the end, I didn't need the power of tj so found it quicker to roll
up my own!

> > Instead of using TJ, either 2 or 3, I simply created my own chart
> > using tikz in latex. 
> 
> Sweet hack! And looks quite nice too.

thanks!

I should add that my longer term goal is to support some simple
critical path analysis using the table approach I have defined.  This
would help me in some of the lectures on project management I give to
my students.  I'm currently stuck on how to do indirect references in
org tables: how to get the contents of an entry chosen by a value in a
different entry (e.g. what is the max of the end times of the
dependencies of the current task).  I've not asked any questions on
the list yet because I think most of my answers will come from
learning emacs Calc properly (so much to learn, so little time, but it
sure is fun ;-).

Thanks,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] timestamp with repeater interval

2010-10-18 Thread Eric S Fraga
On Mon, 18 Oct 2010 18:17:28 +0200, Rainer Thiel  wrote:
> 
> I have a strange problem with timestamps with repeater intervals and
> think I am doing something wrong.
> 
> I had assumed that entering in a new TODO item a timestamp like "oct
> 19 10:00 +14w" pressing C-c . would show the entry in the next 15
> weeks including the day of tomorrow.  In reality, the item shows up
> *only* tomorrow, but not in the next 14 weeks.
> 
> Any idea what I am doing wrong?

That expression tells org to repeat that event every 14 weeks.  If you
want a repeat entry with an end date, you will need to resort to diary
expressions (see diary sexps in section 8.1 of the manual).
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] timestamp with repeater interval

2010-10-19 Thread Eric S Fraga
On Mon, 18 Oct 2010 22:53:45 +0200, Rainer Thiel  wrote:
> 
> 2010/10/18 Eric S Fraga :
> > On Mon, 18 Oct 2010 18:17:28 +0200, Rainer Thiel  
> > wrote:
> > That expression tells org to repeat that event every 14 weeks.  If you
> > want a repeat entry with an end date, you will need to resort to diary
> > expressions (see diary sexps in section 8.1 of the manual).
> 
> Thank you for your most helpful answer.  I have now been able to
> insert a relevant entry that repeats every week.  I have not been able
> to find a way to insert an end-date, though.  Can you point me to the
> relevant section of the emacs-manual?

In info: Org Mode -> Dates and Times -> Timestamps

third entry on that page mentions that you can use Emacs
calendar/diary sexp diary entries so you can then go to the
appropriate section in the Emacs info manual:

Emacs -> Calendar/Diary -> Advanced Calendar/Diary usage -> Sexp Diary Entries

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] timestamp with repeater interval

2010-10-21 Thread Eric S Fraga
On Wed, 20 Oct 2010 00:16:51 +0200, Rainer Thiel  wrote:
> 
> 2010/10/19 Eric S Fraga :
> > On Mon, 18 Oct 2010 22:53:45 +0200, Rainer Thiel  
> > wrote:
> > Emacs -> Calendar/Diary -> Advanced Calendar/Diary usage -> Sexp Diary 
> > Entries
> 
> Thanks for trying to help out.  I cannot discover any hint to how to
> define an end date for repeater intervals there, though.  It is
> probably obvious to professional lisp programmers.  But while I have
> done some lisp programming, this is not really my field.

Rainer,

Matt Lundin has just posted a respond (in another thread) which answers your 
question:

On Wed, 20 Oct 2010 21:31:04 -0400, Matt Lundin  wrote:
> 
> Christopher Witte  writes:
> 
> > Is there a way to get timestamps that repeat (say weekly) up to a
> > certain date when it stops repeating?  I have a weekly appointment that
> > will only go for the next 8 weeks and I don't want to have to input
> > each appointment separately and I don't want it cluttering up my diary
> > beyond it's end date.
> 
> Though you can't yet do this with org-mode timestamps, you can use a
> diary sexp. Does the following FAQ help?
> 
> http://orgmode.org/worg/org-faq.php#org-diary-class
> 
> Best,
> Matt
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Difference between org-footnote.el and footnote.el

2010-10-21 Thread Eric S Fraga
On Thu, 21 Oct 2010 17:28:20 +0200, Tassilo Horn  wrote:
> 
> Charles Philip Chan  writes:
> 
> Hi Charles and Nick,
> 
> >> How does footnote.el find the signature?
> >
> > I presume by looking for the line "--" which precedes the signature.
> 
> That's not completely true.  The line has to be "-- ", i.e. "--"
> followed by exactly one space.
> 
> Bye,
> Tassilo

indeed. looking at the code in footnode.el, there is a search for the
message-signature-separator, which defaults to "^-- $" to find where
to insert footnotes.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Another possible error for in-line math parsing

2010-10-22 Thread Eric S Fraga
On Thu, 21 Oct 2010 22:25:14 +0200, Carsten Dominik  
wrote:
> 
> 
> On Oct 21, 2010, at 7:52 PM, Jeff Horn wrote:
> 
> >> Org-mode will never be a perfect TeX scanner, and this is really
> >> hard.
> >> Help yourself and Org by using \( and \) as math delimiters when
> >> you wish to
> >> include dollar characters inside
> >
> > Ten-four.
> 
> What does that mean?

:-)  

this is an expression from CB (citizen's band) radio days and means
"thanks" or "okay" or a combination of the two.  There's a whole
lexicon of 10-xx terms for fast communication over CB radio.

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


Re: [Orgmode] RFI -- Which completion system?

2010-10-22 Thread Eric S Fraga
On Thu, 21 Oct 2010 23:16:19 +0200, Sébastien Vauban 
 wrote:
> 
> Hello,
> 
> Before spending a lot of time trying to choose for the "best" completion
> mechanism inside Emacs (and sticking to it), setting it up all the way
> through, I wanted to know if you had had:
> 
> - particularly good or bad experiences with one of the "standard" ones?

I've tried a number over the years.  I've yet to reach a situation
where I am particularly happy with any of them but the one that seems
to work best *for me* so far is hippie.

I have the following settings (having just added Tassilo's expansion
function for calc which is brilliant!):

--8<---cut here---start->8---
(setq hippie-expand-try-functions-list
  '(;;yas/hippie-try-expand
th/my-try-complete-with-calc-result
try-expand-all-abbrevs
try-expand-dabbrev
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-complete-file-name
try-complete-lisp-symbol))
--8<---cut here---end--->8---

I no longer use yasnippets as they interfered too much with completion
in general.  

I have bound hippie-expand to C-; as I find this a lot easier to type
than M-/.  I also have TAB bound to the following:

--8<---cut here---start->8---
(defun esf/indent-or-expand (arg)
  "Either indent according to mode, or expand the word preceding point."
  (interactive "*P")
  (if (and
   (or (bobp) (= ?w (char-syntax (char-before
   (or (eobp) (not (= ?w (char-syntax (char-after))
  ;;(dabbrev-expand arg)
  (hippie-expand arg)
(indent-according-to-mode)))
--8<---cut here---end--->8---

in most text buffers.  This means that TAB no longer does what it
should in org mode but I use C-i for that functionality as most of the
time I am typing text and not moving things around.

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread Eric S Fraga
On Fri, 22 Oct 2010 16:36:10 -0500, John Hendy  wrote:

> This is fantastic. Honestly, I had no idea that one could use LaTeX with
> babel! This is just perfect. I was googling around for "export tikz pgf jpg"
> and things like that with no luck. This will do perfectly.

For completeness (and the mailing list archive), if you need to do
this directly in latex, you will want to use the minimal document
class and the preview package.  Check out examples on the tikz
examples web site [1].  The preview package is what babel uses.

Footnotes: 
[1]  http://www.texample.net/tikz/examples/

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Unable to quit emacs after enabling Clocking

2010-10-24 Thread Eric S Fraga
On Sun, 24 Oct 2010 15:15:55 +0530, mwnn  wrote:
> 
> I fixed the issue by setting the value of backup-directory-alist as
> shown below:
> 
> (setq backup-directory-alist '((".~" . "./.emacs.d/")))

I'm not sure I understand this correctly but shouldn't the first entry
be a regex file pattern?   This would only appear to match files with
a single character followed by ~?

According to the documentation for that variable, if you want all
files going to the specified directory (which in your case will be
relative to the original file's location), maybe you want ".*" as the
file regex?

eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] timestamp with repeater interval

2010-10-24 Thread Eric S Fraga
On Sun, 24 Oct 2010 17:11:34 +0200, Rainer Thiel  wrote:
> 
> Many thanks, Eric,
> 
> 2010/10/21 Eric S Fraga :
> > Matt Lundin has just posted a respond (in another thread) which answers 
> > your question:
> >
> > On Wed, 20 Oct 2010 21:31:04 -0400, Matt Lundin  wrote:
> >>
> >> Christopher Witte  writes:
> >>
> >> > Is there a way to get timestamps that repeat (say weekly) up to a
> >> > certain date when it stops repeating?  I have a weekly appointment that
> >> > will only go for the next 8 weeks and I don't want to have to input
> >> > each appointment separately and I don't want it cluttering up my diary
> >> > beyond it's end date.
> >>
> >> Though you can't yet do this with org-mode timestamps, you can use a
> >> diary sexp. Does the following FAQ help?
> >>
> >> http://orgmode.org/worg/org-faq.php#org-diary-class
> 
> This would be exactly what I need -- if it really worked.  It does not
> for me, probably because I haven't really understood how it is
> supposed to work.  I should have expected that an entry like this:
> 
> * TODO Class 10:00am-12:00am
>   <%%(org-diary-class 10 18 2010 2 12 2011 3)>
> 
> in one of my agenda files would make show up an agenda entry every
> Wednesday between Oct 18th, 2010 and Feb 12, 2011 in my agenda.  But
> this is not the case, nothing shows up.  What am I doing wrong?

What is wrong (if you can call it that) is that the actual argument
list to the org-diary-class function depends on the settings of a
couple of variables: calendar-date-style and/or
european-calendar-style.  As I have the former set to 'iso, in my case
I need to specify dates in the Y M D order:

--8<---cut here---start->8---
* TODO Class 10:00am-12:00am
  <%%(org-diary-class 2010 10 18 2011 2 12 3)>
--8<---cut here---end--->8---

You may need to do the same.

I've cc-ed the org-mode list for others to be aware of this as well.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy  wrote:
> 
> [1  ]
> 
> [2  ]
> On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte  wrote:
> 
> Hi John,
>
> In the case you describe I would export the *code* of the tikz latex
> block rather than the file resulting from evaluating the block.
> 
> Code = raw LaTeX/TikZ code? If so, I don't really care about that. i just 
> want the graphic.

Yes but the point is that, if I understand the processes involved
correctly, the export and babel routes each generate different latex
code.  Babel does *not* look at the document wide settings whereas
export does.  This is why Eric is suggesting you export the babel code
so that it is interpreted by the latex document that results from
exporting the whole org document.  Otherwise, make sure the settings
you want are within the latex source code block?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: timestamp with repeater interval

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 13:30:29 -0400, Matt Lundin  wrote:
> 
> Eric S Fraga  writes:

[...]

> 
> Thanks for this clarification Eric. I updated the FAQ accordingly. 

Thanks!  You beat me to it.  I was off-line most of yesterday
(examining a PhD student...) but had given myself a task for today to
update the FAQ.  Glad you got to it before I did :-)

Thanks again,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Multi-line headline

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 11:39:11 -0400, Bill Zingler  wrote:
> 
> Is it possible to have multi-line headlines?  If so, how do I set it up?

Not within an org file.  After all, how could org distinguish the
second and subsequent lines as being supplementary headline lines
versus normal text lines?  You could of course simply have multiple
headings in a row:

* this the first line of the headline
* followed by the second

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer center frametitle and block?

2010-10-28 Thread Eric S Fraga
Bruno Tavernier  writes:

> I search on Worg and in the info file but could not find if there is
> an option to select the position (left,center,right) of beamer's
> frametitle and block?

I cannot help you with the block problem but I would suggest that the
frametitle formatting is the responsibility of the beamer theme you have
used and so maybe you simply need to change that theme?

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Re: General question on dealing with Latex to word conversion

2010-10-28 Thread Eric S Fraga
Marvin Doyley  writes:

> This is indeed a unique way of looking at the problem. I am not sure
> converting from word to Org is
> the way to go, because vast majority of my research notes are already
> in Org. But having said that a
> good work around could be to create a crude version in word (ditch the
> equations, but export as
> plain text), get everyone comments, and incorporate the changes in Org
> before exporting to latex
> This will try this in the initial stage of my next grant proposal.

My workflow, when required to collaborate with Word (or OOo) users is to
export org to HTML, use OOo to convert to Word and send that out.  I ask
my collaborators to /track changes/ in the Word document and I then
manually incorporate these changes into my original org document.  Not
ideal but it does the job.

However, what would be ideal would be if there were a tool which would
take a Word document with /track changes/ and generate a patch file for
a text version of that document...  that could then provide some
mechanism for getting changes back into an org document (modulo problems
with line re-arrangements unfortunately).  Just a pipe dream...

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


[Orgmode] Re: [WISH] Org Importers

2010-10-28 Thread Eric S Fraga
Jambunathan K  writes:

> Eric
>
>> However, what would be ideal would be if there were a tool which would
>> take a Word document with /track changes/ and generate a patch file for
>> a text version of that document...  that could then provide some
>> mechanism for getting changes back into an org document (modulo problems
>> with line re-arrangements unfortunately).  Just a pipe dream...
>
> If you allow me some liberty, the suggestion is in two parts
>
> 1. Word/Pdf/Latex->Org converter
> 2. Change tracking within Org
>
> For most of us who write or work with copious amount of text, (1) could
> really be useful. If it gains sufficient escape velocity it can land us
> in a far off galaxy. (2) could be useful but a bit far-fetched at the
> moment.

I'm not sure I understand.  change tracking in org is trivial (git,
mercurial, etc); it's extracting Word change tracking information in a
form usable by other tools that is not trivial...

eric

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


[Orgmode] Re: [WISH] Org Importers

2010-10-28 Thread Eric S Fraga
Jambunathan K  writes:
> Eric S Fraga  writes:
>> I'm not sure I understand.  change tracking in org is trivial (git,
>> mercurial, etc); it's extracting Word change tracking information in a
>> form usable by other tools that is not trivial...
>
> My intention was really to bring attention to the need for importers

Ah, okay.  Point taken!

> how useful they could be. Looks like the thread is veering in another
> direction ...

as is often the case ;-)

> As for change tracking, I will have insightful things to say once I get
> to look at the details of how OpenDocument manages the same.

Excellent.  I look forward to it.  Thanks.

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


Re: [Orgmode] [WISH] Org Importers

2010-10-28 Thread Eric S Fraga
Peter Frings  writes:
> We once thought of having some markup in our LaTeX files to track changes,
> offering annotations. If
> I recall correctly, we had a command \changed{old}{new}{comment}.
> You could leave out the new or old text part: newly added text would be
> \changed{}{bla bla}{this is
> new text!}, deleted text would be \changed{completely wrong}{}{what an
> idiot}. The command would
> render the old/new text differently (gray, strikethrough, blue, whatever) and
> add the comment as a
> margin note.

There is actually a latex implementation of something like this in the
=changes= package that comes with texlive (at least)!  This package has
commands like \added and \deleted as well.

There is also the =changebar= package which draws change bars in the
margin.

I've used both in the past but found them too cumbersome.  I prefer
simply relying on version control systems (git etc.).

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] epresent and Org-mode: using Emacs to run presentations of Org-mode docs

2010-10-28 Thread Eric S Fraga
"Eric Schulte"  writes:

> Hi,
>
> Phil Hagelberg recently introduced me to epresent.el by Tom Tromey.
> It's a very nice little utility for giving presentations using Emacs as
> the display engine.  Obviously I was aghast to learn that epresent
> didn't work with Org-mode documents.  I took the liberty of reworking it
> so that it runs off of Org-mode documents and uses Org-mode both to
> structure the presentation and to handle most of the fancy display
> elements.
>
> This re-working was mainly a series of quick hacks, and is certainly not
> "mature" in any way.  But I think it is usable in it's current state for
> running simple presentations, and thought it may be interesting or of
> use to people here.  If you're interested check out the example
> presentation included in the source code repository.
>
> http://github.com/eschulte/epresent
> (instructions in the README)
>
> Best -- Eric

This is brilliant!  Sure, it isn't going to replace beamer for me but
for quick and dirty presentations, this will be very very useful.

It seems to work very well out of the box (for me).  I haven't tried an
image yet but the latex definitely works well.

Thanks,
eric

PS - I'll be tracking that git repository!

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


[Orgmode] Re: [WISH] Org Importers

2010-10-29 Thread Eric S Fraga
Matt Lundin  writes:
> FWIW, I have a home-brewed perl script that converts latex documents to
> org-mode files. Loosely based on latex2doc[1], it uses a latex style
> file (generated by the perl script) to markup the pdf output (e.g.
> asterisks for section headings, etc.). The org-formatted pdf is then
> converted to plain text with pdftotext.
>
> It's a crude and by no means comprehensive hack designed to meet my own
> peculiar needs. But I'd be happy to share it on Worg (with ample
> disclaimers) if anyone is interested.
>
> Best,
> Matt
>
> Footnotes:
> [1] http://www.dur.ac.uk/p.j.heslin/Software/Latex/latex2doc.php

Matt,

I do have a need to convert latex to org every now and again (luckily
not too often) so it would definitely be nice to have this on Worg.  My
own approach is to manually apply a number of regexp substitutions that
don't catch everything.  Your approach sounds quite appealing!

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Re: epresent and Org-mode: using Emacs to run presentations of Org-mode docs

2010-10-29 Thread Eric S Fraga
Łukasz Stelmach  writes:

> [...]

> S5 and other HTML slide show frameworks have (at least) one great
> advantage over Beamer, one can embed (there are at least two ways) SVG
> image, which is quite hard with LaTeX/Beamer duo (is there any
> command-line tool to convert SVG to EPS/PDF?)
> --
> Miłego dnia,
> Łukasz Stelmach

ImageMagick [1] will convert from/to SVG to/from many formats including
EPS.  I've not tried any conversions with SVG, mind you, so this is
based on the documentation.

Specifically, 

: identify -list format

on my system says:

: SVG  SVG   rw+   Scalable Vector Graphics (RSVG 2.26.0)

which means it can read and write SVG format images.

eric

Footnotes: 
[1]  http://www.imagemagick.org/script/index.php

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric S Fraga
Eric,

This is really nice!

I had a problem initially in that calc-push-list was undefined.  I had
to initiate calc first so maybe a 

: (require 'calc)

is required to ensure the functions you use are available?

Then, out of the three examples you give, only one (3^3) worked.  The
others give me:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument stringp (2 "Expected a 
number"))
  string-match("\\` *\\([0-9]+\\) *\\'" (2 "Expected a number"))
  math-read-number((2 "Expected a number"))
  (list (math-read-number (calc-eval line)))
  (calc-push-list (list (math-read-number ...)))
  (if (string= "'" (substring line 0 1)) (funcall (lookup-key calc-mode-map 
...) nil) (calc-push-list (list ...)))
  (progn (if (string= "'" ...) (funcall ... nil) (calc-push-list ...)))
  (if (> (length line) 0) (progn (if ... ... ...)))
  (when (> (length line) 0) (if (string= "'" ...) (funcall ... nil) 
(calc-push-list ...)))
  (lambda (line) (when (> ... 0) (if ... ... ...)))("  '+")
  mapcar((lambda (line) (when (> ... 0) (if ... ... ...))) ("  1" "  2" "  '+" 
""))
  org-babel-execute:calc("  1\n  2\n  '+\n" ((:colname-names) (:rowname-names) 
(:result-params "replace") (:result-type . value) (:comments . "") (:shebang . 
"") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code") 
(:results . "replace") (:hlines . "no") (:session . "none")))
  org-babel-execute-src-block(nil ("calc" "  1\n  2\n  '+\n" ((:colname-names) 
(:rowname-names) (:result-params "replace") (:result-type . value) (:comments . 
"") (:shebang . "") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports 
. "code") (:results . "replace") (:hlines . "no") (:session . "none")) "" nil 
0))
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()
  run-hook-with-args-until-success(org-babel-execute-safely-maybe)
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
--8<---cut here---end--->8---

Have I done something wrong?

I am particularly excited, once it works for me, to use this for
/inline/ babel executions!

Thanks,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Re: Release 7.02

2010-10-29 Thread Eric S Fraga
Carsten Dominik  writes:

>>
>>
>>> Make footnotes work correctly in message-mode
>>> ==
>>> The footnotes code now searches for the message delimiter "--" in
>>> order to
>>> place footnotes before the signature. Thanks to Tassilo Horn for
>>> this patch.
>>
>> Just a detail: the delimiter is "-- " (space after the dashes).
>
> Really?  Is that the official delimiter?  I never knew.
>
> - Carsten

More precisely: "^-- $" in a regex form.  That is, a single line
consisting of exactly two dashes and one space indicates the start of
the signature.  Nothing else does.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Re: epresent and Org-mode: using Emacs to run presentations of Org-mode docs

2010-10-29 Thread Eric S Fraga
Łukasz Stelmach  writes:

> Eric S Fraga  writes:
>
>> ImageMagick [1] will convert from/to SVG to/from many formats including
>> EPS.  I've not tried any conversions with SVG, mind you, so this is
>> based on the documentation.
>>
>
> I'll check it, but I'm afraid it does render SVG as bitmap first,
> and then "converts", or rather encapsulates, it to EPS/PDF. ImageMagick
> is a bitmap manipulation tool after all.

Very true.  For presentations, this may not be that much of an issue
(given the resolution of many data projectors)... but it's a very valid
point.

Do let us know if you find a vector based converter. 

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] [Babel] detangle

2010-10-29 Thread Eric S Fraga
"Eric Schulte"  writes:

> Hi,
>
> I've just added functions for detangling code from pure source code
> files back into code blocks in the org-mode files from whence they were
> tangled.

Wow.  It just gets better all the time!! :-)

> This is done by the new `org-babel-detangle' function.
> Additionally the new `org-babel-tangle-jump-to-org' function can be used
> to navigate from a pure source code file back to the related code block
> in the original Org-mode file.
>
> Both of these new functions require that the code block was tangled with
> comments which can be accomplished by setting the :comments header to
> "yes".

I've tried the first couple of steps: added the comments header and
tangled my code, ledger in this case.  I've had a looked at the tangled
code and I get lines such as this one inserted:

: ; [[id:8fe917c4-257f-45f7-839b-68b5772e5443][%sourcename]]

Obviously, =%sourcename= should have been replaced by something in the
tangling operation as, subsequently, the jump command doesn't work.  I
assume that the detangling won't work either.

Is there something I (or you?) should add to =ob-ledger.el= perhaps?

I've not tried any other codes as I don't /tangle/ often.

Thanks,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] [Babel] detangle

2010-10-29 Thread Eric S Fraga
"Eric Schulte"  writes:

> Hi Eric,
>
> The bug you mentioned should have been fixed by yesterday's commit
>
> ,[c6565eaa43d398f6771edd59c2bfe7ca54e4a93e]
> | commit c6565eaa43d398f6771edd59c2bfe7ca54e4a93e
> | Author: Eric Schulte 
> | Date:   Fri Oct 29 01:37:28 2010 -0600
> |
> | fixed typos in tangle comment link format strings
> |
> | * lisp/ob-tangle.el (org-babel-tangle-comment-format-beg): fix typo
> |   (org-babel-tangle-comment-format-end): fix typo
> `
>
> is it possible you haven't "make clean && make"'d your repo since the
> last push?

done all that and org-reload several times today but I had not
re-started emacs; oops!

I just did so and everything seems to be working much better.  The jump
to org doesn't actually make the buffer appear but it does move me to
the right place in the org buffer.  I haven't tried de-tangling yet.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric S Fraga
"Eric Schulte"  writes:

> Eric S Fraga  writes:
>
>> Eric,
>>
>> This is really nice!
>>
>> I had a problem initially in that calc-push-list was undefined.  I had
>> to initiate calc first so maybe a
>>
>> : (require 'calc)
>>
>
> Ah yes, that is in the ob-calc.el file, but not in the code snippet I
> shared.  I'll commit this entire file to the repository.

Ah, so should I use the code snippet you sent or should I be requiring
'ob-calc?  In either case, I still have problems (see below).

>> is required to ensure the functions you use are available?
>>
>> Then, out of the three examples you give, only one (3^3) worked.  The
>> others give me:
>>
>
> I just made a change which should fix this issue.

Very strange.  I'm still seeing the same problems, both with
calc-push-list not known (having to manually require 'calc) and then
errors evaluating the 1+2 block:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument stringp (2 "Expected a 
number"))
  string-match("\\` *\\([0-9]+\\) *\\'" (2 "Expected a number"))
  math-read-number((2 "Expected a number"))
  (list (math-read-number (calc-eval line)))
  (calc-push-list (list (math-read-number ...)))
  (if (string= "'" (substring line 0 1)) (funcall (lookup-key calc-mode-map 
...) nil) (calc-push-list (list ...)))
  (progn (if (string= "'" ...) (funcall ... nil) (calc-push-list ...)))
  (if (> (length line) 0) (progn (if ... ... ...)))
  (when (> (length line) 0) (if (string= "'" ...) (funcall ... nil) 
(calc-push-list ...)))
  (lambda (line) (when (> ... 0) (if ... ... ...)))("  '+")
  mapcar((lambda (line) (when (> ... 0) (if ... ... ...))) ("  1" "  2" "  '+" 
""))
  org-babel-execute:calc("  1\n  2\n  '+\n" ((:colname-names) (:rowname-names) 
(:result-params "replace") (:result-type . value) (:comments . "") (:shebang . 
"") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code") 
(:results . "replace") (:hlines . "no") (:session . "none")))
  org-babel-execute-src-block(nil ("calc" "  1\n  2\n  '+\n" ((:colname-names) 
(:rowname-names) (:result-params "replace") (:result-type . value) (:comments . 
"") (:shebang . "") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports 
. "code") (:results . "replace") (:hlines . "no") (:session . "none")) "" nil 
0))
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()
  run-hook-with-args-until-success(org-babel-execute-safely-maybe)
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)
--8<---cut here---end--->8---

org is up to date as of a minute or two ago:

: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
:  of 2010-08-14 on raven, modified by Debian
: Org-mode version 7.02trans (release_7.02.18.g9c83)

> I'd be particularly interested if there are more natural or "idiomatic
> calc" ways to interact with Calc through a code block than the one
> implemented here.

Well, I like being able to say, for instance, =src_calc(2010-1989)= and
have the result appear in an export of the file.  By the way, this works
so some things are working just fine.

Thanks,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-30 Thread Eric S Fraga
"Eric Schulte"  writes:
> alright, thanks for sticking with this.  You are definitely now using
> the latest code.  I believe the newest version of the ob-calc-eval
> function should work -- at the very least it should give a nicer error
> message.  Could you please require update again and let me know how it
> goes?

(for the list's benefit: Eric and I have had a few out-of-the-list
exchanges but as everything now seems to be working fine, I thought I'd
reconnect the thread to the list...)

Eric, 

just to confirm that it all seems to work just fine from a cold boot of
emacs without any extra (require 'ob-eval).  My babel configuration has
the following:

#+begin_src emacs_lisp
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (calc . t)
   (ditaa . t)
   ...
#+end_src

and that's about it really.  Evaluating the calc examples you sent
initially all work perfectly.

Using src_calc{5-2}, for instance, also works just fine for export.

I now wonder if it would be worthwhile discussing the choices you have
made regarding stack versus algebraic evaluation.  I would rather have
the quote mean an algebraic expression, just from the simple reason that
these will be longer than stack operations and so the overhead of a
quote is smaller as a percentage of keystrokes...

Anyway, thanks for this.  I think this is going to be quite useful but
it does mean really getting down and learning emacs calc...

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


[Orgmode] [babel] ob-octave requires octave 3.2 or extra package

2010-10-30 Thread Eric S Fraga
Hello,

Just a comment on requirements: ob-octave assumes the presence of the
=dlmwrite= function.  This is available as standard with octave 3.2 but
requires an extra package (=octave-io=) if you have an older version
(3.0.x).  All of this is for Debian systems; I cannot speak about others
of course.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


[Orgmode] Re: [babel] ob-octave requires octave 3.2 or extra package

2010-11-01 Thread Eric S Fraga
Dan Davison  writes:

> Eric S Fraga  writes:
>
>> Hello,
>>
>> Just a comment on requirements: ob-octave assumes the presence of the
>> =dlmwrite= function.  This is available as standard with octave 3.2 but
>> requires an extra package (=octave-io=) if you have an older version
>> (3.0.x).  All of this is for Debian systems; I cannot speak about others
>> of course.
>
> Hi Eric,
>
> Thanks. When dlmwrite is missing, is a helpful error message given?
> (When not using a session, if an error message is written to stdout,
> then it should pop up in a dedicated babel error message buffer).

yes, an error message is generated which is basically helpful enough.
However, it took a while for me to realise that the error was referring
to the octave code generated by babel to generate the output file
(i.e. the message refers to line 2 and I had no line 2 in my octave code
as it consisted of one expression).

> If the error message is not helpful, do you think we should
> programatically test for the function in octave code and display our
> own error message when it is absent?

I think this would be a good idea.

However, given that dlmwrite is available by default in octave 3.2, the
/stable/ version and one which will be the default in Debian stable
soon, it may simply be a case of extending the babel documentation to
highlight this.

> If you have time to add relevant notes to
> Worg:org-contrib/babel/languages/ob-doc-octave-matlab.org
> that would be much appreciated.
>
> Dan

I'll put it on my todo list... don't have much time at the moment but
hopefully next week I will.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

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


Re: [Orgmode] [bug] two bugs: one with comments and with exporting inline tasks

2010-11-02 Thread Eric S Fraga
Nicolas Goaziou  writes:

> Hello,
>
>>>>>> Eric S Fraga writes:
>
>> I believe both of these problems are related to the new list
>> handling as I used to be able to export inline tasks perfectly fine
>> in September.
>
> Well, this is strange. I tried to get back to 7.01h, 7.01 and 6.36c
> and I obtain this same behavior.
>
> What kind of export did you use to obtain?
>
> Regards,
>
> -- Nicolas

Well, now that you ask, I'm not sure what I used to obtain!I
don't have any PDFs from when I was preparing my big proposal in August
and September other than the final version (which obviously didn't have
any inline tasks in it...).  So maybe I've been very unfair to you and
the problem has always existed.  Sorry!

It's still the case that there are two problems.  For the first, there's
obviously some leakage from the HTML export into the LaTeX export in
that the list entry (which comes from the inline heading) is given an
argument that seems to be HTML/CSS code...  For the second problem,
maybe I've misunderstood the export of a sub-tree -- I've initiated the
export outside the inline heading so the export should include
everything below the heading above?

I'll play around some more tonight if I get a chance to see if I can
narrow down the reasons for the failure.

Thanks and apologies again for blaming your code unfairly!

-- 
Eric S Fraga, GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
using Org-mode version 7.02trans (release_7.3.6.gf0d2) in Emacs version 23.2.1

___
Emacs-orgmode mailing list
Please 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 links to Wanderlust messages

2010-11-02 Thread Eric S Fraga
Ronan BARZIC  writes:

> Hi,
>
> I've difficulties to understand how to make links to WL messages from an Org
> file. According to the documentation, the syntax should be :
>
> [[wl:folder#id][Description]]
>
> - It is not clear for me if "id" is the number in front of the message in the
> "WL "Summary" view ? Can someone confirm that ? (I have also a field
> "Message-ID" in each message header)

The easiest way to find out what should be there is to:

1. go to the WL message, in the Summary window say.
2. type C-cl (org-store-link)
3. go to your org document where you want to link from
4. type C-cC-l (org-insert-link) and hit RET to accept the default which
   should be the link you /stored/ above.

>  I have the feeling that the dot at the beginning of the folder name
> confuses the org-mode when I try to follow the link. For example,
> following the link  [[wl:.INBOX#29333][TEST]] 

I didn't find that the . caused any problems (the majority of my
mailboxes are in maildir format).  However, I must say that following
links to WL messages is not the most robust system.  The problems are
not in org but in WL, as far as I can tell.  

A couple of suggestions: make sure you have started WL *before*
attempting to follow a link from org in any case and make sure you don't
store a link from WL from within a filtered view.

Due to the problems with linking to WL message, and a few other issues,
I have recently moved back to GNUS which is basically more robust in all
ways (although has a much steeper learning curve... but that's a story
for another mailing list ;-).

> Maybe I've misunderstood the documentation and I search the web without
> success. I will really appreciate if someone could give me a example of a
> working link using WL in a Maildir configuration

One example I have looks like this =wl:.wlinbox#4c63a6xxx0...@xxx.ac.uk=

(with some bits replaced by XXX to protect the innocent)

-- 
Eric S Fraga, GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
using Org-mode version 7.02trans (release_7.3.6.gf0d2) 
in Emacs version 23.2.1

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


Re: [Orgmode] [bug] two bugs: one with comments and with exporting inline tasks

2010-11-02 Thread Eric S Fraga
Eric S Fraga  writes:

> Nicolas Goaziou  writes:
>
>> Hello,
>>
>>>>>>> Eric S Fraga writes:
>>
>>> I believe both of these problems are related to the new list
>>> handling as I used to be able to export inline tasks perfectly fine
>>> in September.
>>
>> Well, this is strange. I tried to get back to 7.01h, 7.01 and 6.36c
>> and I obtain this same behavior.
>>
>> What kind of export did you use to obtain?
>>
>> Regards,
>>
>> -- Nicolas
>
> Well, now that you ask, I'm not sure what I used to obtain!I
> don't have any PDFs from when I was preparing my big proposal in August
> and September other than the final version (which obviously didn't have
> any inline tasks in it...).  So maybe I've been very unfair to you and
> the problem has always existed.  Sorry!
>
> It's still the case that there are two problems.  For the first, there's
> obviously some leakage from the HTML export into the LaTeX export in
> that the list entry (which comes from the inline heading) is given an
> argument that seems to be HTML/CSS code...  For the second problem,
> maybe I've misunderstood the export of a sub-tree -- I've initiated the
> export outside the inline heading so the export should include
> everything below the heading above?
>
> I'll play around some more tonight if I get a chance to see if I can
> narrow down the reasons for the failure.

I have done so and there's some interesting behaviour.  Here is a
summary of 4 different results exporting essentially the same content
for the attached org file:

1. export the whole file (C-cC-ed) produces a document with all the
   content but with the inline task defining a latex =\item= with a
   strange label (as indicated in my earlier message).

2. go to the headline and select the sub-tree (C-c@) and then export
   (C-cC-ed) generates a PDF with only the text up to the start (but not
   including) of the inline task.

3. place the cursor on *point 1* and export the sub-tree (C-cC-e1d)
   generates the same output as the previous point.

4. finally, place the cursor on *point 2* and export the sub-tree
   (C-cC-e1d) exports only the text *after* the inline task.


Basically, for the last three cases, the exporter has a problem figuring
out what sub-tree actually is.  I don't think the problems have anything
to do with the new list handling (apologies again!).

I hope this helps somebody figure out what is going on.

Thanks,
eric
# -*- coding: utf-8; -*-
#+TITLE: examplebug.org
#+AUTHOR:Eric S Fraga
#+EMAIL: e.fr...@ucl.ac.uk
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT: 

* problem exporting to latex with inline tasks

*point 1* 

I often use inline tasks to help me organise my thoughts as I am
writing long documents.  However, exporting these no longer seems to
work.

* TODO figure out why this doesn't work
* END

*point 2*

This is some text the follows the inline task.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.6.gf0d2)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [error] Error in the info manual on :noweb header arguments

2010-11-03 Thread Eric S Fraga
The following has a small error:

,
| 14.8.2.10 `:noweb'
| ..
| 
| The `:noweb' header argument controls expansion of "noweb" style (see
| *note Noweb reference syntax::) references in a code block.  This header
| argument can have one of three values: `yes' `no' or `tangle'.
| 
|* `yes' All "noweb" syntax references in the body of the code block
|  will be expanded before the block is evaluated, tangled or
|  exported.
| 
|* `no' The default.  No "noweb" syntax specific action is taken on
|  evaluating code blocks, However, noweb references will still be
|  expanded during tangling.
| 
|* `yes' All "noweb" syntax references in the body of the code block
|  will be expanded before the block is tangled, however "noweb"
|  references will not be expanded when the block is evaluated or
|  exported.
`----

Specifically, the last bullet point should be for `tangle', not `yes'.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.10.g7f79)

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


[Orgmode] [babel] do header arguments on call/function/lob evaluations work or not

2010-11-03 Thread Eric S Fraga
Hello,

short question as I seem to have got lost between the mailing list
archives, the Worg documentation and the info files: does passing header
arguments when invoking a babel source code block using call or function
actually work?  it doesn't seem to for me for Ledger blocks (I've been
trying to update the tutorial example) and I wonder whether I have done
something wrong with the ob-ledger code initially...

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.10.g7f79.dirty)

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


Re: [Orgmode] [babel] do header arguments on call/function/lob evaluations work or not

2010-11-03 Thread Eric S Fraga
"Thomas S. Dye"  writes:

> Hi Eric,
>
> I don't think they work yet.  See Eric Schulte's message to the mailing list
> on Oct. 27:
>
> Re: [Orgmode] org babel and alternative output file when using +call
>
> All the best,
>
> Tom
>
> On Nov 3, 2010, at 5:03 AM, Eric S Fraga wrote:
>
> Hello,
>
> short question as I seem to have got lost between the mailing list
> archives, the Worg documentation and the info files: does passing header
> arguments when invoking a babel source code block using call or function
> actually work?  it doesn't seem to for me for Ledger blocks (I've been
> trying to update the tutorial example) and I wonder whether I have done
> something wrong with the ob-ledger code initially...
>
> Thanks,
> eric
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
> : using Org-mode version 7.02trans (release_7.3.10.g7f79.dirty)
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

Thanks for the confirmation, Tom.  It's what I thought but I wasn't sure
any more which was the definitive statement on the current state of the
art!

Thanks again,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.10.g7f79.dirty)

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


Re: [Orgmode] Umlauts in LaTeX export

2010-11-03 Thread Eric S Fraga
Jean-Marie Gaillourdet  writes:

> Dear Richard,
>
> Stefan Vollmar  writes:
>
>> Dear Richard,
>>
>> sitting in front of a German keyboard, writing
>>
>> Gödel
>>
>> seems to be the obvious solution for modern LaTeX and Emacs versions - you
> could define some shortcut to insert the appropriate Unicode character
> into your text (as your keyboard probably does not feature a "ö" key),
> or copy/paste the Umlauts from another Emacs file as necessary. If you
> do not need it very often, this might be a reasonable alternative.
>
> Although I am german, I use an american keyboard layout for coding and
> everything else. But there is a nice emacs solution to enter umlauts:
> =C-x RET C-\ german-postfix RET= This enables an input method which
> allows you to enter all german umlauts: ä ü ö Ä Ü Ö and ß.
>
> Entering an `a' followed immediately by an `e' generates an ä, followed
> by another `e' it becomes `ae`, similar for ü and ö . `s` followed by
> `z` generates an `ß`. Larger variants are typed by typing two large
> letters.
>
> Regards,
>   Jean-Marie

Even better, for the OP, is to switch to the tex input method (M-x
set-input-method RET tex RET)!  In this case, you can type \"o to get ö.
Almost all TeX and LaTeX sequences are understood (e.g. \forall to get
∀, \exists for ∃, \alpha for α, \leftrightharpoons for ⇋, and so on.)
You can see all the characters with =describe-input-method=.


-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.10.g7f79.dirty)

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


Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-03 Thread Eric S Fraga
Forgot to CC the list et al.

"Eric Schulte"  writes:

> Eric S Fraga  writes:

[...]

>> I now wonder if it would be worthwhile discussing the choices you have
>> made regarding stack versus algebraic evaluation.  I would rather have
>> the quote mean an algebraic expression, just from the simple reason that
>> these will be longer than stack operations and so the overhead of a
>> quote is smaller as a percentage of keystrokes...
>>
>
> Hmm, one point against prefixing the algebraic expressions is that they
> would be more likely to be used by themselves in an inline code block.

Yes, I guess so.  My initial thoughts were that we have plenty of
algebraic languages available already through babel (octave, R, python,
...) so why not support a stack based one more directly.   However, the
real benefit of calc is that it is *emacs* and not external!  Algebraic
is more natural to most people so making it easy for them to express
themselves makes sense.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.10.g7f79.dirty)

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


Re: [Orgmode] [patch] two bugs: one with comments and with exporting inline tasks

2010-11-04 Thread Eric S Fraga
Nicolas Goaziou  writes:

> Oh my...
>
> Here is the third (and hopefully final) version of the patch.
>
> Sorry for the noise.
>
> -- Nicolas
>
>

Thanks Nicolas.  This one does work partly especially when exporting the
whole document and is a definite improvement on what was there before!

The one problem it has is that the description environment should be
closed when the /end/ of the inline task is found.  At present, you are
closing the description environment well after that (I think when you
hit the next heading?).

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad.dirty)

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


[Orgmode] [babel] Ledger tutorial rewritten

2010-11-04 Thread Eric S Fraga
I have just pushed changes to the org babel Ledger tutorial on Worg.
This should hopefully be propagated to the actual web site in due course
and will be found at:

: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.php

I have removed the discussion on tangling and replaced this with the
more user friendly use of :noweb literate programming.  Comments are
more than welcome, of course!

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)

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


Re: [Orgmode] Umlauts in LaTeX export

2010-11-04 Thread Eric S Fraga
Nick Dokos  writes:

[...]

> There are a couple of assumptions here (and in Eric F.'s mail about the
> TeX input method as well). One is that the buffer is encoded in UTF-8:
> if you use e.g iso-8859-1, you can use whatever input method you want,
> but you'll end up with a byte in your file that LaTeX won't like.

Umm, just to clarify something: the file can well be in iso-8859-1
encoding.  It need not be in UTF-8 if all you want are typical west
European characters (umlauts etc.).  For instance, the following file
contents work just fine (I've forced iso-8859-1 encoding although I use
UTF-8 more often than not):

--8<---cut here---start->8---
# -*- coding: iso-8859-1; -*-

* Introduction

This text includes a number of characters from España because we want
to say /cigüeña/ instead of /swan/.
--8<---cut here---end--->8---

This exports just fine to latex and org automatically includes the line:

: \usepackage[latin1]{inputenc}

I've attached the org file in case anybody wants to play with this very
small example.

# -*- coding: iso-8859-1; -*-

* Introduction

This text includes a number of characters from España because we want
to say /cigüeña/ instead of /swan/.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] make a timeline from a table?

2010-11-04 Thread Eric S Fraga
Matt Price  writes:

> Hi eveyone,
>
> I'm trying to do something that seems really simple to me but i still don't
> know how to do.  I want to draw a timeline that represents the stages of a
> research project (inception, research, presentation, writing, submission,
> publication...)  and I would like it to look something like this:
>
> -
> \ \
>  \ \
>   inception    research
>
> only I want it to be pretty, say with little circular nodes connecting the
> diagonal lines to the main horizontal lines, and with the text aligned
> diagonally along the lines.  Is there an easy way to do this in org, and will
> it export say to html?  Or if not in org, some way to generate the graphic
> from a set of datapoints?  I imagine this must exist but I don't often make
> charts and graphics so I don't know how to do it. 
>
> Anyway, I appreciate your help.  Thanks,
> Matt

Matt,

I don't know of an org specific example of how to do this but I know
there are plenty of latex+tikz examples out there (google "timeline
latex tikz" for instance).  With some simple emacs lisp code, you should
be able to convert an org table to suitable input for tikz.

If you want a GANTT chart approach instead, check out a posting I made
to list back in early October:

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

Maybe check that message out in any case for an example of how to work
with an org table and create tikz commands for latex export.

HTH,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)

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


Re: [Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-04 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hi Eric (and Dan),
>
> "Eric Schulte" wrote:
>> This is really great.  I finally folded it into my gnus setup, and while
>> it looks great when it works
>
> Great you love it. I'm *VERY* pleased. Moreover, having no reaction on that
> (and on some other posts[1]), I thought I'd been kill-filed ;-)[2]

Sébastien et al.,

I have also included the code in my gnus configuration but I am not sure
if it is actually doing anything or not.  Well, actually, I think it
*is* doing something but I haven't actually seen any fontification etc.
On the other hand, I am still getting to grips with gnus article display
functionality so I've probably done something wrong...

If there are any obvious things I should be looking at, please let me know.

>> I was getting frequent errors throw by the org-mode fontification engine
>> recursing too deeply. I've changed it to the following which augments what
>> you sent with some simple error handling.
>
> I _never_ observed problems in my case. Anyway, adding such a protection is
> the code is a great addition. Thanks!
>
> I've just singed the FSF papers. Once received by the FSF, I'll
> propagate your update onto the Gnus newsgroup.

Please post here as well.  I do follow the gnus newsgroup but less
frequently.

> When that will be done, we will have a real Org experience when
> reading mails with Gnus. I love all this tools.

Yes, there's great potential for the gnus+org combination to give a
really nice email experience!

Thanks,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)

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


Re: [Orgmode] Re: [babel] Ledger tutorial rewritten

2010-11-04 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hi Eric,
>
> Eric S Fraga wrote:
>> I have just pushed changes to the org babel Ledger tutorial on Worg.
>> This should hopefully be propagated to the actual web site in due course
>> and will be found at:
>>
>> : http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.php
>>
>> I have removed the discussion on tangling and replaced this with the
>> more user friendly use of :noweb literate programming.  Comments are
>> more than welcome, of course!
>
> Thanks for that... Much better -- readability and portability wise -- way to
> do it (IMHO)!

Thanks!  I did get some very useful and appropriate feedback from you
all.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)

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


Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-04 Thread Eric S Fraga
"Eric Schulte"  writes:

> Alright,
>
> I've just pushed up support for variables.  The following should all
> work as expected (or at least as I would expect them to).  Note that
> most all of these blocks would have an effect on the calc stack.  I
> think the next step would be to allow different sessions to specify
> different stacks.

[...]

works well for me!  Thanks.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.18.g3818)

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


Re: [Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-04 Thread Eric S Fraga
"Eric Schulte"  writes:

[...]

> if it is working, then the following code block should be fontified as
> if in an Org-mode buffer
>
> #+begin_src emacs-lisp
>   (message "is it working?")
> #+end_src

Definitely not working then!  This comes out as simple text in gnus and
doesn't look at all like it would in an org buffer for me.

[...]

> the above should do it.  My addition recovers from failures by inserting
> the unfontified text into the buffer, so it's possible that whatever
> issue I have that throws errors on non-src blocks is also an issue on
> your machine and is throwing errors on all blocks, which would explain
> why you aren't seeing any difference in your article buffers.

Looks like it.  Is there any way to debug this?  I don't get any
messages in Emacs (*Messages*).  I seem to have the same settings as
Sébastien has posted along with your augmented error handling.  I don't
really understand all the mm-uu code (although I'm learning...) so I am
not sure how gnus knows to invoke the specific org code you guys have
posted.

Maybe other gnus configurations, especially gnus-part-display-hook, may
be interfering?

thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.14.g106ad)

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


Re: [Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-04 Thread Eric S Fraga
Sébastien Vauban  writes:

> Eric,
>
> Eric S Fraga wrote:

[...]

>> If there are any obvious things I should be looking at, please let me know.
>
> Not that I know of.
>
> For the sake of completeness, this is the part I have about my viewing
> customizations.
>
> Maybe take this into your .gnus and see what it gives?

The only difference in your code (compared with mine) was:

>   (eval-after-load "mm-uu"
> '(progn

[... identical code follows until ...]

>(mm-uu-configure)))

I was evaluating everything immediately on loading gnus.  I've put in
all this within the =eval-after-load= and restarted emacs but everything
is the same.  No fontification of src blocks.

thanks again,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.18.g3818)

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


  1   2   3   4   5   6   7   8   9   10   >