-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coltitle in subtitle not working. #189
Comments
Not sure if it's too late to add redirection for title options used in |
I think, @muzimuzhi has given all needed explanations. So, using \documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\begin{document}
\begin{tcolorbox}[colback=red!20,colframe=red,size=small, boxrule=0pt,
subtitle style={boxrule=0pt, toprule=1pt, bottomrule=1pt, colback=white},
title={First Title}]
First Content
\tcbsubtitle[colupper=black]{SubTitle}
Second Content
\end{tcolorbox}
\begin{tcolorbox}[colback=red!20,colframe=red,size=small, boxrule=0pt,
subtitle style={colupper=black, boxrule=0pt, toprule=1pt, bottomrule=1pt, colback=white},
title={First Title}]
First Content
\tcbsubtitle{SubTitle}
Second Content
\end{tcolorbox}
\end{document} |
Sorry for disappearing. Perhaps add a clarification to the documentation? Page 26, where subtitle is described talks about how it's an independent tcolorbox, which implies the same settings work. One of the examples could be given a different title color, or maybe a list of settings that don't get inherited (if there's more than one). |
The next version will have an example with redish subtitles: |
The subtitle always inherits the color of the main title, instead of being overridden by specific options.
Small example:
produces
Similarly, setting the main coltitle to black produces
The text was updated successfully, but these errors were encountered: