## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ compiling bibtex file

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
afrancese
Posts: 3
Joined: Sun Jul 01, 2018 5:41 pm

### compiling bibtex file

Hello everyone,
compiling bibtex file in TexMaker as:

\documentclass[11pt]{article}
\usepackage{apacite}
\usepackage[margin=1in]{geometry}
\usepackage{natbib}

\title{Literature Review}
\author{A. Francese}
\date{\today}

\begin{document}
\maketitle

Books and Notes, \cite{fischer2007introduction}\\
\cite{anderson2017fracture}

\bibliographystyle{plain}
\bibliography{Books and Notes}

\end{document}

get the following error:
Package natbib Warning: Citation fischer2007introduction' on page 1 undefined

Thank you.
Arturo

kaiserkarl13
Posts: 599
Joined: Tue Mar 25, 2008 5:02 pm
It will always give you this warning the first time running LaTeX; you then run BibTeX on the .aux file, then run LaTeX again (twice) to resolve the links. Think of LaTeX runs this way: the first reads which citation keys it needs from BibTeX. BibTeX then operates on the notes LaTeX left for it, turning those .aux entries into .bbl entries (the bibliography). LaTeX's second run parses both the original citations and the .bbl file, which results in further entries in the .aux file about which number/etc. corresponds to the entries the \cite commands left. The third run of LaTeX results in actual substitution of the numbers/etc. in the original location.

If it doesn't show it after the sequence above (LaTeX, BibTeX, LaTeX, LaTeX), then there is likely something else wrong (e.g., the spaces in your BibTeX database are confusing it). If that's the case, post the relevant parts of your BibTeX file, too.

afrancese
Posts: 3
Joined: Sun Jul 01, 2018 5:41 pm
Hello,

Please have a look to the bib file:

%
%Linear Elastic Fracture Mechanics
@book{fischer2007introduction,
title={Introduction to contact mechanics},
author={Fischer-Cripps, Anthony C},
volume={101},
year={2007},
publisher={Springer}
}
%
%Fracture mechanics fundamentals & applications
@book{anderson2017fracture,
title={Fracture mechanics: fundamentals and applications},
author={Anderson, Ted L},
year={2017},
publisher={CRC press}
}

Thank you.
Art

afrancese
Posts: 3
Joined: Sun Jul 01, 2018 5:41 pm
can't believe...
changed the name of the file from
Books and notes.bib
to
Books.bib

it all works now!!!
Should be no space in the name of the bib-file, why??

Stefan Kottwitz
Posts: 9106
Joined: Mon Mar 10, 2008 9:44 pm
Historically, spaces were not allowed in file names in file systems many years ago, that's why. TeX is more than 30 years old.

Better never use spaces in file names, also in graphics files. For images, the grffile` packages fixes it.

Stefan
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9721736907958984, "perplexity": 13657.392441384853}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-43/segments/1539583518753.75/warc/CC-MAIN-20181024021948-20181024043448-00297.warc.gz"}