From a77b48e45a7d631d231a8eee66703ce9c02c44c9 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 30 Aug 2022 03:01:31 +0000 Subject: CTAN sync 202208300301 --- .../themes/beamertheme-tcolorbox/README.md | 2 +- .../beamerinnerthemetcolorbox.sty | 57 ++++++++++++--------- .../beamertheme-tcolorbox-doc-listing-1.pdf | Bin 32138 -> 0 bytes .../beamertheme-tcolorbox-doc-listing-2.pdf | Bin 13501 -> 0 bytes .../beamertheme-tcolorbox-doc-listing-3.pdf | Bin 13736 -> 0 bytes .../beamertheme-tcolorbox-doc.pdf | Bin 164900 -> 180151 bytes .../beamertheme-tcolorbox-doc.tex | 15 ++++-- 7 files changed, 46 insertions(+), 28 deletions(-) delete mode 100644 macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf delete mode 100644 macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf delete mode 100644 macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf (limited to 'macros/latex/contrib/beamer-contrib') diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/README.md b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/README.md index 5049c78a1d..20a504e5a1 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/README.md +++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/README.md @@ -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 diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty index 3d5aaf5e93..751c2754b4 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty +++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty @@ -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@tcb@rounded \newif\ifbeamer@tcb@shadow +\newif\ifbeamer@tcb@shaded \def\beamer@tcb@true{true} \DeclareOptionBeamer{shadow}[true]{\csname beamer@tcb@shadow#1\endcsname} -\DeclareOptionBeamer{rounded}[true]{\csname beamer@tcb@rounded#1\endcsname} +\DeclareOptionBeamer{rounded}[true]{\csname beamer@tcb@rounded#1\endcsname\csname beamer@tcb@shaded#1\endcsname} +\DeclareOptionBeamer{shaded}[true]{\csname beamer@tcb@shaded#1\endcsname} \ExecuteOptionsBeamer{shadow=false} \ExecuteOptionsBeamer{rounded=false} +\ExecuteOptionsBeamer{shaded=false} % check options from other themes \ifdefined\beamer@themerounded@shadow \beamer@tcb@roundedtrue + \beamer@tcb@shadedtrue \ifx\beamer@themerounded@shadow\beamer@tcb@true \beamer@tcb@shadowtrue \fi @@ -49,14 +53,13 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\beamer@tcb@colini}[1][]{ - \usebeamercolor[bg]{block body#1} + \usebeamercolor{block body#1} \colorlet{beamer@tcb@bodybg}{block body#1.bg} - \usebeamercolor[fg]{block body#1} \colorlet{beamer@tcb@bodyfg}{block body#1.fg} - \usebeamercolor[bg]{block title#1} + \usebeamercolor{block title#1} \colorlet{beamer@tcb@titlebg}{block title#1.bg} - \usebeamercolor[fg]{block title#1} - \colorlet{beamer@tcb@titlefg}{block title#1.fg} + \colorlet{beamer@tcb@titlefg}{block title#1.fg} + \usebeamercolor{normal text} } \beamer@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@tcb@rounded - \tcbset{ + \tcbsetforeverylayer{ arc=1.3mm, top=0.8mm, toptitle=0.2mm, bottom=0mm, + } +\else + \tcbsetforeverylayer{sharpish corners} +\fi + +\ifbeamer@tcb@shaded + \tcbsetforeverylayer{ title code app={ \shade[top color=beamer@tcb@titlebg,bottom color=beamer@tcb@bodybg] (title.south west) rectangle ([yshift=-0.5mm]title.south east); - } + } } -\else - \tcbset{sharpish corners} \fi \ifbeamer@tcb@shadow - \tcbset{drop fuzzy shadow=black!90} + \tcbsetforeverylayer{drop fuzzy shadow=black!90} \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -110,10 +121,10 @@ \setbeamertemplate{block begin}{% \beamer@tcb@colini \unless\ifbeamer@tcb@rounded - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \ifx\insertblocktitle\@empty\else - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \begin{tcolorbox}[ colback=beamer@tcb@bodybg, @@ -121,7 +132,7 @@ coltext=beamer@tcb@bodyfg, coltitle=beamer@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@tcb@colini[ alerted] \unless\ifbeamer@tcb@rounded - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \ifx\insertblocktitle\@empty\else - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \begin{tcolorbox}[ colback=beamer@tcb@bodybg, @@ -141,19 +152,19 @@ coltext=beamer@tcb@bodyfg, coltitle=beamer@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}} % example block \setbeamertemplate{block example begin}{% -\beamer@tcb@colini[ example] + \beamer@tcb@colini[ example] \unless\ifbeamer@tcb@rounded - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \ifx\insertblocktitle\@empty\else - \tcbset{title={\insertblocktitle}} + \tcbsetforeverylayer{title={\insertblocktitle}} \fi \begin{tcolorbox}[ colback=beamer@tcb@bodybg, @@ -161,7 +172,7 @@ coltext=beamer@tcb@bodyfg, coltitle=beamer@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}} diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf deleted file mode 100644 index b31b6f1688..0000000000 Binary files a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf and /dev/null differ diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf deleted file mode 100644 index 6e192a7254..0000000000 Binary files a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf and /dev/null differ diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf deleted file mode 100644 index 5b91d47c62..0000000000 Binary files a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf and /dev/null differ diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf index 2dcbeb4d6a..754ac99b4e 100644 Binary files a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf and b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf differ diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex index f4ff59f91c..2ec15bdaaf 100644 --- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex +++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex @@ -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 @@ In this simple configuration, the look and feel of the new blocks will be taken \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 @@ Beyond these two options, the users also has the myriads of options of the tcolo \documentclass{beamer} \usetheme{Ilmenau} \useinnertheme{tcolorbox} -\tcbset{ +\tcbsetforeverylayer{ boxrule=3pt, borderline={1pt}{0pt}{pink,dashed}, } -- cgit v1.2.3