Generalreferences not compiling on new computer

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
smitherscat
Posts: 4
Joined: Wed Oct 29, 2014 12:18 am

references not compiling on new computer

Post by smitherscat »

Hello,
My problem is with getting my references to compile.
I'm running TEXWorks and JabRef on a pc.

I got a new computer and re-installed LaTex and JabRef. All of my old documents have no problems. My new documents get question marks-- even when I simply copy and paste an old document into the exact same folder.

I believe this is not a code problem, however I'm including an example just in case. I'm sorry that it's probably not a very good "minimal working example." I'm not a very confident LaTex user, so I have never been able to keep track of what's necessary or not.

Thanks in advance,
-catherine

Code: Select all

\documentclass[12pt]{article}

\usepackage[left=2.5cm,top=2.5cm,bottom=2.5cm,right=2.5cm,nofoot]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}


\lhead{}
\chead{}
\rhead{\bfseries LING 590 Final Paper}
\lfoot{}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}



\markright{Catherine}

\usepackage{url}
\usepackage{apacite}
\usepackage[english]{babel}
\usepackage{setspace}
\usepackage{covington}

\begin{document}

\thispagestyle{empty}


\noindent Final Paper\\

\cite{Czaykowska09}

\newpage
\bibliographystyle{apacite}

\bibliography{LING590FinalPaperReferences}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

references not compiling on new computer

Post by Johannes_B »

Hi and welcome,

your mwe is surprisingly good for a new member, you even used code markup to get highlighted code.
Did you remember to run bibtex in between the pdflatex runs? bibtex is the helper programm sorting your bibliography. You can select it in the drop-down menu next to the green run button.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
smitherscat
Posts: 4
Joined: Wed Oct 29, 2014 12:18 am

references not compiling on new computer

Post by smitherscat »

Hi Johannes, Thanks so much for your reply, and I'm sorry for my delay in getting back to you. I was on the road and just came back on Friday.

I tried what you suggested- running bibtex in between pdflatex runs, and it didn't work.

I also tried deleting the code at the end of the document that links to the JabRef file (in my case that's the

Code: Select all

\bibliography{LING590FinalPaperReferences}
) running latex, then repasting it, and running latex again, which worked for another issued I was having on my old cp. This also didn't work.

If there are any other suggestions, I'd love to try them out.
Best,
Catherine
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

references not compiling on new computer

Post by Johannes_B »

Please test the following result to check the basic setup and workflow. If this works, there might be something unexpected in your files. Best way to find the cause is hacking the document down step by step. A description of systematic approach can be found at How to hack down to a minimal working example?. Once the document is minimal, the cause will be obvious. If not for you, it will be for us ;-)

Code: Select all

\begin{filecontents}{\jobname.bib}
	@ARTICLE{jazzdance,
		author={donald duck},
		title={will ducks ever be great jazz dancers?},
	year=2048}
\end{filecontents}
\documentclass{article}
\begin{document}
this is a test\cite{jazzdance}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
smitherscat
Posts: 4
Joined: Wed Oct 29, 2014 12:18 am

Re: references not compiling on new computer

Post by smitherscat »

Hi There,

The test code provided in the previous post didn't give any error messages, and still produced question marks for the references.

It did produce a jabref entry, so that part worked fine.

Thank you for the link to the pdf on minimal working examples and trouble shooting. It will be helpful with future problems.

Still a mystery!
-catherine
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

references not compiling on new computer

Post by Johannes_B »

There is a pretty verbose explanation over at TeX.SX. Please have a look at Question mark instead of citation number.

btw: You can click on »open in writelatex« just above the code box i posted and compare with your output.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: references not compiling on new computer

Post by Stefan Kottwitz »

Hi Catherine,

perhaps post your .log and .blg file here, as attachment, that information could be helpful.

Stefan
LaTeX.org admin
smitherscat
Posts: 4
Joined: Wed Oct 29, 2014 12:18 am

Re: references not compiling on new computer

Post by smitherscat »

Hi All!

I would like to thank those who helped me learn a few more latexy things through this thread.

And, I'm writing to let you know that I solved my problem. Whoohoo! My intuition was that there was some loss of communication between JabRef and Latex, so I checked where they were each installed. It turns out that my TexLive was installed in my C drive, whereas everything else is installed in Program Files. I moved it to the Program Files folder, and now my references are compiling as they should.

Thanks again!
Best,
Catherine
Post Reply