texlive[64208] Master/texmf-dist: beamertheme-tcolorbox (27aug22)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 27 22:18:37 CEST 2022


Revision: 64208
          http://tug.org/svn/texlive?view=revision&revision=64208
Author:   karl
Date:     2022-08-27 22:18:36 +0200 (Sat, 27 Aug 2022)
Log Message:
-----------
beamertheme-tcolorbox (27aug22)

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

Added 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-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md	2022-08-27 20:18:36 UTC (rev 64208)
@@ -1,8 +1,8 @@
-# TikZbricks
+# beamertheme-tcolorbox
 
 A beamer inner theme which reproduces standard beamer blocks using tcolorboxes
 
-Current version: 2022/08/26 version v0.1
+Current version: 2022/08/27 version v0.2
 
 This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
 

Added: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf
===================================================================
(Binary files differ)

Index: 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-1.pdf	2022-08-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf	2022-08-27 20:18:36 UTC (rev 64208)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf
===================================================================
(Binary files differ)

Index: 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-2.pdf	2022-08-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf	2022-08-27 20:18:36 UTC (rev 64208)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf	2022-08-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf	2022-08-27 20:18:36 UTC (rev 64208)

Property changes on: trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
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-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex	2022-08-27 20:18:36 UTC (rev 64208)
@@ -21,71 +21,53 @@
 \usepackage[utf8]{inputenc}		
 \usepackage[english]{babel}
 \usepackage[bitstream-charter]{mathdesign}
-%\usepackage{duckuments}
-\usepackage{tikz}
-\usetikzlibrary{matrix}
 \usepackage[most]{tcolorbox}
-\usepackage[paper=a4paper,margin=2.9cm]{geometry}
-\usepackage{url}
-\usepackage{xspace}
+\usepackage[paper=a4paper,hmargin=2.9cm,vmargin=2.5cm]{geometry}
 \usepackage{scrlayer-scrpage} 
-\usepackage[hang,flushmargin,bottom]{footmisc}
 \usepackage[colorlinks=true,breaklinks=true,urlcolor=blendedblue,linkcolor=blendedblue,citecolor=blendedblue,filecolor=blendedblue]{hyperref}
 
-% macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\CTAN}{\textsc{CTAN}\xspace}
-\newcommand{\TikZ}{Ti\emph{k}Z\xspace}
-\newcommand{\miktex}{MiK\TeX\xspace}
-\newcommand{\texlive}{\TeX{}Live\xspace}
-
 % customisation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \definecolor{blendedblue}{rgb}{0.2,0.2,0.7}
-\definecolor{marmotred}{RGB}{140,20,40}
 \addtokomafont{sectioning}{\color{blendedblue}}
 \addtokomafont{date}{\normalsize}
 \addtokomafont{author}{\normalsize}
-\setlength{\footnotemargin}{0.7em}
 
