TransWikia.com

BattlesHISTORY citation problem

TeX - LaTeX Asked by Pramathesh Nandan on December 5, 2020

This is a minimal code for the earlier BattlesHISTORY problem: it’s doing that for every citation, unless I have a parencite inline command. I hope this helps. I have spent a lot of time. Thanks.

documentclass{report}
usepackage[utf8]{inputenc}
usepackage[style=mla]{biblatex}

addbibresource{references.bib}
   
title{ABC}
author{XYZ}
date{15 08 2020}
begin{document}
American Revolutionary.cite{BattlesHISTORY} 

begin{filecontents*}{jobname.bib}
@misc{BattlesHISTORY,
  title = {{Battles of Lexington and Concord - HISTORY}},
  url = {https://www.history.com/topics/american-revolution/battles-of-lexington-and-concord}
}
end{filecontents*}
   
printbibliography
end{document}

enter image description here

One Answer

As far as I can see in the biblatex-mla manual, the style doesn't support @misc.

Also, the argument to addbibresource should contain the actual .bib file you want to be read, in this case jobname.bib. For your production version, it might be references.bib or whatever name you have.

begin{filecontents*}{jobname.bib}
@online{BattlesHISTORY,
  title = {Battles of {Lexington} and {Concord} -- {HISTORY}},
  url = {https://www.history.com/topics/american-revolution/battles-of-lexington-and-concord}
}
end{filecontents*}

documentclass{article}
usepackage[style=mla]{biblatex}

addbibresource{jobname.bib}

title{ABC}
author{XYZ}
date{15 08 2020}

begin{document}

maketitle

American Revolutionary~autocite{BattlesHISTORY}.

printbibliography

end{document}

I used article just to get a single page for the image.

enter image description here

If you add usepackage{hyperref}, then “Web” becomes a hyperlink pointing to the requested site.

Answered by egreg on December 5, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP