Re: [Orgmode] Re: Including current time in agenda

2011-01-08 Thread Erik Butz
Hi,

ok, sorry I made a copy-paste error into the mail for the function and
the call. But indeed I wasn't aware that this had become standard.
Indeed after pulling the latest version and removing those statements
everything (including the current time!) is working.

Sorry for the noise.

Thanks,

Erik

On Sat, Jan 8, 2011 at 1:04 AM, suvayu ali  wrote:
> Hi Erik,
>
> On Fri, Jan 7, 2011 at 3:46 PM, Erik Butz  wrote:
>> I have
>>
>>
>> (defun jd:org-current-time ()
>>  "Return current-time if date is today."
>>  (when (equal date (calendar-current-date))
>>   (format-time-string "%H:%M ◄——" (current-time
>>
>> in the .emacs file and and entry
>>
>> * Current Time
>>  :PROPERTIES:
>>  :CATEGORY: NOW ——►
>>  :END:
>>
>> %%(org-current-time)
>>
>> in one of my .org files. That's about all I did.
>>
>
> To get the current time, you don't need to do that any more. After
> Carsten's change org shows that by default. Just remove that entry from
> your agenda file and if you have any entries for today, the current time
> shows up as NOW by default. You can even customise the face by
> customising the face `org-agenda-current-time'.
>
> As for your problem with your current setup, I think the problem is you
> call the incorrect sexp. The entry should be,
>
> %%(jd:org-current-time)
>
>> Any clues from this?
>>
>> Thanks,
>>
>> Erik
>
> Hope this helps
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>

___
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: Including current time in agenda

2011-01-07 Thread Erik Butz
I have


(defun jd:org-current-time ()
 "Return current-time if date is today."
 (when (equal date (calendar-current-date))
   (format-time-string "%H:%M ◄——" (current-time

in the .emacs file and and entry

* Current Time
 :PROPERTIES:
 :CATEGORY: NOW ——►
 :END:

%%(org-current-time)

in one of my .org files. That's about all I did.

Any clues from this?

Thanks,

Erik



On Sat, Jan 8, 2011 at 12:27 AM, suvayu ali  wrote:
> On Fri, Jan 7, 2011 at 11:31 AM, Erik Butz  wrote:
>> Hi all,
>>
>> thanks for this very nice feature. It's working mostly for me, but
>> now, whenever I try to insert a 'date, deadline,scheduled date' I get
>> an error saying:
>>
>> "Symbol's value as variable is void: date"
>>
>> which I don't quite understand.
>>
>> Any ideas?
>>
>
> I have been using it without any problems so far. Could you elaborate a
> little on how you are trying to use it? I just set these variables,
> (both are optional though, defaults should work out of the box)
>
> (setq org-agenda-current-time-string "- - - NOW! - - -"
>      org-agenda-time-grid '((daily today)
>                             ""
>                             (800 1000 1200 1400 1600 1800 2000)))
>
>> Thanks,
>>
>> Erik
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>

___
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: Including current time in agenda

2011-01-07 Thread Erik Butz
Hi all,

thanks for this very nice feature. It's working mostly for me, but
now, whenever I try to insert a 'date, deadline,scheduled date' I get
an error saying:

"Symbol's value as variable is void: date"

which I don't quite understand.

Any ideas?

Thanks,

Erik

On Sun, Dec 12, 2010 at 10:31 PM, Matt Lundin  wrote:
> Eric S Fraga  writes:
>
>> Carsten Dominik  writes:
>>
>> [...]
>>
>>> I agree that this is creative and great.
>>>
>>> However having the current time in the time grid is so useful that
>>> I have now made it the default, no diary sexp needed.
>>
>> Thanks for this, Carsten.  I like being able to change the face easily
>> (in my case, I simply set it to underline with no agenda string to keep
>> a minimalist approach).
>>
>> However, there is one problem (?): if I change my view to another day
>> (using, say, "j" in the agenda day view), I get the "current time"
>> highlighted for that other day and obviously the current time makes no
>> sense other than for "today", I would argue.
>
> The patch below fixes the issue for me.
>
> Best,
> Matt
>
> --8<---cut here---start->8---
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index fb26ee9..67c8d89 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -5353,7 +5353,7 @@ The modified list may contain inherited tags, and tags 
> matched by
>                new)
>          (put-text-property
>           2 (length (car new)) 'face 'org-time-grid (car new
> -      (when org-agenda-show-current-time-in-grid
> +      (when (and todayp org-agenda-show-current-time-in-grid)
>        (push (org-format-agenda-item
>               nil
>               org-agenda-current-time-string
> --8<---cut here---end--->8---
>
>
> ___
> 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
>

___
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: re-importing ascii export

2010-12-06 Thread Erik Butz
any hints at all?

On Fri, Nov 26, 2010 at 5:54 PM, Erik Butz  wrote:
> Hi all,
>
> I have a possibly stupid question, which is the following: I have a
> txt file which has been exported using org mode and I don't have the
> initial file. Is there any way to convert the ascii export back into a
> native orgmode file so as to have the usual feature as folding etc?
>
> Any hints appreciated.
>
> Thanks,
>
> Erik
>

___
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-importing ascii export

2010-11-26 Thread Erik Butz
Hi all,

I have a possibly stupid question, which is the following: I have a
txt file which has been exported using org mode and I don't have the
initial file. Is there any way to convert the ascii export back into a
native orgmode file so as to have the usual feature as folding etc?

Any hints appreciated.

Thanks,

Erik

___
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-babel problem

2010-11-26 Thread Erik Butz
Hi,

people with more git experience should comment here, but it seems with:
~/elisp/org-mode $ git status

you will get a list of currently untracked files in the local working
directory. These are of course both files or directories deleted from
the repository (as /lisp/babel) but also files that you included
locally to extend your local installation.

In my case the above yielded:
# On branch master
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
#   Makefile.old
#   contrib/docbook2twiki.xsl
#   contrib/lisp/org-taskjuggler.el
#   lisp/babel/
#   lisp/org-R.el
#   lisp/org-twiki.el
nothing added to commit but untracked files present (use "git add" to track)

so the lisp/babel directory shows up there. In principle there is "git
clean", but looking at what it would do:
> git clean -n
Would remove Makefile.old
Would remove contrib/docbook2twiki.xsl
Would remove contrib/lisp/org-taskjuggler.el
Would not remove lisp/babel/
Would remove lisp/org-R.el
Would remove lisp/org-twiki.el

it explicitly states that it would NOT remove the lisp/babel
directory. But at least both these things can tell you what is maybe
still there but not actually in the repository anymore (+your personal
files).

If anyone has a good way to keep the installation clean w/o having to
make a new clone each time, any hints would be appreciated ;)

Thanks,

Erik


On Fri, Nov 26, 2010 at 11:45 AM, Sebastian Hofer  wrote:
> For the record, I was having the exact same problem, just didn't have the 
> time to post it. So it's not just you!
> I just deleted the babel directory now everything is fine again. git didn't 
> even notice it was gone.
>
> Thanks for finding the culprit!
> Sebastian
>
> At Thu, 25 Nov 2010 22:04:22 +0100,
> Erik Butz wrote:
>>
>> Hi,
>>
>> thanks for the replies. It obviously was something stupid. I did not
>> execute babel code for quite some time, and for some reason I still
>> had a
>> (setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path))
>>
>> in my .emacs and apparently I did not clean up enough and so the
>> ob.elc file in that directory then shadowed the one in the /lisp
>> directory. I tried a clean 'git clone' and there it worked and indeed
>> that directory is not even there. How would I remove that old
>> /lisp/babel directory using git? Typically I just do a 'git pull' and
>> then 'make clean' 'make' to update, but that obviously can lead to
>> problems.
>>
>> Thanks again,
>>
>> Erik
>>
>>
>>
>> 2010/11/25 Sébastien Vauban :
>> > Hi Erik,
>> >
>> > Erik Butz wrote:
>> >> I am trying to run some org-babel code, but while this used to work in
>> >> the past, I am now getting an error which says
>> >>
>> >> "Symbol's function definition is void: org-babel-get-header"
>> >
>> > The function is defined in my installation. Git version of yesterday.
>> >
>> >> Somehow I am puzzled, since this function is defined in lisp/ob.el and
>> >> since this file provides 'ob and I have (require 'ob) in my .emacs I
>> >> don't see why this should happen.
>> >
>> > Are you sure it really *is* loaded?  What happens if you C-x C-e after the
>> > require line?
>> >
>> >> Is there any check I should perform to see where and why this is failing?
>> >>
>> >>  I am using GNU Emacs 23.1. with Org-mode version 7.3
>> >> (release_7.3.130.g9cc1) even though I somehow suspect that it's not
>> >> either of the software versions that is responsible for this.
>> >>
>> >> Any hints appreciated.
>> >
>> > Maybe you code post your block, or a stripped down version of it, if you 
>> > want
>> > me to try and use it?
>> >
>> > In any case, AFAIK, it /should/ not fail here with the above message...
>> >
>> > 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
>> >
>>
>> ___
>> 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
>>
>
>
>
> ___
> 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
>

___
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-babel problem

2010-11-25 Thread Erik Butz
Hi,

thanks for the replies. It obviously was something stupid. I did not
execute babel code for quite some time, and for some reason I still
had a
(setq load-path (cons "/home/erik/elisp/org-mode/lisp/babel" load-path))

in my .emacs and apparently I did not clean up enough and so the
ob.elc file in that directory then shadowed the one in the /lisp
directory. I tried a clean 'git clone' and there it worked and indeed
that directory is not even there. How would I remove that old
/lisp/babel directory using git? Typically I just do a 'git pull' and
then 'make clean' 'make' to update, but that obviously can lead to
problems.

Thanks again,

Erik



2010/11/25 Sébastien Vauban :
> Hi Erik,
>
> Erik Butz wrote:
>> I am trying to run some org-babel code, but while this used to work in
>> the past, I am now getting an error which says
>>
>> "Symbol's function definition is void: org-babel-get-header"
>
> The function is defined in my installation. Git version of yesterday.
>
>> Somehow I am puzzled, since this function is defined in lisp/ob.el and
>> since this file provides 'ob and I have (require 'ob) in my .emacs I
>> don't see why this should happen.
>
> Are you sure it really *is* loaded?  What happens if you C-x C-e after the
> require line?
>
>> Is there any check I should perform to see where and why this is failing?
>>
>>  I am using GNU Emacs 23.1. with Org-mode version 7.3
>> (release_7.3.130.g9cc1) even though I somehow suspect that it's not
>> either of the software versions that is responsible for this.
>>
>> Any hints appreciated.
>
> Maybe you code post your block, or a stripped down version of it, if you want
> me to try and use it?
>
> In any case, AFAIK, it /should/ not fail here with the above message...
>
> 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
>

___
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] org-babel problem

2010-11-25 Thread Erik Butz
Hi all,

I am trying to run some org-babel code, but while this used to work in
the past, I am now getting an error which says

"Symbol's function definition is void: org-babel-get-header"

Somehow I am puzzled, since this function is defined in lisp/ob.el and
since this file provides 'ob and I have (require 'ob) in my .emacs I
don't see why this should happen.

Is there any check I should perform to see where and why this is failing?

 I am using GNU Emacs 23.1. with Org-mode version 7.3
(release_7.3.130.g9cc1) even though I somehow suspect that it's not
either of the software versions that is responsible for this.

Any hints appreciated.

Thanks,

Erik

___
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: \nbsp usage

2010-07-15 Thread Erik Butz
Hi all,

the problem was on my side, the change was for some reason not picked
up by git.
Works also for me now.

Thanks Carsten for the quick fix.

Cheers,

Erik

___
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: \nbsp usage

2010-07-14 Thread Erik Butz
Hi Carsten,

unfortunately, after doing a 'git pull' and recompiling \nbsp{}m^2
still results in 200~\{\}m$^2$  for me.

Cheers,

Erik

2010/7/14 Carsten Dominik :
> Hi everyone,
>
> 20\nbsp{}m^2 should now work.
>
> Thanks!
>
> - Carsten
>
> On Jul 14, 2010, at 9:19 AM, Sébastien Vauban wrote:
>
>> Hi Nick, Bernt, Erik and the rest,
>>
>> Nick Dokos wrote:
>>>
>>> Bernt Hansen  wrote:
>>>>
>>>> Erik Butz  writes:
>>>>>
>>>>> If I do: 200\nbspm^2
>>>>> it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.
>>
>> My solution is to insert a real non-breaking space (yes, it does exist, as
>> a
>> different character from the space), almost invisible (light gray, by
>> choice)
>> under Emacs, and correctly handled in LaTeX.
>>
>> See http://comments.gmane.org/gmane.emacs.orgmode/24716
>> and http://article.gmane.org/gmane.emacs.orgmode/15116.
>>
>> 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
>
> - Carsten
>
>
>
>
> ___
> 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
>

___
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] \nbsp usage

2010-07-13 Thread Erik Butz
Hi all,

I have a somewhat stupid problem, but didn't find a solution in the
manual or the list archive.
I want to use the \nbsp macro to generate a '~' symbol for Latex, but
I don't seem to get it to work correctly in my case.
I want to write 200~m²

If I do: 200\nbspm^2
it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.

If I do: 200\nbsp m^2
it gets exported as 198~ m$^2$, so in addition to the nbsp there is
another space at which a linebreak can occur

trying: 200\nbsp{}m^2 in analogy to other commands
I get: 200~\{\}m$^2$, so the parentheses are not recognized as
belonging to the command.

I am using the latest org version (just did a git pull and checked
that the behavior is still there) with emacs 23.1.1

Any hints appreciated.

Thanks,

Erik

___
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: latex export and booktabs tables

2010-06-28 Thread Erik Butz
Hi Eric,

I can only agree with what has already been said, namely that this is
a very nice solution which indeed is much more generic and does not
require fiddling with the core of the distribution.

Thanks for this, this even closes, I think, the older thread or
re-opens it to further discussion ;)

Cheers,

Erik

On Mon, Jun 28, 2010 at 5:16 PM, Eric Schulte  wrote:
> Hi Sébastien,
>
> Sébastien Vauban  writes:
>
>> Hi Eric,
>>
>> Carsten Dominik wrote:
>>> On Jun 28, 2010, at 7:09 AM, Eric Schulte wrote:
>>>
 One way to deal with this without adding even more complexity to the core
 of org-mode could be through the use of "Library of Babel" functions.

 The attached org-mode file provides a function for exporting to the
 longtable environment with some example usage. If this looks generally
 useful it (and maybe similar functions) could be added to the library of
 babel distributed w/Org-mode.

 What do you think? -- Eric
>>>
>>> This looks like a great solution to me.
>>
>> It does look great to me as well. Just a request on the wish-list: could the
>> table environment be made a parameter (so that we can choose between tabular,
>> tabular*, etc.)?
>>
>
> Sure, my thinking was that it may be more natural to use the environment
> type as the function name (allowing more concise function calls).  Also,
> that way if there are some arguments that only make sense for particular
> environment (I'm not sure that there are) then it would be easy to
> customize the functions on a per-environment bases.  But if these
> environments are all pretty similar
> - tabular*
> - booktabs
> - longtable
> - tablex
> - array
> then I guess one single function is the way to go.
>
> I'll add this to the library-of-babel.org in
> contrib/babel/library-of-babel.org and please feel free to play around
> with the function definition.  This file lives in the contrib directory
> to encourage user participation -- in fact maybe the
> library-of-babel.org (or a copy) should move to Worg.
>
> Thanks -- Eric
>
>>
>> Best regards,
>>   Seb
>
> ___
> 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
>

___
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] latex export and booktabs tables

2010-06-22 Thread Erik Butz
Hi all,

I found a very old thread on the list about using the booktabs package
to have nicer tables in latex export.

I found that, making the changes below I can use the booktab package
to export tables, and using standard tables only, this seems to work
fine.

Can anyone advice on whether this kind of change is meaningful or if
this is likely to introduce difficulties elsewhere which I did not
experience due to the limited scope of usage? It should be said that I
did not at all look into longtables so far.

Cheers,

Erik

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 01a4b05..31ceba4 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1658,7 +1658,7 @@ The conversion is made depending of
STRING-BEFORE and STRING-AFTER."
 (if (and longtblp caption) "\n" "\n")
 (if (and org-export-latex-tables-centered
(not longtblp))
 "\\begin{center}\n")
-(if (not longtblp) (concat
"\\begin{tabular}{" align "}\n"))
+(if (not longtblp) (concat
"\\begin{tabular}{" align "}\n\\toprule\n"))
 (orgtbl-to-latex
  lines
  `(:tstart nil :tend nil
@@ -1670,7 +1670,7 @@ The conversion is made depending of
STRING-BEFORE and STRING-AFTER."
 \\endfoot
 \\endlastfoot" (length org-table-last-alignment))
  nil)))
-(if (not longtblp) (concat "\n\\end{tabular}"))
+(if (not longtblp) (concat
"\n\\bottomrule\n\\end{tabular}"))
 (if longtblp "\n" (if org-export-latex-tables-centered
   "\n\\end{center}\n" "\n"))
 (if longtblp
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 46efc28..130ccf2 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4222,7 +4222,7 @@ this function is called."
   :tstart (concat "\\begin{tabular}{" alignment "}")
   :tend "\\end{tabular}"
   :lstart "" :lend " " :sep " & "
-  :efmt "%s\\,(%s)" :hline "\\hline")))
+  :efmt "%s\\,(%s)" :hline "\\midrule")))
 (orgtbl-to-generic table (org-combine-plists params2 params

 (defun orgtbl-to-html (table params)
diff --git a/lisp/org.el b/lisp/org.el
index 2628152..ed6dabe 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3087,6 +3087,7 @@ will be appended."
 ("" "wasysym"   t)
 ("" "latexsym"  t)
 ("" "amssymb"   t)
+("" "booktabs"   t)
 ("" "hyperref"  nil)
 "\\tolerance=1000"
 )

___
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] correction to orgtbl-to-html description

2010-06-22 Thread Erik Butz
Hi,

below a trivial fix to the describtion of the orgtbl-to-html function

Hope I didn't miss something obvious ;)

Cheers,

Erik

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 46efc28..f6b77aa 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4226,7 +4226,7 @@ this function is called."
 (orgtbl-to-generic table (org-combine-plists params2 params

 (defun orgtbl-to-html (table params)
-  "Convert the orgtbl-mode TABLE to LaTeX.
+  "Convert the orgtbl-mode TABLE to HTML.
 TABLE is a list, each entry either the symbol `hline' for a horizontal
 separator line, or a list of fields for that line.
 PARAMS is a property list of parameters that can influence the conversion.

___
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] export beamer

2010-05-04 Thread Erik Butz
Hi Rares,

actually it seems that it IS working. The error you are getting now is
a latex error saying that you are missing a package (wrapfig).  You
probably need to update your latex installation with that package. The
way you do this, depends on the distribution you're using. On
ubuntu/debian you could do:
apt-cache search wrapfig

which would give:
texlive-latex-extra - TeX Live: LaTeX supplementary packages

which would then be the package that you're missing.


Cheers,

Erik


On Tue, May 4, 2010 at 3:18 PM, Rares Pop  wrote:
> It's not working.
>
> I'm getting the following error when exporting to PDF:
>
> ! LaTeX Error: File `wrapfig.sty' not found.
>
> Type X to quit or  to proceed,
> or enter new name. (Default extension: sty)
>
> Enter file name:
> ! Emergency stop.
> 
>
> l.11 \usepackage
>     {soul}^^M
> *** (cannot \read from terminal in nonstop modes)
>
>  Thanks,
> Rares
>
> On Tue, May 4, 2010 at 3:47 PM, Erik Butz  wrote:
>>
>> Hi Rares,
>>
>> I had a similar problem recently which was cured by including
>>
>> (require 'org-latex)
>>
>> in my .emacs file. Does this help in your case?
>>
>> Cheers,
>>
>> Erik
>>
>> On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
>> > Hi all,
>> >
>> > i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
>> > beamer document from the Beamer tutorial
>> > http://orgmode.org/worg/org-tutorials/org-beamer.php
>> > but i get the following error:
>> >
>> > org-export-latex-set-initial-vars: No definition for class `beamer' in
>> > `org-export-latex-classes'
>> >
>> > Can you please help me on this front?
>> >
>> > Thanks,
>> > Rares
>> >
>> > ___
>> > 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
>> >
>> >
>
>


___
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] export beamer

2010-05-04 Thread Erik Butz
Hi Rares,

I had a similar problem recently which was cured by including

(require 'org-latex)

in my .emacs file. Does this help in your case?

Cheers,

Erik

On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
> Hi all,
>
> i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
> beamer document from the Beamer tutorial
> http://orgmode.org/worg/org-tutorials/org-beamer.php
> but i get the following error:
>
> org-export-latex-set-initial-vars: No definition for class `beamer' in
> `org-export-latex-classes'
>
> Can you please help me on this front?
>
> Thanks,
> Rares
>
> ___
> 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
>
>


___
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] strange behavior for export -- Solved

2010-05-04 Thread Erik Butz
Hi,

after some fiddling and looking at list-load-path-shadows (where I did
not find org-latex at all), I included
(require 'org-latex)
into my .emacs file, which solved the problem. This solution somewhat
puzzles me though, since I would have expected that org-latex is
loaded by default. But maybe I am missing something.

At any rate, thanks for the help.

Cheers,

Eri K




On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
 wrote:
> Hi Eric,
>
> I think this could mean two things.  Most likely org is loading
> some other version of org-latex.el.  One way to find out is to run M-x
> list-load-path-shadows.
>
> Another possibility is that you have somewhere a configuration setting of
> org-export-latex-classes that is old and does not contain the beamer class
> definition, and somehow that setting is loaded before org-latex.el is
> loaded.
>
> HTH
>
> - Carsten
>
> On Apr 30, 2010, at 7:01 PM, Erik Butz wrote:
>
>> Hi all,
>>
>> I have the following problem:
>>
>> I have set up my emacs so as to use org-mode uncompiled from a local
>> directory
>>
>> # from .emacs
>> (setq load-path (cons "~/elisp/org-mode/lisp" load-path))
>> (setq load-path (cons "~/elisp/org-mode/contrib/lisp" load-path))
>>
>>
>> starting emacs22 or 23 and displaying M-x org-version I get:
>>
>> Org-mode version 6.35trans (release_6.35g.207.g7f085)
>>
>> so indeed the version from the local directory.
>>
>> when I take a document with the following preamble:
>>
>> #+LaTeX_CLASS: beamer
>> #+TITLE:     present.org
>> #+AUTHOR:    Erik
>> #+EMAIL:     e...@eddie
>> #+DATE:      2010-04-08 Thu
>> #+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:nil 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:
>>
>> and export this to latex I get the following:
>>
>>
>> \documentclass[11pt,a4paper]{article}
>> \usepackage[utf8]{inputenc}
>> \usepackage[T1]{fontenc}
>> \usepackage{graphicx}
>> \usepackage{hyperref}
>>
>>
>> \title{present.org}
>> \author{Erik}
>> \date{2010-04-08 Thu}
>>
>> \begin{document}
>>
>> \maketitle
>>
>> \setcounter{tocdepth}{3}
>> \tableofcontents
>>
>>
>> \end{document}
>>
>> so despite the #+LaTeX_CLASS: beamer, the document gets exported as
>> 'article'. Even worse, when I try to export the same document again
>> afterwards, I get a:
>> No definition for class `beamer' in `org-export-latex-classes'
>>
>> error.
>>
>> When I issue a 'reload-org-uncompiled' directly after starting emacs,
>> this behavior does not occur.
>>
>> In this case I get, as expected:
>>
>> \documentclass{beamer}
>> \usepackage[utf8]{inputenc}
>> \usepackage[T1]{fontenc}
>> \usepackage{fixltx2e}
>> \usepackage{graphicx}
>> \usepackage{longtable}
>> \usepackage{float}
>> \usepackage{wrapfig}
>> \usepackage{soul}
>> \usepackage{t1enc}
>> \usepackage{textcomp}
>> \usepackage{marvosym}
>> \usepackage{wasysym}
>> \usepackage{latexsym}
>> \usepackage{amssymb}
>> \usepackage{hyperref}
>> \tolerance=1000
>> \providecommand{\alert}[1]{\textbf{#1}}
>>
>> \title{present.org}
>> \author{Erik}
>> \date{2010-04-08 Thu}
>>
>> \begin{document}
>>
>> \maketitle
>>
>> \begin{frame}
>> \frametitle{Outline}
>> \setcounter{tocdepth}{3}
>> \tableofcontents
>> \end{frame}
>>
>> \end{document}
>>
>>
>> any hints appreciated on how this behavior comes about.
>>
>> Cheers,
>>
>> Erik
>>
>>
>> ___
>> 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
>
> - Carsten
>
>
>
>


___
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] strange behavior for export

2010-04-30 Thread Erik Butz
Hi all,

I have the following problem:

I have set up my emacs so as to use org-mode uncompiled from a local directory

# from .emacs
(setq load-path (cons "~/elisp/org-mode/lisp" load-path))
(setq load-path (cons "~/elisp/org-mode/contrib/lisp" load-path))


starting emacs22 or 23 and displaying M-x org-version I get:

Org-mode version 6.35trans (release_6.35g.207.g7f085)

so indeed the version from the local directory.

when I take a document with the following preamble:

#+LaTeX_CLASS: beamer
#+TITLE: present.org
#+AUTHOR:Erik
#+EMAIL: e...@eddie
#+DATE:  2010-04-08 Thu
#+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:nil 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:

and export this to latex I get the following:


\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{hyperref}


\title{present.org}
\author{Erik}
\date{2010-04-08 Thu}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents


\end{document}

so despite the #+LaTeX_CLASS: beamer, the document gets exported as
'article'. Even worse, when I try to export the same document again
afterwards, I get a:
No definition for class `beamer' in `org-export-latex-classes'

error.

When I issue a 'reload-org-uncompiled' directly after starting emacs,
this behavior does not occur.

In this case I get, as expected:

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}

\title{present.org}
\author{Erik}
\date{2010-04-08 Thu}

\begin{document}

\maketitle

\begin{frame}
\frametitle{Outline}
\setcounter{tocdepth}{3}
\tableofcontents
\end{frame}

\end{document}


any hints appreciated on how this behavior comes about.

Cheers,

Erik


___
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] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi Eric,

thanks for this information, this already brings me one step further.

There is now another issue which I run into, trying to get this to
work: python lists seem to be a potential problem. In the code there
are several lists which are constructed by a

# Generate gnuplot lines
plot_lines = ['plot ' +
  ', \\\n\t'.join((' '.join(['-1',
   'title "%s"' % t,
   'with lines',
   'linecolor %s %s ' %
(colorprefix, colors[t]),
   'linewidth 6'])
for t in tasks))]

which cause the program to fail and not to produce any output when accessed.

I can create lists with append('a') however and use them mostly w/o problems.

Is there any know limitation somewhere in org-babel or am I running
into some other problem here?
(in principle this should just be run like in any normal shell, right?)

Again any hints appreciated

Erik

P.S. let me stress that the code works w/o problems from a normal
shell, since otherwise this sounds more like a python question


On Tue, Apr 13, 2010 at 8:51 PM, Eric Schulte  wrote:
> Erik Butz  writes:
>
>> Hi all,
>>
>> I have been playing around with org-mode and have been thinking about
>> the possibility to create gantt charts with org-mode. I did not find
>> anything in the archives, and todays thread about taskjuggler brought
>> me back to the subject.
>>
>> This is a python script hovering around the web (gantt.py) which
>> enables gant charts with gnuplot. I played around with this a bit so
>> as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
>> durations. Now I am looking for a way to execute this from within
>> org-mode probably using org-babel
>>
>> The (bash) syntax would be something like
>>
>> python gantt.py -t "Title" -i input.txt | gnuplot -persist
>>
>> I would like to pass an org table to the script instead of the input
>> file so the equivalent of doing
>>
>> cat input | python gantt.py -t "Title" | gnuplot -persist
>>
>> The input structure is (e.g.)
>>
>> Task 1        2010-4-2T12:00:00       1       validate
>> Task 2        2010-4-5T12:00:00       5.25      something
>> Task 3        2010-4-5T12:00:00       2010-4-10T0:00:00       otherthing
>> Task 4        5.5                     yet another thing
>> which could well be the column mode representation of a file probably.
>>
>
> something like the following in will allow you to pass a table to a
> series of shell commands
>
>  #+tblname: tasks
>  | Task 1 | 2010-4-2T12:00:00 |                 1 | validate   |
>  | Task 2 | 2010-4-5T12:00:00 |              5.25 | something  |
>  | Task 3 | 2010-4-5T12:00:00 | 2010-4-10T0:00:00 | otherthing |
>
>  #+begin_src sh :var tasks=tasks
>    echo "$tasks" |wc
>  #+end_src
>
>  #+results:
>  : 3      15     130
>
> you can also use a gnuplot block to accept the output of gantt.py, and
> once everything is working it can be packaged up into a library of babel
> [1] function which could then be called with a short line like.
>
> #+call: gantt(tasks=my-task-table)
>
> Hope that helps, let me know if you have any more questions. -- Eric
>
>>
>> I am sorry should this be a bit vague.
>>
>> Please let me know if I can provide any more information to clarify the 
>> problem
>>
>> Cheers and thanks,
>>
>> Erik
>>
>>
>> ___
>> 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
>
> Footnotes:
> [1]  http://orgmode.org/worg/org-contrib/babel/library-of-babel.php
>
>


___
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] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi all,

I have been playing around with org-mode and have been thinking about
the possibility to create gantt charts with org-mode. I did not find
anything in the archives, and todays thread about taskjuggler brought
me back to the subject.

This is a python script hovering around the web (gantt.py) which
enables gant charts with gnuplot. I played around with this a bit so
as to have it accept ISO timestamps (%Y-%m-%dT%H:%M:%S) and or
durations. Now I am looking for a way to execute this from within
org-mode probably using org-babel

The (bash) syntax would be something like

python gantt.py -t "Title" -i input.txt | gnuplot -persist

I would like to pass an org table to the script instead of the input
file so the equivalent of doing

cat input | python gantt.py -t "Title" | gnuplot -persist

The input structure is (e.g.)

Task 1  2010-4-2T12:00:00   1   validate
Task 2  2010-4-5T12:00:00   5.25  something
Task 3  2010-4-5T12:00:00   2010-4-10T0:00:00   otherthing
Task 4  5.5 yet another thing
which could well be the column mode representation of a file probably.

I am sorry should this be a bit vague.

Please let me know if I can provide any more information to clarify the problem

Cheers and thanks,

Erik


___
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] latex export problem in HEAD

2010-02-28 Thread Erik Butz
Hi all,

I am getting an error when exporting to latex in the latest version in
the repository if checkboxes are included in the document.
the error is:
! LaTeX Error: Command \Box not provided in base LaTeX2e.

which can then be cured by including
\usepackage{latexsym}

in the tex document. Is this a common problem or only related to my
personal setup?

Cheers,

Erik


___
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] using gnuplot dumb terminal

2010-02-22 Thread Erik Butz
Hi all,

thanks for this extremely versatile emacs mode. I am only beginning to
discover all the features available.

When using the org-plot/gnuplot interface, a possible use-case came to
my mind. In gnuplot one can have a primitive ascii dump of the plot,
using

set terminal dump

with or without an output file. I was wondering if it would be
possible to include the output of this as plot into an org document.

I can achieve basically this, by having something like

#+PLOT: set:"term dumb" file:"plot.plt"
|   a |   b |   c |
|-+-+-|
| 200 | 100 | 300 |
| 200 | 200 | 400 |

#+TBLFM: $3=$1+$2

and then simply input 'plot.plt' into the document which looks
something like this in this case (don't know if the ascii art will
survive)

400 +++-++-+-$
+ + ++ $a$** +
|$$ b ## |
350 ++ $$   c $$++
|$$  |
|  $$|
|$$  |
300 $   ++
||
||
250 ++  ++
||
||
200 **
|  ##|
|##  |
|  ##|
150 ++   ## ++
|  ##|
+## ++ + +
100 #-+-++-+++
00.2   0.4  0.6   0.81

More complicated things would then of course be to link the plot to
the table, and to be able to issue update commands if the table data
have changed etc.
Also when exporting to latex, one could simply change the mode of
gnuplot to eps/jpg and include the graphics in the exported document.

I have not found the 'dumb' mode mentioned anywhere in the forum, so I
was curious if anybody possibly thought about something like this (or
has done it already??), or had ideas on how to implement it (don't
know lisp myself, unfortunately).

Should this not be possible it is not really a problem, since there is
a way to do this as described above, but I found this a possibly nice
feature, as it would allow for simple plots while keeping the org
document to be overhead-free ascii.

Cheers and thanks,

Erik


___
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