2017-07-19 24 views
1

的名單我有一個公式:乳膠名稱添加到方程和顯示方程式

\begin{equation} 
    P(A \ | \ B) = \frac{P(A \ | \ B) \cdot P(A)}{P(B)} 
\end{equation} 

我想要做的兩件事情。首先,給它起一個名字 - 「貝葉斯定理」,然後將它顯示在方程列表中。

+0

通過給它一個名字,你的意思是財產以後像\標籤{my_eq }?你能對你想要的更具體嗎? – Ash

+0

類似於如何爲圖片添加標題 – Kay

回答

0

這裏有一個簡單的解決方案:

\begin{figure}[h!t] 
    \centering 
    \begin{subfigure}[b]{0.3\textwidth} 
    $P(A \ | \ B) = \frac{P(A \ | \ B) \cdot P(A)}{P(B)} $ 
    \vspace*{0.5cm} 
    \caption{this equation I want to talk about} 
    \label{equ1} 
    \end{subfigure} 

    \vspace*{0.5cm} 
    \begin{subfigure}[b]{0.3\textwidth} 
    $P(A|B)=...$ 
    \vspace*{0.5cm} 
    \caption{this other equation I want to talk about} 
    \label{equ2} 
    \end{subfigure} 
\end{figure} 

,並在這裏是做什麼的截圖:

enter image description here