Skip to content
Snippets Groups Projects
Commit 4f2ef9d2 authored by Koishi Jinguji's avatar Koishi Jinguji
Browse files

docs:优化公式

parent 475c5244
No related branches found
No related tags found
No related merge requests found
...@@ -2,31 +2,31 @@ ...@@ -2,31 +2,31 @@
\section{公式示例} \section{公式示例}
\begin{equation}\label{eq:dewitt} \begin{equation}\label{eq:dewitt}
\int e^{ax} \tanh bx\ dx = \int \mathrm{e}^{ax} \tanh {bx} \, \mathrm{d}x =
\begin{cases} \begin{dcases}
\displaystyle{ \frac{ e^{(a+2b)x}}{(a+2b)} \begin{multlined}
{_2F_1}\left[ 1+\frac{a}{2b},1,2+\frac{a}{2b}, -e^{2bx}\right] }& \\ \frac{\mathrm{e}^{(a+2b)x}}{(a + 2b)} \,
\displaystyle{ {{}_2F_1} \left( 1 + \frac{a}{2b}, 1, 2+\frac{a}{2b}, -\mathrm{e}^{2bx} \right) \\
\hspace{1cm}-\frac{1}{a}e^{ax}{_2F_1}\left[ 1, \frac{a}{2b},1+\frac{a}{2b}, -e^{2bx}\right] - \frac{1}{a} \mathrm{e}^{ax} \, {{}_2F_1} \left( 1, \frac{a}{2b}, 1 + \frac{a}{2b}, -\mathrm{e}^{2bx} \right)
} \end{multlined}
& a\ne b \\ & a \ne b \\
\displaystyle{\frac{e^{ax}-2\tan^{-1}[e^{ax}]}{a} } & a = b \frac{e^{ax} - 2 \tan^{-1}(\mathrm{e}^{ax})}{a} & a = b
\end{cases} \end{dcases}
\end{equation} \end{equation}
你可以使用\lstinline|equation|环境插入公式,如\cref{eq:dewitt},代码如下: 你可以使用\lstinline|equation|环境插入公式,如\cref{eq:dewitt},代码如下:
\begin{lstlisting}[language=TeX] \begin{lstlisting}[language=TeX]
\begin{equation}\label{eq:dewitt} \begin{equation}\label{eq:dewitt}
\int e^{ax} \tanh bx\ dx = \int\mathrm{e}^{ax}\tanh{bx}\,\mathrm{d}x =
\begin{cases} \begin{dcases}
\displaystyle{ \frac{ e^{(a+2b)x}}{(a+2b)} \begin{multlined}
{_2F_1}\left[ 1+\frac{a}{2b},1,2+\frac{a}{2b}, -e^{2bx}\right] }& \\ \frac{\mathrm{e}^{(a+2b)x}}{(a+2b)}\,
\displaystyle{ {{}_2F_1}\left( 1+\frac{a}{2b},1,2+\frac{a}{2b},-\mathrm{e}^{2bx} \right) \\
\hspace{1cm}-\frac{1}{a}e^{ax}{_2F_1}\left[ 1, \frac{a}{2b},1+\frac{a}{2b}, -e^{2bx}\right] - \frac{1}{a} \mathrm{e}^{ax}\,{{}_2F_1}\left( 1,\frac{a}{2b},1+\frac{a}{2b},-\mathrm{e}^{2bx} \right)
} \end{multlined}
& a\ne b \\ & a \ne b \\
\displaystyle{\frac{e^{ax}-2\tan^{-1}[e^{ax}]}{a} } & a = b \frac{e^{ax}-2\tan^{-1}(\mathrm{e}^{ax})}{a} & a = b
\end{cases} \end{dcases}
\end{equation} \end{equation}
\end{lstlisting} \end{lstlisting}
......
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
\RequirePackage{amsmath} % Must be loaded before unicode-math \RequirePackage{amsmath} % Must be loaded before unicode-math
\RequirePackage{amsthm} % Mathematical environments \RequirePackage{amsthm} % Mathematical environments
\RequirePackage{mathtools} % Mathematical tools to use with amsmath
\RequirePackage{thmtools} % Theorem styles \RequirePackage{thmtools} % Theorem styles
\RequirePackage{unicode-math} % Math fonts in xetexorluatex \RequirePackage{unicode-math} % Math fonts in xetex or luatex
\RequirePackage{graphicx} \RequirePackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png} \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment