私は修正したIMSAloquiumテンプレートを使用しています。以下は私のコードです
\documentclass[final]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{nicematrix}
\usepackage{xcolor}
\usepackage{utopia} %font utopia imported
\usepackage{setspace} % <---
\setstretch{1.3}
\bibliographystyle{alpha}
\usepackage[absolute,overlay]{textpos}
\usepackage{tikz}
\usepackage{tikz-feynman}
\tikzfeynmanset{vanilla/.style=}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=0.5cm,text centered, draw=cyan, fill=cyan!20]
\tikzstyle{arrow} = [thick,->,>=stealth]
\usetikzlibrary{positioning}
\usetheme{imsa}
\usecolortheme{imsa}
\usefonttheme[onlymath]{serif}
\usepackage[most]{tcolorbox}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage[labelformat=empty]{caption}
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{pointbackground.png}}
%------------------------------------------------------------
%Mergin selection%
\setbeamersize
{
text margin left=0.7cm,
text margin right=0.7cm
}
%This block of code defines the information to appear in the
%Title page
\setbeamertemplate{frametitle}{%
\begin{tcolorbox}[colframe=blue,boxrule=0.5pt,top=0.7mm,bottom=0.7mm,grow to left by=5.8mm, grow to right by=5.9mm, before skip=0.07cm,
interior style={left color=blue, right color=white}]
\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle
\end{tcolorbox}
}
\begin{document}
% Title Page
\frame{
\titlepage
}
\AtBeginSection[]
{
{
\setbeamertemplate{background}
{\includegraphics[width = \the\paperwidth, height = \the\paperheight]{toc.png}}
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
}
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{pointbackground.png}}
\small
\begin{frame}{Cross section}
\end{frame}
%Bibilographies
\begin{frame}[allowframebreaks]{Bibilography}
\bibliography{bibitems}
\end{frame}
\end{document}
フレームタイトル ボックスでは、マニュアルに記載されているようにグラデーション カラーが使用されるはずですが、そうではありません。なぜでしょうか。
答え1
tcolorboxオプションを追加しますenhanced。
tcolorboxパッケージマニュアル (v6.2.0、2024-01-10) のセクション 10.1「スタイル オプション キー」(p. 172)より
このオプション[ ]は、→P. 157または→P. 158が、、、またはに設定されている
/tcb/interior style場合に使用できます。の場合は使用できません。/tcb/interior titled engine/tcb/interior enginepathpathfirstpathmiddlepathlaststandard
最初は/tcb/interior engineは ですstandard。したがって、interior styleを有効にするには、最小設定は ですinterior engine=path。
便利なenhancedオプションは のショートカットでskin=enhanced、 、/tcb/graphical environment=tikzpictureすべての描画エンジン( を含む/tcb/interior engine)をpath、などに設定します。


