使用``\bclogo``创建不同形式的块

使用``\bclogo``创建不同形式的块

使用以下代码

\documentclass[12pt,a4paper]{report}
\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm}
\usepackage[tikz]{bclogo}
\usepackage[francais]{babel}
\usepackage{pifont} %bouni
\usepackage{fancybox} %pour faire l'encadrement
\usepackage[latin1]{inputenc}
\usepackage{verbatim}
\usepackage{color}
%\usepackage{hyperref}
\usepackage[final]{pdfpages} %pour inserer une page pdf
\usepackage{fancyhdr} % pagestyle
%---- Dimensions des marges ---
\usepackage{geometry}
\geometry{left=2cm,right=2cm,top=2cm,bottom=2cm}
%\usepackage{setspace}
%\onehalfspacing
%----
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newtheorem{definition}{Définition}
\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{Théorème}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{definition}
aaaaa
\end{definition}

\begin{proposition}
bbbbb
\end{proposition}

\begin{theorem}
ccccc
\end{theorem}
\end{document}

我明白了

在此处输入图片描述

我想创建 3 个不同的块,\bclogo如下图所示

在此处输入图片描述

在此处输入图片描述

答案1

这是一个起始代码,它是这个帖子

在此处输入图片描述

% Source: https://tex.stackexchange.com/a/444278/6880

\documentclass[11pt,a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[french]{babel}

\usepackage[tikz]{bclogo}


\newcounter{deftheoandco}
\counterwithin{deftheoandco}{section}


\newenvironment{definition}{
    \refstepcounter{deftheoandco}
    \begin{bclogo}[couleur = blue!10,
                   logo = \bcplume]{Définition \thedeftheoandco}
}{
    \end{bclogo}
}


\newenvironment{example}{
    \refstepcounter{deftheoandco}
    \begin{bclogo}[couleur = white!10,
                   logo = \bccle]{Exemple \thedeftheoandco}
}{
    \end{bclogo}
}


\newenvironment{theorem}{
    \refstepcounter{deftheoandco}
    \begin{bclogo}[couleur = blue!10,
                   logo = \bcplume]{Théorème \thedeftheoandco}
}{
    \end{bclogo}
}


\newenvironment{proof}{
    \begin{bclogo}[couleur = white!10,
                   logo = \bccle]{Démonstration}
}{
    \end{bclogo}
}


\newcommand\blabla{Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla...}

\begin{document} 

\section{C'est un début...}

\begin{definition}
    \blabla{}
\end{definition}

\begin{example}
    \blabla{}
\end{example}

\begin{proof}
    \blabla{}
\end{proof}

\begin{theorem}
    \blabla{}
\end{theorem}

\end{document}

相关内容