I'm using the package tcolorbox
with the theorems
library and it's giving me the following problem:
\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fourier}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem[number within=section]{teorema}{Teorema}%
{colback=black!5,colframe=black!35!black,fonttitle=\bfseries}{th}
\begin{document}
\section{MyTheorem}
\begin{teorema}{MyTheorem}
This text loses one characther.
\end{teorema}
\end{document}
And when I type between the \begin{teorema}
and \end{teorema}
, it loses the first character. And if try to use the \input
command in that environment
I get a error related to:
missing \endcsname inserted.
One solution is typing two times the first letter of my text... but I don't like that.
\end{teorema}
in your code