.png)
Actualmente estoy intentando escribir una revisión de la literatura para una clase en la que tengo que utilizar el estilo de cita que sea relevante para mi campo. Me gustaría poder poner la cita de la que estoy hablando y el análisis de la fuente debajo con una bibliografía final al final del artículo. Todo parece funcionar bien y las citas tienen el formato que quiero, pero en la parte superior de mi primera página aparece una lista de citas en el texto de todas mis fuentes.
He visto algunas notas sobre \nocite{*}
, pero no parece realizar ningún cambio en mi documento.
\documentclass[12pt,letterpaper]{article}
% Set margins to 1.5in
\usepackage[margin=0.75in]{geometry}
% for crimson text
\usepackage{crimson}
\usepackage[T1]{fontenc}
% setup parameter indentation
\setlength{\parindent}{15pt}
\setlength{\parskip}{6pt}
% for 1.15 spacing between text
\renewcommand{\baselinestretch}{1.15}
% For defining spacing between headers
\usepackage{titlesec}
% Level 1
\titleformat{\section}
{\normalfont\fontsize{18}{0}\bfseries}{\thesection}{1em}{}
% Level 2
\titleformat{\subsection}
{\normalfont\fontsize{14}{0}\bfseries}{\thesection}{1em}{}
% Level 3
\titleformat{\subsubsection}
{\normalfont\fontsize{12}{0}\bfseries}{\thesection}{1em}{}
% Level 4
\titleformat{\paragraph}
{\normalfont\fontsize{12}{0}\bfseries\itshape}{\theparagraph}{1em}{}
% Level 5
\titleformat{\subparagraph}
{\normalfont\fontsize{12}{0}\itshape}{\theparagraph}{1em}{}
% Level 6
\makeatletter
\newcounter{subsubparagraph}[subparagraph]
\renewcommand\thesubsubparagraph{%
\thesubparagraph.\@arabic\c@subsubparagraph}
\newcommand\subsubparagraph{%
\@startsection{subsubparagraph} % counter
{6} % level
{\parindent} % indent
{12pt} % beforeskip
{6pt} % afterskip
{\normalfont\fontsize{12}{0}}}
\newcommand\l@subsubparagraph{\@dottedtocline{6}{10em}{5em}}
\newcommand{\subsubparagraphmark}[1]{}
\makeatother
\titlespacing*{\section}{0pt}{12pt}{6pt}
\titlespacing*{\subsection}{0pt}{12pt}{6pt}
\titlespacing*{\subsubsection}{0pt}{12pt}{6pt}
\titlespacing*{\paragraph}{0pt}{12pt}{6pt}
\titlespacing*{\subparagraph}{0pt}{12pt}{6pt}
\titlespacing*{\subsubparagraph}{0pt}{12pt}{6pt}
% Set caption to correct size and location
\usepackage[tableposition=top, figureposition=bottom, font=footnotesize, labelfont=bf]{caption}
% set page number location
\usepackage{fancyhdr}
\fancyhf{} % clear all header and footers
\renewcommand{\headrulewidth}{0pt} % remove the header rule
\rhead{\thepage}
\pagestyle{fancy}
% Overwrite Title
\makeatletter
\renewcommand{\maketitle}{\bgroup
\begin{center}
\textbf{{\fontsize{18pt}{20}\selectfont \@title}}\\
\vspace{10pt}
{\fontsize{12pt}{0}\selectfont \@author}
\end{center}
}
\makeatother
% For full citations inline
\usepackage{bibentry}
\nobibliography*
% For making hanging indents under citations
\usepackage{hanging}
\newcommand\hangbibentry[1]{%
\smallskip\par\hangpara{1em}{1}\bibentry{#1}\smallskip\par %{indent}{afterline}
}
% For indenting the first paragraph of every line
\usepackage{indentfirst}
% For use of astron citation package
\usepackage{natbib}
\begin{document}
\thispagestyle{fancy}
\subsection*{\hangbibentry{Soderblom2010TheStars}}
This source outlines the various methods astrophysicists utilize to estimate the ages of stars.
\bibliographystyle{astron}
\bibliography{mnemonic.bib,bib.bib}
\end{document}
La cita de este artículo es la siguiente:
@article{Soderblom2010TheStars,
title = "The Ages of Stars",
year = "2010",
journal = aar,
author = "Soderblom, David R.",
month = "3",
volume = "48",
pages = "581--629",
url = "http://arxiv.org/abs/1003.6074 http://dx.doi.org/10.1146/annurev-astro-081309-130806",
doi = "10.1146/annurev-astro-081309-130806",
}
Tengo una advertencia que dice esto:
Paquete Fancyhdr Advertencia: \headheight es demasiado pequeño (12,0 pt): hágalo al menos 14,49998 pt. Ahora lo hacemos así de grande para el resto del documento. Sin embargo, esto puede provocar que el diseño de la página sea inconsistente.
Y dos errores que dicen esto:
Secuencia de control Indefinido.
El compilador tiene problemas para comprender un comando que ha utilizado. Compruebe que el comando esté escrito correctamente. Si el comando es parte de un paquete, asegúrese de haber incluido el paquete en su preámbulo usando \usepackage{...}.
Aprende más
<argument> \protect \astroncite {Soderblom}{2010} l.3 ...te{Soderblom}{2010}]{Soderblom2010TheStars} The control sequence at the end of the top line of your error message was never
\def'ed. Si lo ha escrito mal (por ejemplo,
\hobx'), type
I' y la ortografía correcta (por ejemplo, `I\hbox'). De lo contrario, continúe y me olvidaré de lo que no esté definido.Error de LaTeX: Falta \begin{documento}.
No se encontró ningún comando \begin{document}. Asegúrese de haber incluido \begin{document} en su preámbulo y de que su documento principal esté configurado correctamente.
Más información Consulte el manual de LaTeX o LaTeX Companion para obtener una explicación. Escriba H para obtener ayuda inmediata.
...
l.3 ...te{Soderblom}{2010}]{Soderblom2010TheStars} You're in trouble here. Try typing <return> to proceed. If that doesn't work, type X
abandonar.
Actualmente estoy usando Overleaf.
Respuesta1
El primer error \headheight is too small (12.0pt): Make it at least 14.49998pt.
lo recibe porque el encabezado creado vía fancyhdr
es más grande que el utilizado actualmente 12pt
. Así que simplemente agrega
\setlength{\headheight}{15pt}
a su preámbulo para deshacerse de él.
El primer mensaje de error que recibe <argument> \protect \astroncite
resulta del uso de astron.bst
y astron.sty
, que contiene las líneas:
\def\cite{\@ifstar{\citeyear}{\citefull}}
\def\citefull{\def\astroncite##1##2{##1, ##2}\@internalcite}
\def\citeyear{\def\astroncite##1##2{##2}\@internalcite}
Este archivo es bastante antiguo y no lo sé, pero usando por ejemplo
\bibliographystyle{plainnat}
déjame usar bibentry
y natbib
sin errores puedes probar con el siguiente MWE
\begin{filecontents*}{mybib.bib}
@article{Soderblom2010TheStars,
title = "The Ages of Stars",
year = "2010",
journal = aar,
author = "Soderblom, David R.",
month = "3",
volume = "48",
pages = "581--629",
url = "http://arxiv.org/abs/1003.6074 http://dx.doi.org/10.1146/annurev-astro-081309-130806",
doi = "10.1146/annurev-astro-081309-130806",
}
\end{filecontents*}
\documentclass{article}
\usepackage{bibentry}
\nobibliography*
\usepackage{natbib}
\begin{document}
text
%\bibentry{Soderblom2010TheStars}
\subsection*{\bibentry{Soderblom2010TheStars}}
text
\bibliographystyle{plainnat} % plain astron
\bibliography{mybib}
\end{document}
Tenga en cuenta que eliminé la extensión .bib
en la convocatoria de bibliografía.
El resultado es entonces (no se hace nada para romper las URL, simplemente ignore esto, por favor):
Para mí, la pregunta principal ahora es ¿se puede omitir el uso del obsoleto astron.bst
o debe usarse en una clase especial que no conozco? Si es posible, simplemente omítelo o haz un informe de error al responsable de ese estilo/revista.