Re: [O] [babel] howto debug #+call lines

2012-10-05 Thread Andreas Leha
Hi Eric,

> Andreas Leha  writes:
>
>> Hi all,
>>
>> I am getting different results from the evaluation of a source block and
>> the evaluation of a #+call line to that block.
>>
>> Therefore, my question: Is there an equivalent to
>> org-babel-expand-src-block (C-c C-v v) for #+call lines?
>>
>> Or more general:  How do I debug #+call lines?
>>
>> Regards,
>> Andreas
>>
>
> Can you provide a minimal example?
>
> You could write a code block equivalent to the call line.  E.g.,
>
> #+call: foo(bar=1)
>
> is equivalent to
>
> #+begin_src emacs-lisp :var results=foo(bar=1)
>   results
> #+end_src

Thanks for following this up.  I found the problem in my case:  The
header argument ':colnames yes' was missing from the call line, such that
the passed variables were different.  (I've fallen into that trap
repeatedly, but do not learn, as it seems...)

It would have been a lot easier to find this, if I had had the possibility
to do C-c C-v v on the call line to get the chance to step through the
(R-) code that is evaluated.  Without this, it took me some time to
figure things out.

So the question still stands: Is there the possibility to see what is
actually executed with a call line, similar to C-c C-v v on a source
block?

For a small example consider:

---
#+name: foo
| bar |
| baz |
| bam |

#+call: testblock[:var a=foo]() :colnames yes

#+name: testblock
#+begin_src R :var a=foo :colnames yes
  a <- a[,1]
  data.frame(x=a)
#+end_src
---

Regards,
Andreas




Re: [O] Bug:install: cannot stat ‘org-install.elc’

2012-10-05 Thread Nicolas Goaziou
Hello,

ASSI  writes:

> Actually, I would leave it in indefinately.  There's just too many 
> combinations of potentially old Org installations in load-path and the cost 
> of keeping it is negligible.  I've tested it locally by now and it does work 
> fine.

Ok. Then, please install it in maint whenever you find it appropriate.


Regards,

-- 
Nicolas Goaziou



Re: [O] Custom title page for report in Orgmode latex export

2012-10-05 Thread Thomas S. Dye
Hi Sanjib Sikder,

Please see
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11-2.  

LaTeX will layout the page, so you'll probably need to craft some LaTeX
code.  

All the best,
Tom

Sanjib Sikder  writes:

> hi,
>
> I am writing my thesis and I am using the report class
>  Now I need a custom front page like following.
>
>
> --
> Title of my thesis
> by
> My Name
> Roll number
>
> under the guidance of
> My adcisors name
>
> Some texts
>
> Department Name
> Institute name
> month year
> ---
>
> How can I achieve this ?
>
> Thanks.
> -
> *Sanjib Sikder
> *Ph.D. Fellow
> Chemical Engineering
> IIT Bombay*
>
> *
> hi,
>
> I am writing my thesis and I am using the report class
>  Now I need a custom front page like following.
>
>
> --
> Title of my thesis
> by
> My Name
> Roll number
>
> under the guidance of
> My adcisors name
>
> Some texts
>
> Department Name
> Institute name
> month year
> ---
>
> How can I achieve this ?
>
> Thanks.
> -
> Sanjib Sikder
> Ph.D. Fellow
> Chemical Engineering
> IIT Bombay
>
>
>

-- 
Thomas S. Dye
http://www.tsdye.com



[O] Custom title page for report in Orgmode latex export

2012-10-05 Thread Sanjib Sikder
hi,

I am writing my thesis and I am using the report class
 Now I need a custom front page like following.


--
Title of my thesis
by
My Name
Roll number

under the guidance of
My adcisors name

Some texts

Department Name
Institute name
month year
---

How can I achieve this ?

Thanks.
-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


Re: [O] Longtable in orgmode latex export is breaking table header

2012-10-05 Thread Sanjib Sikder
Hi,

Thanks for your reply. It is working now.

#+CAPTION:Table name \citep{myref}

here after #+CAPTION:

One space is needed before starting the actual table caption.

The space was not there initially and it was giving error.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Fri, Oct 5, 2012 at 9:47 PM, Thomas S. Dye  wrote:

> Hi Sanjib Sikder,
>
> Hmmm, I don't think I've seen this one before. Can you post a complete
> minimal example (ECM) with the intermediate LaTeX output?
>
> All the best,
> Tom
>
> Sanjib Sikder  writes:
>
> > Hi,
> >
> > The longtable attribute is breaking the table header in two rows.
> >
> > For example, take the following table
> >
> >> #+CAPTION:Table name \citep{myref}
> >> #+LABEL: tbl:mylabel
> >> #+ATTR_LaTeX: longtable
> >>
> >> | header1| header2 |  header3 |header4 |header5 |
> >> header6 |header7 |
> >>
> >>
> |-+--+--+--+--+--+--|
> >> | Col1 | 1 | 1 |  4 |  6 | 7 | 8 |
> >> | Col2  |  6 | 7 |   2 |  1 |  3 |  2 |
> >>
> >
> > In pdf it is showing like
> >
> >>
> >> header1
> >> header2  header3   header4header5header6 header7
> >>
> >
> > Any solution ?
> >
> > Thanks
> >
> > -
> > *Sanjib Sikder
> > *Ph.D. Fellow
> > Chemical Engineering
> > IIT Bombay*
> >
> > *
> > Hi,
> >
> > The longtable attribute is breaking the table header in two rows.
> >
> > For example, take the following table
> >
> > #+CAPTION:Table name \citep{myref}
> > #+LABEL: tbl:mylabel
> > #+ATTR_LaTeX: longtable
> >
> > | header1| header2 |  header3 |header4 |
> > header5 |header6 |header7 |
> > |-+--+--+--+--+--+-
> > -|
> > | Col1 | 1 | 1 |  4 |  6 | 7 | 8 |
> > | Col2  |  6 | 7 |   2 |  1 |  3 |  2 |
> >
> >
> > In pdf it is showing like
> >
> >
>
> > header1
> > header2  header3   header4header5header6 header7
> >
> >
> > Any solution ?
> >
> > Thanks
> >
> > -
> > Sanjib Sikder
> > Ph.D. Fellow
> > Chemical Engineering
> > IIT Bombay
> >
> >
> >
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>


Re: [O] Longtable in orgmode latex export is breaking table header

2012-10-05 Thread Thomas S. Dye
Hi Sanjib Sikder,

Hmmm, I don't think I've seen this one before. Can you post a complete
minimal example (ECM) with the intermediate LaTeX output?

All the best,
Tom

Sanjib Sikder  writes:

> Hi,
>
> The longtable attribute is breaking the table header in two rows.
>
> For example, take the following table
>
>> #+CAPTION:Table name \citep{myref}
>> #+LABEL: tbl:mylabel
>> #+ATTR_LaTeX: longtable
>>
>> | header1| header2 |  header3 |header4 |header5 |
>> header6 |header7 |
>>
>> |-+--+--+--+--+--+--|
>> | Col1 | 1 | 1 |  4 |  6 | 7 | 8 |
>> | Col2  |  6 | 7 |   2 |  1 |  3 |  2 |
>>
>
> In pdf it is showing like
>
>>
>> header1
>> header2  header3   header4header5header6 header7
>>
>
> Any solution ?
>
> Thanks
>
> -
> *Sanjib Sikder
> *Ph.D. Fellow
> Chemical Engineering
> IIT Bombay*
>
> *
> Hi,
>
> The longtable attribute is breaking the table header in two rows.
>
> For example, take the following table
>
> #+CAPTION:Table name \citep{myref}
> #+LABEL: tbl:mylabel
> #+ATTR_LaTeX: longtable 
> 
> | header1    | header2 |  header3 |    header4 |   
> header5 |    header6 |    header7 |
> |-+--+--+--+--+--+-
> -|
> | Col1     | 1 | 1 |  4 |  6 | 7 | 8 |
> | Col2  |  6 | 7 |   2 |  1 |  3 |  2 |
> 
>
> In pdf it is showing like
>
>   
>  
> header1
> header2  header3   header4    header5    header6 header7 
> 
>
> Any solution ?
>
> Thanks
>
> -
> Sanjib Sikder
> Ph.D. Fellow
> Chemical Engineering
> IIT Bombay
>
>
>

