LaTeX: 'Undefined citation' warningsUndefined citation warningsUndefined citation in BibtexLaTeX Warning: Citation undefinedCitation undefinedbiblatex: Citation undefined, Empty bibliographyUndefined citationChapterbib gives 'citation undefined' and all [?]Beamer + apacite: Citation undefinedManually created bibliography keeps giving citation undefinedCitation undefined Latex

Is this a real picture of Jordan Peterson in New Zealand with a fan wearing a shirt that says "I'm a Proud Islamaphobe"?

How do anti-virus programs start at Windows boot?

If curse and magic is two sides of the same coin, why the former is forbidden?

PTIJ: Who should I vote for? (21st Knesset Edition)

Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is

What is the significance behind "40 days" that often appears in the Bible?

What do Xenomorphs eat in the Alien series?

Does someone need to be connected to my network to sniff HTTP requests?

How to write cleanly even if my character uses expletive language?

Who is flying the vertibirds?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

Life insurance that covers only simultaneous/dual deaths

My adviser wants to be the first author

Professor being mistaken for a grad student

Employee lack of ownership

If I can solve Sudoku can I solve Travelling Salesman Problem(TSP)? If yes, how?

Is it possible to upcast ritual spells?

How to use deus ex machina safely?

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

How could a scammer know the apps on my phone / iTunes account?

How to make healing in an exploration game interesting

What are substitutions for coconut in curry?

Official degrees of earth’s rotation per day

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible



LaTeX: 'Undefined citation' warnings


Undefined citation warningsUndefined citation in BibtexLaTeX Warning: Citation undefinedCitation undefinedbiblatex: Citation undefined, Empty bibliographyUndefined citationChapterbib gives 'citation undefined' and all [?]Beamer + apacite: Citation undefinedManually created bibliography keeps giving citation undefinedCitation undefined Latex













2















When running this sample code:



documentclass[11pt,a4paper]scrartcl
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace
usepackagenatbib

begindocument

Hello World citegreenwood_theoretical_2016

enddocument

bibliographyBibliography
bibliographystyleplain


I keep getting the warning:




'Citation greenwood_theoretical_2016 on page 1 undefined on input line 10'




and the references are marked as '?' in the document.



I am using Sublime Text 3.2 with LaTeXTools on macOS High Sierra.

The builder is set to 'basic' so it runs:




pdflatex
bibtex
pdflatex
pdflatex




I exported my bibliography from Zotero (Format: Bibtex; Encoding: UTF-8) and checked the 'Bibliography.bib' file (which is in the same directory) and the citations seem to be correct (example):



@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow, Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology, Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html



Using biblatex instead of natbib gives me the reference's label in square brackets i.e.




Hello World [greenwood_theoretical_2016]




I also tried using different styles but nothing has changed.



I know there have been lots of questions about this, but nothing seems to work here.










share|improve this question









New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Welcome to TeX.SX!

    – koleygr
    8 hours ago











  • While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

    – barbara beeton
    4 hours ago















2















When running this sample code:



documentclass[11pt,a4paper]scrartcl
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace
usepackagenatbib

begindocument

Hello World citegreenwood_theoretical_2016

enddocument

bibliographyBibliography
bibliographystyleplain


I keep getting the warning:




'Citation greenwood_theoretical_2016 on page 1 undefined on input line 10'




and the references are marked as '?' in the document.



I am using Sublime Text 3.2 with LaTeXTools on macOS High Sierra.

The builder is set to 'basic' so it runs:




pdflatex
bibtex
pdflatex
pdflatex




I exported my bibliography from Zotero (Format: Bibtex; Encoding: UTF-8) and checked the 'Bibliography.bib' file (which is in the same directory) and the citations seem to be correct (example):



@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow, Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology, Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html



Using biblatex instead of natbib gives me the reference's label in square brackets i.e.




Hello World [greenwood_theoretical_2016]




I also tried using different styles but nothing has changed.



I know there have been lots of questions about this, but nothing seems to work here.










share|improve this question









New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Welcome to TeX.SX!

    – koleygr
    8 hours ago











  • While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

    – barbara beeton
    4 hours ago













2












2








2








When running this sample code:



documentclass[11pt,a4paper]scrartcl
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace
usepackagenatbib

begindocument

Hello World citegreenwood_theoretical_2016

enddocument

bibliographyBibliography
bibliographystyleplain


I keep getting the warning:




