From b3d038fc3e0c1b12f7b833bda4d2434e113abeec Mon Sep 17 00:00:00 2001 From: EthanDeng Date: Sun, 4 Aug 2019 19:48:18 +0800 Subject: [PATCH] revert back to cmlargesymbols --- elegantbook-cn.tex | 3 ++- elegantbook.cls | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/elegantbook-cn.tex b/elegantbook-cn.tex index 9c7c465..083cfb3 100644 --- a/elegantbook-cn.tex +++ b/elegantbook-cn.tex @@ -1,4 +1,4 @@ -\documentclass[cn,11pt,twocol]{elegantbook} +\documentclass[cn,11pt]{elegantbook} \title{ElegantBook:优美的 \LaTeX{} 书籍模板} \subtitle{Elegant\LaTeX{} 经典之作} @@ -457,6 +457,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非 \begin{itemize} \item 名词解释 \begin{definition}{可积性}{int} +$\vv{AB}$ 设 $ f(x)=\sum\limits_{i=1}^{k} a_i \chi_{A_i}(x)\oint_{a}^b\ointop_{a}^b\prod_{i=1}^n$ 是 $E$ 上的非负简单函数,其中 $\{A_1,A_2,\ldots,A_k\}$ 是 $E$ 上的一个可测分割,$a_1,a_2,\ldots,a_k$ 是非负实数。定义 $f$ 在 $E$ 上的积分为 $\int_{a}^b f(x)$ \begin{equation} \label{inter} diff --git a/elegantbook.cls b/elegantbook.cls index 3001699..56a8ed7 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -99,11 +99,17 @@ \RequirePackage{anyfontsize} \ifdefstring{\ELEGANT@math}{newtxmath}{ \RequirePackage{newtxmath} +\let\oldwidering\widering +\let\widering\undefined +\RequirePackage{yhmath} +\let\widering\oldwidering +\RequirePackage{esvect} +\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n} \let\intop\relax\let\sumop\relax\let\ointop\relax\let\prodop\relax -\DeclareMathSymbol{\sumop}{\mathop}{largesymbols}{"50} -\DeclareMathSymbol{\intop}{\mathop}{largesymbols}{"52} -\DeclareMathSymbol{\ointop}{\mathop}{largesymbols}{"48} -\DeclareMathSymbol{\prodop}{\mathop}{largesymbols}{"51} +\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50} +\DeclareMathSymbol{\intop}{\mathop}{CMlargesymbols}{"52} +\DeclareMathSymbol{\ointop}{\mathop}{CMlargesymbols}{"48} +\DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51} }{\relax} % ----- Handle Colors ----- @@ -235,7 +241,7 @@ %\RequirePackage{enumerate} \RequirePackage{amsmath,mathrsfs,amsfonts,amssymb} \RequirePackage{booktabs} -\RequirePackage{multicol} +\RequirePackage{multicol,multirow} \RequirePackage{xcolor} \RequirePackage{fancyvrb} \RequirePackage{makecell,lipsum,hologo,setspace} @@ -628,7 +634,7 @@ \fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark} \fi -\fancyfoot[c]{\base{structurecolor}{88}} +\fancyfoot[c]{\catcode`\$=3\relax\base{structurecolor}{88}} \renewcommand{\headrule}{\color{structurecolor}\hrule width\textwidth} \pagestyle{fancy} \renewcommand{\headrulewidth}{1pt}