-- 
Thomas S. Dye
http://www.tsdye.com



[O] org-special-block

2012-10-05 Thread Sanjib Sikder
Hi,

i am not understanding how to load org-special-blocks

I have followed instructions in the following page
http://orgmode.org/worg/org-contrib/org-special-blocks.html#Loading-it

> Loading it (No surprises here)

 The easiest way is by

M-x customize-apropos org-modules

Check the line for special-blocks. This will cause it to be loaded every
time you start org-mode.

You'll still have to load it manually the first time.

Of course, you can also just try it out by loading it manually.

If you prefer to manually customize your emacs then make sure that the path
to org's contrib directory is in your load-path and add the following to
your .emacs.

(require 'org-special-blocks)

 I have checked special-blocks in customize-apropos org-modules. But still
i cannot load org-special-blocks.

Please guide me.

Thanks.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


Re: [O] Extend (org-shiftcontrolup) and (org-shiftcontroldown) with numeric arguments?

2012-10-05 Thread Nicolas Goaziou
Hello,

Rainer Stengele  writes:

> I wonder if (org-shiftcontrolup) and (org-shiftcontroldown) could be
> provided with the possibility to add a numeric argument.
>
> Point on
>
> CLOCK: [2012-12-09 So 09:00]--[2012-12-09 So 17:00] =>  8:00
> ^
>
> I would like to be able to change the time span to today + 7 days:
>
> CLOCK: [2012-12-16 So 09:00]--[2012-12-16 So 17:00] =>  8:00
>
> This could easily be done with "C-7 C-S-up", butt cannot at the moment.
>
> Thoughts?

I think it would be a welcomed improvement, since there's already
support for that in `org-timestamp-up' and `org-timestamp-down'. Do you
want to do it?


Regards,

-- 
Nicolas Goaziou



Re: [O] Symbol's function definition is void: search

2012-10-05 Thread Suvayu Ali
On Wed, Oct 03, 2012 at 12:04:20PM +0530, Sanjib Sikder wrote:
> Hi,
> 
> UPDATE: The same files when I ran and exported on my department computer, it 
> is
> working fine.
> 
> Thanks a lot.
> 
> Yesterday I was trying on my laptop. Both the machines have latest
> emacs-snapshot and Ubuntu 12.04. Any comment on this will be appreciated.
> 

I would check your org configuration and setup.  A binary search through
your configs should be quite helpful.

GL

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Clocktable: Put summary line as table caption

2012-10-05 Thread Nicolas Goaziou


Hello,

"Sebastien Vauban"
 writes:

> I would say "TINYCHANGE" (without the space) if the documentation on "how to
> contribute to Org" is right.

Yes, that was a typo.

> Except that, was the patch exactly of the form you expected (ChangeLog, etc.)
> -- to apply it as easily as possible?

It was perfect :)


Regards,

-- 
Nicolas Goaziou




[O] Longtable in orgmode latex export is breaking table header

2012-10-05 Thread Sanjib Sikder
Hi,

The longtable attribute is breaking the table header in two rows.

For example, take the following table

> #+CAPTION:Table name \citep{myref}
> #+LABEL: tbl:mylabel
> #+ATTR_LaTeX: longtable
>
> | header1| header2 |  header3 |header4 |header5 |
> header6 |header7 |
>
> |-+--+--+--+--+--+--|
> | Col1 | 1 | 1 |  4 |  6 | 7 | 8 |
> | Col2  |  6 | 7 |   2 |  1 |  3 |  2 |
>

In pdf it is showing like

>
> header1
> header2  header3   header4header5header6 header7
>

Any solution ?

Thanks

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


Re: [O] Block-Agenda: Show whole entry