'Citation greenwood_theoretical_2016 on page 1 undefined on input line 10'




and the references are marked as '?' in the document.



I am using Sublime Text 3.2 with LaTeXTools on macOS High Sierra.

The builder is set to 'basic' so it runs:




pdflatex
bibtex
pdflatex
pdflatex




I exported my bibliography from Zotero (Format: Bibtex; Encoding: UTF-8) and checked the 'Bibliography.bib' file (which is in the same directory) and the citations seem to be correct (example):



@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow, Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology, Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html



Using biblatex instead of natbib gives me the reference's label in square brackets i.e.




Hello World [greenwood_theoretical_2016]




I also tried using different styles but nothing has changed.



I know there have been lots of questions about this, but nothing seems to work here.










share|improve this question









New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












When running this sample code:



documentclass[11pt,a4paper]scrartcl
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace
usepackagenatbib

begindocument

Hello World citegreenwood_theoretical_2016

enddocument

bibliographyBibliography
bibliographystyleplain


I keep getting the warning:




'Citation greenwood_theoretical_2016 on page 1 undefined on input line 10'




and the references are marked as '?' in the document.



I am using Sublime Text 3.2 with LaTeXTools on macOS High Sierra.

The builder is set to 'basic' so it runs:




pdflatex
bibtex
pdflatex
pdflatex




I exported my bibliography from Zotero (Format: Bibtex; Encoding: UTF-8) and checked the 'Bibliography.bib' file (which is in the same directory) and the citations seem to be correct (example):



@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow, Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology, Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html



Using biblatex instead of natbib gives me the reference's label in square brackets i.e.




Hello World [greenwood_theoretical_2016]




I also tried using different styles but nothing has changed.



I know there have been lots of questions about this, but nothing seems to work here.







bibliographies






share|improve this question









New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago









Kurt

39.3k850164




39.3k850164






New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 9 hours ago









KingBooHooKingBooHoo

132




132




New contributor




KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






KingBooHoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    Welcome to TeX.SX!

    – koleygr
    8 hours ago











  • While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

    – barbara beeton
    4 hours ago












  • 1





    Welcome to TeX.SX!

    – koleygr
    8 hours ago











  • While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

    – barbara beeton
    4 hours ago







1




1





Welcome to TeX.SX!

– koleygr
8 hours ago





Welcome to TeX.SX!

– koleygr
8 hours ago













While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

– barbara beeton
4 hours ago





While it seems logical to specify bibliographystyle before bibliography, i don't believe it's required. This is mentioned in both answers below. (I'm unable to check; this laptop doesn't have latex installed, and all my reference books are inaccessible in boxes.) The real problem here is having the bibliography commands after enddocument.

– barbara beeton
4 hours ago










2 Answers
2






active

oldest

votes


















1














In your given code are some issues:



  1. The order of calling bibliographystyle and bibliography should be changed in your code (style first!).

  2. With loading natbib you should better use style plainnat instead plain

  3. You have enddocument before you calls the bibliography. That means the code after enddocument is not executed.

Please use the following code:



RequirePackagefilecontents
beginfilecontents*Bibliography.bib
@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives
on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and
palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow,
Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology,
Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html,

endfilecontents*


documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagenatbib


begindocument

Hello World citegreenwood_theoretical_2016

bibliographystyleplainnat % plain
bibliographyBibliography % Bibliography

enddocument


and see the expected result:



result with bibtex



If you want to get the bibliography numbered add option numbers to natbib:



usepackage[numbers]natbib


The correct code to compile with biblatex is



documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagecsquotes
usepackage[%
natbib=true, % <=======================================
backend=biber, % <=====================================
]biblatex
addbibresourceBibliography.bib % Bibliography <=======


begindocument

Hello World citegreenwood_theoretical_2016

printbibliography

enddocument


with the result:



enter image description here






share|improve this answer




















  • 2





    Thank you! Seems like I've been a bit too focused on other things to do the basics right.

    – KingBooHoo
    7 hours ago











  • I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

    – Mico
    6 hours ago



















2














Not tested but I am almost sure that the command bibliographystyleplain should be before the command bibliographyBibliography and most important (that here I am sure), that both commands should be before of the enddocument command.



Please try it and answer if it is ok.






share|improve this answer


















  • 1





    It worked! Thank you for your answer!

    – KingBooHoo
    7 hours ago










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






KingBooHoo is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479705%2flatex-undefined-citation-warnings%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














