gpt4 book ai didi

latex - 如何在 beamercolor.sty 文件中设置书目文本颜色

转载 作者:行者123 更新时间:2023-12-02 14:48:35 29 4
gpt4 key购买 nike

我为我的工作演示制作了一个 beamer 主题,该主题符合我公司的简介,但是我无法找到代码来设置引用书目文本(或与此相关的普通未加项目符号的文本)的颜色。

这意味着引用书目在白色幻灯片上显示为白色文本。文字在那里,但只是白色。幻灯片上未加项目符号的文本也会发生同样的事情。

(附加信息:我在 org-mode 中编写演示文稿并将其编译为 beamer pdf。)

颜色主题 sty 文件如下所示:

\mode<presentation>

\definecolor{myblue}{RGB}{32,66,135}
\definecolor{mmconcept}{RGB}{32,66,135}
\definecolor{mmt1}{RGB}{87.75,113.25,165}
\definecolor{mmt2}{RGB}{143.5,160.5,195}

% Settings
\setbeamercolor*{title page header}{fg=myblue}
\setbeamercolor*{author}{fg=myblue}
\setbeamercolor*{date}{fg=myblue}
\setbeamercolor{item}{fg=myblue}
\setbeamercolor{frametitle}{fg=myblue}
\setbeamercolor{block title}{bg=myblue}
\setbeamercolor{block title}{fg=white}
\setbeamercolor{normal text}{fg=black}
\setbeamercolor{palette primary}{fg=myblue}
\setbeamercolor{palette secondary}{fg=myblue}
\setbeamercolor{palette tertiary}{fg=myblue}
\setbeamercolor{palette quaternary}{fg=myblue}

\mode
<all>

我尝试了各种设置,但似乎都不起作用。

我可以通过将 latex 颜色标签放入幻灯片中将普通文本颜色更改为不同的颜色,但这不适用于引用书目,我希望主题对其进行排序。

最佳答案

引用书目的颜色由

控制
\setbeamercolor{bibliography item}{fg=green}
\setbeamercolor{bibliography entry author}{fg=red}
\setbeamercolor{bibliography entry title}{fg=blue}
\setbeamercolor{bibliography entry location}{fg=orange}
\setbeamercolor{bibliography entry note}{fg=teal}

MWE:

\documentclass{beamer}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{knuth,
author = {Knuth, Donald E.},
title = {The {\TeX} book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
langid = {english},
langidopts = {variant=american},
sortyear = {1984-1},
sorttitle = {Computers & Typesetting A},
indexsorttitle= {The TeXbook},
indextitle = {\protect\TeX book, The},
shorttitle = {\TeX book}
}

@article{einstein,
author = {Einstein, A.},
title = {Die Grundlage der allgemeinen Relativitätstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
doi = {10.1002/andp.19163540702},
pages = {769--822},
year = {1916}
}
\end{filecontents*}

\mode<presentation>

\definecolor{myblue}{RGB}{32,66,135}
\definecolor{mmconcept}{RGB}{32,66,135}
\definecolor{mmt1}{RGB}{87.75,113.25,165}
\definecolor{mmt2}{RGB}{143.5,160.5,195}

% Settings
\setbeamercolor*{title page header}{fg=myblue}
\setbeamercolor*{author}{fg=myblue}
\setbeamercolor*{date}{fg=myblue}
\setbeamercolor{item}{fg=myblue}
\setbeamercolor{frametitle}{fg=myblue}
\setbeamercolor{block title}{bg=myblue}
\setbeamercolor{block title}{fg=white}
\setbeamercolor{normal text}{fg=black}
\setbeamercolor{palette primary}{fg=myblue}
\setbeamercolor{palette secondary}{fg=myblue}
\setbeamercolor{palette tertiary}{fg=myblue}
\setbeamercolor{palette quaternary}{fg=myblue}


\setbeamercolor{bibliography item}{fg=green}
\setbeamercolor{bibliography entry author}{fg=red}
\setbeamercolor{bibliography entry title}{fg=blue}
\setbeamercolor{bibliography entry location}{fg=orange}
\setbeamercolor{bibliography entry note}{fg=teal}

\mode
<all>


\begin{document}

\begin{frame}
\nocite{knuth}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{frame}

\end{document}

关于latex - 如何在 beamercolor.sty 文件中设置书目文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57426457/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com