2012-10-05 Thread François Allisson
Le jeudi 04 oct 2012 à 23:27:48 (+0200), Moritz Ulrich a écrit :
> 
> Hello,
> 
> I'm trying to create an Agenda which will be printed / mailed daily. It
> should include the usual 'today' agenda and my shopping list.
> 
> This shopping list is stored in an agenda file as a list with
> checkboxes.
> 
> I want this list as the second block in my agenda. Is this possible?

Hi,

I don't think that this is possible, at least easily. Checkboxes are not
intended to appear in agendas [1]. You can still play with a few
variables in your agenda block definition, or with functions and/or a
minor mode [2]. But it looks far simpler if your shopping list appears
in one of your agenda files as headlines, with either a shopping
specific keyword, or a specific tag, hand by hand with a nice shopping
org-capture template. Eventually, you could retrieve your checkboxes by
adding [3] in your second agenda block ;-) I cannot help you more... but
if you find some solution, please share it!

Cheers,

François.

[1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00765.html
[2] e.g. org-agenda-entry-text-mode, org-agenda-add-entry-text-maxlines,
org-agenda-entry-text-maxlines, org-agenda-entry-text-show, etc.
[3] (org-agenda-todo-keyword-format "[ ]")



Re: [O] From latest maint/master, no need to (require 'org-install)

2012-10-05 Thread Sebastien Vauban
Hi Eric,

Eric Fraga wrote:
> Bastien  writes:
>> Bastien  writes:
>>> there is no need to (require 'org-install) anymore from the maint and
>>> master branches.
>>
>> ... and you should actually remove (require 'org-install) from your
>> configuration, since this file is not automatically created anymore.
>
> Okay but with what should I replace this, if anything?
>
> Specifically, I currently have (in my organically grown customisation file
> ;-):
>
> (add-to-list 'load-path "~/git/org-mode")

Why that one?

> (add-to-list 'load-path "~/git/org-mode/lisp")
> (add-to-list 'load-path "~/git/org-mode/contrib/lisp/")
> (require 'org-install)
> (require 'org-e-latex)
> (require 'org-e-odt)
> (require 'org-latex)
> (require 'org-mime)
> (require 'ob-jacaranda)
> (require 'ob-python)
> (require 'ob-R)
> (require 'ob-sh)
> (require 'org-crypt) (org-crypt-use-before-save-magic)
> (require 'org-inlinetask) ;binding C-c C-x t
> (require 'org-protocol)
> (require 'org-wc) 
> ;; customisations follow
>
> What should I or could I remove from this?

What I do is:

#+begin_src emacs-lisp
  (when (locate-library "org-install")
(require 'org-install))
#+end_src

That way, if it's still present (and maybe necessary[1]), it will be loaded.

If not, it simply has no effect.

Best regards,
  Seb

[1] On old Emacs/Org versions, for people using my .emacs configuration file.

-- 
Sebastien Vauban




Re: [O] Block-Agenda: Show whole entry

2012-10-05 Thread Sebastien Vauban
Hi Moritz,

Moritz Ulrich wrote:
> Hello,
>
> I'm trying to create an Agenda which will be printed / mailed daily. It
> should include the usual 'today' agenda and my shopping list.
>
> This shopping list is stored in an agenda file as a list with
> checkboxes.
>
> I want this list as the second block in my agenda. Is this possible?

IIUC, that should be no problem. Did you look at
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Clocktable: Put summary line as table caption

2012-10-05 Thread Sebastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
> "Sebastien Vauban" writes:
>
>> You're right. I also thought of that. But that concern is much more general
>> than for the clocktables: if any (future) back-end does not support
>> captions in his DNA, we will have to foresee a workaround in the export
>> _anyway_, something such as copying the text just before or after the
>> figures, tables, etc.
>
> Good point, indeed.
>
>>> I will commit it if there is no objection.
>>
>> None ;-)
>
> Applied. Thank you.

Thanks.

> Note: you don't need to mention "TINY CHANGE" since you signed the FSF
> papers already.

I would say "TINYCHANGE" (without the space) if the documentation on "how to
contribute to Org" is right.

And, yes, you're right (it's even written in
http://orgmode.org/worg/org-contribute.html), there was no need for me to
write it.

Except that, was the patch exactly of the form you expected (ChangeLog, etc.)
-- to apply it as easily as possible?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] From latest maint/master, no need to (require 'org-install)

2012-10-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/10/12 11:25, Bastien wrote:
> Hi all again,
> 
> Bastien  writes:
> 
>> there is no need to (require 'org-install) anymore from the maint and master 
>> branches.
> 
> ... and you should actually remove (require 'org-install) from your 
> configuration, since this
> file is not automatically created anymore.

OK - now I am getting slightly confused again.

Could you please give some example configuration code? For example, in
my case, I am using org mode from git, I am using the script posted
above in the thread to update org-mode git:

#!/bin/sh
cd ~/.emacs.d/org-mode-git/org-mode

git checkout master
git fetch --tags origin

# git clone git://repo.or.cz/org-mode.git
git pull
git gc

git checkout master

make clean
make
make autoloads
make doc
make info

# make install



in my .emacs.d/init.el I have:

;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
(add-to-list 'load-path "~/.emacs.d/org-mode/lisp")
(add-to-list 'load-path "~/.emacs.d/org-mode/contrib/lisp")

;; load up Org-mode and Org-babel
(require 'org-install)

;; load up the main file
(org-babel-load-file "~/.emacs.d/emacs.org")

And i my emacs.org, I have at the beginning:

* ELPA settings
#+begin_src emacs-lisp
  ;; set package-load-list -- default is all
  (setq package-archives '(
   ("ELPA" . "http://tromey.com/elpa/";)
   ("gnu" . "http://elpa.gnu.org/packages/";)
   ("suco" . 
"http://joseito.republika.pl/sunrise-commander/";)
   ("marmalade" . "http://marmalade-repo.org/packages/";)
   )
)
(package-initialize)
#+end_src

Later on, I have some customizations.


So do I have to change something?
What should I do with the (require 'org-install)?

Rainer

> 
> Thanks,
> 

From: rai...@krugs.de (Rainer M. Krug)
Date: Fri, 05 Oct 2012 09:57:30 +0200
Message-ID: <87txu9z6z9@krugs.de>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBuk0UACgkQoYgNqgF2egrCrQCdEAZA42TLb4Xs48fIkairYgxO
IEYAnA74GEV64O3TkVIwsCWP0UuVKpZa
=etPk
-END PGP SIGNATURE-




Re: [O] From latest maint/master, no need to (require 'org-install)

2012-10-05 Thread Thomas S. Dye
Eric Fraga  writes:

> Bastien  writes:
>
>> Hi all again,
>>
>> Bastien  writes:
>>
>>> there is no need to (require 'org-install) anymore from the maint
>>> and master branches.
>>
>> ... and you should actually remove (require 'org-install) from your
>> configuration, since this file is not automatically created anymore.
>>
>> Thanks,
>
> Okay but with what should I replace this, if anything?
>
> Specifically, I currently have (in my organically grown customisation
> file ;-):
>
> (add-to-list 'load-path "~/git/org-mode")
> (add-to-list 'load-path "~/git/org-mode/lisp")
> (add-to-list 'load-path "~/git/org-mode/contrib/lisp/")
> (require 'org-install)
> (require 'org-e-latex)
> (require 'org-e-odt)
> (require 'org-latex)
> (require 'org-mime)
> (require 'ob-jacaranda)
> (require 'ob-python)
> (require 'ob-R)
> (require 'ob-sh)
> (require 'org-crypt) (org-crypt-use-before-save-magic)
> (require 'org-inlinetask) ;binding C-c C-x t
> (require 'org-protocol)
> (require 'org-wc) 
> ;; customisations follow
>
> What should I or could I remove from this?
>
> Thanks,
> eric

Hi Eric,

ob-jacaranda?  Any chance this might swell the list of babel supported
languages? 

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com