- #1
- 2,138
- 2,713
- TL;DR Summary
- Citations not working with RevTex in MikTex 2.9 and TexStudio.
I am a beginner in LaTeX. I am working in Windows 10, 64 bit. I have MikTex 2.9 and TexStudio installed. I use JabRef for the citations.
I wrote down a code with RevTex 4.2:
At first, it gave a lot of problem with the
Here is my file with the bibliography:
When I am building the pdf, the citations are not coming. Refer to the attached file. Now I cannot build the pdf. It is saying that the process exited with errors, but is giving only warnings:
But this is getting executed properly in Overleaf. That pdf is attached.
I checked the MikTex console, and RevTex is installed properly, In addition, its not compiling at all with RevTex 4.2 as the document class.
Can anyone please help me with this? I already had a hard time installing MikTex in my PC before. Now that I have my new laptop, I still cannot use TexStudio.
I wrote down a code with RevTex 4.2:
main.tex:
\documentclass[aps, prl, reprint, amsfont, amssymb, amsmath]{revtex4-1}
\usepackage{hyperref}
\begin{document}
\title{Test Test}
\author{Wrichik Basu}
\email[Email: ]{xyz@xyz.org}
\begin{abstract}
This is a test LaTeX document created using TexStudio and MikTex 2.9 on Win 10, 64-bit.
\end{abstract}
\maketitle
\section{\label{eqntest}Euqation Test}
Here we write a test equation in.
\begin{equation}
\mathfrak{L} = \frac{1}{2} \ (\partial ^\mu \phi) (\partial _\mu \phi)\\ - \ \frac{1}{2}\ m^2 \phi^2
\end{equation}
\section{\label{citation}Citation Test}
Here is a paper on qubits \cite{qubits}.
\bibliography{ref2.bib}
\end{document}
\maketitle
command, but when I placed it where it is currently, the file compiled properly.Here is my file with the bibliography:
ref2.bib:
@article{qubits,
author = {Brus,L. E. },
title = {A simple model for the ionization potential, electron affinity, and aqueous redox potentials of small semiconductor crystallites},
journal = {The Journal of Chemical Physics},
volume = {79},
number = {11},
pages = {5566-5571},
year = {1983},
doi = {10.1063/1.445676},
URL = {https://doi.org/10.1063/1.445676}
}
But this is getting executed properly in Overleaf. That pdf is attached.
I checked the MikTex console, and RevTex is installed properly, In addition, its not compiling at all with RevTex 4.2 as the document class.
Can anyone please help me with this? I already had a hard time installing MikTex in my PC before. Now that I have my new laptop, I still cannot use TexStudio.
Attachments
Last edited: