|
| 1 | + |
| 2 | +\usepackage{thmtools} |
| 3 | + |
| 4 | +%%% theorem-like envs |
| 5 | +\theoremstyle{definition} |
| 6 | + |
| 7 | +\declaretheoremstyle[spaceabove=0.5\topsep, |
| 8 | + spacebelow=0.5\topsep, |
| 9 | + headfont=\bfseries\sffamily, |
| 10 | + bodyfont=\normalfont, |
| 11 | + headpunct=., |
| 12 | + postheadspace=5pt plus 1pt minus 1pt]{myStyle} |
| 13 | +\declaretheoremstyle[spacebelow=\topsep, |
| 14 | + headfont=\bfseries\sffamily, |
| 15 | + bodyfont=\normalfont, |
| 16 | + headpunct=., |
| 17 | + postheadspace=5pt plus 1pt minus 1pt,]{myStyleWithFrame} |
| 18 | +\declaretheoremstyle[spacebelow=\topsep, |
| 19 | + headfont=\bfseries\sffamily, |
| 20 | + bodyfont=\normalfont, |
| 21 | + headpunct=., |
| 22 | + postheadspace=5pt plus 1pt minus 1pt, |
| 23 | + qed=\blacksquare]{myProofStyleWithFrame} |
| 24 | + |
| 25 | +\tcbuselibrary{breakable, skins} |
| 26 | +\tcbset{shield externalize} |
| 27 | +\tcbset{boxrule=0pt, |
| 28 | + sharp corners, |
| 29 | + borderline west={0.3mm}{0pt}{black}, |
| 30 | + frame hidden, |
| 31 | + enhanced, |
| 32 | + interior hidden, |
| 33 | + left=2mm, |
| 34 | + top = 1mm, |
| 35 | + bottom = 1mm, |
| 36 | + right = 0.5mm |
| 37 | +} |
| 38 | + |
| 39 | +% \tcolorboxenvironment{theorem}{} |
| 40 | +% \tcolorboxenvironment{theorem*}{} |
| 41 | +% \tcolorboxenvironment{axiom}{} |
| 42 | +% \tcolorboxenvironment{assertion}{} |
| 43 | +% \tcolorboxenvironment{lemma}{} |
| 44 | +% \tcolorboxenvironment{proposition}{} |
| 45 | +% \tcolorboxenvironment{corollary}{} |
| 46 | +\tcolorboxenvironment{definition}{} |
| 47 | +% \tcolorboxenvironment{proofReplace}{toprule=0mm,bottomrule=0mm,rightrule=0mm, colback=white, breakable } |
| 48 | + |
| 49 | +% \declaretheorem[name=Теорема, numberwithin=chapter, style=myStyleWithFrame]{theorem} |
| 50 | +% \declaretheorem[name=Теорема, numbered=no, style=myStyleWithFrame]{theorem*} |
| 51 | +% \declaretheorem[name=Аксиома, sibling=theorem, style=myStyleWithFrame]{axiom} |
| 52 | +% \declaretheorem[name=Преположение, sibling=theorem, style=myStyleWithFrame]{assertion} |
| 53 | +% \declaretheorem[name=Лемма, sibling=theorem, style=myStyleWithFrame]{lemma} |
| 54 | +% \declaretheorem[name=Предложение, sibling=theorem, style=myStyleWithFrame]{proposition} |
| 55 | +% \declaretheorem[name=Следствие, numberwithin=theorem, style=myStyleWithFrame]{corollary} |
| 56 | + |
| 57 | +\declaretheorem[name=Определение, numberwithin=chapter, style=myStyleWithFrame]{definition} |
| 58 | +% \declaretheorem[name=Свойство, numberwithin=chapter, style=myStyle]{property} |
| 59 | +% \declaretheorem[name=Свойства, numbered=no, style=myStyle]{propertylist} |
| 60 | + |
| 61 | +\declaretheorem[name=Пример, numberwithin=chapter, style=myStyle]{example} |
| 62 | +\declaretheorem[name=Замечание, numbered=no, style=myStyle]{remark} |
| 63 | + |
| 64 | +% \declaretheorem[name=Доказательство, numbered=no, style=myProofStyleWithFrame]{proofReplace} |
| 65 | +% \renewenvironment{proof}[1][\proofname]{\begin{proofReplace}}{\end{proofReplace}} |
| 66 | +% \declaretheorem[name=Доказательство, numbered=no, style=myProofStyleWithFrame]{longProof} |
0 commit comments