texlive[64229] Master/texmf-dist: beamertheme-tcolorbox (29aug22)
commits+karl at tug.org
commits+karl at tug.org
Mon Aug 29 22:01:07 CEST 2022
Revision: 64229
http://tug.org/svn/texlive?view=revision&revision=64229
Author: karl
Date: 2022-08-29 22:01:07 +0200 (Mon, 29 Aug 2022)
Log Message:
-----------
beamertheme-tcolorbox (29aug22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex
trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf
trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md 2022-08-29 20:00:24 UTC (rev 64228)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md 2022-08-29 20:01:07 UTC (rev 64229)
@@ -2,7 +2,7 @@
A beamer inner theme which reproduces standard beamer blocks using tcolorboxes
-Current version: 2022/08/27 version v0.2
+Current version: 2022/08/29 version v0.3
This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
Deleted: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex 2022-08-29 20:00:24 UTC (rev 64228)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex 2022-08-29 20:01:07 UTC (rev 64229)
@@ -78,7 +78,7 @@
\url{https://github.com/samcarter/beamertheme-tcolorbox}\\
\url{https://www.ctan.org/pkg/beamertheme-tcolorbox}
}{samcarter}}
-\date{Version v0.2 \textendash{} 2022/08/27}
+\date{Version v0.3 \textendash{} 2022/08/29}
\begin{document}
\maketitle
@@ -138,13 +138,20 @@
\section{Options}
-In addition to automatically adopting settings from the other themes, one can also influence the look and feel via the two options \lstinline|rounded| and \lstinline|shadow|, which can be set to \lstinline|true| or \lstinline|false| (calling either option without explicit \lstinline|true| or \lstinline|false| will set it to \lstinline|true|).
+In addition to automatically adopting settings from the other themes, one can also influence the look and feel via these options:
+\begin{description}
+\item[rounded] controls if corners are rounded or sharp (default: \lstinline|false|)
+\item[shadow] controls if the block has a shadow (default: \lstinline|false|)
+\item[shaded] controls if there is a short colour gradient between the title and the body or if there is a sharp border between the colours (Default: \lstinline|false|; if rounded corners are activated, it is \lstinline|true|)
+\end{description}
+These options can be set to \lstinline|true| or \lstinline|false| (calling either option without explicit \lstinline|true| or \lstinline|false| will set it to \lstinline|true|).
\begin{tcolorbox}[title={}]
\begin{lstlisting}
\useinnertheme[
rounded
- shadow=false
+ shadow=false,
+ shaded
]{tcolorbox}
\end{lstlisting}
\end{tcolorbox}
@@ -190,7 +197,7 @@
\documentclass{beamer}
\usetheme{Ilmenau}
\useinnertheme{tcolorbox}
-\tcbset{
+\tcbsetforeverylayer{
boxrule=3pt,
borderline={1pt}{0pt}{pink,dashed},
}
Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty 2022-08-29 20:00:24 UTC (rev 64228)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty 2022-08-29 20:01:07 UTC (rev 64229)
@@ -12,7 +12,7 @@
% See http://www.latex-project.org/lppl.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{beamerinnerthemetcolorbox}[2022/08/27 version v0.2 Beamer blocks with tcolorboxes]
+\ProvidesPackage{beamerinnerthemetcolorbox}[2022/08/29 version v0.3 Beamer blocks with tcolorboxes]
\RequirePackage{tcolorbox}
\tcbuselibrary{skins,hooks}
@@ -24,17 +24,21 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\ifbeamer at tcb@rounded
\newif\ifbeamer at tcb@shadow
+\newif\ifbeamer at tcb@shaded
\def\beamer at tcb@true{true}
\DeclareOptionBeamer{shadow}[true]{\csname beamer at tcb@shadow#1\endcsname}
-\DeclareOptionBeamer{rounded}[true]{\csname beamer at tcb@rounded#1\endcsname}
+\DeclareOptionBeamer{rounded}[true]{\csname beamer at tcb@rounded#1\endcsname\csname beamer at tcb@shaded#1\endcsname}
+\DeclareOptionBeamer{shaded}[true]{\csname beamer at tcb@shaded#1\endcsname}
\ExecuteOptionsBeamer{shadow=false}
\ExecuteOptionsBeamer{rounded=false}
+\ExecuteOptionsBeamer{shaded=false}
% check options from other themes
\ifdefined\beamer at themerounded@shadow
\beamer at tcb@roundedtrue
+ \beamer at tcb@shadedtrue
\ifx\beamer at themerounded@shadow\beamer at tcb@true
\beamer at tcb@shadowtrue
\fi
@@ -49,14 +53,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\beamer at tcb@colini}[1][]{
- \usebeamercolor[bg]{block body#1}
+ \usebeamercolor{block body#1}
\colorlet{beamer at tcb@bodybg}{block body#1.bg}
- \usebeamercolor[fg]{block body#1}
\colorlet{beamer at tcb@bodyfg}{block body#1.fg}
- \usebeamercolor[bg]{block title#1}
+ \usebeamercolor{block title#1}
\colorlet{beamer at tcb@titlebg}{block title#1.bg}
- \usebeamercolor[fg]{block title#1}
- \colorlet{beamer at tcb@titlefg}{block title#1.fg}
+ \colorlet{beamer at tcb@titlefg}{block title#1.fg}
+ \usebeamercolor{normal text}
}
\beamer at tcb@colini
@@ -66,7 +69,10 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tcbset{
- oversize=0mm,
+ oversize=0mm
+}
+
+\tcbsetforeverylayer{
left=0.05cm,
right=0.05cm,
enhanced,
@@ -82,21 +88,26 @@
% optional settings
\ifbeamer at tcb@rounded
- \tcbset{
+ \tcbsetforeverylayer{
arc=1.3mm,
top=0.8mm,
toptitle=0.2mm,
bottom=0mm,
+ }
+\else
+ \tcbsetforeverylayer{sharpish corners}
+\fi
+
+\ifbeamer at tcb@shaded
+ \tcbsetforeverylayer{
title code app={
\shade[top color=beamer at tcb@titlebg,bottom color=beamer at tcb@bodybg] (title.south west) rectangle ([yshift=-0.5mm]title.south east);
- }
+ }
}
-\else
- \tcbset{sharpish corners}
\fi
\ifbeamer at tcb@shadow
- \tcbset{drop fuzzy shadow=black!90}
+ \tcbsetforeverylayer{drop fuzzy shadow=black!90}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -110,10 +121,10 @@
\setbeamertemplate{block begin}{%
\beamer at tcb@colini
\unless\ifbeamer at tcb@rounded
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\ifx\insertblocktitle\@empty\else
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\begin{tcolorbox}[
colback=beamer at tcb@bodybg,
@@ -121,7 +132,7 @@
coltext=beamer at tcb@bodyfg,
coltitle=beamer at tcb@titlefg,
before title={\usebeamerfont{block title}},
- before upper={\usebeamerfont{block body}},
+ before upper={\usebeamercolor{block body}\usebeamerfont{block body}},
]
}
\setbeamertemplate{block end}{\end{tcolorbox}}
@@ -130,10 +141,10 @@
\setbeamertemplate{block alerted begin}{%
\beamer at tcb@colini[ alerted]
\unless\ifbeamer at tcb@rounded
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\ifx\insertblocktitle\@empty\else
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\begin{tcolorbox}[
colback=beamer at tcb@bodybg,
@@ -141,7 +152,7 @@
coltext=beamer at tcb@bodyfg,
coltitle=beamer at tcb@titlefg,
before title={\usebeamerfont{block title alerted}},
- before upper={\usebeamerfont{block body alerted}},
+ before upper={\usebeamercolor{block body alerted}\usebeamerfont{block body alerted}},
]
}
\setbeamertemplate{block alerted end}{\end{tcolorbox}}
@@ -148,12 +159,12 @@
% example block
\setbeamertemplate{block example begin}{%
-\beamer at tcb@colini[ example]
+ \beamer at tcb@colini[ example]
\unless\ifbeamer at tcb@rounded
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\ifx\insertblocktitle\@empty\else
- \tcbset{title={\insertblocktitle}}
+ \tcbsetforeverylayer{title={\insertblocktitle}}
\fi
\begin{tcolorbox}[
colback=beamer at tcb@bodybg,
@@ -161,7 +172,7 @@
coltext=beamer at tcb@bodyfg,
coltitle=beamer at tcb@titlefg,
before title={\usebeamerfont{block title example}},
- before upper={\usebeamerfont{block body example}},
+ before upper={\usebeamercolor{block body example}\usebeamerfont{block body example}},
]
}
\setbeamertemplate{block example end}{\end{tcolorbox}}
More information about the tex-live-commits
mailing list.