Ao tentar colocar meu arquivo .bib em meu .tex, recebo esta mensagem de erro.
You're missing a field part---line 52 of file Bib.bib
: howpublished =
: "{\url{https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15859-f11/www/notes/lecture05.pdf}}"
I'm skipping whatever remains of this entry
No meu arquivo .tex inicio minha bibliografia da seguinte forma:
\bibliographystyle{plainnat}
\bibliography{Bib}
Meu arquivo .bib para este URL com a mensagem de erro é o seguinte:
@misc{10,
author = "Anupam Gupta",
title = "Linear Programming Duality",
howpublished = "{\url{https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15859-f11/www/notes/lecture05.pdf}}"
}
Meu preâmbulo é grande, mas é o seguinte:
\usepackage{graphicx} % For including graphics (via \includegraphics).
\usepackage{amsmath} % Improves typographic quality of mathematical output.
\usepackage{amsfonts} % For mathematical fonts.
\usepackage{multirow}
\usepackage{dsfont}
\usepackage{amsthm} % Needed to typeset theorem environments.
\usepackage[affil-it]{authblk} % Needed for author and affiliation.
\usepackage{amsopn} % Allows the declaration of new mathematical operators.
\usepackage{amssymb} % Extended set of mathematical symbols.
\usepackage{mathrsfs} % Raph Smith's mathematical script font.
\usepackage{booktabs} % Improves the typographical quality of tables.
\usepackage{natbib} % Citations and bibliography.
\usepackage{tikz} % Extends the figure generation capabilities of LaTeX.
\usepackage{algorithm} % Necessary for including algorithmic structures.
\usepackage{float} % Allows the creation of own floating environments.
\usepackage{caption} % Allows the customisation of captions.
\usepackage{abstract} % For including abstracts in documents.
\usepackage{listings} % For the inclusion of source code.
\usepackage{color} % Used for colour commands.
\usepackage{pgfplots} %extends tikz functionality
\usepackage{hyperref,lipsum}
\usepackage{url}
\usepackage[english]{babel}
\usepackage[parfill]{parskip}
\usepackage[scale=0.8,vmarginratio={1:2},heightrounded]{geometry}
\usepackage{mathtools}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,arrows}
Responder1
O problema é o delimitador do howpublished
campo.
Os separadores válidos para arquivos bibtex são aspas duplas ( " "
) e chaves ( { }
).
O arquivo que você postou está usando um par de aspas simples ( '' ''
) e isso está quebrando o bibtex.
Altere sua entrada para:
@misc{10,
author = "Anupam Gupta",
title = "Linear Programming Duality",
howpublished = "\url{https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15859-f11/www/notes/lecture05.pdf}"
}
ou
@misc{10,
author = "Anupam Gupta",
title = "Linear Programming Duality",
howpublished = {\url{https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15859-f11/www/notes/lecture05.pdf}}
}
e vai funcionar.
(certifique-se de excluir os arquivos .aux e .bbl para forçar o texmaker a executar o bibtex novamente :)