Closed dineshadepu closed 6 years ago
My configuration
(require 'ox-latex)
(add-to-list 'org-latex-classes
'("phd"
"\\documentclass[twoside]{iitbreport}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(eval-after-load "org"
'(progn
;; .txt files aren't in the list initially, but in case that changes
;; in a future version of org, use if to avoid errors
(if (assoc "\\.txt\\'" org-file-apps)
(setcdr (assoc "\\.txt\\'" org-file-apps) "notepad.exe %s")
(add-to-list 'org-file-apps '("\\.txt\\'" . "notepad.exe %s") t))
;; Change .pdf association directly within the alist
(setcdr (assoc "\\.pdf\\'" org-file-apps) "evince %s")))
(use-package org-ref
:ensure t)
(setq org-ref-bibliography-notes "~/Dropbox/bibliography/notes.org"
org-ref-default-bibliography '("~/Dropbox/bibliography/references.bib")
org-ref-pdf-directory "~/Dropbox/bibliography/bibtex-pdfs/")
(unless (file-exists-p org-ref-pdf-directory)
(make-directory org-ref-pdf-directory t))
(setq org-src-fontify-natively t
org-confirm-babel-evaluate nil
org-src-preserve-indentation t)
(org-babel-do-load-languages
'org-babel-load-languages '((python . t)))
(setq org-latex-pdf-process
'("pdflatex -interaction nonstopmode -output-directory %o %f"
"bibtex %b"
"pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f"))
(require 'org-ref)
(require 'org-ref-pdf)
(require 'org-ref-url-utils)
(require 'org-ref-latex)
My org file
#+LaTeX_CLASS: phd
#+OPTIONS: author:nil date:nil title:nil toc:nil
#+LaTeX_HEADER: \usepackage{booktabs}
#+LaTeX_HEADER: \graphicspath{{expt/}}
# ---------------------------
#+LaTeX_HEADER: \newcommand{\Rey}{\ensuremath{\mathrm{Re}}}
#+LaTeX_HEADER: \newcommand{\avg}[1]{\ensuremath{\overline{#1}}}
#+LaTeX_HEADER: \newcommand{\tenpow}[1]{\ensuremath{\times 10^{#1}}}
#+LaTeX_HEADER: \newcommand{\pder}[2]{\ensuremath{\frac{\partial#1}{\partial#2}}}
#+LaTeX_HEADER: \newcommand{\Eqref}[1]{Equation~\eqref{#1}}
#+LaTeX_HEADER: \newcommand{\Tabref}[1]{Table~\ref{#1}}
#+LaTeX_HEADER: \newcommand{\Figref}[1]{Figure~\ref{#1}}
#+LaTeX_HEADER: \newcommand{\Appref}[1]{Appendix~\ref{#1}}
#+BEGIN_EXPORT latex
%%********************************Frontmatter***********************
% In frontmatter everything comes with roman numbering
\pagenumbering{roman}
\setcounter{page}{1}
%*******************************************************************
% Title Page
%*******************************************************************
\title{Essential \LaTeX\ Templates for Report Writing}
\author{My name}
%% Print the date. Today's date comes by default, change it here to
%% other date format, if required:
%\date{\today}
%\date{10 Mar 2016}
%% The type of the report can be set here
\reporttype{A Seminar Report}
%\reporttype{A Thesis}
%\reporttype{A Dissertation}
%\reporttype{A Project Report}
%% Name of the degree
\degree{Doctor of Philosophy}
%\degree{Master of Technology}
%% Department/Centre Name
\dept{Department of Chemical Engineering}
%% Supervisor and cosupervisor/excosupervisor are not essential parts
%% of a report title page, as it is your report!
%% But if you **have** to put it uncomment these
%\supervisor{Supervisor name}
%\cosupervisor{Co-super name}
%\excosupervisor{External Supervisor}
%% Roll number
\rollnum{Roll No. ....}
\maketitle
%*******************************************************************
% Copyright Page
%*******************************************************************
%\mycopyright
%*******************************************************************
% Dedication Page
%*******************************************************************
\dedication[Dedicated to \ldots]
%\addintoc{Dedication}
%*******************************************************************
% Certificate Page
%*******************************************************************
%\makecertificate[change title name]{report type}
\makecertificate{seminar report}
%\makecertificate{thesis}
%\makecertificate{dissertation}
%\makecertificate{project report}
%\addintoc{Certificate}
%*******************************************************************
% Approval Sheet
%*******************************************************************
%\makeapproval{thesis}
%\makeapproval{dissertation}
%*******************************************************************
% Declaration
%*******************************************************************
\include{dec}
%\addintoc{Declaration}
%******************************************************************
% Abstract
%******************************************************************
\include{abs}
%******************************************************************
% Contents list
%******************************************************************
%\figurespagefalse
%\tablespagefalse
\makecontents % Creats toc, lof, and lot
%******************************************************************
% Notations
%******************************************************************
\notations[4cm]{List of Symbols}
%%********************************Mainmatter***********************
% In mainmatter everything comes with arabic numbering
\cleardoublepage
\setcounter{page}{1}
\pagenumbering{arabic}
#+END_EXPORT
* Literature Survey
Cite this file cite:Smith99,
#+BEGIN_EXPORT latex
%****************************************************************
% Appendices
%****************************************************************
%% Additional, supporting material, such as codes, derivations, etc., can be placed in the appendix
\appendix
\chapter{Supporting Material}
#+END_EXPORT
bibliographystyle:iitbauthyr
bibliography:./mylit.bib
#+BEGIN_EXPORT latex
%*******************************************************************
% List of publications
%******************************************************************
\include{pub}
%*******************************************************************
% Acknowledgements
%*******************************************************************
\include{ack}
%*******************************************************************
% About author
%*******************************************************************
% \colophon % remove this command while using this file.
% GAME OVER
%*******************************************************************
\end{document}
#+END_EXPORT
Did you resolve this somehow?
I changed my config and was able to resolve it.
Hi,
Org ref works fine. But while I tried to insert a citation by using
C-c ]
it corectly shows all the references available, but when I select a citation to cite, it wont insert such paper into the file. The prompt will simply go off and I see nothing in my file.