Citações no texto que aparecem no topo da página ao usar \bibentry e \natbib (para estilo de citação astron)

Citações no texto que aparecem no topo da página ao usar \bibentry e \natbib (para estilo de citação astron)

Atualmente, estou tentando digitar uma revisão de literatura para uma aula em que preciso usar o estilo de citação relevante para minha área. Gostaria de poder colocar a citação de que estou falando e a análise da fonte abaixo dela com uma bibliografia final no final do artigo. Tudo parece funcionar bem e as citações estão do jeito que eu quero que sejam formatadas, mas no topo da minha primeira página aparece uma lista de citações no texto para todas as minhas fontes.

O que parecem ser as citações no texto.

Eu vi algumas notas sobre \nocite{*}, mas parece que não houve nenhuma alteração no meu 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}

A citação para este artigo é esta:

@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",
}

Eu tenho um aviso que diz o seguinte:

Aviso do pacote Fancyhdr: \headheight é muito pequeno (12,0pt): Faça pelo menos 14,49998pt. Agora o tornamos tão grande para o restante do documento. No entanto, isso pode fazer com que o layout da página seja inconsistente.

E dois erros que dizem isso:

Sequência de controle indefinida.

O compilador está tendo problemas para entender um comando que você usou. Verifique se o comando está escrito corretamente. Se o comando fizer parte de um pacote, certifique-se de ter incluído o pacote em seu preâmbulo usando \usepackage{...}.

Saber mais

<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. Se você digitou errado (por exemplo, \hobx'), typeI' e a grafia correta (por exemplo, `I\hbox'). Caso contrário, continue e esquecerei o que estava indefinido.

Erro LaTeX: \begin{document} ausente.

Nenhum comando \begin{document} foi encontrado. Certifique-se de incluir \begin{document} em seu preâmbulo e de que seu documento principal esteja configurado corretamente.

Saiba mais Consulte o manual do LaTeX ou o LaTeX Companion para obter explicações. Digite H para ajuda imediata.

...

l.3 ...te{Soderblom}{2010}]{Soderblom2010TheStars}
                                               You're in trouble here.  Try typing  <return>  to proceed. If that doesn't work, type  X

para sair.

Atualmente estou usando o Overleaf.

Responder1

O primeiro erro \headheight is too small (12.0pt): Make it at least 14.49998pt.que você recebe porque o cabeçalho criado via fancyhdré maior que o usado atualmente 12pt. Então basta adicionar

\setlength{\headheight}{15pt}

ao seu preâmbulo para se livrar dele.

A primeira mensagem de erro que você obtém <argument> \protect \astronciteresulta do uso de astron.bstand astron.sty, que contém as linhas:

\def\cite{\@ifstar{\citeyear}{\citefull}}
\def\citefull{\def\astroncite##1##2{##1, ##2}\@internalcite}
\def\citeyear{\def\astroncite##1##2{##2}\@internalcite} 

Este arquivo é bastante antigo e não o conheço, mas usando por exemplo

\bibliographystyle{plainnat}

deixe-me usar bibentrye natbibsem erros você pode testar com o seguinte 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}

Veja que apaguei a extensão .bibna chamada da bibliografia.

O resultado é então (nada feito para quebrar URLs, apenas ignore isso, por favor):

insira a descrição da imagem aqui

Para mim a questão principal agora é: você pode omitir o uso do desatualizado astron.bstou deve ser usado em uma classe especial que não conheço? Se possível apenas omita ou faça um relatório de bug ao mantenedor desse estilo/diário.

informação relacionada