LaTeX forum ⇒ BibTeX, biblatex and biberCitation not shown

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
rsmnsu
Posts: 3
Joined: Mon Nov 13, 2017 8:02 pm

Citation not shown

Postby rsmnsu » Fri Feb 16, 2018 9:31 pm

  1. \documentclass[12pt,english]{article}
  2. \usepackage{lscape}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[latin9]{inputenc}
  5. \usepackage{array}
  6. %\usepackage{floata}
  7. \usepackage{multirow}
  8. \usepackage{amsmath}
  9. \usepackage{amssymb}
  10. \usepackage{graphicx}
  11. \usepackage{esint}
  12. \usepackage{booktabs} %for table
  13. \usepackage{amsmath} %for equations and mathematical symbols
  14. \usepackage{rotating} %for table rotation
  15. \usepackage{lscape}
  16. \usepackage{float} % allow tables to self adjust
  17. \usepackage{morefloats}
  18. \usepackage{booktabs,caption,fixltx2e}
  19. \usepackage[flushleft]{threeparttable}
  20. \usepackage{tabularx}
  21. \usepackage{adjustbox}
  22. %\usepackage{enumerate}
  23. %\usepackage{subfigure}
  24. %\usepackage{float}
  25. \usepackage{subfig}
  26. \usepackage{subfloat}
  27. \usepackage{enumitem}
  28.  
  29. %\usepackage[authoryear]{natbib}
  30. \usepackage[round]{natbib}
  31. \bibliographystyle{plain}
  32.  
  33. \usepackage[toc,page]{appendix}
  34. \renewcommand{\cite}{\citeyear}
  35. \newtheorem{theorem}{Theorem}
  36. \newtheorem{corollary}{Corollary}
  37. \newtheorem{assumption}{Assumption}
  38. \newtheorem{definition}{Definition}
  39. \newtheorem{proposition}{Proposition}
  40. \makeatletter
  41. \providecommand{\tabularnewline}{\\}
  42. \usepackage{latexsym}\usepackage{psfrag}\usepackage{multirow}\@ifundefined{definecolor}{\usepackage{color}}{}
  43. \usepackage{colortbl}\usepackage{float}\usepackage{lscape}\usepackage{bm}\usepackage[metapost]{mfpic}
  44. % Tree-saver - if turn this on you lose page numbers
  45. \setlength{\textwidth}{8.276in}
  46. \setlength{\textheight}{11.705in}
  47. % Allow 1 in margin on each side and nothing else
  48. \addtolength{\textwidth}{-2in}
  49. \addtolength{\textheight}{-2in}
  50. \setlength{\oddsidemargin}{0pt}
  51. \setlength{\evensidemargin}{\oddsidemargin}
  52. \setlength{\topmargin}{0pt}
  53. \addtolength{\topmargin}{-\headheight}
  54. \addtolength{\topmargin}{-\headsep}
  55. \newcommand{\ds}{\displaystyle}
  56. \newcommand{\bs}{\boldsymbol}
  57. %\pagenumbering{roman}
  58. \parindent=0pt
  59. \parskip=5pt
  60. \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
  61. \def\@biblabel#1{}
  62. \def\ph#1{\phantom{#1}}
  63. \renewcommand{\baselinestretch}{1.0}
  64. \usepackage{babel}
  65.  
  66. \bibliographystyle{plain}
  67. \bibliography{paper2}
  68. \end{document}

I am getting this error:
  1. This is BibTeX, Version 0.99d (TeX Live 2016/Debian)
  2. Capacity: max_strings=100000, hash_size=100000, hash_prime=85009
  3. The top-level auxiliary file: main.aux
  4. The style file: plain.bst Illegal, another \bibstyle command---line 68 of file main.aux :
  5. \bibstyle : {plain} I'm skipping whatever remains of this command
  6. Database file #1: paper2.bib
  7. Repeated entry---line 572 of file paper2.bib :
  8. @article{billio:2012


Moreover, in places of citations in text I am getting ?

Please help

User avatar
Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Feb 17, 2018 10:08 am

You have \bibliographystyle{plain} two times in your document, it should be there only once.

Also, you are loading packages twice, you are loading packages and then try to redefine stuff the package provides, and it won't even work because @ is not a letter. Your document will throw a lot of errors.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 5 guests