no error no warnings with font/symbol fixed

This commit is contained in:
EthanDeng
2019-08-06 00:25:12 +08:00
parent 4f324f2ca9
commit d03959f9d2
3 changed files with 45 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
此次更新主要有 此次更新主要有
\begin{enumerate} \begin{enumerate}
\item 删除 \lstinline{\elegantpar} 命令; \item 删除 \lstinline{\elegantpar} 命令;
\item 修复符号字体设置by \href{muzimuzhi}{https://github.com/muzimuzhi} \item 修复符号字体设置;
\end{enumerate} \end{enumerate}
\begin{note} \begin{note}
@@ -74,7 +74,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
更多关于 \TeX{} Live 2019 的安装使用以及 C\TeX{}\TeX{} Live 的兼容、系统路径问题,请参考官方文档以及啸行的\href{https://github.com/OsbertWang/install_latex/releases}{一份简短的安装 \LaTeX{} 的介绍} 更多关于 \TeX{} Live 2019 的安装使用以及 C\TeX{}\TeX{} Live 的兼容、系统路径问题,请参考官方文档以及啸行的\href{https://github.com/OsbertWang/install_latex/releases}{一份简短的安装 \LaTeX{} 的介绍}
\section{在线使用模板} \section{在线使用模板}
考虑到用户的在线合作需求,我们把三套模板全部上传到 \href{https://www.overleaf.com/}{Overleaf} 上了,网络通畅的用户可以直接通过 Overleaf 在线使用我们的模板。这样的好处是无需安装 \TeX{} Live 2019可以随时随地访问自己的文件。查找模板请在 Overleaf 模板库里面搜索 \lstinline{elegantlatex} 即可,你也可以直接访问\href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{搜索结果}。选择适当的模板之后,将其 \lstinline{Open as Template},即可把模板存到自己账户下,然后可以自由编辑以及与别人一起协作。更多关于 Overleaf 的介绍和使用,请参考 Overleaf 的\href{https://www.overleaf.com/learn}{官方文档} 我们把三套模板全部上传到 \href{https://www.overleaf.com/}{Overleaf} 上了,网络便利的用户可以直接通过 Overleaf 在线使用我们的模板。使用 Overleaf 的好处是无需安装 \TeX{} Live 2019可以随时随地访问自己的文件。查找模板请在 Overleaf 模板库里面搜索 \lstinline{elegantlatex} 即可,你也可以直接访问\href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{搜索结果}。选择适当的模板之后,将其 \lstinline{Open as Template},即可把模板存到自己账户下,然后可以自由编辑以及与别人一起协作。更多关于 Overleaf 的介绍和使用,请参考 Overleaf 的\href{https://www.overleaf.com/learn}{官方文档}
\begin{remark} \begin{remark}
Overleaf 上,中文需要使用 \lstinline{XeLaTeX} 进行编译,英文可以使用 \lstinline{PDFLaTeX}\lstinline{XeLaTeX} 进行编译。 Overleaf 上,中文需要使用 \lstinline{XeLaTeX} 进行编译,英文可以使用 \lstinline{PDFLaTeX}\lstinline{XeLaTeX} 进行编译。
@@ -119,9 +119,9 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
\includegraphics[width=0.5\textwidth]{donate.jpg} \includegraphics[width=0.5\textwidth]{donate.jpg}
\end{figure} \end{figure}
赞赏费用的使用解释权归 Elegant\LaTeX{} 所有,并且不接受监督,请自愿理性打赏10 元以上的赞赏,我们将列入捐赠榜,谢谢各位金主! \textbf{赞赏费用的使用解释权归 Elegant\LaTeX{} 所有,并且不接受监督,请自愿理性打赏}10 元以上的赞赏,我们将列入捐赠榜,谢谢各位金主!
\begin{table}[htbp] \begin{table}[!htbp]
\centering \centering
\caption{捐赠榜} \caption{捐赠榜}
\begin{tabular}{crcc} \begin{tabular}{crcc}
@@ -134,7 +134,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
佚名 & 10 元 & 2019/05/30 & 微信\\ 佚名 & 10 元 & 2019/05/30 & 微信\\
\href{http://www.latexstudio.net/}{latexstudio.net} & 666 元 & 2019/06/05 & 支付宝\\ \href{http://www.latexstudio.net/}{latexstudio.net} & 666 元 & 2019/06/05 & 支付宝\\
Cassis & 11 元 & 2019/06/30 & 微信\\ Cassis & 11 元 & 2019/06/30 & 微信\\
* 君 & 10 元 & 2019/07/23 & 微信\\ 佚名 & 10 元 & 2019/07/23 & 微信\\
\bottomrule \bottomrule
\end{tabular}% \end{tabular}%
\end{table}% \end{table}%
@@ -405,7 +405,6 @@ The content of introduction.
\end{introduction} \end{introduction}
\end{lstlisting} \end{lstlisting}
\section{章后习题} \section{章后习题}
前面我们介绍了例题和练习两个环境,这里我们再加一个,章后习题(\lstinline{problemset})环境,用于在每一章结尾,显示本章的练习。使用方法如下 前面我们介绍了例题和练习两个环境,这里我们再加一个,章后习题(\lstinline{problemset})环境,用于在每一章结尾,显示本章的练习。使用方法如下
@@ -433,6 +432,28 @@ The content of introduction.
\section{旁注} \section{旁注}
在 3.08 版本中,我们引入了 旁注设置选项 \lstinline{marginpar=margintrue} 以及测试命令 \lstinline{\elegantpar} ,但是由此带来一堆问题。我们决定在 3.09 版本中将其删除,并且,在旁注命令得到大幅度优化之前,不会将此命令再次引入书籍模板中。对此造成各位用户的不方便,非常抱歉! 在 3.08 版本中,我们引入了 旁注设置选项 \lstinline{marginpar=margintrue} 以及测试命令 \lstinline{\elegantpar} ,但是由此带来一堆问题。我们决定在 3.09 版本中将其删除,并且,在旁注命令得到大幅度优化之前,不会将此命令再次引入书籍模板中。对此造成各位用户的不方便,非常抱歉!
\section{其他}
在 3.08 版本中,用户反馈模板在和 \lstinline{yhmath} 以及 \lstinline{esvect} 等宏包搭配使用的时候会出现报错:
\begin{lstlisting}
LaTeX Error:
Too many symbol fonts declared.
\end{lstlisting}
根据 \href{https://github.com/muzimuzhi}{muzimuzhi} 的解释是,模板重新定义了数学字体,达到了 {\heiti 最多 16 个数学字体} 的上限,在调用其他宏包的时候,无法新增数学字体。为了减少调用非常用宏包,在此给出如何调用 \lstinline{yhmath} 以及 \lstinline{esvect} 宏包的方法。
请在 \lstinline{elegantbook.cls} 内搜索 \lstinline{yhmath} 或者 \lstinline{esvect},将你所需要的宏包加载语句取消注释即可。
\begin{lstlisting}
%%% use yhmath pkg, uncomment following code
% \let\oldwidering\widering
% \let\widering\undefined
% \RequirePackage{yhmath}
% \let\widering\oldwidering
%%% use esvect pkg, uncomment following code
% \RequirePackage{esvect}
\end{lstlisting}
\chapter{ElegantBook 写作示例} \chapter{ElegantBook 写作示例}
\begin{introduction} \begin{introduction}
@@ -457,8 +478,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\begin{itemize} \begin{itemize}
\item 名词解释 \item 名词解释
\begin{definition}{可积性}{int} \begin{definition}{可积性}{int}
$\vv{AB}$ $ f(x)=\sum\limits_{i=1}^{k} a_i \chi_{A_i}(x)$$E$ 上的非负简单函数,其中 $\{A_1,A_2,\ldots,A_k\}$$E$ 上的一个可测分割,$a_1,a_2,\ldots,a_k$ 是非负实数。定义 $f$$E$ 上的积分为 $\int_{a}^b f(x)$
$ 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} \begin{equation}
\label{inter} \label{inter}
\int_{E} f dx = \sum_{i=1}^k a_i m(A_i) \pi \alpha\beta\sigma\gamma\nu\xi\epsilon\varepsilon. \oint_{a}^b\ointop_{a}^b\prod_{i=1}^n \int_{E} f dx = \sum_{i=1}^k a_i m(A_i) \pi \alpha\beta\sigma\gamma\nu\xi\epsilon\varepsilon. \oint_{a}^b\ointop_{a}^b\prod_{i=1}^n
@@ -627,7 +647,9 @@ $\vv{AB}$
\end{custom} \end{custom}
\begin{solution} \begin{solution}
首先,我们{\heiti 强烈建议你不要去修改字体}!如果你一定坚持修改字体,请在 \lstinline{newtxtext} 宏包加载前加入中文字体设置(\lstinline{xeCJK} 宏包)。如果你选择自定义字体,请设置好 \lstinline{\kaishu}\lstinline{\heiti} 等命令,否则会报错。如果你看不懂我现在说的,请停止你的字体自定义行为。 首先,我们{\heiti 强烈建议你不要去修改字体}!如果你一定坚持修改字体,请在 \lstinline{newtxtext} 宏包加载前加入中文字体设置(\lstinline{xeCJK} 宏包)。
如果你选择自定义字体,请设置好 \lstinline{\kaishu}\lstinline{\heiti} 等命令,否则会报错。如果你看不懂我现在说的,请停止你的字体自定义行为。
\end{solution} \end{solution}
\begin{custom}{问题} \begin{custom}{问题}

View File

@@ -231,7 +231,7 @@ In this template, we defined four different theorem class environments
\item \textcolor{second}{\textbf{theorem, lemma, corollary}} environment, the color is \textcolor{second} {second}; \item \textcolor{second}{\textbf{theorem, lemma, corollary}} environment, the color is \textcolor{second} {second};
\item \textcolor{third}{\textbf{proposition}} environment, the color is \textcolor{third}{third}. \item \textcolor{third}{\textbf{proposition}} environment, the color is \textcolor{third}{third}.
\end{itemize} \end{itemize}
\item \textit{Example Environments}, including \textbf{example, exercise, problem} environment, auto-numbering corresponding to chapter. \item \textit{Example Environments}, including \textbf{example, exercise, problem} environment, auto numbering corresponding to chapter.
\item \textit{Proof Environment}, including \textbf{proof, note} environment containing introductory symbol (\textbf{note} environment) or ending symbol (\textbf{proof} environment). \item \textit{Proof Environment}, including \textbf{proof, note} environment containing introductory symbol (\textbf{note} environment) or ending symbol (\textbf{proof} environment).
\item \textit{Conclusion Environments}, including \textbf{conclusion, assumption, property, remark, solution}\footnote{We also define an option \lstinline{result}, which can hide the \lstinline{solution} and \lstinline{proof} environments. You can switch between \lstinline{result=answer} and \lstinline{result=noanswer}} environment, all of which begin with boldfaced words, with format consistent with normal paragraphs. \item \textit{Conclusion Environments}, including \textbf{conclusion, assumption, property, remark, solution}\footnote{We also define an option \lstinline{result}, which can hide the \lstinline{solution} and \lstinline{proof} environments. You can switch between \lstinline{result=answer} and \lstinline{result=noanswer}} environment, all of which begin with boldfaced words, with format consistent with normal paragraphs.
\end{itemize} \end{itemize}
@@ -303,7 +303,7 @@ The cover image used in this template is from \href{https://pixabay.com/en/tea-t
Aspect ratio of the logo is 1:1 in this guide, i.e. a square picture. To replace the logo, do remember to choose the appropriate picture. Aspect ratio of the logo is 1:1 in this guide, i.e. a square picture. To replace the logo, do remember to choose the appropriate picture.
\section{List Environments} \section{List Environments}
This template uses \lstinline{tikz} to customize \lstinline{itemize} and \lstinline{enumerate} environments, with \lstinline{itemize} environment customized to the third depth and \lstinline{enumerate} environment customized to fourth depth. The effect is as follows\\[2ex] This template uses \lstinline{tikz} to customize the list environments, with \lstinline{itemize} environment customized to the third depth and \lstinline{enumerate} environment customized to fourth depth. The effect is as follows\\[2ex]
\begin{minipage}[b]{0.49\textwidth} \begin{minipage}[b]{0.49\textwidth}
\begin{itemize} \begin{itemize}
\item first item of nesti; \item first item of nesti;

View File

@@ -99,16 +99,18 @@
\RequirePackage{anyfontsize} \RequirePackage{anyfontsize}
\ifdefstring{\ELEGANT@math}{newtxmath}{ \ifdefstring{\ELEGANT@math}{newtxmath}{
\RequirePackage{newtxmath} \RequirePackage{newtxmath}
\let\oldwidering\widering \RequirePackage{esint}
\let\widering\undefined %%% use yhmath pkg, uncomment following code
\RequirePackage{yhmath} % \let\oldwidering\widering
\let\widering\oldwidering % \let\widering\undefined
\RequirePackage{esvect} % \RequirePackage{yhmath}
% \let\widering\oldwidering
%%% use esvect pkg, uncomment following code
% \RequirePackage{esvect}
\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n} \DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
\let\intop\relax\let\sumop\relax\let\ointop\relax\let\prodop\relax \let\sumop\relax\let\prodop\relax
\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50} \DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
\DeclareMathSymbol{\intop}{\mathop}{CMlargesymbols}{"52}
\DeclareMathSymbol{\ointop}{\mathop}{CMlargesymbols}{"48}
\DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51} \DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51}
}{\relax} }{\relax}
@@ -607,7 +609,7 @@
\RequirePackage{adforn} \RequirePackage{adforn}
\newenvironment{problemset}[1][\ifdefstring{\ELEGANT@lang}{en}{\textbf{\chaptername\, Exercise}}{\textbf{\chaptername\, }}]{ \newenvironment{problemset}[1][\ifdefstring{\ELEGANT@lang}{en}{\textbf{\chaptername\, Exercise}}{\textbf{\chaptername\, }}]{
\begin{center} \begin{center}
\ifdefstring{\ELEGANT@lang}{en}{\addcontentsline{toc}{section}{\chaptername\, Exercise} }{\addcontentsline{toc}{section}{\chaptername\, }} % \ifdefstring{\ELEGANT@lang}{en}{\addcontentsline{toc}{section}{\chaptername\, Exercise} }{\addcontentsline{toc}{section}{\chaptername\, }}
\textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright} \textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
\end{center} \end{center}
\begin{enumerate}[label=\textcolor{structurecolor}{\arabic*.}]}{% \begin{enumerate}[label=\textcolor{structurecolor}{\arabic*.}]}{%
@@ -752,6 +754,6 @@
columns=flexible, columns=flexible,
% backgroundcolor=\color{lightgrey} % backgroundcolor=\color{lightgrey}
} }
\newcommand\bmmax{0}
\RequirePackage{bm} \RequirePackage{bm}