LaTeX forum ⇒ BibTeX, biblatex and biberProblem 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

Postby omarkotb86 » Sun May 17, 2015 8:40 am

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

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

Postby Johannes_B » Sun May 17, 2015 9:35 am

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

Postby omarkotb86 » Sun May 17, 2015 10:34 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.

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

Postby Johannes_B » Sun May 17, 2015 12:16 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

Postby omarkotb86 » Sun May 17, 2015 4:58 pm

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:
  1. @ARTICLE{num1,
  2. author={Zhao, Z. and Iravani, M.R.},
  3. journal={Power Delivery, IEEE Transactions on},
  4. title={Application of GTO voltage source inverter in a hybrid HVDC link},
  5. year={1994},
  6. month={Jan},
  7. volume={9},
  8. number={1}, }
  9.  
  10. @ARTICLE{num2,
  11. author={Andersen, B.R. and Lie Xu},
  12. journal={Power Delivery, IEEE Transactions on},
  13. title={Hybrid HVDC system for power transmission to island networks},
  14. year={2004},
  15. month={Oct},
  16. volume={19},
  17. number={4}, }
  18.  
  19. @INPROCEEDINGS{num3,
  20. author={Vrana, T.K. and Torres-Olguin, R.E. and Liu, B. and Haileselassie, T.M.},
  21. booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on},
  22. title={The North Sea Super Grid - a technical perspective},
  23. year={2010},
  24. month={Oct}, }


So, do you have further suggestions?

Thank you

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

Postby Johannes_B » Sun May 17, 2015 5:24 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

Postby omarkotb86 » Sun May 17, 2015 5:39 pm

Hey Johannes

