未使用 natbib 软件包的参考作者(年份)

未使用 natbib 软件包的参考作者(年份)

我想在我的参考资料上显示参考图标,所以我\usepackage{natbib}在投影仪上禁用了它。从那时起,它就在我的参考资料上显示参考图标,但引文已从 变为,Author (Year)正如[Author, Year] 您在 MWE 中看到的那样

\documentclass{beamer}
\usetheme{Madrid}
\usepackage[english]{babel}

% begin bib
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{greenwade49,
    author  = "George D. Greenwade",
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year    = "1949",
    journal = "TUGBoat",
    volume  = "14",
    number  = "3",
    pages   = "342--351"
}
    @article{greenwade79,
    author  = "George D. Greenwade",
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year    = "1979",
    journal = "TUGBoat",
    volume  = "14",
    number  = "3",
    pages   = "342--351"
}
    @book{goossens86,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The LaTeX Companion",
    year      = "1986",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}
\end{filecontents}
%end bib
%\usepackage{natbib}

\begin{document}
\begin{frame}

I do not want this style \cite{goossens86}\\ nor \cite{greenwade79}

\end{frame}
%%bib config 

\begin{frame}[allowframebreaks]{~}
    \frametitle[]{~}
    \def\newblock{}
    %\begin{block}[allowblockbreaks]{~}
    \bibliographystyle{apalike}
    \bibliography{\jobname}
\end{frame}

\end{document}

我希望保留参考图标,同时我的引用采用以下形式Author (Year)

相关内容