[O] Org-mode latex pdf export issue: Underlined lines not breaking properly

2013-03-06 Thread Sanjib Sikder
Hi,

While PDF exporting a .org file, the underlined lines which are at the
right end of the page (in PDF) or underlined lines which are large and
spans to next line (in pdf) are not breaking properly.

How do I solve this problem ?

Thanks.
-
*Sanjib Sikder
**

*


Re: [O] Org-mode latex pdf export issue: Underlined lines not breaking properly

2013-03-06 Thread Sanjib Sikder
Hi,

Thanks for the suggestions.

For an user like me, who depends heavily on org-mode for several purposes,
a basic feature like this (underline) is frequently used. Though it is ugly
or (may be) not used for serious published materials, but for personal
usage, this is very handy and very often I do pdf export my .org files.

I wish, org-mode provides an easier solution as not everybody is familiar
with lisp codes.

Again, thanks a lot.

-
*Sanjib Sikder
*


[O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Hi,

I have installed Predictive package. It is working fine for normal
English words while working in org-mode. When I am writing few latex codes
in org-mode, it is not suggesting latex keywords it seems. I have added the
following in .emacs.

;;predictive
(add-to-list 'load-path ~/.emacs.d/predictive)
;; dictionary locations
  (add-to-list 'load-path ~/.emacs.d/predictive/misc)
  (add-to-list 'load-path ~/.emacs.d/predictive/texinfo)
  (add-to-list 'load-path ~/.emacs.d/predictive/latex)
  (add-to-list 'load-path ~/.emacs.d/predictive/html)
;; load predictive package
(require 'predictive)


How do I make it work for Latex ?

-
*Sanjib Sikder
**

*


Re: [O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Hi Bastien,

 Do you mean: once I write some LaTeX keywords in an org-mode buffer,
it only suggests LaTeX keywords (and no english words) for the rest
of the session?


I am writing my thesis in org-mode. My thesis consists of equations. So in
my thesis.org file, I have latex codes also. I do latex pdf export to
generate the pdf file of the thesis.

While using predictive mode, it suggests regular English words but not
Latex keywords. Just now I noticed that if my file extension is .tex, then
predictive predicts and suggests latex keywords.

May I configure predictive such a way that while I am working on a file
thesis.org (not thesis.tex), predictive will suggest latex keywords also ?

Thanks.
-
*Sanjib Sikder*


Re: [O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Hi Suvayu,

 I think what he means is that predictive _does not_ suggest LaTeX
keywords inside an org-mode buffer.

Yes, exactly, I wanted to mean this.

Thanks

-
*Sanjib Sikder
*


Re: [O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Hi Bastien,

(add-to-list 'predictive-major-mode-alist
 '(org-mode . predictive-setup-latex))

This one works :)

Thanks a lot.
---
Sanjib Sikder


Re: [O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Dear Bastien,

 (add-to-list 'predictive-major-mode-alist
 '(org-mode . predictive-setup-latex))

This works for latex keyword suggestion in org-mode buffer but while trying
to pdf export, I am getting the following error.

Wrong type argument: listp, t

Thanks

-
*Sanjib Sikder
**
*


Re: [O] Predictive for Latex in org-mode

2013-03-05 Thread Sanjib Sikder
Dear Bastien,

The error

 Wrong type argument: listp, t

was due to the following line

(add-hook 'org-mode-hook 'predictive-mode)

which was there in the .emacs file.

While predictive mode is on [without (add-hook 'org-mode-hook
'predictive-mode) in .emacs] in org-mode buffer, C-c C-e p produces an
empty folder .predictive, in the folder where .org file is located. If I
use (add-hook 'org-mode-hook 'predictive-mode) in .emacs then the generated
.predictive folder contains all the .el and .elc files.

Thanks.
-
Sanjib Sikder


Re: [O] org-mode not working properly after update

2013-02-27 Thread Sanjib Sikder
Hi,

After another update of emacs today, org-mode is working fine now it seems.

Thanks

-
*Sanjib Sikder
*






[O] latex pdf export generated files

2013-02-27 Thread Sanjib Sikder
Hi,

Is it possible that when I am pdf exporting a document using C-e C-p
org-mode will generate ONLY the pdf, not the other associated files like
.bbl, .blg, .tex, .lof etc  ?

Thanks

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

*


[O] org-mode not working properly after update

2013-02-26 Thread Sanjib Sikder
Hi,

Org-mode is not working properly after I updated my Ubuntu 12.04
yesterday.  During the update, emacs also got updated. The .org files look
like plain text file, for example, no tree structure, no folding etc.

Please help.

-
*Sanjib Sikder
**
*


Re: [O] org-mode not working properly after update

2013-02-26 Thread Sanjib Sikder
Hi,

Just now I noticed, the tree structure is working, but it is not hiding the
stars. All texts are black in color. The links are literal like following.

[[file:myfile.org][myfile]]


 Does `M-x org-mode RET' activate Org Mode after you've opened the file?

The above command does not improve the matter.

 Do you have « (\\.org\\' . org-mode) » in auto-mode-alist? (check with
 `C-h v auto-mode-alist RET')

The above command returned several lines. In one of the lines I found the
following
Value: ((\\.org$ . org-mode)

 M-x emacs-version RET
GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-02-25
on platinum, modified by Debian

M-x org-version RET
Org-mode version 7.9.3e (7.9.3e-3-gb07a9b @
/usr/share/emacs/24.3.50/lisp/org/)


@ Sebastien Vauban

I am not sure it is due to the reason you have mentioned or not.

Thanks

-
*Sanjib Sikder
**

*


Re: [O] Structure editing

2013-02-08 Thread Sanjib Sikder
 Is this document aimed for export to a specific backend, - NO
 or is it just the way you want the org buffer to look? - YES

The org-mode is a fantastic tool the way it is. I was just enquiring
whether it is possible or not.

In one of my document I have to write few lines like The following case is
applicable only if you want to do this or that. and then a tree structure
which instructs something.

Orgmode is powerful enough to design the document in a way to meet the
objective. I will think about that. Thanks to all of you.


[O] Structure editing

2013-02-07 Thread Sanjib Sikder
Hi,

Is it possible to have a line between two tress which should not hide when
folded, like the following example ?

Unfolded state:
===
* Heading 1
** Heading 1-1
** Heading 1-2
AT THIS POINT, A LINE WHICH SHOULD NOT BE FOLDED
* Heading 2
** Heading 2-1
** Heading 2-2

Folded state
=
* Heading 1
AT THIS POINT, A LINE WHICH SHOULD NOT BE FOLDED
* Heading 2

Thanks.

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

*


Re: [O] Structure editing

2013-02-07 Thread Sanjib Sikder
Hi,

What I am trying to achieve is an 'ordinary' heading, which is not in the
beginning of the document but somewhere in the middle of the document,
before a particular level one heading of a tree. At present the 'ordinary'
heading gets hidden in the previous tree/subtree.

Unfolded state:
===
* Heading 1
** Heading 1-1
** Heading 1-2
AT THIS POINT, A LINE (heading for the section below) WHICH SHOULD NOT BE
FOLDED
* Heading 2
** Heading 2-1
** Heading 2-2

Thanks.

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

*


On Fri, Feb 8, 2013 at 2:18 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 On Fri, Feb 08, 2013 at 01:27:05AM +0530, Sanjib Sikder wrote:
 
  Is it possible to have a line between two tress which should not hide
 when
  folded, like the following example ?

 No this is not possible.  Any text following a headline is by definition
 a part of the tree and will be folded with it.

 Maybe if you tell us what you are trying to achieve, we can suggest an
 alternative?

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Line breaking problem in Description List

2012-12-27 Thread Sanjib Sikder
Thanks.

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

*


On Thu, Dec 27, 2012 at 1:46 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Sanjib Sikder:

 I think the exporter expects the description label to be on one line.

 If I change your input to this, all is well:

   - This is the big name of my thesis written in undergraduate ::
 (/B.E. Thesis. Guide: Prof. x y x, the institute name/) Here is
 a description of the above heading spanning two lines. here is a
 description of the above heading spanning two lines. here is a
 description of the above heading spanning two lines. here is a
 description of the above heading spanning two lines. here is a
 description of the above heading spanning two lines.

 In my experience, LaTeX doesn't do a great job with long description
 labels, so reworking your list to have shorter labels might be a better
 way to go.

 hth,
 Tom

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Can anyone look into the issue please ?
 
  -
  *Sanjib Sikder
  *Ph.D. Fellow
  Chemical Engineering
  IIT Bombay*
 
  *
 
 
  On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder sanjibju2...@gmail.com
 wrote:
 
  Hi,
 
  I am facing the following issue. The left hand side of the line (that is
  the words which are to the left side of :: ) is not breaking in the
  following Description list
 
  + This is the big name of my thesis written in undergraduate * (/B.E.
  Thesis. Guide: Prof. x y x, the institute name/) :: Here is a
 description
  of the above heading spanning two lines.  here is a description of the
  above heading spanning two lines. here is a description of the above
  heading spanning two lines. here is a description of the above heading
  spanning two lines. here is a description of the above heading
 spanning two
  lines.
 
 
 
 
  This is the big name of my thesis written in undergraduate * (/B.E.
  Thesis. Guide: Prof. x y x, the institute name/)
  The above line is not breaking to next line.
 
  Help is appreciated.
 
  Thakns.
 
 
  -
  *Sanjib Sikder
  *Ph.D. Fellow
  Chemical Engineering
  IIT Bombay*
 
  *
 
  Can anyone look into the issue please ?
 
 
  -
  Sanjib Sikder
  Ph.D. Fellow
  Chemical Engineering
  IIT Bombay
 
 
 
 
  On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder
  sanjibju2...@gmail.com wrote:
 
  Hi,
 
  I am facing the following issue. The left hand side of the line
  (that is the words which are to the left side of :: ) is not
  breaking in the following Description list
 
  + This is the big name of my thesis written in undergraduate *
  (/B.E. Thesis. Guide: Prof. x y x, the institute name/) ::
  Here is a description of the above heading spanning two
  lines.  here is a description of the above heading spanning
  two lines. here is a description of the above heading spanning
  two lines. here is a description of the above heading spanning
  two lines. here is a description of the above heading spanning
  two lines.
 
 
 
 
  This is the big name of my thesis written in undergraduate *
  (/B.E. Thesis. Guide: Prof. x y x, the institute name/)
  The above line is not breaking to next line.
 
  Help is appreciated.
 
  Thakns.
 
 
  -
  Sanjib Sikder
  Ph.D. Fellow
  Chemical Engineering
  IIT Bombay
 
 
 
 
 

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



[O] Line breaking problem in Description List

2012-12-26 Thread Sanjib Sikder
Hi,

I am facing the following issue. The left hand side of the line (that is
the words which are to the left side of :: ) is not breaking in the
following Description list

+ This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/) :: Here is a description
 of the above heading spanning two lines.  here is a description of the
 above heading spanning two lines. here is a description of the above
 heading spanning two lines. here is a description of the above heading
 spanning two lines. here is a description of the above heading spanning two
 lines.




This is the big name of my thesis written in undergraduate * (/B.E.
Thesis. Guide: Prof. x y x, the institute name/)
The above line is not breaking to next line.

Help is appreciated.

Thakns.


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

*


Re: [O] Line breaking problem in Description List

2012-12-26 Thread Sanjib Sikder
Can anyone look into the issue please ?

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

*


On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 I am facing the following issue. The left hand side of the line (that is
 the words which are to the left side of :: ) is not breaking in the
 following Description list

 + This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/) :: Here is a description
 of the above heading spanning two lines.  here is a description of the
 above heading spanning two lines. here is a description of the above
 heading spanning two lines. here is a description of the above heading
 spanning two lines. here is a description of the above heading spanning two
 lines.




 This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/)
 The above line is not breaking to next line.

 Help is appreciated.

 Thakns.


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

 *



Re: [O] org-drill installation problem

2012-12-13 Thread Sanjib Sikder
Dear Yagnesh,

I installed the emacs-snapshot manually as was instructed on the site of
ppa.

There is no contrib directory in my .emacs.d folder.

Thanks

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

*



On Thu, Dec 13, 2012 at 11:43 AM, Yagnesh Raghava Yakkala 
h...@yagnesh.orgwrote:


 Hello Sanjib,

 On 12月 13 2012, Sanjib Sikder sanjibju2...@gmail.com wrote:

  Dear Yagnesh,
 
  I receive the newsletters regularly with heading for example,
  Emacs-orgmode Digest, Vol 82, Issue 18.

 I think you can change to regular mails instead of digested ones.

 - log in the GNU mailman
   https://lists.gnu.org/mailman/options/emacs-orgmode
 - Look for the section marked Set Digest Mode.
   Set it to off

 - (optionally) you can filter all org list in your gmail so that you can
 avoid
   clutter in your inbox.

  Can you please guide me in adding that contrib/lisp path please ? As i
 do not
  also know how to reply to Anon's message as that reply is not there in
 my mail
  box.

 how did you install org mode in the first place.?

 contrib/lisp is a folder with in the org mode directory

 For example in my .emacs[1] I have following setting to add the contrib
 directory
 to emacs load path.

 --8---cut here---start-8---
 (add-to-list 'load-path
  (expand-file-name ~/.emacs.d/el-get/org-mode/contrib/lisp))
 --8---cut here---end---8---

 correct the path name according to your directory structure.

 Thanks.,

 Footnotes:
 [1] you can study my .emacs (~/.emacs.d) at
 https://github.com/yyr/emacs.d

 --
 ఎందరో మహానుభావులు అందరికి వందనములు
 YYR



Re: [O] org-drill installation problem

2012-12-12 Thread Sanjib Sikder
anybody there to rescue me ? :-|

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

*



On Tue, Dec 11, 2012 at 3:34 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 hi,

 I downloaded the org-drill package and put the org-drill.el file
 in.emacs.d folder. Then I added

 (require 'org-drill)

 in my .emacs file where the load path

 (add-to-list 'load-path ~/.emacs.d/)

 is there before it.

 After restarting, when i open a org-mode file to be used in org-drill
 mode, it gives a warning :

 Warning (initialization): An error occurred while loading
 `/home/ss/.emacs':

 File error: Cannot open load file, org-learn

 Also when I do

 M-x org-drill

 It cannot find org-drill

 I am using emacs-snapshot. What am I doing wrong ?

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

 *




[O] org-drill installation problem

2012-12-11 Thread Sanjib Sikder
hi,

I downloaded the org-drill package and put the org-drill.el file in.emacs.d
folder. Then I added

(require 'org-drill)

in my .emacs file where the load path

(add-to-list 'load-path ~/.emacs.d/)

is there before it.

After restarting, when i open a org-mode file to be used in org-drill mode,
it gives a warning :

Warning (initialization): An error occurred while loading `/home/ss/.emacs':

File error: Cannot open load file, org-learn

Also when I do

M-x org-drill

It cannot find org-drill

I am using emacs-snapshot. What am I doing wrong ?

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

*


[O] Deeper sectioning in report class

2012-10-24 Thread Sanjib Sikder
hi,

When using report class in org-mode and having the following structure
---
* Another Part of my report
** Chapter Heading
*** Heading 1
 Subheading 1
---
The subheading () is pdf exporting as paragraph having bullets. The
result is like following for example
---
Part IV
Chapter 4 Chapter heading
4.1 Hading 1

   -  Subheading 1

-
I need the subheading to be considered as numbered subsections (4.1.1).
like below
Part IV
Chapter 4 Chapter heading
4.1 Hading 1
4.1.1 Subheading 1
---


How can I achieve this ?
-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


[O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi,

I know it is possible to sort words and sort lines alphabetically in emacs
org-mode but is it possible to sort phrases ?

For example,

Face the music, Fifteen minutes of fame, A beautiful mind.


I want to sort it alphabetically like,

A beautiful mind, Face the music, Fifteen minutes of fame.


Is it possible ?

Thanks.

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

*


Re: [O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi Giovanni,

You need to put the following lines into your .emacs to sort WORDS and
LINES.

--8---cut here---start-8---

;;;Sort words
 (defun sort-words (reverse beg end)
  Sort words in region alphabetically, in REVERSE if negative.
Prefixed with negative \\[universal-argument], sorts in reverse.
The variable `sort-fold-case' determines whether alphabetic case
affects the sort order.
See `sort-regexp-fields'.
  (interactive *P\nr)
  (sort-regexp-fields reverse \\w+ \\ beg end))

--8---cut here---start-8---

Then to sort words like

apple, mango, oranges, cat, elephant

You need to do

M-x sort-words

To sort lines, similarly do

M-x sort-lines


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

*



On Mon, Oct 22, 2012 at 5:10 PM, Giovanni Ridolfi giovanni.rido...@yahoo.it
 wrote:

 Da: Sanjib Sikder sanjibju2...@gmail.com

 Inviato: Lunedì 22 Ottobre 2012 13:27


  I know it is possible to sort words and sort lines alphabetically in
 emacs org-mode

 Would you please be so kind to explain to me how?

 I have only:
 org-sort-entries  M-x ... RET Sort entries on a certain level
 of an outline tree.
 org-sort-list  M-x ... RET   Sort list items.
 org-table-sort-lines   Sort lines in region in a
 table.


 Is it possible to sort words like:

 banana fruit chees  apple

 or lines like


 banana

 fruit
 chees

 apple



  but is it possible to sort phrases ?

  Face the music, Fifteen minutes of fame, A beautiful mind.
  I want to sort it alphabetically like,
   A beautiful mind, Face the music, Fifteen minutes of fame.

 In Emacs everything is possible.

 - substitute , with \n
 - sort region
 - substitute \n with ,

 Cheers,

 Giovanni




Re: [O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi Giovanni,

- substitute , with \n
 - sort region
 - substitute \n with ,


1. I am new in org-mode and emacs. Can you please tell me what is sort
region and what are the key bindings ?
2. Is there a way by which I can replace all the ',' with '\n' and do the
reverse automatically ?

Thanks.


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

*



On Mon, Oct 22, 2012 at 11:44 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi Giovanni,

 You need to put the following lines into your .emacs to sort WORDS and
 LINES.

 --8---cut here---start-8---

 ;;;Sort words
  (defun sort-words (reverse beg end)
   Sort words in region alphabetically, in REVERSE if negative.
 Prefixed with negative \\[universal-argument], sorts in reverse.
 The variable `sort-fold-case' determines whether alphabetic case
 affects the sort order.
 See `sort-regexp-fields'.
   (interactive *P\nr)
   (sort-regexp-fields reverse \\w+ \\ beg end))

 --8---cut here---start-8---

 Then to sort words like

 apple, mango, oranges, cat, elephant

 You need to do

 M-x sort-words

 To sort lines, similarly do

 M-x sort-lines



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

 *



 On Mon, Oct 22, 2012 at 5:10 PM, Giovanni Ridolfi 
 giovanni.rido...@yahoo.it wrote:

 Da: Sanjib Sikder sanjibju2...@gmail.com

 Inviato: Lunedì 22 Ottobre 2012 13:27


  I know it is possible to sort words and sort lines alphabetically in
 emacs org-mode

 Would you please be so kind to explain to me how?

 I have only:
 org-sort-entries  M-x ... RET Sort entries on a certain level
 of an outline tree.
 org-sort-list  M-x ... RET   Sort list items.
 org-table-sort-lines   Sort lines in region in
 a table.


 Is it possible to sort words like:

 banana fruit chees  apple

 or lines like


 banana

 fruit
 chees

 apple



  but is it possible to sort phrases ?

  Face the music, Fifteen minutes of fame, A beautiful mind.
  I want to sort it alphabetically like,
   A beautiful mind, Face the music, Fifteen minutes of fame.

 In Emacs everything is possible.

 - substitute , with \n
 - sort region
 - substitute \n with ,

 Cheers,

 Giovanni





Re: [O] #+LATEX_CLASS: IEEEtran

2012-10-17 Thread Sanjib Sikder
Dear Dokos,

It is working perfectly.

Thank you very much for your incessant helps.

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

*



On Tue, Oct 16, 2012 at 3:51 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Sanjib Sikder sanjibju2...@gmail.com wrote:

  Hi, Dokos,
 
  Thanks again.
 
  After incorporating those lines, I am getting following error.
 
  File error: Cannot open load file, org-e-latex
 
  If it is complex (as I am new in orgmode), then I will go for normal
 latex instead of orgmode for
  this particular task as I have a template for IEEEtran but I would love
 to do the job in orgmode.
 
  Eagerly waiting for your comments
 

 Two options:

 o if you are not going to use the new exporter, just delete the two lines:

 (require 'org-e-latex)
 (add-to-list 'org-e-latex-classes ieeetran-class t)

 o alternatively, teach emacs where to find org-e-latex by augmenting the
   load-path:

   (add-to-list 'load-path /path/to/org/mode/contrib/lisp)

   This needs to be done before the (require 'org-e-latex) and of course,
   the path needs to be modified for your particular setup.

 Nick



[O] org back up

2012-10-17 Thread Sanjib Sikder
Hi,

I wanted to set a cron job for backing up all my org files as suggested by
Suvayu Ali.

#!/bin/bash

mkdir -p ~/org/backup  \
find $HOME -type f -name '*\.org' ! -path $HOME/org/backup/* \
-exec cp -t ~/org/backup/ \{\} \;


In Ubuntu I have put the bash file in cron.daily but it seems it is not
working. A little googling says I need to give full path for directories.
may I modify it like this ? I am not sure about the find $HOME part and
guess rest of the paths are correct.

#!/bin/bash

mkdir -p /home/USERNAME/org/backup  \
find $HOME -type f -name '*\.org' ! -path /home/USERNAME/org/backup/* \
-exec cp -t /home/USERNAME/org/backup/ \{\} \;

Can anybody confirm the correctness of this code?

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

*


Re: [O] org back up

2012-10-17 Thread Sanjib Sikder
Hi,

No it is not working.

I copied the code in the backup.sh file and put into /etc/cron.hourly
---
#!/bin/sh

target=$HOME/org/backupOrg
mkdir -p $target  \
find $HOME -type f -name '*.org' ! -path $target/* \
-exec cp -t $target {} +

echo Daily Org Files Backup Successful: $(date) 
/home/USERNAME/mybackupOrg.log
---
And then changed the crontab hourly setting to 26.

/etc/crontab
# m h dom mon dow usercommand
26 ** * *rootcd /  run-parts --report /etc/cron.hourly
---

Even after 26th minute, there is no sign of the code in work. Is it that
$HOME is not allowed and I need to give full path ?

Thanks

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

*



On Thu, Oct 18, 2012 at 12:11 AM, Teemu Likonen tliko...@iki.fi wrote:

 Sanjib Sikder [2012-10-17 23:55:12 +0530] wrote:

  #!/bin/bash
 
  mkdir -p /home/USERNAME/org/backup  \
  find $HOME -type f -name '*\.org' ! -path /home/USERNAME/org/backup/* \
  -exec cp -t /home/USERNAME/org/backup/ \{\} \;

 How about this:


 #!/bin/sh

 target=$HOME/org/backup
 mkdir -p $target  \
 find $HOME -type f -name '*.org' ! -path $target/* \
 -exec cp -t $target {} +



Re: [O] org back up

2012-10-17 Thread Sanjib Sikder
Hi,

I do not find personal crontab file. how do I create it ? crontab -e says
my personal file is not there

If I want to run it as root then how do modify the following code as it is
nor working ..
---
#!/bin/bash

mkdir -p /home/USERNAME/org/backup  \
find $HOME -type f -name '*\.org' ! -path /home/USERNAME/org/backup/* \
-exec cp -t /home/USERNAME/org/backup/ \{\} \;
echo Daily Org Files Backup Successful: $(date) 
/home/USERNAME/mybackupOrg.log
-


Thanks

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

*



On Thu, Oct 18, 2012 at 12:38 AM, Teemu Likonen tliko...@iki.fi wrote:

 Sanjib Sikder [2012-10-18 00:32:00 +0530] wrote:

  Even after 26th minute, there is no sign of the code in work. Is it that
  $HOME is not allowed and I need to give full path ?

 Ah, I thought that you'd run it from your personal crontab. So yes,
 write paths from root's point of view.



Re: [O] org back up

2012-10-17 Thread Sanjib Sikder
Hi,

Thanks a lot.

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

*



On Thu, Oct 18, 2012 at 1:06 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Teemu Likonen tliko...@iki.fi wrote:

  Sanjib Sikder [2012-10-18 00:32:00 +0530] wrote:
 
   Even after 26th minute, there is no sign of the code in work. Is it
 that
   $HOME is not allowed and I need to give full path ?
 
  Ah, I thought that you'd run it from your personal crontab. So yes,
  write paths from root's point of view.
 

 [I replied to Sanjib privately on the grounds that it's OT for the list,
  but let me add a couple of notes to this thread before we shut it off
  as completely OT: cron issues are hardly germane to org.]

 o Adding personal items to root-owned crontabs is a *bad idea* indeed.

 o One should try the script by hand before trying to incorporate it into
 cron:
   much easier to debug.

 o cron operates in a restricted environment: just run `env' as a cron job
 to
   find out what it knows (hint: not much).

 o Quite apart from cron issues, the backup method in the script is
   fundamentally flawed in my opinion: iiuc, it flattens the hierarchy,
   so if you have org files with the same name in different directories,
   only *one* will be saved into the backup directory - hardly a reliable
   backup.

 Nick



[O] #+LATEX_CLASS: IEEEtran

2012-10-16 Thread Sanjib Sikder
Hi,

I want to latex export my paper which has to use the document class IEEEtran

With the following in the preamble

#+LATEX_CLASS: IEEEtran

I am getting following error

 org-export-latex-set-initial-vars: No definition for class `IEEEtran' in
`org-export-latex-classes'

Can anybody guide me please ?

Thanks

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

*


Re: [O] #+LATEX_CLASS: IEEEtran

2012-10-16 Thread Sanjib Sikder
Hi, Dokos,

Thanks again.

After incorporating those lines, I am getting following error.

File error: Cannot open load file, org-e-latex


If it is complex (as I am new in orgmode), then I will go for normal latex
instead of orgmode for this particular task as I have a template for
IEEEtran but I would love to do the job in orgmode.

Eagerly waiting for your comments

Thanks.



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

*



On Tue, Oct 16, 2012 at 3:08 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Sanjib Sikder sanjibju2...@gmail.com wrote:

  Hi,
 
  I want to latex export my paper which has to use the document class
 IEEEtran
 
  With the following in the preamble
 
  #+LATEX_CLASS: IEEEtran
 
  I am getting following error
 
   org-export-latex-set-initial-vars: No definition for class `IEEEtran'
 in `org-export-latex-classes'
 

 As it says, you need to add a definition for the class `IEEEtran' to
 the variable org-export-latex-classes (for the old exporter - the
 corresponding variable for the new exporter is org-e-latex-classes).
 You should read the docs for these variables: they do a few different
 things and they are somewhat complicated.

 Here is a trivial example to start with:

 --8---cut here---start-8---
 ;;;
 ;;; latex export
 (setq ieeetran-class
   '(IEEEtran \\documentclass[11pt]{IEEEtran}
 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s})
 (\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \\subparagraph*{%s})))

 (require 'org-latex)
 (add-to-list 'org-export-latex-classes ieeetran-class t)

 (require 'org-e-latex)
 (add-to-list 'org-e-latex-classes ieeetran-class t)
 --8---cut here---end---8---

 It's basically the article class spec with a different name.
 You should add the code above to your .emacs (or similar init file).
 You can then elaborate it as necessary.

 Nick






[O] #+BEGIN_COMMENT latex export issue

2012-10-15 Thread Sanjib Sikder
Hi,

#+BEGIN_COMMENT
Some text
#+END_COMMENT

The above code is not working on my desktop while it runs without any error
on my laptop. I have same .emacs set up for both desktop and laptop. I am
getting the following error message.

byte-code: unbalanced begin/end_comment blocks with #(#+BEGIN_COMMENT
 0 15 (fontified nil font-lock-fontified t) 15 16 (fontified nil
font-lock-fontified t))


Thanks.

Following is the corresponding part in my .emacs

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(TeX-PDF-mode t t)
 '(TeX-source-correlate-method (quote synctex))
 '(TeX-source-correlate-mode t)
 '(TeX-source-correlate-start-server t)
 '(TeX-view-program-list (quote ((Okular okular --unique %o#src:%n%b
 '(TeX-view-program-selection (quote ((output-pdf Okular) ((output-dvi
style-pstricks) dvips and gv) (output-dvi xdvi) (output-html
xdg-open
 '(org-modules (quote (org-bbdb org-bibtex org-docview org-gnus org-info
org-jsinfo org-irc org-mew org-mhe org-rmail *org-special-blocks* org-vm
org-wl org-w3m)))
 '(show-paren-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(default ((t (:inherit nil :stipple nil :background white :foreground
black :inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 98 :width normal
:foundry unknown :family Liberation Sans)

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

*


Re: [O] #+BEGIN_COMMENT latex export issue

2012-10-15 Thread Sanjib Sikder
Hi,

I have solved the problem after removing all the relevant packages and
reinstalling. Some left over packages were causing trouble and reinstalling
was not of any help.

Thanks.

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

*



On Mon, Oct 15, 2012 at 4:13 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 #+BEGIN_COMMENT
 Some text
 #+END_COMMENT

 The above code is not working on my desktop while it runs without any
 error on my laptop. I have same .emacs set up for both desktop and laptop.
 I am getting the following error message.

 byte-code: unbalanced begin/end_comment blocks with #(#+BEGIN_COMMENT
  0 15 (fontified nil font-lock-fontified t) 15 16 (fontified nil
 font-lock-fontified t))


 Thanks.

 Following is the corresponding part in my .emacs

 (custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(TeX-PDF-mode t t)
  '(TeX-source-correlate-method (quote synctex))
  '(TeX-source-correlate-mode t)
  '(TeX-source-correlate-start-server t)
  '(TeX-view-program-list (quote ((Okular okular --unique
 %o#src:%n%b
  '(TeX-view-program-selection (quote ((output-pdf Okular) ((output-dvi
 style-pstricks) dvips and gv) (output-dvi xdvi) (output-html
 xdg-open
  '(org-modules (quote (org-bbdb org-bibtex org-docview org-gnus org-info
 org-jsinfo org-irc org-mew org-mhe org-rmail *org-special-blocks* org-vm
 org-wl org-w3m)))
  '(show-paren-mode t))
 (custom-set-faces
   ;; custom-set-faces was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(default ((t (:inherit nil :stipple nil :background white :foreground
 black :inverse-video nil :box nil :strike-through nil :overline nil
 :underline nil :slant normal :weight normal :height 98 :width normal
 :foundry unknown :family Liberation Sans)

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

 *




Re: [O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-14 Thread Sanjib Sikder
Hi,


 First of all can you confirm your .bashrc setting is working.?

 in the terminal
 --8---cut here---start-8---
 echo $BIBINPUTS

--8---cut here---end---8---


*Here is the output*

~$ echo $BIBINPUTS
.//:/home/USERNAME/bst//:.//:/home/USERNAME/bibFiles//:
--

 and also can you check what is the value of BIBINPUTS in emacs.? Within
 Emacs
 evaluate the following (either in scratch buffer or with key press `M-:' or
 with `M-x eval-expression')

 --8---cut here---start-8---
 (getenv BIBINPUTS)
 --8---cut here---end---8---



*OUTPUT* is: nil
-

 May be the last resort would be setting the variable within your .emacs

 --8---cut here---start-8---
 (setenv BIBINPUTS .:$HOME/bib:)
 --8---cut here---end---8---


I will try this one
-

BTW how you are starting emacs? (command line or gui mouse click?)


I am starting emacs from GUI mouse click. All the above tests are done only
with the .bashrc, i.e., after  removing the lines from .profile and .gnomerc

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

*



On Sun, Oct 14, 2012 at 7:24 AM, Yagnesh Raghava Yakkala 
h...@yagnesh.orgwrote:


 Hello Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Hi,
 
  The easiest way to update is logout from the computer, login again and
 start
  emacs.
 
  I did that. Still not working :(

 First of all can you confirm your .bashrc setting is working.?

 in the terminal
 --8---cut here---start-8---
 echo $BIBINPUTS
 --8---cut here---end---8---

 and also can you check what is the value of BIBINPUTS in emacs.? Within
 Emacs
 evaluate the following (either in scratch buffer or with key press `M-:' or
 with `M-x eval-expression')

 --8---cut here---start-8---
 (getenv BIBINPUTS)
 --8---cut here---end---8---

 If you don't get what you set in your .bashrc, means the shell in Emacs is
 not
 getting BIBINPUTS variable.

 May be the last resort would be setting the variable within your .emacs

 --8---cut here---start-8---
 (setenv BIBINPUTS .:$HOME/bib:)
 --8---cut here---end---8---

 BTW how you are starting emacs? (command line or gui mouse click?)

 Thanks.,
 --
 ఎందరో మహానుభావులు అందరికి వందనములు
 YYR



Re: [O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-14 Thread Sanjib Sikder
Hi Dokos,

o What shell are you using? Yagnesh's recommendation assumes
   that you are running bash as your shell (presumably on some
   Linux/Unix system). Is this assumption correct?


I am a normal Ubuntu (12.04) user, and recently started to use Emacs (Emacs
snapshot) and loving it very much. I am sorry that I do not understand what
is Bash shell. I am starting my Emacs GTK either by right clicking on the
.org files or first opening the emacs GTK by clicking on icon.

Try starting emacs from a bash
   command line.[fn:2]


Now I started emacs from terminal typing
$ emacs .
Now BIBINPUTS is working with BIBINPUTS lines in .bashrc only (I have
removed the BIBINPUTS lines from .profile, to test one by one)

THANKS A LOT. IT IS WORKING NOW :)

Do I then always need to start emacs from command line ? (I will try with
.profile)


=
The following reply was sent to Yagnesh. I am pasting it below as I
understand you also asked these questions.


--

 First of all can you confirm your .bashrc setting is working.?

 in the terminal
 --8---cut here---start-8---
 echo $BIBINPUTS

 --8---cut here---end---8---


 *Here is the output*

 ~$ echo $BIBINPUTS
 .//:/home/USERNAME/bst//:.//:/home/USERNAME/bibFiles//:

 --

 and also can you check what is the value of BIBINPUTS in emacs.? Within
 Emacs
 evaluate the following (either in scratch buffer or with key press `M-:'
 or
 with `M-x eval-expression')

 --8---cut here---start-8---
 (getenv BIBINPUTS)
 --8---cut here---end---8---



 *OUTPUT* is: nil

 -

 May be the last resort would be setting the variable within your .emacs

 --8---cut here---start-8---
 (setenv BIBINPUTS .:$HOME/bib:)
 --8---cut here---end---8---


 I will try this one

 -

 BTW how you are starting emacs? (command line or gui mouse click?)


 I am starting emacs from GUI mouse click. All the above tests are done
 only with the .bashrc, i.e., after  removing the lines from .profile and
 .gnomerc




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

*



On Sun, Oct 14, 2012 at 10:27 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Sanjib Sikder sanjibju2...@gmail.com wrote:

  Hi,
 
  The easiest way to update is logout from the computer, login again and
 start emacs.
 
  I did that. Still not working :(
 

 When you have problems like this, you need to take it in small
 steps.

 o What shell are you using? Yagnesh's recommendation assumes
   that you are running bash as your shell (presumably on some
   Linux/Unix system). Is this assumption correct?

 o Assuming you are using bash, there are two relevant initialization
   files: a login shell sources $HOME/.profile and any shell (be it a login
   shell or one that is started as a descendant of your login shell) sources
   $HOME/.bashrc.

 o Adding

   export FOO=bar

   to such an initialization file causes the variable FOO to be defined
 (with value bar)
   and to be exported (i.e. it is available in the environment of *any*
 subprocess of
   this shell).

 o So log out and log back in[fn:2], start a shell and at the prompt say

   echo $FOO

   Does it say bar? If not, don't go any further: the problem has nothing
 to do with
   emacs (note that this is the first time I mention emacs).

 o If this part is OK, start emacs *from this shell*: it should inherit the
 variable.
   You can check by evaluating this form:

   (getenv FOO)

   Then the variable will also be available to any subprocesses started by
 emacs.

 o In particular, if you define BIBINPUTS as Yagnesh suggests, then the
 bibtex invoked
   by the latex exporter under emacs will find the bib file where you told
 it.

 o What can go wrong? The usual problem is that you use some graphical
   desktop environment and start emacs by clicking on some icon. Then
   the emacs process does not have a bash shell as its parent, so it does
   not inherit the exported variables. Try starting emacs from a bash
   command line.[fn:2]

 Nick

 Footnotes:
 [fn:1] If you define it in .bashrc, you shouldn't have to log out and log
back in: just start a new bash shell.

 [fn:2] I prefer defining variables in my .profile and I have arranged
for my .profile to be sourced by the appropriate initialization
file of my

[O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-13 Thread Sanjib Sikder
Hi,

Can I use the bib file path using tilde (~) when doing latex export ?

for example, Why can not I use \bibliography{~/Bib/RefAbv} ?
where my bibliography file name is RefAbv.bib
It gives error : undefined citation

I do not want to use \bibliography{/home/USERNAME/Bib/RefAbv}

I use dropbox. So if I can use tilde , then synchronzation is perfect. I
can work in any machine without changing the path of my bib files.

Also I do not want to put the bib file in my working directory.

I am using Ubuntu 12.04

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

*


Re: [O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-13 Thread Sanjib Sikder
Hi,

Thank you for the reply.

I have put the following in my .bashrc file

export BIBINPUTS=.:$HOME/bib:
export BSTINPUTS=.:$HOME/bst:
export TEXINPUTS=.:$HOME/bib:


where bib and bst are my two folders whose actual path are
/home/USERNAME/bib for example.

But it is still not working.

Thanks

[I did one mistake, initially instead of placing these in .bashrc, i had
run those in terminal. Is it causing any problem?]

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

*



On Sat, Oct 13, 2012 at 7:41 PM, Yagnesh Raghava Yakkala 
h...@yagnesh.orgwrote:


 Hello Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Hi,
 
  Can I use the bib file path using tilde (~) when doing latex export ?
 
  for example, Why can not I use \bibliography{~/Bib/RefAbv} ?
  where my bibliography file name is RefAbv.bib
  It gives error : undefined citation
 
  I do not want to use \bibliography{/home/USERNAME/Bib/RefAbv}
 
  I use dropbox. So if I can use tilde , then synchronzation is perfect. I
 can
  work in any machine without changing the path of my bib files.
 
  Also I do not want to put the bib file in my working directory.
 
  I am using Ubuntu 12.04

 Its more of bibtex not finding than org-export problem.

 I have this in my .bashrc (~/git/bib is the folder I put my citations)

 --8---cut here---start-8---
 export BIBINPUTS=.:$HOME/git/bib:
 export BSTINPUTS=.:$HOME/git/bib:
 export TEXINPUTS=.:$HOME/git/bib:
 --8---cut here---end---8---

 And in my org file I don't even give any path name..
 --8---cut here---start-8---
 \bibliographystyle{plain}
 \bibliography{bibfile}
 --8---cut here---end---8---


 Thanks.,
 --
 ఎందరో మహానుభావులు అందరికి వందనములు
 YYR



Re: [O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-13 Thread Sanjib Sikder
Hi,

The following link says Emacs doesn't read .bashrc at all

http://lists.gnu.org/archive/html/auctex/2006-01/msg00085.html

any idea ?

My BIBINPUTS is not working.

I have put the following in my .bashrc file

export BIBINPUTS=.:$HOME/bib:
export BSTINPUTS=.:$HOME/bst:
export TEXINPUTS=.:$HOME/bib:


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

*



On Sat, Oct 13, 2012 at 8:06 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 Thank you for the reply.

 I have put the following in my .bashrc file

 export BIBINPUTS=.:$HOME/bib:
 export BSTINPUTS=.:$HOME/bst:
 export TEXINPUTS=.:$HOME/bib:


 where bib and bst are my two folders whose actual path are
 /home/USERNAME/bib for example.

 But it is still not working.

 Thanks

 [I did one mistake, initially instead of placing these in .bashrc, i had
 run those in terminal. Is it causing any problem?]


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

 *



 On Sat, Oct 13, 2012 at 7:41 PM, Yagnesh Raghava Yakkala 
 h...@yagnesh.orgwrote:


 Hello Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Hi,
 
  Can I use the bib file path using tilde (~) when doing latex export ?
 
  for example, Why can not I use \bibliography{~/Bib/RefAbv} ?
  where my bibliography file name is RefAbv.bib
  It gives error : undefined citation
 
  I do not want to use \bibliography{/home/USERNAME/Bib/RefAbv}
 
  I use dropbox. So if I can use tilde , then synchronzation is perfect.
 I can
  work in any machine without changing the path of my bib files.
 
  Also I do not want to put the bib file in my working directory.
 
  I am using Ubuntu 12.04

 Its more of bibtex not finding than org-export problem.

 I have this in my .bashrc (~/git/bib is the folder I put my citations)

 --8---cut here---start-8---
 export BIBINPUTS=.:$HOME/git/bib:
 export BSTINPUTS=.:$HOME/git/bib:
 export TEXINPUTS=.:$HOME/git/bib:
 --8---cut here---end---8---

 And in my org file I don't even give any path name..
 --8---cut here---start-8---
 \bibliographystyle{plain}
 \bibliography{bibfile}
 --8---cut here---end---8---


 Thanks.,
 --
 ఎందరో మహానుభావులు అందరికి వందనములు
 YYR





Re: [O] Bib file path relative to home using tilde ~ in Ubuntu

2012-10-13 Thread Sanjib Sikder
Hi,

The easiest way to update is logout from the computer, login again and
start emacs.

I did that. Still not working :(

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

*



On Sat, Oct 13, 2012 at 11:10 PM, Yagnesh Raghava Yakkala 
h...@yagnesh.orgwrote:

 The easiest way to
 update is logout from the computer, login again and start emacs.



[O] BIBINPUT in .bashrc not recognized by Emacs

2012-10-13 Thread Sanjib Sikder
Hi,

I was trying to set a location for my bibliography files which can be found
by org mode. The following lines in .bashrc does not work with orgmode
latex export

export TEXINPUTS=.//:$HOME/bibFiles//:$TEXINPUTS
export BSTINPUTS=.//:$HOME/bibFiles//:$BIBINPUTS
export BIBINPUTS=.//:$HOME/bst//:$BSTINPUTS


I have put these lines in .gnomerc and .profile also


Normal pdflatex and bibtex runs from terminal successfully locates the bib
folder and bib files and generates the document with correct references but
orgmode latex export does not. If I put the .bib file where my .org file
is, then orgmode successfuly creates the document with reeerences.

How can i set BIBINPUT correctly so that emacs finds the bib files ?

the following link says that emacs does not recognize .bashrc. Even after
putting those codes in .gnomerc and .profile, emacs does not find the bib
files

http://lists.gnu.org/archive/html/auctex/2006-01/msg00085.html

Please help

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

*


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

*


[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] 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 t...@tsdye.com 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 sanjibju2...@gmail.com 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



[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] Symbol's function definition is void: search

2012-10-03 Thread Sanjib Sikder
Hi,

Can anybody help me out please ? I still could not export it to pdf.

Thanks.

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

*



On Tue, Oct 2, 2012 at 8:02 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 I did what you said but still it is giving the same error,..[undefined
 reference]

 There is one line in the org file


 [[papers:paper2012][paper2012-paper]]
 [[bib:paper2012][paper2012-bib]]
 [[biblist:paper2012][paper2012-biblist]]

 This line is giving the error. If I remove this line from my org file,
 then everything is perfect. While I am trying to export pdf including that
 line, i am getting the error .[undefined reference].

 Thanks a lot.


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

 *



 On Tue, Oct 2, 2012 at 7:55 PM, Bastien b...@altern.org wrote:

 Hi Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  or only
 
  (search rtcite: desc)))
 
 
 
  with this
 
(or search rtcite: desc)))

 only this line.

 You get this error because Emacs tries to evaluate

   (search rtcite: desc)

 ... and it cannot, because search is not a function.
 Search here is a variable (a string), hence
 (or search rtcite: desc))) should return something
 sensible.

 HTH,

 --
  Bastien





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

2012-10-03 Thread Sanjib Sikder
Hi,

I am sure it is not a case of missing reference. The reasons are 1) I have
checked it 2) The reftex shows those references correctly and I can
incorporate the reference from the search in my org file 3) rtcite
successfully links the references and I can jump to those references using
the links made in the document.

So must be there is something needs to be added in the .emacs or there are
some other ways to solve the problem, if it is not some error in orgmode.

I had provided the files and .emacs content in my first mail. If it is
needed, I can send the files.

Thanks.


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

*



On Wed, Oct 3, 2012 at 11:34 AM, Bastien b...@altern.org wrote:

 Hi Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Can anybody help me out please ? I still could not export it to pdf.

 It looks like this is a problem of a missing reference, not a problem
 with Org.  You need to check the BibTeX references.

 --
  Bastien



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

2012-10-03 Thread Sanjib Sikder
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.

Thanks again.

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

*



On Wed, Oct 3, 2012 at 11:46 AM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 I am sure it is not a case of missing reference. The reasons are 1) I have
 checked it 2) The reftex shows those references correctly and I can
 incorporate the reference from the search in my org file 3) rtcite
 successfully links the references and I can jump to those references using
 the links made in the document.

 So must be there is something needs to be added in the .emacs or there are
 some other ways to solve the problem, if it is not some error in orgmode.

 I had provided the files and .emacs content in my first mail. If it is
 needed, I can send the files.


 Thanks.


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

 *



 On Wed, Oct 3, 2012 at 11:34 AM, Bastien b...@altern.org wrote:

 Hi Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  Can anybody help me out please ? I still could not export it to pdf.

 It looks like this is a problem of a missing reference, not a problem
 with Org.  You need to check the BibTeX references.

 --
  Bastien





Re: [O] Fwd: Citation in org mode does not compile

2012-10-03 Thread Sanjib Sikder
Hi Dokos,

I am sorry for the mistake, but what happened, in my original files, the
references are all correct but when I thought of giving examples in the
email, I did not put correct references.

Anyways, thanks for your valuable input.

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

*



On Wed, Oct 3, 2012 at 12:34 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Sanjib Sikder sanjibju2...@gmail.com wrote:

  HI,
 
  (setq org-latex-to-pdf-process '(texi2dvi --pdf --clean --verbose
 --batch %f))
 
  I have incorporated above line in my .emacs file. Now the C-c C-e p is
 not showing the error
  Undefined citation but the problem is still there. In place of
 refrences, I am getting questions
  marks.
 

 I haven't gone through the whole thread, but I did go back and unpacked
 your files
 from the original message. The problem there was indeed missing references:
 your org file contains

 ,
 | hi \citep{biswas2008generalized}
 | hello \citep{cai1992length}
 `


 which did not match anything in the .bib file you attached to that
 message. When I replaced them with the ones that *did* occur in your bib
 file, like this:

 --8---cut here---start-8---
 hi \citep{ashu1995molecular}
 hello \citep{brush1967}
 --8---cut here---end---8---

 and I fixed a couple of things at the beginning of the file:

 --8---cut here---start-8---
 # -*- mode: org -*-
 #+TITLE: The Impact of Beer Consumption on Scientific Collaboration
 --8---cut here---end---8---

 everything worked fine (assuming that you added a call to bibtex
 somewhere, either explicitly or by using texi2dvi, as indicated
 previously).

 The mode-setting line *has* to be on the first line: you can't leave
 empty lines before it. The only exception is when the first line is a
 shebang line, something like #! /bin/bash in a shell script: then the
 mode-setting line has to be the second line. Emacs imposes this
 restriction, not org.

 There has to be a space after the # on that line: otherwise, it's not
 interpreted as a comment and is included in the export output. That's an
 org restriction.

 Specifying the title is good practice, since otherwise the file name
 becomes the title.

 Nick





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

2012-10-02 Thread Sanjib Sikder
 such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background white :foreground
black :inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 98 :width normal
:foundry unknown :family Liberation Sans)

;;;..
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-save-query nil)





;;;==




Thanks :)

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

*


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

2012-10-02 Thread Sanjib Sikder
Hi,

Shall i replace

(equal 0 (search rtcite: desc)))
  ^^^

or only

 (search rtcite: desc)))



with this

  (or search rtcite: desc)))



I tried with replacing the whole line i.e (equal 0 (search rtcite: desc)))

Now the last error message os gone but during pdf export i get a new error
message
Exporting to pdf... done, with some errors: [undefined reference]

thanks a lot :)


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

*



On Tue, Oct 2, 2012 at 7:21 PM, Bastien b...@altern.org wrote:

  (cond ((eq format 'latex)
(if (or (not desc)
(equal 0 (search rtcite: desc)))
  ^^^

 Replace this last line with this

  (or search rtcite: desc)))


 I did no test this, though, just a wild guess.



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

2012-10-02 Thread Sanjib Sikder
Hi,

I did what you said but still it is giving the same error,..[undefined
reference]

There is one line in the org file

[[papers:paper2012][paper2012-paper]]
[[bib:paper2012][paper2012-bib]]
[[biblist:paper2012][paper2012-biblist]]

This line is giving the error. If I remove this line from my org file, then
everything is perfect. While I am trying to export pdf including that line,
i am getting the error .[undefined reference].

Thanks a lot.

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

*



On Tue, Oct 2, 2012 at 7:55 PM, Bastien b...@altern.org wrote:

 Hi Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  or only
 
  (search rtcite: desc)))
 
 
 
  with this
 
(or search rtcite: desc)))

 only this line.

 You get this error because Emacs tries to evaluate

   (search rtcite: desc)

 ... and it cannot, because search is not a function.
 Search here is a variable (a string), hence
 (or search rtcite: desc))) should return something
 sensible.

 HTH,

 --
  Bastien



Re: [O] Fwd: Citation in org mode does not compile

2012-09-26 Thread Sanjib Sikder
HI,

(setq org-latex-to-pdf-process '(texi2dvi --pdf --clean --verbose --batch
%f))

I have incorporated above line in my .emacs file. Now the C-c C-e p is not
showing the error Undefined citation but the problem is still there. In
place of refrences, I am getting questions marks.

Thanks for your response.

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

*



On Thu, Sep 27, 2012 at 12:08 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Sanjib Sikder,

 It looks like BibTeX hasn't processed your document.

 See the variable org-latex-to-pdf-process. By default I believe it just
 calls pdflatex several times.  You can either insert a call to bibtex,
 or use a script, like this:

 (setq org-latex-to-pdf-process '(texi2dvi --pdf --clean --verbose --batch
 %f))

 hth,
 Tom


 Sanjib Sikder sanjibju2...@gmail.com writes:

  Hi,
 
  I tried the whole day trying the instructions through out various web
 pages
  to have references in scientific document without any success.
 
  C-c C-e p produces the pdf file with question mark in place of reference.
 
  I have attached four files.
 
  BibAbb1.bib is my bibliography file
  DOTemacs is the .emacs file
  TestSciDocu.org is the org file for scientific writing
  TestSciDocu.pdf is the output
 
 
  Please help me in geeting the citation correctly :(
 
  I am using emacs-snapshot on Ubuntu 12.04.
 
  Thanks
 
 
 
  -
  *Sanjib Sikder
  *Ph.D. Fellow
  Chemical Engineering
  IIT Bombay*
 
  *
  Hi,I tried the whole day trying the instructions through out various web
 pages to have references in scientific document without any success.C-c C-e
 p produces the pdf file with question mark in place of reference.
 
 
  I have attached four files.BibAbb1.bib is my bibliography fileDOTemacs
 is the .emacs fileTestSciDocu.org is the org file for scientific
 writingTestSciDocu.pdf is the outputPlease help me in geeting the citation
 correctly :(
 
 
  I am using emacs-snapshot on Ubuntu
 12.04.Thanks-span
 style=color:rgb(102,102,102)Sanjib Sikder/spanspan
 style=color:rgb(153,153,153)Ph.D. Fellow
 
 
  Chemical EngineeringIIT Bombay/span
 
 
 
 
 

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



Re: [O] Fwd: Citation in org mode does not compile

2012-09-26 Thread Sanjib Sikder
HI Yagnesh,

I have tried with

(setq org-latex-to-pdf-process
  '(pdflatex -interaction nonstopmode %b
/usr/bin/bibtex %b
pdflatex -interaction nonstopmode %b
pdflatex -interaction nonstopmode %b))

and the problem seems solved.

I can see there are two instances of emacs one is Emacs Snapshot (GTK) and
the other is Emacs Snapshot (Client). The GTK is properly producing the pdf
with references.

What is the difference between clint and GTK? Which on shall I use and when
?

Thanks a lot. :)

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

*



On Thu, Sep 27, 2012 at 9:16 AM, Yagnesh Raghava Yakkala 
h...@yagnesh.orgwrote:


 Hello Sanjib,

 Sanjib Sikder sanjibju2...@gmail.com writes:

  HI,
 
  Just now I have found that now I am not even getting the pdf. I am
 pasting the
  error messages below.
 
  /usr/bin/texi2dvi: Processing /home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex ...
  /usr/bin/texi2dvi: BIBINPUTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: BSTINPUTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: DVIPSHEADERS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: INDEXSTYLE='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: MFINPUTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: MPINPUTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: TEXINPUTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: TFMFONTS='.:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
  /usr/bin/texi2dvi: cd /home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.t2d/pdf/build
  /usr/bin/texi2dvi: Cycle 1 for /home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex
  /usr/bin/texi2dvi: Running rm -f TestSciDocu.tex
  /usr/bin/texi2dvi: Running ln -s /home/sanjib/Ubuntu
  One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex
  /usr/bin/texi2dvi: /usr/bin/texi2dvi: Running pdflatex --file-line-error
  /dev/null '
  onstopmode' 'This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live
 2009/Debian)
  entering extended mode
  LaTeX2e 2009/09/24
  Babel v3.8l and hyphenation patterns for english, usenglishmax,
 dumylang,
  noh
  yphenation, loaded.
 
  (./TestSciDocu.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
  Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
  (/usr/share/texmf-texlive/tex/latex/base/size11.clo))
  (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
  (/usr/share/texmf-texlive/tex/latex/base/utf8.def
  (/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
  (/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
  (/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
  (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
  (/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
  (/usr/share/texmf-texlive/tex/latex/base/fixltx2e.sty)
  (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
  (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
  (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
  (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
  (/etc/texmf/tex/latex/config/graphics.cfg)
  (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def)))
  (/usr/share/texmf-texlive/tex/latex/tools/longtable.sty)
  (/usr/share/texmf-texlive/tex/latex/float/float.sty)
  (/usr/share/texmf-texlive/tex/latex/wrapfig/wrapfig.sty)
  (/usr/share/texmf-texlive/tex/latex/soul/soul.sty)
  (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
  (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def
  (/usr/share/texmf-texlive/tex/latex/base/ts1enc.dfu)))
  (/usr/share/texmf-texlive/tex/latex/marvosym/marvosym.sty)
  (/usr/share/texmf-texlive/tex/latex/wasysym/wasysym.sty)
  (/usr/share/texmf-texlive/tex/latex/base/latexsym.sty)
  (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
  (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))
  (/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
  (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
  (/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
  (/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
  (/usr/share/texmf-texlive/tex/latex/oberdiek/hycolor.sty
  (/usr/share/texmf-texlive/tex/latex/oberdiek/xcolor-patch.sty))
  (/usr/share