bibtex - How can I import bib File to Latex? -
i'm new using latex. want import file reference.bib file document.tex. above code
reference.bib
@article{lin1973, author = "shen lin , brian w. kernighan", title = "an effective heuristic algorithm travelling-salesman problem", journal = "operations research", volume = 21, year = 1973, pages = "498-516" } and here document.tex
\documentclass[a4paper,12pt, fleqn]{scrreprt} \usepackage{natbib} \begin{document} \bibliographystyle{plainnat} \bibliography{reference} \end{document} but nothing happens when run latex. can me. in advance ^^
there separate platform ask latex-related questions. apart that, question vague.
let's start document having no content. assuming latex environment has been set properly, adding document should something.
compile, run bibtex twice, compile again few times , should set. edit: removed screenshot output file, needlessly taking space.
bibtex build found in interpreter:
\documentclass[a4paper,12pt, fleqn]{scrreprt}
\usepackage{natbib} \begin{document} blablabla happened because need cite \cite{lin1973}.. \bibliographystyle{plainnat} \bibliography{reference} \end{document}
Comments
Post a Comment