创建有趣的数学家庭作业

创建有趣的数学家庭作业

当我写下面的布朗运动练习时,我无法摆脱和之间的空间,\sec\exercise看起来像这样

更新: 由于我使用了 @Schrödinger 猫的评论,我能够消除间隙。诀窍是只需\vskip1cm在末尾删除即可\newcommand{\chap}[1]{. 。现在我的问题是:是否有其他软件包可以创建与我用 TIKZ 创建的相同的工作表。

在此处输入图片描述

\documentclass[12pt,a4paper]{article}
\usepackage[left=1.5cm,top=1cm,right=1.5cm,bottom=60pt]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb ,amsfonts,xcolor,tikz}
\usepackage{multicol}
\usepackage{enumitem}
\usetikzlibrary{calc}
\definecolor{col1}{RGB}{12, 102, 98}
\definecolor{col2}{RGB}{248, 193, 12}
\definecolor{col3}{RGB}{236, 67, 1}
\usepackage{eso-pic}
\AddToShipoutPictureBG{
\begin{tikzpicture}[remember picture,overlay]
\fill[col1] (current page.north west)rectangle([shift={(1,0)}]current page.south west);
\fill[col2] (current page.north east)--++(-0.9,0)--++(0,-7.5)to[out=-60,in=180]++(0.9,-0.5)--cycle;
\node[red,rotate=90] at([shift={(-0.45,-4.7)}]current page.north east){{\Large \textbf{\sffamily MATHEMATICS}}};
\node[white,rotate=90] at([shift={(0.5,-4.7)}]current page.north west){{\Large \textbf{\sffamily Financial Mathematics}}};
\node[white,rotate=90] at([shift={(0.5,-23)}]current page.north west){{\Large \textbf{\sffamily Prof Mohcine Educ}}};   
\end{tikzpicture}
}
\newcounter{chpn}
\setcounter{chpn}{1}
\newcommand{\chap}[1]{
\begin{tikzpicture}[remember picture,overlay]
\node[fill=col1,rectangle ,text width=13cm,anchor=west,inner xsep=3cm,inner ysep=0.3cm](A) at([shift={(1.5,-1)}]current page.north west){{\Large \textbf{\sffamily\color{white} CHAPITER \arabic{chpn}: #1}}};  
\draw[line width=4.8pt,col1] ($(A.north west)!0.5!(A.south west)$ )--++(-2.5,0) ;
\draw[line width=4.8pt,col1] ([shift={(-0.11,0)}]$(A.north east)!0.5!(A.south east)$ )--++(1,0) ;
\end{tikzpicture}
\vskip1cm}
\newcommand{\sect}[1]{\begin{tcolorbox}[colframe=white,top=2pt,bottom=2pt,colback=red!14]
\centering \textbf{#1}
    \end{tcolorbox}
 }
\setlength{\columnsep}{30pt}
\setlength{\columnseprule}{0.2pt}
\setlength{\parindent}{0pt}%
\usepackage[most]{tcolorbox}
\newtcolorbox[auto counter ]{Exercice}[1][]{
    enhanced,left=0pt,top=8pt,frame hidden,bottom=0pt,before upper={\hspace*{1cm}} ,colback=white,
    interior code app={\node[fill=col3, anchor=west,text width=0.5cm,text badly centered]at ([shift={(0.1,-0.5)}]frame.north west){{\large\color{white} \textbf{\centering\thetcbcounter}}};},nobeforeafter}
\begin{document}
\chap{Brownian motion}
\begin{multicols*}{2}
    \sect{Correlated Brownian motion.}
    \begin{Exercice}math math math math math math math math math math math math math math math
        \begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
            \item math math math math
            \item math math math math
            \item math math math math
            \item math math math math
            \item math math math math
            \item math math math math
            \item math math math math
        \end{enumerate}
    \end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
    \sect{Correlated Brownian motion.}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\begin{Exercice}math math math math math math math math math math math math math math math
\begin{enumerate}[label=\textbf{\color{col3}\arabic*.}]
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
    \item math math math math
\end{enumerate}
\end{Exercice}
\end{multicols*}
\end{document} 

相关内容