答案1
以下是我们如何用 来实现的tcolorbox
:
\documentclass{article}
\usepackage[skins]{tcolorbox}
\usepackage{lipsum}
\newtcolorbox{mytcolorbox}[1]{
enhanced,
colback=white,
colframe=gray,
coltitle=black,
fonttitle=\bfseries\LARGE,
detach title,
boxrule=2pt,
leftrule=0pt,
top=1mm,
attach title to upper={\par},
sharp corners,
borderline west={5pt}{0pt}{red!70!blue},
title=#1
}
\begin{document}
\begin{mytcolorbox}{Tip Box Title}
\lipsum[1-2]
\end{mytcolorbox}
\end{document}