## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Problem with references using BibTeX with TeXmaker editor

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
omarkotb86
Posts: 8
Joined: Sun May 17, 2015 8:09 am

### Problem with references using BibTeX with TeXmaker editor

Hello there

I'm trying to write my bibliography using BibTeX, I'm using TeXmaker editor. Now, my .bib file is saved in the same folder as my tex file I'm using both \bibliographystyle and \bibliography commands, but my references just appear as question marks, and the reference list is not printed at the end of the document. This happens if I run using "QuickBuild" and also if I run using "PDFLaTeX" then "BibTeX" then "PDFLaTeX" again. I'm also getting messages that all citations are undefined, although I'm 100% sure of the file name in \bibliography{}.

So, does anyone have a clue on that?

P.S. I tried producing the .bib file using JabRef first and it didn't work, then I did another one by directly typing in Notepad but it also didn't work.

Thanks

Johannes_B
Site Moderator
Posts: 3582
Joined: Thu Nov 01, 2012 4:08 pm
Hi and welcome,

i just wanted to ask for the BibTeX log file, which might have given some clues, but your last sentence startled me. What do you mean when you say you weren't able to get a bib file?

With notepad, do save as and give it a name like markoPhd.bib. Be sure that notepad does not append the txt part.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

omarkotb86
Posts: 8
Joined: Sun May 17, 2015 8:09 am
Hello Johannes

Thanks for your reply. Actually I meant that both bib files didn't work with LaTeX. The references appear as question marks and the same problem I described persists.

Johannes_B
Site Moderator
Posts: 3582
Joined: Thu Nov 01, 2012 4:08 pm
Ah, ok, missunderstanding.
Can you hack-down your document to just the bibliography relevant stuff including a cite and try once more? If there are still undefined references after the whole latex, bibtex, latex, latex chain, can you show us this minimal document, the according bib file and the blg- and log-file?

The reason must be somewhere.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

omarkotb86
Posts: 8
Joined: Sun May 17, 2015 8:09 am
Hey Johannes

Thank you so much for your reply. Actually I tried as you said and it's now printing the reference numbers and the list at the end of the document. However the numbers are mixed (for instance cite\ref1 gives [21], not [1] as intended). Also the word "References" is not printed at the end of the document before the list of references. I'm giving a sample of the bibtex file below:
@ARTICLE{num1, author={Zhao, Z. and Iravani, M.R.}, journal={Power Delivery, IEEE Transactions on}, title={Application of GTO voltage source inverter in a hybrid HVDC link}, year={1994}, month={Jan}, volume={9}, number={1}, } @ARTICLE{num2, author={Andersen, B.R. and Lie Xu}, journal={Power Delivery, IEEE Transactions on}, title={Hybrid HVDC system for power transmission to island networks}, year={2004}, month={Oct}, volume={19}, number={4}, } @INPROCEEDINGS{num3, author={Vrana, T.K. and Torres-Olguin, R.E. and Liu, B. and Haileselassie, T.M.}, booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on}, title={The North Sea Super Grid - a technical perspective}, year={2010}, month={Oct}, }

So, do you have further suggestions?

Thank you

Johannes_B
Site Moderator
Posts: 3582
Joined: Thu Nov 01, 2012 4:08 pm
Why didn't you post this minimal example? If a word vanishes, there is a reason, and that reason is in your file

The sorting issue can be caused several things as well, the bibliography style, or citations in captions, which get dragged to the list of tables, where the first occurence is counted. That can be solved by using the optional argument of the caption command, or using package notoccite. Again, would need to see some code to say something more specific.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

omarkotb86
Posts: 8
Joined: Sun May 17, 2015 8:09 am
Hey Johannes

