For example, if I have a newtcbtheorem in which I have a first entry#1=name of corollary and a second entry=label of corollary, could I add a third entry=Corollary of Theorem \ref{th:#3}?
See this example
\documentclass{book}
\usepackage[svgnames,x11names]{xcolor}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{stix}
\usepackage[most]{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem[number within=subsection] {goldtheorem}{Theorem}{nobeforeafter,tcbox raise base,enhanced,boxrule=0pt,interior style={top color=Gold1!10!white,bottom color=Gold1!10!white, middle color=Gold1!50!yellow,},colframe=red,fuzzy halo=1pt with Gold1,description color = black, coltitle=black,fonttitle=\bfseries,separator sign={\ ---},#1,}{th}
% New Corollaries
\newtcbtheorem[number within=subsection, use counter from=goldtheorem] {goldcorolth}{Corollary of \ref{th:#3}}{nobeforeafter, tcbox raise base,enhanced,boxrule=0pt,interior style={top color=Gold1!10!white,bottom color=Gold1!10!white, middle color=Gold1!50!yellow,},colframe=red,fuzzy halo=1pt with Gold1,description color = black, coltitle=black,fonttitle=\bfseries, theorem label supplement={hypertarget={Tcolor-#3}}
separator sign={\ ---},#1}{th}
\begin{document}
\section{Added of the Corollaries}
\begin{goldtheorem}{A Theorem}{T1}
\begin{statement}
\end{statement}
\end{goldtheorem}
\begin{proof}
Its Proof.
\end{proof}
\noindent\begin{goldcorolth}{A Corollary} {CorolT}
\end{goldcorolth}
But I'd like to have this:
\noindent\begin{tcolorbox}[title={Corollary of Theorem 1.2.0.1 --- 1.2.0.2 --- A Corollary}, nobeforeafter,tcbox raise base,enhanced,boxrule=0pt,interior style={top color=Gold1!10!white,bottom color=Gold1!10!white, middle color=Gold1!50!yellow,},colframe=red,fuzzy halo=1pt with Gold1,description color = black, coltitle=black,fonttitle=\bfseries,separator sign={\ ---}]
\end{tcolorbox}
\end{document}
Is It possible?
Best Answer
My comment was wrong. Any
tcbtheorem
accepts an optional parameter.With this optional parameter is possible to construct a particular
title
like OP wants: