Text Formatting ⇒ Boxed theorem tex
-
- Posts: 3
- Joined: Thu Jan 07, 2021 11:26 am
Boxed theorem tex
I want boxed-theorem such that theorems must be enumerated by sections, I found this code,I and I tried to do changes in order to enumerate theorems by sections but it didn't work!
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{boiboites}
\newboxedtheorem [ boxcolor=pink, background=white!5, titlebackground=pink!20,
titleboxcolor= black]{Theorem}{Theorem}
\begin{document}
\section{title}
\begin{Theorem}[Loi des grands nombres]
Soit $(X_n)_{n\in \mathbb{N}}$ une suite de variables aléatoires réelles
indépendantes identiquement distribuées telles que $X_1 \in L^1$. Alors :
\[\frac{1}{n} \sum_{i=1}^n X_i \overset{\textnormal{p.s.}}{\longrightarrow}
\mathbb{E} (X_1) .\]
\end{Theorem}
\end{document
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Boxed theorem tex
Disclaimer: I've never used this package, because it is not part of TeX Live and AFAIK not at CTAN and it even does not have a license statement. I would use tcolorbox instead. BTW: The author of boiboites himself recommend to use xeboiboites instead of boiboites:As for the options, there are a few. For example, thcounter=section will have your environment's counter go back to 0 whenever you enter a new section in your document: …
BTW: Please try to mark your code as code. This can be done easily by selecting it and clicking to thePlease consider trying xeboiboites.sty (still under development but with a lot more features !).
Code
-Button in the toolbar.
-
- Posts: 3
- Joined: Thu Jan 07, 2021 11:26 am
Boxed theorem tex
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Boxed theorem tex

BTW: If you use boiboites in a question you should always add a link to the package. The cost to find a package, that cannot be found on CTAN and is not part of TeX Live and MiKTeX, could deter helpers.

-
- Posts: 3
- Joined: Thu Jan 07, 2021 11:26 am