From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sanjib Sikder Subject: Symbol's function definition is void: search Date: Tue, 2 Oct 2012 15:44:45 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93411b302755204cb10cd9a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIzVm-000705-0X for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 06:15:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIzVf-0005cy-Lc for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 06:15:33 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:59259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIzVf-0005cK-DC for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 06:15:27 -0400 Received: by ied10 with SMTP id 10so16180450ied.0 for ; Tue, 02 Oct 2012 03:15:26 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --14dae93411b302755204cb10cd9a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, I was trying to manage my technical journal papers using Orgmode. I followed instructions from the following links http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emac= s-org-mode-and-reftex/ http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-= and-export-bibliographic-notesrefs-in-org-mode/ I have three files 1. bibliography file with extension .bib (bibPhD.bib) 2. one list file where I save names of papers etc with .org extension (bibListDrBx.org) 3. one notes file with .org extension where I write notes related to papers listed in item 2 (bibNotesDrBx.org) There are links with rtcite , so that i can jump from one file to another at desired location. The following is the content of bibNotesDrBx.org --------------------------------------------------------------- #+LINK: biblist rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibListOrgDrBx/bibListDrBx.org::#%s #+LINK: bib rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD.bib::%s # \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD} ** Name of one of the paper :mytag: :PROPERTIES: :Custom_ID: paper2012 :END: [[papers:paper2012][paper2012-paper]] [[bib:paper2012][paper2012-bib]] [[biblist:paper2012][paper2012-biblist]= ] -------------------------------------------------------------- The above file works fine. It can connect with other files perfectly. It can make pdf wth C-c C-e p. -------------------------------------------------------------- Problem is in the following file bibListDrBx.org The following is the content of bibListDrBx.org file ----------------------------------------------------------------- Research Notes #+STARTUP: indent hidestars #+TITLE: Research Notes #+LINK: notes rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibNotesOrgDrBx/bibNotesDrBx.org::#%s #+LINK: bib rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD.bib::%s #+TODO: TODO | DONE #+TODO: HOLD | HALT #+title: My Title #+author: My Name # \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD} * Tasks * Research :Research: * Papers :paper: ** Name of my journal entry :PROPERTIES: :Custom_ID: paper2012 :END: [[papers:paper2012][paper2012-paper]] [[bib:paper2012][paper2012-bib]] ** Other Papers * Resources * Data \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD}{} \bibliographystyle{plain} ---------------------------------------------------------------------------= ---------------------------------- This file also successfully connects with pdf and other files. Problem is, when I press C c C e p to make pdf of the file bibListDrBx.org , it says *"Symbol's function definition is void: search"* i have located the lines which are causing error. and those are ** Name of my journal entry :PROPERTIES: :Custom_ID: paper2012 :END: [[papers:paper2012][paper2012-paper]] [[bib:paper2012][paper2012-bib]] Now these lines were there in my bibNotesDrBx.org files also and I have no issue in making pdf of that file. What is wrong with the other file (bibListDrBx.org) ? --------------------------------- Following is my .emacs set up ----------------------------------- ;;Last updated : 28 Sep2012: 12:26 AM (global-visual-line-mode 1) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Inhibit start-up window =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq inhibit-startup-message t) ;;Following lines will get shown on start up ;; This buffer is for notes you don't want to save, and for Lisp evaluation= . ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= enable syntax highlighting=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D ;;;different colour to different types of text like comments, maths etc (global-font-lock-mode t) ;;;highlights marked regions (setq transient-mark-mode t) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;font lock, word wrap, truncate lines, fyspell........... (add-hook 'org-mode-hook (lambda () 'turn-on-font-lock (setq word-wrap 1) (setq truncate-lines nil) (flyspell-mode 1))) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;predictive (add-to-list 'load-path "~/.emacs.d/predictive") (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") (require 'predictive) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;Recent files menu in emacs (require 'recentf) (recentf-mode 1) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= org mode=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ;;enable org-mode (require 'org) ;;make org-mode work with files ending in .org (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= org mode Capture=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;.............................................................. ;;capture (setq org-directory "~/Ubuntu One/EmacsFilesUO/OrgFilesUO/") (setq org-default-notes-file (concat org-directory "notes.org")) (define-key global-map "\C-cc" 'org-capture) ;;;.......................................................... ;;;org capture templates (setq org-capture-templates `( ("n" "Notes" entry (file+datetree ,(concat org-directory "notes.org")) "* %^{Description} %^g %? Added: %U") )) ;;;add more templates later ;;;...................................................... ;;;create frame and close frame for capture (defadvice org-capture-finalize (after delete-capture-frame activate) "Advise capture-finalize to close the frame" (if (equal "capture" (frame-parameter nil 'name)) (delete-frame))) (defadvice org-capture-destroy (after delete-capture-frame activate) "Advise capture-destroy to close the frame" (if (equal "capture" (frame-parameter nil 'name)) (delete-frame))) ;; make the frame contain a single window. by default org-capture ;; splits the window. (add-hook 'org-capture-mode-hook 'delete-other-windows) (defun make-capture-frame () "Create a new frame and run org-capture." (interactive) (make-frame '((name . "capture") (width . 120) (height . 15))) (select-frame-by-name "capture") (setq word-wrap 1) (setq truncate-lines nil) (org-capture)) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D (require 'org-latex) (unless (boundp 'org-export-latex-classes) (setq org-export-latex-classes nil)) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOrg mode reftex =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;First, we want to load to load RefTeX whenever we use org-mode. ;;;This is well documented, and mine only differs in the citation formats ;;;..I pass to RefTex, and my additional key binding. (defun org-mode-reftex-setup () (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (progn ;enable auto-revert-mode to update reftex when bibtex file changes on disk (global-auto-revert-mode t) (reftex-parse-all) ;add a custom reftex cite format to insert links (reftex-set-cite-format '((?b . "[[bib:%l][%l-bib]]") (?p . "[[papers:%l][%l-paper]]") (?n . "** %t\n:PROPERTIES:\n:Custom_ID: %l\n:END:\t[[papers:%l][%l-paper]]\t[[bib:%l][%l-bib]]\t[[biblist:%l][%l-bi= blist]]") (?t . "%t") (?h . "** %t\n:PROPERTIES:\n:Custom_ID: %l\n:END:\n[[papers:%l][%l-paper]]\t[[bib:%l][%l-bib]]\t[[notes:%l][%l-note= ]]"))))) (define-key org-mode-map (kbd "C-c )") 'reftex-citation) (define-key org-mode-map (kbd "C-c (") 'org-mode-reftex-search)) (add-hook 'org-mode-hook 'org-mode-reftex-setup) ;;;........................................................................= ..... ;;;jump to entry ;;;The other difference I added was the binding of =94C-c (=94 ;;;to org-mode-reftex-search, which I defined earlier in my init.el. ;;;This is the command that will jump to the entry in my org-mode file, and follows (defun org-mode-reftex-search () ;;jump to the notes for the paper pointed to at from reftex search (interactive) (org-open-link-from-string (format "[[notes:%s]]" (reftex-citation t)))) ;;;............................ ;;;;;link files in reference notes (setq org-link-abbrev-alist '(("bib" . "~/Research/Bib/bibliography.bib::%s") ("notes" . "~/Research/Notes/Org/notes.org::#%s") ("papers" . "~/Research/Papers/%s.pdf"))) ;;;........................................................ ;;;; notes for references and linking with rtcite (defun my-rtcite-export-handler (path desc format) (message "my-rtcite-export-handler is called : path =3D %s, desc =3D %s, format =3D %s" path desc format) (let* ((search (when (string-match "::#?\\(.+\\)\\'" path) (match-string 1 path))) (path (substring path 0 (match-beginning 0)))) (cond ((eq format 'latex) (if (or (not desc) (equal 0 (search "rtcite:" desc))) (format "\\cite{%s}" search) (format "\\cite[%s]{%s}" desc search)))))) (require 'org) (org-add-link-type "rtcite" 'org-bibtex-open 'my-rtcite-export-handler) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;;;org mode latex to pdf export (setq org-latex-to-pdf-process '("pdflatex -interaction nonstopmode %b" "/usr/bin/bibtex %b" "pdflatex -interaction nonstopmode %b" "pdflatex -interaction nonstopmode %b")) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DLatex=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D (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")))) '(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"))))) ;;;........................................................................= .............. (setq TeX-auto-save t) (setq TeX-parse-self t) (setq TeX-save-query nil) ;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Thanks :) ----------------------------- *Sanjib Sikder *Ph.D. Fellow Chemical Engineering IIT Bombay* * --14dae93411b302755204cb10cd9a Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi,

I was trying to manage my technical journal papers using Orgmode= .
I followed instructions from the following links

http://tincman.wordpress.com/2011/01/04/research-paper= -management-with-emacs-org-mode-and-reftex/
http://www-pu= blic.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bi= bliographic-notesrefs-in-org-mode/

I have three files
1. bibliography file with extension .bib (bibPhD.= bib)
2. one list file where I save names of papers etc with .org extensi= on (bibListDrBx.org)
3. one notes file with .org extension where I write= notes related to papers listed in item 2 (bibNotesDrBx.org)

There are links with rtcite , so that i can jump from one file to anoth= er at desired location.

The following is the content of bibNotesDrBx= .org
---------------------------------------------------------------
#+LINK: biblist rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibListOrgDrBx/bibLis= tDrBx.org::#%s
#+LINK: bib rtcite:~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx= /bibPhD.bib::%s
# \bibliography{~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/b= ibPhD}


** Name of one of the paper :mytag:
:PROPERTIES:
:Custom_ID: = paper2012
:END:=A0=A0=A0 [[papers:paper2012][paper2012-paper]]=A0=A0=A0 = [[bib:paper2012][paper2012-bib]]=A0=A0=A0 [[biblist:paper2012][paper2012-bi= blist]]


--------------------------------------------------------------
The a= bove file works fine. It can connect with other files perfectly. It can mak= e pdf wth C-c C-e p.
---------------------------------------------------= -----------
Problem is in the following file bibListDrBx.org
The following is the co= ntent of bibListDrBx.org file
------------------------------------------= -----------------------

Research Notes
#+STARTUP: indent hidestar= s
#+TITLE: Research Notes
#+LINK: notes rtcite:~/Dropbox/OrgDrBx/ResearchD= rBx/BibNotesOrgDrBx/bibNotesDrBx.org::#%s
#+LINK: bib rtcite:~/Dropbox/O= rgDrBx/ResearchDrBx/BibDrBx/bibPhD.bib::%s
#+TODO: TODO | DONE
#+TODO= : HOLD | HALT
#+title: My Title
#+author: My Name
# \bibliography{~/Dropbox/OrgDrBx= /ResearchDrBx/BibDrBx/bibPhD}
* Tasks
* Research :Research:
* Pape= rs :paper:
** Name of my journal entry
:PROPERTIES:
:Custom_ID: pa= per2012
:END:
[[papers:paper2012][paper2012-paper]]=A0=A0=A0 [[bib:paper2012][pa= per2012-bib]]
** Other Papers
* Resources
* Data
\bibliography{= ~/Dropbox/OrgDrBx/ResearchDrBx/BibDrBx/bibPhD}{}
\bibliographystyle{plai= n}
---------------------------------------------------------------------------= ----------------------------------
This file also successfully connects = with pdf and other files.
Problem is, when I press C c C e p to make pdf= of the file bibListDrBx.org , it says "Symbol's function defin= ition is void: search"

i have located the lines which are causing error.
and those are
= ** Name of my journal entry
:PROPERTIES:
:Custom_ID: paper2012
:EN= D:
[[papers:paper2012][paper2012-paper]]=A0=A0=A0 [[bib:paper2012][paper= 2012-bib]]

Now these lines were there in my bibNotesDrBx.org files also and I have= no issue in making pdf of that file. What is wrong with the other file (bi= bListDrBx.org)=A0 ?


---------------------------------
Followi= ng is my .emacs set up
-----------------------------------
;;Last updated : 28 Sep2012: 12:26 A= M



(global-visual-line-mode 1)
;;;=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


;;;=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DInhibit start-up w= indow =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq inhibit-startup-message t)
;;Following lines will get shown on sta= rt up
;; This buffer is for notes you don't want to save, and for Li= sp evaluation.
;; If you want to create a file, visit that file with C-x= C-f,
;; then enter the text in that file's own buffer.

;;;=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Denable synta= x highlighting=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
;;;different colour to different types of text like comment= s, maths etc
(global-font-lock-mode t)
;;;highlights marked regions
(setq transien= t-mark-mode t)
;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
;;;font lock, word wrap, truncate lines, fyspell...........=
(add-hook 'org-mode-hook
=A0=A0=A0 (lambda ()
=A0=A0=A0 'turn= -on-font-lock
=A0=A0=A0 (setq word-wrap 1)
=A0=A0=A0 (setq truncate-l= ines nil)
=A0=A0=A0 (flyspell-mode 1)))

;;;=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
;;predictive
(add-to-list 'load-path "~/.emacs.d/predictive&quo= t;)
(add-to-list 'load-path "~/.emacs.d/predictive/texinfo"= ;)
(add-to-list 'load-path "~/.emacs.d/predictive/latex")<= br> (add-to-list 'load-path "~/.emacs.d/predictive/html")
(req= uire 'predictive)

;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
;;;Recent files menu in emacs
(require= 'recentf)
(recentf-mode 1)
;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= org mode=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D


;;enable org-mode
(require 'org)
;;make org-mode work with files ending in .org
(add-to-list 'auto-= mode-alist '("\\.org$" . org-mode))

;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3Dorg mode Capture=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
;;;...................................= ...........................
;;capture
(setq org-directory "~/Ubu= ntu One/EmacsFilesUO/OrgFilesUO/")
(setq org-default-notes-file (concat org-directory "notes.org"))
=A0=A0=A0 (define-key global-map "= \C-cc" 'org-capture)

;;;...................................= .......................
;;;org capture templates
(setq org-capture-templates
`(
=A0=A0=A0 = ("n" "Notes" entry (file+datetree
=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 ,(concat org-directory "notes.org"))
=A0"* %^{Description} %^g %?
Added: %U")

=A0=A0=A0 ))
;;;add more templates later
;;;.= .....................................................
;;;create frame an= d close frame for capture
(defadvice org-capture-finalize
(after dele= te-capture-frame activate)=A0
"Advise capture-finalize to close the frame"=A0
(if (equal &q= uot;capture" (frame-parameter nil 'name))=A0
=A0=A0=A0 (delete= -frame)))=A0

(defadvice org-capture-destroy
(after delete-captur= e-frame activate)=A0
"Advise capture-destroy to close the frame"=A0
(if (equal &qu= ot;capture" (frame-parameter nil 'name))=A0
=A0=A0=A0 (delete-= frame)))=A0

;; make the frame contain a single window. by default o= rg-capture=A0
;; splits the window.=A0
(add-hook 'org-capture-mode-hook=A0
= =A0=A0=A0=A0=A0=A0=A0 'delete-other-windows)=A0

(defun make-cap= ture-frame ()=A0
"Create a new frame and run org-capture."=A0=
(interactive)=A0
(make-frame '((name . "capture")
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 (width . 120)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (h= eight . 15)))=A0
(select-frame-by-name "capture")
(setq wo= rd-wrap 1)
(setq truncate-lines nil)
(org-capture))=A0


;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D
(require 'org-latex)
(unless (boundp 'o= rg-export-latex-classes)
(setq org-export-latex-classes nil))

;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOrg mode reftex =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
;;;First, we want to load to load RefTeX whenever we use org-mode.
;;;Th= is is well documented, and mine only differs in the citation formats
;;;= ..I pass to RefTex, and my additional key binding.
(defun org-mode-refte= x-setup ()
(load-library "reftex")
(and (buffer-file-name) (file-exists-p= (buffer-file-name))
=A0=A0=A0=A0 (progn
=A0=A0=A0 ;enable auto-rever= t-mode to update reftex when bibtex file changes on disk
=A0=A0=A0 (glob= al-auto-revert-mode t)
=A0=A0=A0 (reftex-parse-all)
=A0=A0=A0 ;add a custom reftex cite format = to insert links
=A0=A0=A0 (reftex-set-cite-format
=A0=A0=A0 '((?b= . "[[bib:%l][%l-bib]]")
=A0=A0=A0=A0=A0 (?p . "[[papers:= %l][%l-paper]]")
=A0=A0=A0=A0=A0 (?n . "** %t\n:PROPERTIES:\n:= Custom_ID: %l\n:END:\t[[papers:%l][%l-paper]]\t[[bib:%l][%l-bib]]\t[[biblis= t:%l][%l-biblist]]")
=A0=A0=A0=A0=A0 (?t . "%t")
=A0=A0=A0=A0=A0 (?h . "** %t\= n:PROPERTIES:\n:Custom_ID: %l\n:END:\n[[papers:%l][%l-paper]]\t[[bib:%l][%l= -bib]]\t[[notes:%l][%l-note]]")))))
(define-key org-mode-map (kbd &= quot;C-c )") 'reftex-citation)
(define-key org-mode-map (kbd "C-c (") 'org-mode-reftex-searc= h))

(add-hook 'org-mode-hook 'org-mode-reftex-setup)
;;;.= ...........................................................................= .
;;;jump to entry
;;;The other difference I added was the binding of=A0 = =94C-c (=94
;;;to org-mode-reftex-search, which I defined earlier in my = init.el.
;;;This is the command that will jump to the entry in my org-mo= de file, and follows
(defun org-mode-reftex-search ()
;;jump to the notes for the paper point= ed to at from reftex search
(interactive)
(org-open-link-from-string = (format "[[notes:%s]]" (reftex-citation t))))
;;;.............= ...............
;;;;;link files in reference notes
(setq org-link-abbrev-alist
=A0=A0= =A0=A0 '(("bib" . "~/Research/Bib/bibliography.bib::%s&q= uot;)
=A0=A0 ("notes" . "~/Research/Notes/Org/notes.org::= #%s")
=A0=A0 ("papers" . "~/Research/Papers/%s.pdf")))
;;;= ........................................................
;;;; notes for = references and linking with rtcite
(defun my-rtcite-export-handler (path= desc format)
=A0(message "my-rtcite-export-handler is called : path =3D %s, desc = =3D %s, format =3D %s" path desc format)
=A0(let* ((search (when (s= tring-match "::#?\\(.+\\)\\'" path)
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (match-string 1 path)))
=A0=A0=A0=A0=A0=A0=A0 (path (substring path 0 (match-beginning 0))))
=A0= =A0=A0 (cond ((eq format 'latex)
=A0=A0=A0=A0=A0=A0=A0=A0=A0 (if (or= (not desc)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (equal 0= (search "rtcite:" desc)))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 (format "\\cite{%s}" search)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (format "\\cite[%s]{%s}" desc s= earch))))))


(require 'org)

(org-add-link-type "r= tcite"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 'org= -bibtex-open
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 'my= -rtcite-export-handler)

;;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
;;= ;org mode latex to pdf export
(setq org-latex-to-pdf-process
=A0=A0= =A0=A0 '("pdflatex -interaction nonstopmode %b"
=A0=A0=A0= =A0=A0=A0 "/usr/bin/bibtex %b"
=A0=A0=A0=A0=A0=A0 "pdflatex -interaction nonstopmode %b"
=A0= =A0=A0=A0=A0=A0 "pdflatex -interaction nonstopmode %b"))

;= ;;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DLatex=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

(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 tha= n one, they won't work right.
'(TeX-PDF-mode t t)
'(TeX-s= ource-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-serv= er t)
'(TeX-view-program-list (quote (("Okular" "okul= ar --unique %o#src:%n%b"))))
'(TeX-view-program-selection (quot= e ((output-pdf "Okular") ((output-dvi style-pstricks) "dvips= and gv") (output-dvi "xdvi") (output-html "xdg-open&qu= ot;))))


'(show-paren-mode t))
(custom-set-faces
;; custom-set-fac= es 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 &qu= ot;black" :inverse-video nil :box nil :strike-through nil :overline ni= l :underline nil :slant normal :weight normal :height 98 :width normal :fou= ndry "unknown" :family "Liberation Sans")))))

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





;;;=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D




Thanks :)

----------------------------= -
Sanji= b Sikder
Ph.D. Fellow<= br> Chemical Engineering
IIT Bombay




--14dae93411b302755204cb10cd9a--