-% from https://tex.stackexchange.com/a/147848
-\def\beginlstdelim#1#2#3%
-{%
-    \def\endlstdelim{#2\egroup}%
-    \ttfamily#1\bgroup\color{#3}\aftergroup\endlstdelim%
-}
-
-\lstdefinestyle{beamertheme-tcolorboxstyle}{%
+\lstdefinestyle{tcolorboxstyle}{%
 	language={[latex]TeX},
 	tabsize=2,
 	breaklines,
-	basicstyle=\footnotesize\ttfamily,
-	commentstyle={\color{teal}\slshape}, 
+	basicstyle=\ttfamily,
 	columns=fullflexible,
-	texcsstyle=*\color{blendedblue}\bfseries,
-	keywordstyle=\color{red!60!black}\bfseries,
-	morekeywords={tikzpicture,scope},
-	moretexcs={path,node,draw,clip,pic,includegraphics,color,piece,tile,beamertheme-tcolorbox},
-	delim ={[s][\ttfamily\color{green!50!black}]{$}{$}},
-	moredelim=[is][\footnotesize\ttfamily\color{orange!70!black}]{|}{|},
-	moredelim={[s][\color{gray}]{<}{>}},
-%	moredelim = **[is][\beginlstdelim{\{}{\}}{orange!70!black}]{\{}{\}},
-%	moredelim = **[is][\beginlstdelim{[}{]}{orange!70!black}]{[}{]},
+%	texcsstyle=*\color{blendedblue}\bfseries,
+%	moretexcs={usetheme,useinnertheme},
 }
 
 \tcbset{%
-	colframe=blendedblue,
+  toptitle=1mm,
+  left=2mm,
+  title={Example},
+  fonttitle=\large\sffamily,
+  colbacktitle=blendedblue!75!black,
+	colframe=blendedblue!75!black,
+  colback=blendedblue!75!black!10!white,
+  boxrule=0cm,
+  frame hidden,
+  arc=1.3mm,
 	arc=2mm,
-	fonttitle=\bfseries,
 	sidebyside,
-	listing options={style=beamertheme-tcolorboxstyle},
-%	center lower,
-%	righthand width=6cm,
+	listing options={style=tcolorboxstyle},
 	bottom=0pt, 
 	top=0pt,
-%	sidebyside gap=10pt,
   lower separated=false,
+  comment style={scale=2},
+  enhanced,
+  drop fuzzy shadow=black!90,
+  title code app={
+    \shade[top color=blendedblue!75!black,bottom color=blendedblue!75!black!10!white] (title.south west) rectangle ([yshift=-1mm]title.south east); 
+  }        
 }
 
-\lstset{style=beamertheme-tcolorboxstyle}
+\lstset{style=tcolorboxstyle}
 
 % meta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \title{The tcolorbox beamer inner theme}
@@ -94,9 +76,9 @@
 	\texorpdfstring{
 		\texttt{samcarter}\\
 		\url{https://github.com/samcarter/beamertheme-tcolorbox}\\
-%		\url{https://www.ctan.org/pkg/beamertheme-tcolorbox}
+		\url{https://www.ctan.org/pkg/beamertheme-tcolorbox}
 	}{samcarter}}
-\date{Version v0.1 \textendash{} 2022/08/26}
+\date{Version v0.2 \textendash{} 2022/08/27}
 
 \begin{document}
 \maketitle
@@ -108,8 +90,10 @@
 
 For all these cases, there is now an alternative to the default beamer blocks: The tcolorbox inner beamer theme will replace the usual beamer mechanism to draw blocks with tcolorboxes. The tcolorboxes will automatically adopt the look and feel (round vs.\ sharp corners and shadows) as well as the colours of the normal beamer blocks.
 
-%The package is included in both \texlive and \miktex and available from \CTAN (\url{https://ctan.org/pkg/beamertheme-tcolorbox}). 
-The development version of this package is located at \url{github.com/samcarter/beamertheme-tcolorbox}. If you have any problems, ideas or other feedback, please make constructive use of the issue tracker.
+The package is included in \TeX{}Live 
+%and MiK\TeX\ 
+and available from \textsc{CTAN} (\url{https://www.ctan.org/pkg/beamertheme-tcolorbox}). 
+The development version of this package is located at \url{https://github.com/samcarter/beamertheme-tcolorbox}. If you have any problems, ideas or other feedback, please make constructive use of the issue tracker.
 
 Copyright \raisebox{0.2em}{\tiny\fontfamily{cmr}\selectfont\textcopyright} \texttt{samcarter}. Permission is granted to copy, distribute and\slash or modify this software under the terms of the LaTeX project public licence, version 1.3c or later \url{http://www.latex-project.org/lppl.txt}.
 
@@ -116,7 +100,7 @@
 \section{Usage}
 
 The basic usage is fairly simple. One just needs to load the theme via 
-\begin{tcolorbox}
+\begin{tcolorbox}[title={}]
 \begin{lstlisting}
 \useinnertheme{tcolorbox}
 \end{lstlisting}
@@ -133,7 +117,6 @@
   freeze pdf,
   compilable listing,
   run pdflatex,
-%  righthand width=8cm
 }
 \documentclass{beamer}
 \usetheme{Madrid}
@@ -157,7 +140,7 @@
 
 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|).
 
-\begin{tcolorbox}
+\begin{tcolorbox}[title={}]
 \begin{lstlisting}
 \useinnertheme[
   rounded
@@ -174,7 +157,6 @@
   freeze pdf,
   compilable listing,
   run pdflatex,
-%  righthand width=8cm
 }
 \documentclass{beamer}
 \usetheme{Antibes}
@@ -204,17 +186,14 @@
   freeze pdf,
   compilable listing,
   run pdflatex,
-%  righthand width=8cm
 }
 \documentclass{beamer}
 \usetheme{Ilmenau}
 \useinnertheme{tcolorbox}
-
 \tcbset{
   boxrule=3pt,
   borderline={1pt}{0pt}{pink,dashed},
 }
-
 \begin{document}
 \begin{frame}
 \begin{block}{Title}
@@ -234,11 +213,7 @@
 
 \begin{itemize}
 \item the tcolorbox inner theme is not yet optimised for the \lstinline|inmargin| inner  theme, which is e.g.\ used by the Bergen theme
-\item for themes which don't set the \lstinline|block body| colour, e.g.\ the default theme, the block body will be shown in the same colour as the title and instead of the normal text colour.
+\item at the moment, this theme only applies to blocks. Things like the title page, which directly use beamercolorboxes, won't be replaced by tcolorboxes
 \end{itemize}
 
-
-
-
-
-\end{document}
\ No newline at end of file
+\end{document}

Modified: trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty	2022-08-27 20:18:15 UTC (rev 64207)
+++ trunk/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty	2022-08-27 20:18:36 UTC (rev 64208)
@@ -12,13 +12,14 @@
 % See http://www.latex-project.org/lppl.txt
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{beamerinnerthemetcolorbox}[2022/08/26 version v0.1 Beamer blocks with tcolorboxes]
+\ProvidesPackage{beamerinnerthemetcolorbox}[2022/08/27 version v0.2 Beamer blocks with tcolorboxes]
 
-\RequirePackage[skins]{tcolorbox}
+\RequirePackage{tcolorbox}
+\tcbuselibrary{skins,hooks}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-% Theme Options 
+% Theme Options
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newif\ifbeamer at tcb@rounded
@@ -43,6 +44,24 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
+% Colours
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand{\beamer at tcb@colini}[1][]{
+  \usebeamercolor[bg]{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} 
+  \colorlet{beamer at tcb@titlebg}{block title#1.bg}
+  \usebeamercolor[fg]{block title#1} 
+  \colorlet{beamer at tcb@titlefg}{block title#1.fg}
+}
+\beamer at tcb@colini
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
 % General Settings
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -54,7 +73,11 @@
   boxrule=0cm,
   frame hidden,
   top=1.5mm,
-  bottom=0.5mm
+  bottom=0.5mm,
+  colback=beamer at tcb@bodybg,
+  colbacktitle=beamer at tcb@titlebg,
+  coltext=beamer at tcb@bodyfg,
+  coltitle=beamer at tcb@titlefg,
 }
 
 % optional settings
@@ -64,6 +87,9 @@
     top=0.8mm,
     toptitle=0.2mm,
     bottom=0mm,
+    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}
@@ -82,30 +108,20 @@
 
 % normal block
 \setbeamertemplate{block begin}{%
-  \usebeamercolor[bg]{block body} 
-  \usebeamercolor[bg]{block title}   
-  \colorlet{beamer at tcb@topshade}{block title.bg}  
-  \colorlet{beamer at tcb@bottomshade}{block body.bg}
-  \ifbeamer at tcb@rounded\else
+  \beamer at tcb@colini
+  \unless\ifbeamer at tcb@rounded
     \tcbset{title={\insertblocktitle}}
   \fi
   \ifx\insertblocktitle\@empty\else
     \tcbset{title={\insertblocktitle}}
-    \ifbeamer at tcb@rounded
-      \tcbset{
-        overlay={
-          \begin{scope}
-            \shade[top color=beamer at tcb@topshade,bottom color=beamer at tcb@bottomshade] (title.south west) rectangle ([yshift=-0.5mm]title.south east);
-          \end{scope}
-        }   
-      }
-    \fi
   \fi
   \begin{tcolorbox}[
-    colbacktitle=block title.bg,
-    colback=block body.bg,
-    before title={\usebeamercolor[fg]{block title}\usebeamerfont{block title}},
-    before upper={\usebeamercolor[fg]{block body}\usebeamerfont{block body}},        
+    colback=beamer at tcb@bodybg,
+    colbacktitle=beamer at tcb@titlebg,
+    coltext=beamer at tcb@bodyfg,
+    coltitle=beamer at tcb@titlefg,
+    before title={\usebeamerfont{block title}},
+    before upper={\usebeamerfont{block body}},        
   ]
 } 
 \setbeamertemplate{block end}{\end{tcolorbox}}
@@ -112,30 +128,20 @@
 
 % alert block
 \setbeamertemplate{block alerted begin}{%
-  \usebeamercolor[bg]{block body alerted} 
-  \usebeamercolor[bg]{block title alerted}   
-  \colorlet{beamer at tcb@topshade}{block title alerted.bg}  
-  \colorlet{beamer at tcb@bottomshade}{block body alerted.bg}
-  \ifbeamer at tcb@rounded\else
+  \beamer at tcb@colini[ alerted]
+  \unless\ifbeamer at tcb@rounded
     \tcbset{title={\insertblocktitle}}
   \fi  
   \ifx\insertblocktitle\@empty\else
     \tcbset{title={\insertblocktitle}}
-    \ifbeamer at tcb@rounded
-      \tcbset{
-        overlay={
-          \begin{scope}
-            \shade[top color=beamer at tcb@topshade,bottom color=beamer at tcb@bottomshade] (title.south west) rectangle ([yshift=-0.5mm]title.south east);
-          \end{scope}
-        }   
-      }
-    \fi
   \fi
   \begin{tcolorbox}[
-    colbacktitle=block title alerted.bg,
-    colback=block body alerted.bg,
-    before title={\usebeamercolor[fg]{block title alerted}\usebeamerfont{block title alerted}},
-    before upper={\usebeamercolor[fg]{block body alerted}\usebeamerfont{block body alerted}},    
+    colback=beamer at tcb@bodybg,
+    colbacktitle=beamer at tcb@titlebg,
+    coltext=beamer at tcb@bodyfg,
+    coltitle=beamer at tcb@titlefg,
+    before title={\usebeamerfont{block title alerted}},
+    before upper={\usebeamerfont{block body alerted}},    
   ]
 } 
 \setbeamertemplate{block alerted end}{\end{tcolorbox}}
@@ -142,30 +148,20 @@
 
 % example block
 \setbeamertemplate{block example begin}{%
-  \usebeamercolor[bg]{block body example} 
-  \usebeamercolor[bg]{block title example}   
-  \colorlet{beamer at tcb@topshade}{block title example.bg}  
-  \colorlet{beamer at tcb@bottomshade}{block body example.bg}
-  \ifbeamer at tcb@rounded\else
+\beamer at tcb@colini[ example]
+  \unless\ifbeamer at tcb@rounded
     \tcbset{title={\insertblocktitle}}
   \fi  
   \ifx\insertblocktitle\@empty\else
     \tcbset{title={\insertblocktitle}}
-    \ifbeamer at tcb@rounded
-      \tcbset{
-        overlay={
-          \begin{scope}
-            \shade[top color=beamer at tcb@topshade,bottom color=beamer at tcb@bottomshade] (title.south west) rectangle ([yshift=-0.5mm]title.south east);
-          \end{scope}
-        }   
-      }
-    \fi
   \fi
   \begin{tcolorbox}[
-    colbacktitle=block title example.bg,
-    colback=block body example.bg,
-    before title={\usebeamercolor[fg]{block title example}\usebeamerfont{block title example}},
-    before upper={\usebeamercolor[fg]{block body example}\usebeamerfont{block body example}},      
+    colback=beamer at tcb@bodybg,
+    colbacktitle=beamer at tcb@titlebg,
+    coltext=beamer at tcb@bodyfg,
+    coltitle=beamer at tcb@titlefg,
+    before title={\usebeamerfont{block title example}},
+    before upper={\usebeamerfont{block body example}},      
   ]
 } 
 \setbeamertemplate{block example end}{\end{tcolorbox}}



More information about the tex-live-commits mailing list.