Latex1

作者: 坑里的keroro | 来源:发表于2018-11-26 17:54 被阅读0次

今后使用latex进行公式推导及论文写作,通过学习,总结出了适合自己用的模板。
以下是公式推导部分可用代码,可能复制粘贴有未发现的错误,供参考。
\documentclass[UTF8]{ctexart}
\usepackage{amsmath} %数学公式
\usepackage[top=3cm,bottom=2cm,left=2cm,right=2cm]{geometry} % 页边距
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{longtable} %长表格
\usepackage{graphicx} %图片
\usepackage{tikz} %画图
\usepackage{CJK,CJKnumb,CJKulem} % 中文支持宏包
%根据需要自行添加宏
\title{\textbf{公式推导} } %———总标题,粗体
\begin{document}
\maketitle % —— 显示标题
%\tableofcontents %—— 制作目录(目录是根据标题自动生成的)
% \section{Hello China} %——一号子标题 China is in East Asia.
% \subsection{Hello Beijing} %——二号子标题 Beijing is the capital of China.
% \subsubsection{Hello Dongcheng District} %——三号子标题
% \paragraph{Tian'anmen Square}is in the center of Beijing
% \subparagraph{Chairman Mao} is in the center of Tian'anmen Square
% \subsection{Hello Guangzhou}
%\paragraph{Sun Yat-sen University} is the best university in Guangzhou.
%example1
%公式
贝叶斯公式
\begin{equation}
p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}=
\frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})}
\end{equation}
\%\为换行符
\begin{equation}
p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}=
\frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})}
\end{equation}
\%多行公式
\begin{multline}
\int_ab\biggl{\int_ab[f(x)2g(y)2+f(y)2g(x)2]
-2f(x)g(x)f(y)g(y),dx\biggr},dy \
=\int_ab\biggl{g(y)2\int_abf2+f(y)^2
\int_a^b g2-2f(y)g(y)\int_ab fg\biggr},dy
\end{multline}
% α \alpha θ \theta o o τ\tau β \beta ϑ \vartheta π \pi υ \upsilonγ \gamma ι \iota \varpi φ \phiδ \delta κ \kappa ρ \rho ϕ \varphi² \epsilon λ \lambda % \varrho χ \chiε \varepsilon µ \mu σ \sigma ψ \psiζ \zeta ν \nu ς \varsigma ω \omegaη \eta ξ \xiΓ \Gamma Λ \Lambda Σ \Sigma Ψ \Psi∆ \Delta Ξ \Xi Υ \Upsilon Ω \OmegaΘ \Theta Π \Pi Φ \Phi %example2 \\希腊字母:\alpha%operators:± × ÷ · ∩ ∪ ≥ ≤ 6= ≈ ≡ %example3 \\运算符号\[\pm \times \div \cdot \cap \cup \geq \leq \neq \approx \equiv\] %limit,integral,sum %example4\sum_{i=1}^n i \prod_{i=1}^n \lim_{x\to0}x^2 \int_a^b x^2 dx\ \sum_{i=1}^n i \prod_{i=1}^n \lim_{x\to0}x^2 \int_a^b x^2 dx\ \iiint_a^b x^2 dx\ $
\end{document}

相关文章

  • Latex1

    今后使用latex进行公式推导及论文写作,通过学习,总结出了适合自己用的模板。以下是公式推导部分可用代码,可能复制...

  • Latex1文字书写

    1.文章最基础结构,文章环境 \documentclass{article}%选为article \begin{d...

网友评论

      本文标题:Latex1

      本文链接:https://www.haomeiwen.com/subject/fbtiqqtx.html