如何使多行文本居中tcolorbox
?
~\tcolorbox_helloworld> more .\helloworld.tex
\documentclass{article}
\usepackage[many]{tcolorbox}
\begin{document}
\begin{tcolorbox}[enhanced, colback=white, halign=center, valign=center, center]
hello
\newline
world
\end{tcolorbox}
\end{document}
给我 :
并使用额外的中心环境:
~\tcolorbox_helloworld> more .\helloworld.tex
\documentclass{article}
\usepackage[many]{tcolorbox}
\begin{document}
\begin{tcolorbox}[enhanced, colback=white, halign=center, valign=center, center]
\begin{center}
hello
\newline
world
\end{center}
\end{tcolorbox}
\end{document}
给我 :
仍然没有居中!