This is my complete bibtex file (after keeping only the essential information) as you advised:
@ARTICLE{num1, author={Zhao, Z. and Iravani, M.R.}, journal={Power Delivery, IEEE Transactions on}, title={Application of GTO voltage source inverter in a hybrid HVDC link}, year={1994}, month={Jan}, volume={9}, number={1}, }  @ARTICLE{num2, author={Andersen, B.R. and Lie Xu}, journal={Power Delivery, IEEE Transactions on}, title={Hybrid HVDC system for power transmission to island networks}, year={2004}, month={Oct}, volume={19}, number={4}, }  @INPROCEEDINGS{num3, author={Vrana, T.K. and Torres-Olguin, R.E. and Liu, B. and Haileselassie, T.M.}, booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on}, title={The North Sea Super Grid - a technical perspective}, year={2010}, month={Oct}, }  @INPROCEEDINGS{num4, author={Nosaka, N. and Tsubota, Y. and Matsukawa, K. and Sakamoto, K. and Nakamura, H. and Takasaki, M. and Kawazoe, H.}, booktitle={Power Engineering Society 1999 Winter Meeting, IEEE}, title={Simulation studies on a control and protection scheme for hybrid multi-terminal HVDC systems}, year={1999}, month={Jan}, volume={2}, }  @ARTICLE{num5, author={Chunyi Guo and Chengyong Zhao}, journal={Power Electronics, IEEE Transactions on}, title={Supply of an Entirely Passive AC Network Through a Double-Infeed HVDC System}, year={2010}, month={Nov}, volume={25}, number={11}, pages={2835-2841},}  @INPROCEEDINGS{num6, author={Fuan, X.F. and Shijie Cheng}, booktitle={Electrical Machines and Systems, 2005. ICEMS 2005. Proceedings of the Eighth International Conference on}, title={Performance analysis of a hybrid multi-terminal HVDC system}, year={2005}, month={Sept}, volume={3}, pages={2169-2174 Vol. 3}}  @INPROCEEDINGS{num7, author={Yuan, X.F. and Cheng, S.J.}, booktitle={Transmission and Distribution Conference and Exhibition, 2005/2006 IEEE PES}, title={Simulation Study for a Hybrid Multi-terminal HVDC System}, year={2006}, month={May},}  @INPROCEEDINGS{num8, author={Wulue Pan and Yong Chang and Hairong Chen}, booktitle={Power Systems Conference and Exposition, 2006. PSCE '06. 2006 IEEE PES}, title={Hybrid Multi-terminal HVDC System for Large Scale Wind Power}, year={2006}, month={Oct},}  @ARTICLE{num9, author={Chenghao Li and Peng Zhan and Jinyu Wen and Meiqi Yao and Naihu Li and Wei-Jen Lee}, journal={Industry Applications, IEEE Transactions on}, title={Offshore Wind Farm Integration and Frequency Support Control Utilizing Hybrid Multiterminal HVDC Transmission}, year={2014}, month={July}, volume={50}, number={4},}  @INPROCEEDINGS{num10, author={Zhai Dongling and Han Minxiao and Sun Xu}, booktitle={PowerTech (POWERTECH), 2013 IEEE Grenoble}, title={Coordination control for offshore wind power sending through hybrid HVDC}, year={2013}, month={June}, pages={1-6}, }   @INPROCEEDINGS{num11, author={Xia Chen and Haishun Sun and Xufeng Yuan and Jinyu Wen and Naihu Li and Liangzhong Yao and Wei-Jen Lee}, booktitle={Industrial and Commercial Power Systems Technical Conference (I CPS), 2010 IEEE}, title={Integrating wind farm to the grid using hybrid multi-terminal HVDC technology}, year={2010}, month={May},}  @INPROCEEDINGS{num12, author={Kotb, O. and Ghandhari, M. and Eriksson, R. and Sood, V.K.}, booktitle={Power System Technology (POWERCON), 2014 International Conference on}, title={A study on the control of a hybrid MTDC system supplying a passive network}, year={2014}, month={Oct},}  @Book{num13,   Title                    = {Power System Stability and Control},   Author                   = {P. Kundur},   Publisher                = {McGraw Hill},   Year                     = {1994},} @INPROCEEDINGS{num14, author={Latorre, H.F. and Ghandhari, M. and Soder, L.}, booktitle={Transmission Distribution Conference and Exposition: Latin America, 2006. TDC '06. IEEE/PES}, title={Control of a VSC-HVDC Operating in Parallel with AC Transmission Lines}, year={2006}, month={Aug}, pages={1-5},} @article{num15,title = "Active and reactive power control of a VSC-HVdc ",journal = "Electric Power Systems Research ",volume = "78",number = "10",} @INPROCEEDINGS{num16, author={Li Gengyin and Zhou Ming and He Jie and Li Guangkai and Liang Haifeng}, booktitle={Power System Technology, 2004. PowerCon 2004. 2004 International Conference on}, title={Power flow calculation of power systems incorporating VSC-HVDC}, year={2004}, month={Nov}, volume={2}, } @article{num17,title = "A new approach to AC-DC load flow analysis ",journal = "Electric Power Systems Research ",volume = "33",number = "3",pages = "193 - 200",year = "1995",author = "M.E. El-Hawary and S.T. Ibrahim",} @INPROCEEDINGS{num18, author={Preece, R. and Milanovic, J.V.}, booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on}, title={Comparison of dynamic performance of meshed networks with different types of HVDC lines}, year={2010}, month={Oct},} @ARTICLE{num19, author={Dong-Joon Kim and Hae-Kon Nam and Young-Hwan Moon}, journal={Power Systems, IEEE Transactions on}, title={A Practical Approach to HVDC System Control for Damping Subsynchronous Oscillation Using the Novel Eigenvalue Analysis Program}, year={2007}, month={Nov}, volume={22}, number={4},} @ARTICLE{num20, author={Karawita, C. and Annakkage, U.D.}, journal={Power Systems, IEEE Transactions on}, title={A Hybrid Network Model for Small Signal Stability Analysis of Power Systems}, year={2010}, month={Feb}, volume={25}, number={1}, pages={443-451},} @ARTICLE{num21, author={Kalcon, G.O. and Adam, G.P. and Anaya-Lara, O. and Lo, S. and Uhlen, K.}, journal={Power Systems, IEEE Transactions on}, title={Small-Signal Stability Analysis of Multi-Terminal VSC-Based DC Transmission Systems}, year={2012}, month={Nov}, volume={27}, number={4},} @INPROCEEDINGS{num22, author={Mai Huong Nguyen and Saha, T.K. and Eghbal, M.}, booktitle={Universities Power Engineering Conference (AUPEC), 2012 22nd Australasian}, title={Investigation on the impact of hybrid multi-terminal HVDC system combining LCC and VSC technologies using system identification}, year={2012}, month={Sept},} @article{num23,title = "Geometric measures of modal controllability and observability of power system models ",journal = "Electric Power Systems Research ",volume = "15",number = "2",year = "1988",author = "A.M.A. Hamdan and A.M. Elabdalla"}

