TeX - LaTeX Asked by Thanos on January 13, 2021
Sample running code:
documentclass[a4paper,11pt]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{lmodern}
usepackage[hidelinks]{hyperref} % Hyperref package for url's and [hidelinks] option to remove collouring
title{Test}
author{Thanos}
begin{document}
maketitle
tableofcontents
begin{abstract}
This is abstract
end{abstract}
section{Section 1}
Referecnce example~cite{ref:thanos}
bibliographystyle{./IEEEtran}
bibliography{./IEEEabrv,./references/ref}
end{document}
It seems like a very simple question/answer but I can not find the error/solution to my problem. I am trying to understand why IEEEtran
class is the problem of the code. While I am compiling the current example I keep getting this error:
LaTeX Warning: Citation
ref:thanos’ on page 1 undefined on input line 21.`
I know that this question has been answered here Undefined citation warnings, which states that the user should compile the code with the following process:
I tried the following process, but unfortunately, my problem was not solved.
If I change my bibliographystyle{plain}
and bibliography{./references/ref}
it compiles normally. I have also include the IEEEtran.cls
in the same compiling file but unfortunately did help.
Also I tried to compile with LaTeXiLa
and a different error is printed:
latexmk -pdf -synctex=1 name.tex
Rule 'bibtex name': File changes, etc:
Non-existent destination files:
'name.bbl'
Latexmk: I WON'T RUN 'bibtex configuration' because I don't find the following files:
./IEEEabrv.bib
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs of latex/pdflatex.
Latexmk: applying rule 'bibtex configuration'...
Latexmk: Errors, so I did not complete making targets
As a next step I deleted all files apart from the .tex
file and the reference
file, still the same error (terminal and compiler).
The reference sample that I am using:
@online {ref:thanos,
title = {Statistics},
author = {ITU 2014 All Rights Reserved},
titleaddon = {{ITU}},
year = {2014},
month = {Mar.},
urldate = {2014-03-05},
howpublished = {url{http://www.itu.int/en/ITU-D/Statistics/Pages/stat/default.aspx#}}
}
I also tried the format of the reference to @MISC
but unfortunately the error is not solved.
I am not 100% sure if I am using biblatex
or bibtex
, so I am sorry I can not provide more information about it.
Has anybody encounter the same error? I can not find similar information or solution. Thanks in advance for your time and effort.
It works for me after running
pdflatex file
bibtex file
pdflatex file
pdflatex file
I removed the ./
from the bibliography style as it is not installed in the current directory.
I saved the bibliography entry you posted as ref.bib
in the current directory, and the code below as file.tex
documentclass[a4paper,11pt]{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{lmodern}
usepackage[hidelinks]{hyperref} % Hyperref package for url's and [hidelinks] option to remove collouring
title{Test}
author{Thanos}
begin{document}
maketitle
tableofcontents
begin{abstract}
This is abstract
end{abstract}
section{Section 1}
Referecnce example~cite{ref:thanos}
bibliographystyle{IEEEtran}
bibliography{ref}
end{document}
Correct answer by David Carlisle on January 13, 2021
David Carlisle's answer is very thorough, but I recently faced the same situation when I was working on a second paper, and wanted it to have the same format as my first paper. I copied over the .cls file, the .tex file and the .bib file and received the exact same error as OP.
LaTeX Warning: Citationref:thanos' on page 1 undefined on input line 21.
Following the previous answer's steps I was unable to resolve my issue. Turns out that in order to solve my problem I also needed to copy over the .bst file from my first paper's folder or the bibliography style file. Copying over the .bst file, I was able to resolve my issue.
Answered by Realhermit on January 13, 2021
I've recently experienced the same problem when typing my PhD thesis.
It has a master file and all the chapters and etc. are added with input
command.
Recently to speed up the compilation time, I started using includeonly
. I did not have this error until I replaced input
with include
to add the chapters. Then, I realized that chapterbib
is suitable to work with include
not with input
. So, when I was using input
, chapterbib
was idle and I never needed it because I print the bibliography at the end of the thesis, not separately for each chapter.
Long story short, I deactivated chapterbib
and it started to work normally again. Hope this can help to the ones experiencing the same difficulty.
Answered by Emre Kantar on January 13, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP