diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf | bin | 32138 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf | bin | 13501 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf | bin | 13736 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf | bin | 164900 -> 180151 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty | 57 |
7 files changed, 46 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md index 5049c78a1d6..20a504e5a1d 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/README.md +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf Binary files differdeleted file mode 100644 index b31b6f1688a..00000000000 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-1.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf Binary files differdeleted file mode 100644 index 6e192a7254f..00000000000 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-2.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf Binary files differdeleted file mode 100644 index 5b91d47c623..00000000000 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc-listing-3.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf Binary files differindex 2dcbeb4d6a8..754ac99b4e6 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf +++ b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.pdf diff --git a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex b/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex index f4ff59f91cf..2ec15bdaaf9 100644 --- a/Master/texmf-dist/doc/latex/beamertheme-tcolorbox/beamertheme-tcolorbox-doc.tex +++ b/Master/texmf-dist/doc/latex/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}, } diff --git a/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty b/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty index 3d5aaf5e93e..751c2754b42 100644 --- a/Master/texmf-dist/tex/latex/beamertheme-tcolorbox/beamerinnerthemetcolorbox.sty +++ b/Master/texmf-dist/tex/latex/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}} |