In your given code are some issues:



  1. The order of calling bibliographystyle and bibliography should be changed in your code (style first!).

  2. With loading natbib you should better use style plainnat instead plain

  3. You have enddocument before you calls the bibliography. That means the code after enddocument is not executed.

Please use the following code:



RequirePackagefilecontents
beginfilecontents*Bibliography.bib
@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives
on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and
palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow,
Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology,
Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html,

endfilecontents*


documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagenatbib


begindocument

Hello World citegreenwood_theoretical_2016

bibliographystyleplainnat % plain
bibliographyBibliography % Bibliography

enddocument


and see the expected result:



result with bibtex



If you want to get the bibliography numbered add option numbers to natbib:



usepackage[numbers]natbib


The correct code to compile with biblatex is



documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagecsquotes
usepackage[%
natbib=true, % <=======================================
backend=biber, % <=====================================
]biblatex
addbibresourceBibliography.bib % Bibliography <=======


begindocument

Hello World citegreenwood_theoretical_2016

printbibliography

enddocument


with the result:



enter image description here






share|improve this answer




















  • 2





    Thank you! Seems like I've been a bit too focused on other things to do the basics right.

    – KingBooHoo
    7 hours ago











  • I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

    – Mico
    6 hours ago
















1














In your given code are some issues:



  1. The order of calling bibliographystyle and bibliography should be changed in your code (style first!).

  2. With loading natbib you should better use style plainnat instead plain

  3. You have enddocument before you calls the bibliography. That means the code after enddocument is not executed.

Please use the following code:



RequirePackagefilecontents
beginfilecontents*Bibliography.bib
@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives
on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and
palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow,
Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology,
Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html,

endfilecontents*


documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagenatbib


begindocument

Hello World citegreenwood_theoretical_2016

bibliographystyleplainnat % plain
bibliographyBibliography % Bibliography

enddocument


and see the expected result:



result with bibtex



If you want to get the bibliography numbered add option numbers to natbib:



usepackage[numbers]natbib


The correct code to compile with biblatex is



documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagecsquotes
usepackage[%
natbib=true, % <=======================================
backend=biber, % <=====================================
]biblatex
addbibresourceBibliography.bib % Bibliography <=======


begindocument

Hello World citegreenwood_theoretical_2016

printbibliography

enddocument


with the result:



enter image description here






share|improve this answer




















  • 2





    Thank you! Seems like I've been a bit too focused on other things to do the basics right.

    – KingBooHoo
    7 hours ago











  • I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

    – Mico
    6 hours ago














1












1








1







In your given code are some issues:



  1. The order of calling bibliographystyle and bibliography should be changed in your code (style first!).

  2. With loading natbib you should better use style plainnat instead plain

  3. You have enddocument before you calls the bibliography. That means the code after enddocument is not executed.

Please use the following code:



RequirePackagefilecontents
beginfilecontents*Bibliography.bib
@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives
on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and
palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow,
Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology,
Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html,

endfilecontents*


documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagenatbib


begindocument

Hello World citegreenwood_theoretical_2016

bibliographystyleplainnat % plain
bibliographyBibliography % Bibliography

enddocument


and see the expected result:



result with bibtex



If you want to get the bibliography numbered add option numbers to natbib:



usepackage[numbers]natbib


The correct code to compile with biblatex is



documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagecsquotes
usepackage[%
natbib=true, % <=======================================
backend=biber, % <=====================================
]biblatex
addbibresourceBibliography.bib % Bibliography <=======


begindocument

Hello World citegreenwood_theoretical_2016

printbibliography

enddocument


with the result:



enter image description here






share|improve this answer















In your given code are some issues:



  1. The order of calling bibliographystyle and bibliography should be changed in your code (style first!).

  2. With loading natbib you should better use style plainnat instead plain

  3. You have enddocument before you calls the bibliography. That means the code after enddocument is not executed.

Please use the following code:



