diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-17 00:24:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-17 00:24:04 +0000 |
commit | 69c340802da3a11fda1c3dbdadb4e662641ded3e (patch) | |
tree | d11dbeebf6b099cf470992d100a35285c7a25e3c /Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex | |
parent | 9b7f02456f07c3bbf73fe1c3376b8d96e5723b3c (diff) |
tcolorbox (16feb17)
git-svn-id: svn://tug.org/texlive/trunk@43255 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex index cdf2ed93b90..f4d0fd0ca72 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 3.96 (2016/11/18) +%% The LaTeX package tcolorbox - version 4.00 (2017/02/16) %% tcbskins.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2016 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> +%% Copyright (c) 2006-2017 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.96} +\tcb@set@library@version{4.00} \RequirePackage{tikz}[2010/10/13] @@ -1815,6 +1815,33 @@ graphics directory/.store in=\kvtcb@graphics@directory, } +\newcommand{\tcbhypernode}[2]{\ifdefined\hypersetup\@ifundefined{pgf@sh@ns@#2}{}{% + \node[inner sep=0pt,outer sep=0pt] at (#2.center){% + \tcbsetmacrotowidthofnode\tcb@w@hn{#2}% + \tcbsetmacrotoheightofnode\tcb@h@hn{#2}% + \hypersetup{pdfborder=0 0 0}% + #1{\vtop to \dimexpr\tcb@h@hn-2bp\relax{\hbox to \dimexpr\tcb@w@hn-2bp\relax{}\vfil}}% + };% +}\fi} + +\tcbset{% + hyperref node/.style 2 args={finish={\tcbhypernode{\hyperref[#1]}{#2}}}, + hyperref/.style={hyperref node={#1}{frame}}, + hyperref interior/.style={hyperref node={#1}{interior}}, + hyperref title/.style={hyperref node={#1}{title}}, + hyperlink node/.style 2 args={finish={\tcbhypernode{\hyperlink{#1}}{#2}}}, + hyperlink/.style={hyperlink node={#1}{frame}}, + hyperlink interior/.style={hyperlink node={#1}{interior}}, + hyperlink title/.style={hyperlink node={#1}{title}}, + hyperurl node/.style 2 args={finish={\tcbhypernode{\href{#1}}{#2}}}, + hyperurl/.style={hyperurl node={#1}{frame}}, + hyperurl interior/.style={hyperurl node={#1}{interior}}, + hyperurl title/.style={hyperurl node={#1}{title}}, + hyperurl* node/.style n args={3}{finish={\tcbhypernode{\href[#1]{#2}}{#3}}}, + hyperurl*/.style 2 args={hyperurl* node={#1}{#2}{frame}}, + hyperurl* interior/.style 2 args={hyperurl* node={#1}{#2}{interior}}, + hyperurl* title/.style 2 args={hyperurl* node={#1}{#2}{title}}, +} \tcbset{% reset@skins/.style={% |