Al intentar colocar mi archivo .bib en mi .tex, aparece este mensaje de error.
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
En mi archivo .tex comienzo mi bibliografía de la siguiente manera:
\bibliographystyle{plainnat}
\bibliography{Bib}
Mi archivo .bib para esta URL con el mensaje de error es el siguiente:
@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}}"
}
Mi preámbulo es largo pero es el siguiente:
\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}
Respuesta1
El problema es el delimitador del howpublished
campo.
Los separadores válidos para archivos bibtex son comillas dobles ( " "
) y llaves ( { }
).
El archivo que publicó utiliza un par de comillas simples ( '' ''
) y esto rompe bibtex.
Cambie su entrada a:
@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}"
}
o
@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}}
}
y funcionará.
(asegúrese de eliminar los archivos .aux y .bbl para forzar a texmaker a ejecutar bibtex nuevamente :)