RequirePackagefilecontents
beginfilecontents*Bibliography.bib
@articlegreenwood_theoretical_2016,
title = Theoretical, contemporary observational and palaeo-perspectives
on ice sheet hydrology: Processes and products,
volume = 155,
issn = 0012-8252,
shorttitle = Theoretical, contemporary observational and
palaeo-perspectives on ice sheet hydrology,
url = http://www.sciencedirect.com/science/article/pii/S0012825216300095,
doi = 10.1016/j.earscirev.2016.01.010,
urldate = 2018-12-05,
journal = Earth-Science Reviews,
author = Greenwood, Sarah L. and Clason, Caroline C. and Helanow,
Christian and Margold, Martin,
month = apr,
year = 2016,
keywords = Geomorphology, Esker, Meltwater, Review, Hydrology,
Channel, Glacier, Ice Sheet, Read Level 3,
pages = 1--27,
file = ScienceDirect Full Text PDF:/Users/Nico/Zotero/storage/5PFXQPDD/Greenwood et al. - 2016 - Theoretical, contemporary observational and palaeo.pdf:application/pdf;ScienceDirect Snapshot:/Users/Nico/Zotero/storage/EGC6B4TK/S0012825216300095.html:text/html,

endfilecontents*


documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagenatbib


begindocument

Hello World citegreenwood_theoretical_2016

bibliographystyleplainnat % plain
bibliographyBibliography % Bibliography

enddocument


and see the expected result:



result with bibtex



If you want to get the bibliography numbered add option numbers to natbib:



usepackage[numbers]natbib


The correct code to compile with biblatex is



documentclass[11pt,a4paper]scrartcl

usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[british]babel
usepackage[onehalfspacing]setspace

usepackagecsquotes
usepackage[%
natbib=true, % <=======================================
backend=biber, % <=====================================
]biblatex
addbibresourceBibliography.bib % Bibliography <=======


begindocument

Hello World citegreenwood_theoretical_2016

printbibliography

enddocument


with the result:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago









Mico

283k31388775




283k31388775










answered 8 hours ago









KurtKurt

39.3k850164




39.3k850164







  • 2





    Thank you! Seems like I've been a bit too focused on other things to do the basics right.

    – KingBooHoo
    7 hours ago











  • I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

    – Mico
    6 hours ago













  • 2





    Thank you! Seems like I've been a bit too focused on other things to do the basics right.

    – KingBooHoo
    7 hours ago











  • I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

    – Mico
    6 hours ago








2




2





Thank you! Seems like I've been a bit too focused on other things to do the basics right.

– KingBooHoo
7 hours ago





Thank you! Seems like I've been a bit too focused on other things to do the basics right.

– KingBooHoo
7 hours ago













I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

– Mico
6 hours ago






I've taken the liberty of editing your code to (a) insert the instruction RequirePackagefilecontents at the top and (b) affix .bib to the end of the argument of addbibresource.

– Mico
6 hours ago












2














Not tested but I am almost sure that the command bibliographystyleplain should be before the command bibliographyBibliography and most important (that here I am sure), that both commands should be before of the enddocument command.



Please try it and answer if it is ok.






share|improve this answer


















  • 1





    It worked! Thank you for your answer!

    – KingBooHoo
    7 hours ago















2














Not tested but I am almost sure that the command bibliographystyleplain should be before the command bibliographyBibliography and most important (that here I am sure), that both commands should be before of the enddocument command.



Please try it and answer if it is ok.






share|improve this answer


















  • 1





    It worked! Thank you for your answer!

    – KingBooHoo
    7 hours ago













2












2








2







Not tested but I am almost sure that the command bibliographystyleplain should be before the command bibliographyBibliography and most important (that here I am sure), that both commands should be before of the enddocument command.



Please try it and answer if it is ok.






share|improve this answer













Not tested but I am almost sure that the command bibliographystyleplain should be before the command bibliographyBibliography and most important (that here I am sure), that both commands should be before of the enddocument command.



Please try it and answer if it is ok.







share|improve this answer












share|improve this answer



share|improve this answer










answered 8 hours ago









koleygrkoleygr

12.6k11038




12.6k11038







  • 1





    It worked! Thank you for your answer!

    – KingBooHoo
    7 hours ago












  • 1





    It worked! Thank you for your answer!

    – KingBooHoo
    7 hours ago







1




1





It worked! Thank you for your answer!

– KingBooHoo
7 hours ago





It worked! Thank you for your answer!

– KingBooHoo
7 hours ago










KingBooHoo is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















KingBooHoo is a new contributor. Be nice, and check out our Code of Conduct.












KingBooHoo is a new contributor. Be nice, and check out our Code of Conduct.











KingBooHoo is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479705%2flatex-undefined-citation-warnings%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

Haugesund Nexus externi | Tabula navigationisHaugesund pagina interretialisAmplifica