This is my complete bibtex file (after keeping only the essential information) as you advised:
  1. @ARTICLE{num1,
  2. author={Zhao, Z. and Iravani, M.R.},
  3. journal={Power Delivery, IEEE Transactions on},
  4. title={Application of GTO voltage source inverter in a hybrid HVDC link},
  5. year={1994},
  6. month={Jan},
  7. volume={9},
  8. number={1}, }
  9.  
  10.  
  11. @ARTICLE{num2,
  12. author={Andersen, B.R. and Lie Xu},
  13. journal={Power Delivery, IEEE Transactions on},
  14. title={Hybrid HVDC system for power transmission to island networks},
  15. year={2004},
  16. month={Oct},
  17. volume={19},
  18. number={4}, }
  19.  
  20.  
  21. @INPROCEEDINGS{num3,
  22. author={Vrana, T.K. and Torres-Olguin, R.E. and Liu, B. and Haileselassie, T.M.},
  23. booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on},
  24. title={The North Sea Super Grid - a technical perspective},
  25. year={2010},
  26. month={Oct}, }
  27.  
  28.  
  29. @INPROCEEDINGS{num4,
  30. author={Nosaka, N. and Tsubota, Y. and Matsukawa, K. and Sakamoto, K. and Nakamura, H. and Takasaki, M. and Kawazoe, H.},
  31. booktitle={Power Engineering Society 1999 Winter Meeting, IEEE},
  32. title={Simulation studies on a control and protection scheme for hybrid multi-terminal HVDC systems},
  33. year={1999},
  34. month={Jan},
  35. volume={2}, }
  36.  
  37.  
  38. @ARTICLE{num5,
  39. author={Chunyi Guo and Chengyong Zhao},
  40. journal={Power Electronics, IEEE Transactions on},
  41. title={Supply of an Entirely Passive AC Network Through a Double-Infeed HVDC System},
  42. year={2010},
  43. month={Nov},
  44. volume={25},
  45. number={11},
  46. pages={2835-2841},}
  47.  
  48.  
  49. @INPROCEEDINGS{num6,
  50. author={Fuan, X.F. and Shijie Cheng},
  51. booktitle={Electrical Machines and Systems, 2005. ICEMS 2005. Proceedings of the Eighth International Conference on},
  52. title={Performance analysis of a hybrid multi-terminal HVDC system},
  53. year={2005},
  54. month={Sept},
  55. volume={3},
  56. pages={2169-2174 Vol. 3}}
  57.  
  58.  
  59. @INPROCEEDINGS{num7,
  60. author={Yuan, X.F. and Cheng, S.J.},
  61. booktitle={Transmission and Distribution Conference and Exhibition, 2005/2006 IEEE PES},
  62. title={Simulation Study for a Hybrid Multi-terminal HVDC System},
  63. year={2006},
  64. month={May},}
  65.  
  66.  
  67. @INPROCEEDINGS{num8,
  68. author={Wulue Pan and Yong Chang and Hairong Chen},
  69. booktitle={Power Systems Conference and Exposition, 2006. PSCE '06. 2006 IEEE PES},
  70. title={Hybrid Multi-terminal HVDC System for Large Scale Wind Power},
  71. year={2006},
  72. month={Oct},}
  73.  
  74.  
  75. @ARTICLE{num9,
  76. author={Chenghao Li and Peng Zhan and Jinyu Wen and Meiqi Yao and Naihu Li and Wei-Jen Lee},
  77. journal={Industry Applications, IEEE Transactions on},
  78. title={Offshore Wind Farm Integration and Frequency Support Control Utilizing Hybrid Multiterminal HVDC Transmission},
  79. year={2014},
  80. month={July},
  81. volume={50},
  82. number={4},}
  83.  
  84.  
  85. @INPROCEEDINGS{num10,
  86. author={Zhai Dongling and Han Minxiao and Sun Xu},
  87. booktitle={PowerTech (POWERTECH), 2013 IEEE Grenoble},
  88. title={Coordination control for offshore wind power sending through hybrid HVDC},
  89. year={2013},
  90. month={June},
  91. pages={1-6}, }
  92.  
  93.  
  94. @INPROCEEDINGS{num11,
  95. author={Xia Chen and Haishun Sun and Xufeng Yuan and Jinyu Wen and Naihu Li and Liangzhong Yao and Wei-Jen Lee},
  96. booktitle={Industrial and Commercial Power Systems Technical Conference (I CPS), 2010 IEEE},
  97. title={Integrating wind farm to the grid using hybrid multi-terminal HVDC technology},
  98. year={2010},
  99. month={May},}
  100.  
  101.  
  102. @INPROCEEDINGS{num12,
  103. author={Kotb, O. and Ghandhari, M. and Eriksson, R. and Sood, V.K.},
  104. booktitle={Power System Technology (POWERCON), 2014 International Conference on},
  105. title={A study on the control of a hybrid MTDC system supplying a passive network},
  106. year={2014},
  107. month={Oct},}
  108.  
  109.  
  110. @Book{num13,
  111. Title = {Power System Stability and Control},
  112. Author = {P. Kundur},
  113. Publisher = {McGraw Hill},
  114. Year = {1994},}
  115.  
  116. @INPROCEEDINGS{num14,
  117. author={Latorre, H.F. and Ghandhari, M. and Soder, L.},
  118. booktitle={Transmission Distribution Conference and Exposition: Latin America, 2006. TDC '06. IEEE/PES},
  119. title={Control of a VSC-HVDC Operating in Parallel with AC Transmission Lines},
  120. year={2006},
  121. month={Aug},
  122. pages={1-5},}
  123.  
  124. @article{num15,
  125. title = "Active and reactive power control of a VSC-HVdc ",
  126. journal = "Electric Power Systems Research ",
  127. volume = "78",
  128. number = "10",}
  129.  
  130. @INPROCEEDINGS{num16,
  131. author={Li Gengyin and Zhou Ming and He Jie and Li Guangkai and Liang Haifeng},
  132. booktitle={Power System Technology, 2004. PowerCon 2004. 2004 International Conference on},
  133. title={Power flow calculation of power systems incorporating VSC-HVDC},
  134. year={2004},
  135. month={Nov},
  136. volume={2}, }
  137.  
  138. @article{num17,
  139. title = "A new approach to AC-DC load flow analysis ",
  140. journal = "Electric Power Systems Research ",
  141. volume = "33",
  142. number = "3",
  143. pages = "193 - 200",
  144. year = "1995",
  145. author = "M.E. El-Hawary and S.T. Ibrahim",}
  146.  
  147. @INPROCEEDINGS{num18,
  148. author={Preece, R. and Milanovic, J.V.},
  149. booktitle={AC and DC Power Transmission, 2010. ACDC. 9th IET International Conference on},
  150. title={Comparison of dynamic performance of meshed networks with different types of HVDC lines},
  151. year={2010},
  152. month={Oct},}
  153.  
  154. @ARTICLE{num19,
  155. author={Dong-Joon Kim and Hae-Kon Nam and Young-Hwan Moon},
  156. journal={Power Systems, IEEE Transactions on},
  157. title={A Practical Approach to HVDC System Control for Damping Subsynchronous Oscillation Using the Novel Eigenvalue Analysis Program},
  158. year={2007},
  159. month={Nov},
  160. volume={22},
  161. number={4},}
  162.  
  163. @ARTICLE{num20,
  164. author={Karawita, C. and Annakkage, U.D.},
  165. journal={Power Systems, IEEE Transactions on},
  166. title={A Hybrid Network Model for Small Signal Stability Analysis of Power Systems},
  167. year={2010},
  168. month={Feb},
  169. volume={25},
  170. number={1},
  171. pages={443-451},}
  172.  
  173. @ARTICLE{num21,
  174. author={Kalcon, G.O. and Adam, G.P. and Anaya-Lara, O. and Lo, S. and Uhlen, K.},
  175. journal={Power Systems, IEEE Transactions on},
  176. title={Small-Signal Stability Analysis of Multi-Terminal VSC-Based DC Transmission Systems},
  177. year={2012},
  178. month={Nov},
  179. volume={27},
  180. number={4},}
  181.  
  182. @INPROCEEDINGS{num22,
  183. author={Mai Huong Nguyen and Saha, T.K. and Eghbal, M.},
  184. booktitle={Universities Power Engineering Conference (AUPEC), 2012 22nd Australasian},
  185. title={Investigation on the impact of hybrid multi-terminal HVDC system combining LCC and VSC technologies using system identification},
  186. year={2012},
  187. month={Sept},}
  188.  
  189. @article{num23,
  190. title = "Geometric measures of modal controllability and observability of power system models ",
  191. journal = "Electric Power Systems Research ",
  192. volume = "15",
  193. number = "2",
  194. year = "1988",
  195. author = "A.M.A. Hamdan and A.M. Elabdalla"
  196. }


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.

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

Postby Johannes_B » Sun May 17, 2015 5:51 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

Postby omarkotb86 » Sun May 17, 2015 6:15 pm

Hey Johannes

Below is the part of the LaTeX file containing the packages, some citations, and the bibliography.
  1. %% Copyright 2007, 2008, 2009 Elsevier Ltd
  2. %%
  3. %% This file is part of the 'Elsarticle Bundle'.
  4. %% ---------------------------------------------
  5. %%
  6. %% It may be distributed under the conditions of the LaTeX Project Public
  7. %% License, either version 1.2 of this license or (at your option) any
  8. %% later version. The latest version of this license is in
  9. %% http://www.latex-project.org/lppl.txt
  10. %% and version 1.2 or later is part of all distributions of LaTeX
  11. %% version 1999/12/01 or later.
  12. %%
  13. %% The list of all files belonging to the 'Elsarticle Bundle' is
  14. %% given in the file `manifest.txt'.
  15. %%
  16. %% Template article for Elsevier's document class `elsarticle'
  17. %% with harvard style bibliographic references
  18. %% SP 2008/03/01
  19.  
  20. %\documentclass[preprint,12pt,authoryear]{elsarticle}
  21.  
  22. %% Use the option review to obtain double line spacing
  23. %% \documentclass[authoryear,preprint,review,12pt]{elsarticle}
  24.  
  25. %% Use the options 1p,twocolumn; 3p; 3p,twocolumn; 5p; or 5p,twocolumn
  26. %% for a journal layout:
  27. %% \documentclass[final,1p,times,authoryear]{elsarticle}
  28. %here\documentclass[final,1p,times,twocolumn]{elsarticle}
  29. %%authoryear removed, add authoryear to document class
  30. %% \documentclass[final,3p,times,authoryear]{elsarticle}
  31. % \documentclass[final,3p,times,twocolumn,authoryear]{elsarticle} %Real 2-columns
  32. %% \documentclass[final,5p,times,authoryear]{elsarticle}
  33. %% \documentclass[final,5p,times,twocolumn,authoryear]{elsarticle}
  34. \documentclass[final,3p,times]{elsarticle}
  35. %% For including figures, graphicx.sty has been loaded in
  36. %% elsarticle.cls. If you prefer to use the old commands
  37. %% please give \usepackage{epsfig}
  38. %\usepackage{lipsum}
  39. %% The amssymb package provides various useful mathematical symbols
  40. \usepackage{amssymb}
  41. %% The amsthm package provides extended theorem environments
  42. %% \usepackage{amsthm}
  43. %\usepackage{placeins}
  44. %\usepackage{cite}
  45. \usepackage{natbib}
  46. \usepackage{geometry}
  47. \usepackage{amsmath}
  48.  
  49. %\usepackage{pstricks,psfrag}
  50. %\usepackage{amssymb}
  51. %\usepackage{mathptmx}
  52. \usepackage{courier}
  53. \usepackage{graphicx}
  54. \usepackage{booktabs}
  55. \usepackage{pstricks,psfrag}
  56. %\usepackage{cite}
  57. %\usepackage[fleqn]{amsmath}
  58. %\usepackage[latin1]{inputenc}
  59. %\usepackage[T1]{fontenc}
  60. %\usepackage{lscape}
  61. %\usepackage{multirow}
  62.  
  63. %\bibliography{absnew}
  64. %\nocite{*}
  65. %\bibliography{col.bib}
  66. %\usepackage[backend=bibtex]{biblatex}
  67. %% The lineno packages adds line numbers. Start line numbering with
  68. %% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on
  69. %% for the whole article with \linenumbers.
  70. %% \usepackage{lineno}
  71.  
  72. \journal{Electric Power Systems Research}
  73.  
  74. \begin{document}
  75.  
  76. \begin{frontmatter}
  77.  
  78. \end{frontmatter}
  79.  
  80. %% \linenumbers
  81.  
  82. %% main text
  83. \section{Introduction}
  84.  
  85. 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.
  86. 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}.
  87.  
  88.  
  89. \bibliographystyle{plain}
  90. \bibliography{absnew2}
  91.  
  92. \end{document}
  93.  
  94. \endinput

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

Postby Johannes_B » Sun May 17, 2015 7:32 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
  1. \newcommand\bibsection{%
  2. \section*{\refname\markboth{\MakeUppercase{\refname}}{\MakeUppercase{\refname}}}%
  3. }


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.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests