I currently have this command:
\NewDocumentCommand{\deq}{omo}{%
\begin{tcolorbox}[
colback = blizzardblue!30!white,
colframe = white,
]
\setlength{\abovedisplayskip}{0pt}
\begin{flalign}
\IfValueT{#1}{\text{\Emph{#1}}} && #2 &&
\end{flalign}
\IfValueT{#3}{\emph{#3}}
\end{tcolorbox}\noindent
}
and this code:
\deq[Equation's title]{pV = nRT}
that produces
I'm looking for a way to improve that command to be able to write more than 1 equation. For example, with this code:
\documentclass{book}
\usepackage[italicdiff]{physics}
\usepackage[scr = rsfso]{mathalfa}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{tcolorbox}
\tcbuselibrary{skins, breakable, hooks, theorems}
\usepackage{xcolor}
\definecolor{blizzardblue}{rgb}{0.4, 0.6, 0.8}
\begin{document}
\begin{tcolorbox}[
colback = blizzardblue!30!white,
colframe = white]
\begin{gather}
\begin{align}
\qty(\pdv{T}{V})_S &= -\qty(\pdv{p}{S})_V \\
\qty(\pdv{T}{p})_S &= +\qty(\pdv{V}{S})_p \\
\qty(\pdv{S}{V})_T &= +\qty(\pdv{p}{T})_V \\
\qty(\pdv{S}{p})_T &= -\qty(\pdv{V}{T})_p
\end{align}
\end{gather}
\end{tcolorbox}
\end{document}
I'd like to be able to produce this (edited figure):
for any number of equations. Of course, I'm able to use tcolorbox
environment and gather
/ equation
environment to write something like that but I can't place -- in the right place -- the equation title. The "right place" is maximally separated (and automatically) from the equations but also centered vertically to all the equations (and of the tcolorbox environment).
The ideal answer to this question would be a new command for N equations with an optional title (which must be centered vertically and maximally separated from the equations). Thanks for reading and helping!