新的数学笔记latex格式分享
本文最后更新于62 天前,其中的信息可能已经过时,如有错误请发送邮件到2031853749@qq.com

比较好看耐用, 拿来写数学笔记很方便!

(目前我遇到的问题就是TEX Studio在运行的时候背景被ban了, 但是在VScode上能稳定运行, 怪哉)

\documentclass[12pt, a4paper, oneside]{article}
\usepackage{ctex}
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\usepackage{amsmath, amsthm, amssymb, bm, color, framed, graphicx, hyperref, mathrsfs, extarrows}
\usepackage{tikz}
\usetikzlibrary{matrix, arrows}
\usepackage{tcolorbox, varwidth}
\usepackage{titlesec}
\usepackage{background}

\tcbuselibrary{breakable,theorems,skins}

% 颜色定义
\definecolor{TheoremColor}{RGB}{34,139,34} 
\definecolor{DefColor}{RGB}{45, 52, 151}
\definecolor{ExampleColor}{RGB}{226,135,67} 
\definecolor{ProofColor}{RGB}{34,139,34} 
\definecolor{shadecolor}{RGB}{241, 241, 255}
\colorlet{shadetransparent}{shadecolor!5}

% 定义计数器
\newcounter{theorem}[section]  % 定义 theorem 计数器,与 section 关联

% 定理类环境统一设置
\tcbset{
    mytheorem/.style args={#1/#2/#3}{
        enhanced,
        frame empty,
        interior empty,
        colframe=#2!50!white,
        coltitle=#2!50!black,
        fonttitle=\bfseries,
        colbacktitle=#2!15!white,
        borderline={0.5mm}{0mm}{#2!15!white},
        borderline={0.5mm}{0mm}{#2!50!white,dashed},
        attach boxed title to top left={yshift=-2mm,xshift=2mm},
        boxed title style={boxrule=0.4pt},
        varwidth boxed title
    }
}

% 定义定理环境
\newtcbtheorem[use counter=theorem]{theorem}{定理}{
    mytheorem=TheoremColor/TheoremColor/TheoremColor
}{theo}

\newtcbtheorem[use counter=theorem]{definition}{定义}{
    mytheorem=DefColor/DefColor/DefColor
}{def}

\newtcbtheorem[use counter=theorem]{example}{例题}{
    mytheorem=ExampleColor/ExampleColor/ExampleColor
}{ex}

% 传统定理环境
\newtheorem{proposition}[theorem]{命题}  % 与 theorem 计数器共享
\newtheorem{corollary}[theorem]{推论}    % 与 theorem 计数器共享
\newtheorem{lemma}[theorem]{引理}        % 与 theorem 计数器共享

% 证明环境
\tcolorboxenvironment{proof}{
    blanker,
    breakable,
    left=5mm,
    before skip=10pt,
    after skip=10pt,
    borderline west={1mm}{0pt}{ProofColor!50!white}
}

% 题目环境
\newcounter{problemname}[section]
\newenvironment{problem}{
    \begin{shaded}
        \stepcounter{problemname}
        \par\noindent\textbf{题目\theproblemname. }
    }{\end{shaded}\par}

% 解答环境
\newenvironment{solution}{\par\noindent\textbf{解答. }}{\par}

% 背景设置
\backgroundsetup{
    scale=0.8,
    angle=0,
    opacity=0.1,  % 调低透明度
    contents={\includegraphics[width=\paperwidth]{buaa.png}},
    pages=all  % 使背景图片在所有页面生效
}

%%%%%%%%%% 重命名字体%%%%%%%%%%

\newcommand{\song}{\CJKfamily{song}} % 宋体
\newcommand{\hei}{\CJKfamily{hei}}   % 黑体
\newcommand{\fs}{\CJKfamily{fs}}     % 仿宋
\newcommand{\kai}{\CJKfamily{kai}}   % 楷体

%  在ctex 中 黑体的命令   \heiti    楷书的命令  \kaishu

% 标题格式
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{}

\begin{document}
    \vspace{3cm}
    \centerline{\Huge \heiti 机器学习的数学基础}
    \vspace{17cm}
    \centerline{\Large \fs 拾柒}
    \vspace{1cm}
    \date{\today}

    \centerline{\Large \fs \LaTeX}
    \centerline{\large \heiti 北京航空航天大学}
    \centerline{\large \heiti 航空科学与工程学院}
    \newpage

    \thispagestyle{empty}
    \tableofcontents      

    \newpage

    \section{向量和向量空间}

    \subsection{向量}

    \begin{problem}
        计算下列积分:$\int_0^1 x^2 dx$
    \end{problem}

    \begin{solution}
        计算过程:
        \[
        \int_0^1 x^2 dx = \left.\frac{x^3}{3}\right|_0^1 = \frac{1}{3}
        \]
    \end{solution}

    \begin{definition}{连续函数}{continuous}
        设函数$f(x)$在点$x_0$的某个邻域内有定义,如果
        \[
        \lim_{x\to x_0}f(x) = f(x_0)
        \]
        则称$f(x)$在$x_0$处连续。
    \end{definition}


    \section{示例章节2}
    \begin{theorem}{中值定理}{meanvalue}
        若函数$f(x)$在$[a,b]$上连续,在$(a,b)$内可导,则存在$\xi\in(a,b)$使得
        \[
        f'(\xi) = \frac{f(b)-f(a)}{b-a}
        \]
    \end{theorem}

    \begin{proof}
        这是证明环境的示例内容...
    \end{proof}
\end{document}

图片地址如下

https://bhpan.buaa.edu.cn/link/AAD873684B21BE49AAA08537742F787858

本文为2305拾柒原创.
文章作者:拾 柒
文章链接:新的数学笔记latex格式分享
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0许可协议. 转载请注明来自拾 柒
如果觉得有用,可以分享出去~
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