I am trying to use \newline in the columns environment but it doesn't seem to work. This is the minimum working code.
\documentclass{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\usefonttheme{serif}
\setbeamertemplate{frame numbering}[fraction]
\usepackage{tcolorbox}
\usepackage{xcolor}
\begin{document}
\begin{frame}
\frametitle{test}
\begin{columns}
\begin{column}{0.46\textwidth}
\begin{itemize}
\item bloop
\item foo
\end{itemize}
\end{column}
\begin{column}{0.65\textwidth}
\begin{itemize}
\item test
\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,hbox]
\scriptsize\texttt{line1}
\scriptsize\texttt{line2}
\end{tcolorbox}
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
I am trying to get "line1" and "line2" in two separate lines. Could you please give me a hint on how to achieve this. Thanks in advance.


columnsenvironment but more related to thetcolorboxenvironment in which the two lines are placed. – leandriis Nov 01 '20 at 09:38beamerdocumentclass beut definitely caused by thehboxoption of yourtcolorboxenvironment. Regarding the use of\newline: In a normal document there should almost nerver be the need to explicitly use\newline. – leandriis Nov 01 '20 at 09:48\textwidthwhich may well make them fail to be projected if you present this – David Carlisle Nov 01 '20 at 10:14