Also one more point to add, I'm able to get the LaTeX to print the references and bibliography list at the end of the document with "QuickBuild" run only. However I'm faced with these 2 problems now: mixed (incorrect) reference numbers, and absence of the word "References" before the list at the end of the documents.

Johannes_B
Site Moderator
Posts: 3582
Joined: Thu Nov 01, 2012 4:08 pm
I need to see the LaTeX file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

omarkotb86
Posts: 8
Joined: Sun May 17, 2015 8:09 am
Hey Johannes

Below is the part of the LaTeX file containing the packages, some citations, and the bibliography.
%% Copyright 2007, 2008, 2009 Elsevier Ltd%% %% This file is part of the 'Elsarticle Bundle'.%% ---------------------------------------------%% %% It may be distributed under the conditions of the LaTeX Project Public%% License, either version 1.2 of this license or (at your option) any%% later version.  The latest version of this license is in%%    http://www.latex-project.org/lppl.txt%% and version 1.2 or later is part of all distributions of LaTeX%% version 1999/12/01 or later.%% %% The list of all files belonging to the 'Elsarticle Bundle' is%% given in the file manifest.txt'.%% %% Template article for Elsevier's document class elsarticle'%% with harvard style bibliographic references%% SP 2008/03/01 %\documentclass[preprint,12pt,authoryear]{elsarticle} %% Use the option review to obtain double line spacing%% \documentclass[authoryear,preprint,review,12pt]{elsarticle} %% Use the options 1p,twocolumn; 3p; 3p,twocolumn; 5p; or 5p,twocolumn%% for a journal layout:%% \documentclass[final,1p,times,authoryear]{elsarticle}%here\documentclass[final,1p,times,twocolumn]{elsarticle} %%authoryear removed, add authoryear to document class%% \documentclass[final,3p,times,authoryear]{elsarticle}% \documentclass[final,3p,times,twocolumn,authoryear]{elsarticle} %Real 2-columns%% \documentclass[final,5p,times,authoryear]{elsarticle}%% \documentclass[final,5p,times,twocolumn,authoryear]{elsarticle}\documentclass[final,3p,times]{elsarticle}%% For including figures, graphicx.sty has been loaded in%% elsarticle.cls. If you prefer to use the old commands%% please give \usepackage{epsfig}%\usepackage{lipsum}%% The amssymb package provides various useful mathematical symbols\usepackage{amssymb}%% The amsthm package provides extended theorem environments%% \usepackage{amsthm}%\usepackage{placeins}%\usepackage{cite}\usepackage{natbib}\usepackage{geometry}\usepackage{amsmath} %\usepackage{pstricks,psfrag}%\usepackage{amssymb}%\usepackage{mathptmx}\usepackage{courier}\usepackage{graphicx}\usepackage{booktabs}\usepackage{pstricks,psfrag}%\usepackage{cite}%\usepackage[fleqn]{amsmath}%\usepackage[latin1]{inputenc}%\usepackage[T1]{fontenc}%\usepackage{lscape}%\usepackage{multirow} %\bibliography{absnew}%\nocite{*}%\bibliography{col.bib}%\usepackage[backend=bibtex]{biblatex}%% The lineno packages adds line numbers. Start line numbering with%% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on%% for the whole article with \linenumbers.%% \usepackage{lineno} \journal{Electric Power Systems Research} \begin{document} \begin{frontmatter} \end{frontmatter} %% \linenumbers %% main text\section{Introduction} A Hybrid HVDC system combining both LCCs and VSCs was first proposed in literature in 1994 in \cite{num1}. Typical applications included power transmission to islands as suggested in \cite{num2, num3}. Hybrid MTDC was first contemplated in the literature in 1999 in \cite{num4}. The authors in \cite{num5} have dealt with a hybrid Multi-Infeed (MI) HVDC system in which a passive AC network was fed by both LCC and VSC converters. However, each of the converters at the receiving end was supplied by an identical converter at the sending end. The authors in \cite{num6,num7} investigated the control and performance of a hybrid MTDC system through simulation studies in EMTDC/PSCAD. The control and performance of hybrid MTDC networks used for the integration of wind power was covered in \cite{num8,num9,num10,num11}. The DC voltage control strategies used in hybrid MTDC networks are generally the same as those used in VSC-MTDC networks, with the possibility to control DC voltage at the VSC or at the LCC \cite{num2,num12}.  \bibliographystyle{plain}\bibliography{absnew2} \end{document} \endinput

Johannes_B
Site Moderator
Posts: 3582
Joined: Thu Nov 01, 2012 4:08 pm
The plain bibliography style does not support sorting the references, but style unsrt does.

Concerning the references header. That is just the way the publisher likes it. If you really want to change it, use
\newcommand\bibsection{%\section*{\refname\markboth{\MakeUppercase{\refname}}{\MakeUppercase{\refname}}}%}

But be careful, the publisher will simply revert the changes or even reject your paper.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.