|
I've encountered a really odd problem with LaTeX and despite desperate googling, reading the book written by it's author etc. I can't find a solution. I've got a problem with references (there's a bunch of problems with BibTeX around but nothing similar to mine). I know that there's at least a handful of persons here that use LaTeX and I'd really appreciate any help. My problem is that BibTeX can't read my .bib file... I don't know if it's because I'm working under Windows (MikTeX 2.7, LEd 0.52) or something else is at work here... I'm just constructing the skeleton of a document so there's no advanced stuff etc.
+ Show Spoiler [BibTeX log after creating .bbl file] + This is BibTeX, Version 0.99cThe top-level auxiliary file: F:/txt/licencjat/lic.aux The style file: plainnat.bst I couldn't open database file bibliografia.bib ---line 10 of file F:/txt/licencjat/lic.aux : \bibdata{bibliografia : } I'm skipping whatever remains of this command I found no database files---while reading file F:/txt/licencjat/lic.aux Warning--I didn't find a database entry for "Gray2005" (There were 2 error messages)
+ Show Spoiler [LaTeX log - errors/warnings only] + (c1.tex [2]
Rozdzia\PlPrIeC {\l } 1.
Package natbib Warning: Citation `Gray2005' on page 3 undefined on input line 10.)
(lic.bbl [4]
Package natbib Warning: Empty `thebibliography' environment on input line 8.)
Package natbib Warning: There were undefined citations.[5] (lic.aux) )
+ Show Spoiler [.aux file] + \relax \citation{Gray2005} \@writefile{toc}{\contentsline {chapter}{\numberline {1}Pierwszy rozdzia\IeC {\l }}{3}} \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} \newlabel{sec:chapter1}{{1}{3}} \@writefile{toc}{\contentsline {section}{\numberline {1.1}Wprowadzenie}{3}} \newlabel{sec:chapter1:Wprowadzenie}{{1.1}{3}} \bibstyle{plainnat} \bibdata{bibliografia} \@writefile{toc}{\contentsline {chapter}{\numberline {2}Podsumowanie}{4}} \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }}
+ Show Spoiler [.bbl file] + \begin{thebibliography}{0} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{\texttt{#1}} \expandafter\ifx\csname urlstyle\endcsname\relax \providecommand{\doi}[1]{doi: #1}\else \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi
\end{thebibliography}
+ Show Spoiler [file where I'm citing stuff] + \chapter{Pierwszy rozdział} \label{sec:chapter1}
\section{Wprowadzenie} \label{sec:chapter1:Wprowadzenie}
... text ... blahblah~\citep{Gray2005}
+ Show Spoiler [My .bib file] + @book{Gray2005, author = "Gray, C. S.", title = "Another Bloody Century: Future Warfare", publisher = "Phoenix Paperback", year = "2005", address = "London", }
+ Show Spoiler [Preamble] + \usepackage{graphicx} \usepackage{booktabs} \usepackage{longtable} \usepackage{natbib} \usepackage[a4paper, left=3.5cm, right=2cm, top=2.5cm ,bottom=2.5cm]{geometry}
\usepackage{polski} \usepackage[cp1250]{inputenc}
\pagenumbering{arabic} \pagestyle{plain}
\renewcommand{\baselinestretch}{1.5}
\bibpunct{(}{)}{;}{a}{,}{,}
+ Show Spoiler [main file (which should generate refer…] + \documentclass[12pt, a4paper, twoside, titlepage]{report} \input{style.tex}
\begin{document}
\input{front.tex}
\input{ack.tex} \input{toc.tex} \input{c1.tex}
\input{abs.tex}
\bibliographystyle{plainnat} \bibliography{bibliografia}
\end{document}
Please do help me. If you need any more info, just let me know.
|
This isn't half as much fun as I thought it would be.
|
not even a third, really.
|
if you're compiling manually, make sure you're running the commands in the right order:
latex bibtex latex latex
|
On March 23 2009 12:04 azndsh wrote: if you're compiling manually, make sure you're running the commands in the right order:
latex bibtex latex latex
I did exactly that. I seriously don't know what's wrong
|
lol i thought this was a condom thread
|
|
|
On March 23 2009 18:35 x89titan wrote: lol i thought this was a condom thread
And here come a dozen other people who think the same... 
Perhaps changing LaTeX in the title to Lateck or something would fix it...
|
Hungary11305 Posts
I am by no means an expert at LaTeX, but I use the BibLatex package for my bibliography needs. Since the database management works slightly different with that package, maybe you could circumvent the problem (and I simply prefer using Biblatex).
Else: Is your bib file in the correct folder? Is it named correctly?
|
Everything is in the right folders. I've even rewrote everything by creating a new project to keep all files as LEd wanted them... Still the same problem - not that it can't locate the file, it can't read it.
|
Hungary11305 Posts
On March 23 2009 18:52 Manit0u wrote: Everything is in the right folders. I've even rewrote everything by creating a new project to keep all files as LEd wanted them... Still the same problem - not that it can't locate the file, it can't read it. Sorry, no idea then. Apart from checking out the BibLatex package, as it slightly changes the way your files are accessed (you define your bibliography first and then you print it with \printbibliography).
|
your bib file looks odd.
@BOOK{Pogue200808, title={iPhone: The Missing Manual: Covers the iPhone 3G}, author={David Pogue}, publisher={Pogue Press}, year={2008}, month={8}, }
Notice that this uses {} and not " " for the entries. Dunno if that works too, but i used the above syntax for my thesis.
Also, have you tried \bibliography{bibliografia.bib} ?
|
I often find the bib works only when you do everything in sequence from scratch. My advice now is to delete all your generated files like the aux files. then run Latex to compile, run the bibtex command, run the latex command again, then do it again to get the contents and references correct.
I think you have changed your tex file after running bibtex, so the aux file is different. this is no good in my experience.
disclaimer: I am no expert.
...and this is why I hate Latex. write it in word? done. Latex? two hours just trying to get it to work, compiling and recompiling to get things just to fucking display.
edit: sorry, I didn't see that you'd run it in the correct arcane order; make sure you delete all the aux files including the bibtex ones before you start.
|
Hungary11305 Posts
As far as my experience goes, both " " and {} work to mark the entries.
|
On March 23 2009 19:06 Doso wrote: Also, have you tried \bibliography{bibliografia.bib} ?
This makes it look for bibliografia.bib.bib file...
I've changed it to lic.bib (since I have lic.tex as my main file) and now if I run latex it tells me to run again to get the references right, if I do it's all the same again. At least I've got something new, testing other stuff now.
|
Could there be a problem with different newline characters on different OS'? I.e. have you edited some of the files on machines with different OS, so that some are Unix, some Mac and some Windope encoded?
Alternatively, have you eliminated that there's a bug in the bibtex/latex version you are using? You could try to use a slightly different version, or one compiled for another architecture, to eliminate that problem and be sure that the problem is in your input files.
|
thedeadhaji
39489 Posts
I dont even know how I do my citations, I always just grab my old .tex files and just copy paste the header and bib sections at the end, use miktex and some editor package I have.
|
I solved it! I just had to give absolute path to my .bib file in /bibliography{} and it finally found it...
|
Hungary11305 Posts
Congrats, happy thesis-ing.
|
|
|
|
|
|
|
|