如何自定义“beamer”中“biblatex”书目条目的颜色?

如何自定义“beamer”中“biblatex”书目条目的颜色?

当使用biblatexin时beamer,参考列表会变成彩色。我看到的颜色模式如下

  1. 作者姓名以深紫色显示
  2. 作品标题为黑色
  3. 主标题后的条目为浅紫色
  4. 链接和 DOI 与 指定的内联数学颜色相同。当未明确包含\setbeamercolor{math text inlined}{fg=<color>}时,它们会变成浅紫色\setbeamercolor{math text inlined}
  5. 书目标签采用由指定的条目标签的颜色\setbeamercolor{item}{fg=<color>}

在此处输入图片描述

问题 1:如何将除链接和 DOI 之外的所有颜色重置为黑色?

问题2:如何自定义标题前后的颜色(例如深紫色和浅紫色)

问题 3:如何自定义标题本身的颜色?

\begin{filecontents*}{sample.bib}
@article{aldaoudeyeh2016,
    title={Photovoltaic-battery scheme to enhance PV array characteristics in partial shading conditions},
    author={Aldaoudeyeh, Al-Motasem},
    journal={IET Renewable Power Generation},
    volume={10},
    number={1},
    pages={108--115},
    year={2016},
    publisher={IET}
}
@INPROCEEDINGS{aldaoudeyeh2017,
    author={A. M. I. Aldaoudeyeh and R. G. Kavasseri and I. T. Lima},
    booktitle={2017 Ninth Annual IEEE Green Technologies Conference (GreenTech)},
    title={Characterization of Forward Electricity Market Price Variations and Price-Responsive Demand},
    year={2017},
    pages={211-218},
    keywords={Adaptation models;Computational modeling;Elasticity;Electricity supply industry;Estimation;Load modeling;Real-time systems;consumption scheduling;electricity markets;peak load;real time pricing;smart metering},
    doi={10.1109/GreenTech.2017.37},
    month=Mar
}
@online{AusgridElasticity2015,
    title = {Ausgrid - Tariff structure statement},
    year = {2015},
    url = {https://www.aer.gov.au/networks-pipelines/determinations-access-arrangements/pricing-proposals-tariffs/ausgrid-tariff-structure-statement-2015},
    urldate = {2016-09-25}
}
@phdthesis{javadi2017phd,
    title={New Implication of Short Circuit Analysis in Assessing Impact of Renewable Energy Resources on System Strength of a Power Grid},
    author={Javadi, Milad},
    year={2017},
    school={University of Oklahoma}
}
@book{eremia2013,
    title={Handbook of Electrical Power System Dynamics: Modeling, Stability, and Control},
    author={Eremia, Mircea and Shahidehpour, Mohammad},
    volume={92},
    year={2013},
    publisher={John Wiley \& Sons}
}
\end{filecontents*}



\documentclass[aspectratio=169, xcolor={x11names}, t]{beamer}

\usecolortheme{seahorse}
\useoutertheme{miniframes}
\useinnertheme{circles}

\usepackage[style=alphabetic, sorting=ydnt]{biblatex}
\addbibresource{sample.bib}

\setbeamertemplate{bibliography item}{\insertbiblabel}


\begin{document}
    
\begin{frame}[allowframebreaks=0.9]{References}
    
    \setbeamercolor{math text inlined}{fg=DodgerBlue3}
    \setbeamercolor{item}{fg=DodgerBlue3}
    
    \nocite{*}
    
    \printbibliography

\end{frame}

\end{document}

答案1

在此处输入图片描述

这可以通过命令进行定制

\setbeamercolor{<type>}{fg=<color>}. 可以替代的<type>

  • bibliography item用于标签
  • bibliography entry author、、bibliography entry title以及bibliography entry note作者、标题和标题后面的内容
  • math text inlinedURL/DOI 的获取

对于<color>,替换你想要的颜色

为了避免重置内联数学颜色,请math text inlined在包含参考书目的框架内进行本地设置,因为这会影响整个文档(这可以避免对内联数学颜色进行任何更改)

\begin{filecontents*}{sample.bib}
@article{aldaoudeyeh2016,
    title={Photovoltaic-battery scheme to enhance PV array characteristics in partial shading conditions},
    author={Aldaoudeyeh, Al-Motasem},
    journal={IET Renewable Power Generation},
    volume={10},
    number={1},
    pages={108--115},
    year={2016},
    publisher={IET}
}
@INPROCEEDINGS{aldaoudeyeh2017,
    author={A. M. I. Aldaoudeyeh and R. G. Kavasseri and I. T. Lima},
    booktitle={2017 Ninth Annual IEEE Green Technologies Conference (GreenTech)},
    title={Characterization of Forward Electricity Market Price Variations and Price-Responsive Demand},
    year={2017},
    pages={211-218},
    keywords={Adaptation models;Computational modeling;Elasticity;Electricity supply industry;Estimation;Load modeling;Real-time systems;consumption scheduling;electricity markets;peak load;real time pricing;smart metering},
    doi={10.1109/GreenTech.2017.37},
    month=Mar
}
@online{AusgridElasticity2015,
    title = {Ausgrid - Tariff structure statement},
    year = {2015},
    url = {https://www.aer.gov.au/networks-pipelines/determinations-access-arrangements/pricing-proposals-tariffs/ausgrid-tariff-structure-statement-2015},
    urldate = {2016-09-25}
}
@phdthesis{javadi2017phd,
    title={New Implication of Short Circuit Analysis in Assessing Impact of Renewable Energy Resources on System Strength of a Power Grid},
    author={Javadi, Milad},
    year={2017},
    school={University of Oklahoma}
}
@book{eremia2013,
    title={Handbook of Electrical Power System Dynamics: Modeling, Stability, and Control},
    author={Eremia, Mircea and Shahidehpour, Mohammad},
    volume={92},
    year={2013},
    publisher={John Wiley \& Sons}
}
\end{filecontents*}



\documentclass[aspectratio=169, xcolor={x11names}, t]{beamer}

\usecolortheme{seahorse}
\useoutertheme{miniframes}
\useinnertheme{circles}

\usepackage[style=alphabetic, sorting=ydnt]{biblatex}
\addbibresource{sample.bib}

\setbeamertemplate{bibliography item}{\insertbiblabel}


\begin{document}
    
\begin{frame}[allowframebreaks=0.9]{References}
    
    % Customize colors
        
        % Label
        \setbeamercolor{bibliography item}{fg=SlateBlue2}
        
        % Author, title, note
        \setbeamercolor{bibliography entry author}{fg=SlateBlue2}
        \setbeamercolor{bibliography entry title}{fg=black}
        \setbeamercolor{bibliography entry note}{fg=black}
        
        % URL/DOI
        \setbeamercolor{math text inlined}{fg=DodgerBlue3}
    
    \nocite{*}
    
    \printbibliography

\end{frame}

\end{document}

相关内容