我想使用作者-年份引文,但其长度可能会分散读者的注意力。我仍然想明确提及作者姓名和日期,因为这显示了文献的时间顺序。因此,我想将作者-年份引文放在左侧,留出(例如)2 毫米的边距,每个参考文献都单独编号。
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{seahorse}
\useoutertheme{miniframes}
\usefonttheme[onlylarge]{structurebold}
\useinnertheme{inmargin}
\newlength{\widthTextMarginLeft}
\setlength{\widthTextMarginLeft}{1.5mm}
\newlength{\widthTextMarginRight}
\setlength{\widthTextMarginRight}{2mm}
\setbeamersize{text margin left=\widthTextMarginLeft, text margin right=\widthTextMarginRight}
\newlength{\widthSideBar}
\setlength{\widthSideBar}{0.3\paperwidth}
\setbeamersize{sidebar width left=\widthSideBar, sidebar width right=0cm}
% ===== Custom margin codes for pagewide frames =====
% BEGIN_FOLD
% Set margins
\newlength{\widthTextMarginLeftPageWide}
\setlength{\widthTextMarginLeftPageWide}{5mm}
\newlength{\widthTextMarginRightPageWide}
\setlength{\widthTextMarginRightPageWide}{5mm}
% Command to change margins for a page wide
\makeatletter
\newcommand{\framePageWide}{
\def\Gm@lmargin{\widthTextMarginLeftPageWide}%
\def\Gm@rmargin{\widthTextMarginRightPageWide}%
\textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax
\hsize\textwidth
\columnwidth\textwidth
\setlength{\linewidth}{\textwidth}
\hoffset=\dimexpr-\beamer@leftsidebar+\Gm@lmargin-\widthTextMarginLeft\relax % IMPORTANT: \widthTextMarginLeft is not to be changed to \widthTextMarginLeftPageWide
}
\makeatother
% END_FOLD
\usepackage{natbib}
\hypersetup{citecolor=SlateBlue2, citebordercolor=SlateBlue2,
linkcolor=DodgerBlue3, linkbordercolor=DodgerBlue3, urlcolor=Blue1, colorlinks=true}
\begin{document}
\begin{frame}
Cite \cite{wu2017,MRITS-Grant2014,earnest2015}
Cite \textsuperscript{\color{SlateBlue2} 1,} \textsuperscript{\color{SlateBlue2} 2,} \textsuperscript{\color{SlateBlue2} 3}
\end{frame}
{\framePageWide
\begin{frame}[allowframebreaks=0.9]{Referencing}
\bibliographystyle{elsarticle-harv}
\bibliography{sample_margin}
\end{frame}
}
\end{document}
.bib
文件内容
@book{earnest2015,
title={Wind Power Technology},
author={Joshua Earnest},
year={2015},
publisher={PHI Learning}
}
@techreport{MRITS-Grant2014,
title = {{Report in the Matter of Integration and Transmission Study for the Future Renewable Energy Standard}},
author = {Grant},
group = {Minnesota Department of Commerce},
year = {2014},
institution = {Minnesota Department of Commerce},
month = {Nov},
Date-Added = {2014},
Date-Modified = {2014}
}
@ARTICLE{wu2017,
title={{Assessing Impact of Renewable Energy Integration on System Strength Using Site-Dependent Short Circuit Ratio}},
author={Wu, Di and Li, Gangan and Javadi, Milad and Malyscheff, Alexander M and Hong, Mingguo and Jiang, John Ning},
journal={IEEE Transactions on Sustainable Energy},
year={2017},
publisher={IEEE}
}
答案1
一些起点,但你必须自己确保\inmargin
每行只使用一个命令。
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{crane}
\useoutertheme{miniframes}
\usefonttheme[onlylarge]{structurebold}
\useinnertheme{inmargin}
\newlength{\widthSideBar}
\setlength{\widthSideBar}{0.3\paperwidth}
\setbeamersize{sidebar width left=\widthSideBar, sidebar width right=0cm}
\usepackage{natbib}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{earnest2015,
title={Wind Power Technology},
author={Joshua Earnest},
year={2015},
publisher={PHI Learning}
}
@techreport{MRITS-Grant2014,
title = {{Report in the Matter of Integration and Transmission Study for the Future Renewable Energy Standard}},
author = {Grant},
group = {Minnesota Department of Commerce},
year = {2014},
institution = {Minnesota Department of Commerce},
month = {Nov},
Date-Added = {2014},
Date-Modified = {2014}
}
@ARTICLE{wu2017,
title={{Assessing Impact of Renewable Energy Integration on System Strength Using Site-Dependent Short Circuit Ratio}},
author={Wu, Di and Li, Gangan and Javadi, Milad and Malyscheff, Alexander M and Hong, Mingguo and Jiang, John Ning},
journal={IEEE Transactions on Sustainable Energy},
year={2017},
publisher={IEEE}
}
\end{filecontents*}
\makeatletter
\newcommand{\inmargin}[1]{\beamer@putleft{\cite{#1}}{2.5ex}\vspace*{-\baselineskip}}
\makeatother
\begin{document}
\begin{frame}
\inmargin{MRITS-Grant2014}Cite \textsuperscript{\color{SlateBlue2} 1,}\linebreak\inmargin{wu2017}Cite \textsuperscript{\color{SlateBlue2} 2,}
\end{frame}
\begin{frame}[allowframebreaks=0.9]{Referencing}
\bibliographystyle{elsarticle-harv}
\bibliography{\jobname}
\end{frame}
\end{document}