0

The following code will output parentheses around the theorem name "plain".

\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\begin{document}
\begin{theorem}[theorem style=plain]{plain}{}
This is my theorem. \begin{equation*} a^2 + b^2 = c^2. \end{equation*}
\end{theorem}
\end{document}

I want to remove these parentheses.

https://ftp.jaist.ac.jp/pub/CTAN/macros/latex/contrib/tcolorbox/tcolorbox.pdf#page=379

3
  • 2
    Welcome! Can you please give a complete minimal example? In particular it is necessary to know what packages you are using.
    – mickep
    Commented Feb 22, 2022 at 9:39
  • 1
    That example cannot and does not compile.
    – daleif
    Commented Feb 22, 2022 at 9:57
  • Have a look at ctan.org/pkg/amsthm section 4.3.
    – Celdor
    Commented Feb 22, 2022 at 10:39

2 Answers 2

1
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem{theorem}{Theorem}{theorem style=plain,
         description delimiters none, % <-------------
         fonttitle=\bfseries\upshape,fontupper=\itshape,
         colframe=green!50!black,colback=green!10!white,
         colbacktitle=green!20!white,coltitle=blue!75!black
                                }{theo}
\begin{document}
\begin{theorem}{plain}{}
This is my theorem. \begin{equation*} a^2 + b^2 = c^2. \end{equation*}
\end{theorem}
\end{document}
0

enter image description here

\documentclass{article}
\usepackage{mathtools}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}Plain.
This is my theorem. 
\begin{equation*} a^2 + b^2 = c^2. \end{equation*}
\end{theorem}
\end{document}
1
  • 1
    I need colored box.
    – user264127
    Commented Feb 22, 2022 at 10:21

You must log in to answer this question.