4

I'm doing this:

\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[colframe=red,frame empty,leftrule=1pt]
Hello, world!
\end{tcolorbox}
\end{document}

Obviously, this doesn't work. But I can't understand, what is the right combination of options so that only the left rule is visible, while all others are hidden.

BTW, if I remove frame empty and set rightrule=0pt and so on, I still see a thin border around the box, as explained here.

yegor256
  • 12,021

1 Answers1

6
\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[boxrule=0pt,frame hidden,sharp corners,enhanced,borderline west={1pt}{0pt}{red}]
Hello, world!
\end{tcolorbox}
\end{document}

enter image description here

Ulrike Fischer
  • 327,261