Voi Mập - 2 years ago 130
LaTeX Question

# How can I import bib File to Latex?

I'm new to using Latex. I want to import File reference.bib to my File document.tex. Above is my Code

reference.bib

@article{lin1973,
author = "Shen Lin and Brian W. Kernighan",
title = "An Effective Heuristic Algorithm for the Travelling-Salesman Problem",
journal = "Operations Research",
volume = 21,
year = 1973,
pages = "498-516"
}


And here is my document.tex

\documentclass[a4paper,12pt, fleqn]{scrreprt}

\usepackage{natbib}

\begin{document}
\bibliographystyle{plainnat}
\bibliography{reference}
\end{document}


But nothing happens when i run my Latex. Can anyone help me.

There is a separate platform to ask LateX-related questions. Apart from that, the question is really vague.

Compile, run BibteX twice, compile again a few times and you should be set. EDIT: removed screenshot output file, as it was needlessly taking up space.

BibTeX build is usually found in your interpreter:

\documentclass[a4paper,12pt, fleqn]{scrreprt}

\usepackage{natbib}

\begin{document}
Blablabla happened because I need to cite \cite{lin1973}..
\bibliographystyle{plainnat}
\bibliography{reference}
\end{document}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download