thmtools
thmtools copied to clipboard
Skip the title of the theorem but leave the [].
Hi, I would like to be able to write the theorem with the [], but without writing something in it, I would like to leave it blank and still be able to use the theorem, without latex which tells me that there's an error.
This is the discussion when another one originally posted the same question: https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem
Thanks for your report. I've added an answer to your tex-sx question.
It may take more time to conform if this is a bug or some undocumented "feature".
Hi, Thank you for the answer, It works if you put your code in the Preamble of latex, but it doesn’t work when you try to put it while changing the Theorem style, for example in the “answer” I posted, I report that. Answer https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem/659463#659463 (https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem/659463#659463 https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem/659463#659463) Francesco Meccariello
Il giorno 24 set 2022, alle ore 22:46, muzimuzhi @.***> ha scritto:
Thanks for your report. I've added an answer https://tex.stackexchange.com/a/659412 to your tex-sx question.
It may take more time to conform if this is a bug or some undocumented "feature".
— Reply to this email directly, view it on GitHub https://github.com/muzimuzhi/thmtools/issues/30#issuecomment-1257062631, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZXMVZC62XJDOXQQNU53DDV75SDDANCNFSM6AAAAAAQUVWPFU. You are receiving this because you authored the thread.
I saw they deleted my question (because I wrongly published it as an answer) but I send you the code I posted:
\documentclass{book}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\usepackage{amsmath, mathtools, amsthm, amssymb}\usepackage{textcomp}\usepackage{sidenotes}\usepackage[italian]{babel}\usepackage{url}% \usepackage{geometry} servirebbe per far funzionare il package per gli esercizi, ma dovresti prima far impostare i margini tu stesso.\usepackage{graphicx}\usepackage{float}\usepackage{esint}\usepackage{lipsum}\usepackage{derivative}\usepackage{booktabs}\usepackage{wrapfig}\usepackage{multirow}\usepackage{enumitem}% \usepackage{parskip}\usepackage{emptypage}\usepackage{subcaption}\usepackage{fontawesome,blindtext}\usepackage{multicol}\usepackage[usenames,dvipsnames]{xcolor}\usepackage{mathrsfs}\usepackage{marginnote}\usepackage{placeins}\usepackage{cancel}\usepackage{bm}\usepackage{systeme}\let\svlim\lim\def\lim{\svlim\limits}\let\implies\Rightarrow\let\impliedby\Leftarrow\let\iff\Leftrightarrow\let\epsilon\varepsilon\usepackage{stmaryrd} % for \lightning\newcommand\contra{\scalebox{1.1}{$\lightning$}}% correct\definecolor{correct}{HTML}{009900}\newcommand\correct[2]{\ensuremath{:}{\color{red}{#1}}\ensuremath{\to }{\color{correct}{#2}}\ensuremath{:}}\newcommand\green[1]{{\color{correct}{#1}}} \usepackage{hyperref}\hypersetup{ colorlinks=, linkcolor=, filecolor=, urlcolor=, } % horizontal rule\newcommand\hr{ \noindent\rule[0.5ex]{\linewidth}{0.5pt} } % questo codice permette di scrivere equazioni in \align senza lasciare molti spazi vuoti.\allowdisplaybreaks
% hide parts\newcommand\hide[1]{} % si unitx\usepackage{siunitx}\sisetup{locale = FR}
% tikz\usepackage{tikz}\usepackage{tikz-cd}\usetikzlibrary{intersections, angles, quotes, calc, positioning}\usetikzlibrary{arrows.meta}\usepackage{pgfplots}\pgfplotsset{compat=1.13}
\tikzset{ force/.style={thick, {Circle[length=2pt]}-stealth, shorten <=-1pt} } % theorems\makeatother\usepackage{thmtools}\usepackage[framemethod=TikZ]{mdframed}\mdfsetup{skipabove=1em,skipbelow=0em} @.*** {% @.@.\else @.}% \fi } {% @. @.@. \else @.***}% \fi \fi } {}{\PatchFailed}\makeatother
\declaretheoremstyle[ headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, mdframed={ linewidth=2pt, rightline=false, topline=false, bottomline=false, linecolor=RawSienna, backgroundcolor=RawSienna!5, } ]{thmredbox}
\declaretheorem[style=thmredbox, name=Theorem]{Teorema}
\begin{document}\begin{Teorema} body\end{Teorema} \begin{Teorema} body\end{Teorema} \begin{Teorema}[title] body \end{Teorema}\end{document}
Il giorno dom 25 set 2022 alle ore 14:15 francesco meccariello < @.***> ha scritto:
Hi, Thank you for the answer, It works if you put your code in the Preamble of latex, but it doesn’t work when you try to put it while changing the Theorem style, for example in the “answer” I posted, I report that. Answer https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem/659463#659463 ( https://tex.stackexchange.com/questions/657340/how-to-skip-the-title-of-a-theorem/659463#659463 ) Francesco Meccariello
Il giorno 24 set 2022, alle ore 22:46, muzimuzhi @.***> ha scritto:
Thanks for your report. I've added an answer https://tex.stackexchange.com/a/659412 to your tex-sx question.
It may take more time to conform if this is a bug or some undocumented "feature".
— Reply to this email directly, view it on GitHub https://github.com/muzimuzhi/thmtools/issues/30#issuecomment-1257062631, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZXMVZC62XJDOXQQNU53DDV75SDDANCNFSM6AAAAAAQUVWPFU . You are receiving this because you authored the thread.Message ID: @.***>