Experiments

Latex 자주 쓰는 모음 정리

자월현 2021. 12. 18.

1. 위첨자 ^ , 아래첨자 _

http://www.dfcd.net/articles/latex/latex.html 참조!

2. Figure 넣기

\begin{figure}
\includegraphics[width=1.0\linewidth]{figs/framework_o_rev.png}
  \caption{Walawala}
  \label{fig:comp-algo}
\end{figure}

 

 

3. Algorithm 넣기

\begin{algorithm*}
\setstretch{1.2}
\caption{Heyyy}\label{alg:detect}
\begin{algorithmic}
\Require $ I^k, [o_{x1}, o_{y1}, o_{x2}, o_{y2}]_N^k, [o]_N^k $
\Ensure $I^k $ \Comment{Get image}

\State $ I^k = ROI( RPN(I^k))$
\State $ \hat{I}^k, \hat{A}^k, = VMM_{Boxhead}(I^k)$
\State \textbf{Function}\{$VMC_{Boxpred}$\}
     \State \quad \quad$ [\hat{a}]_M^k  = HandAction(\hat{A}^k)$
    
\State \textbf{EndFunction}
 \State  $y = Concat(y, x) $
 \State $ [\hat{o}]_N^k = Concat([\hat{o}]_M^k, [\hat{a}]_M^k)$

\end{algorithmic}
\end{algorithm*}

가장 밖 algorithm에 붙는 *를 빼면 2 column paper일 때 한 쪽 column에만 들어감.

 

4. Equation 넣기

\begin{gather}

\{I_t\}^{T}_{t=1} = [\{I_t^1\}^{1e}_{1s},  \{I_t^K\}^{Ke}_{Ks}] \\
\{a_t\}^{T}_{t=1} = [a^1,  ..., a^k, ..., a^K] \\
\{o_t\}^{T}_{t=1} = [o^1,  ..., o^k, ..., o^K] 

\end{gather}

여러 줄 넣을 때가 gather, 한줄만 넣을 때는 equation.

\begin{equation} \label{eq:vmm}
\{\hat{I}^k\}_{m}, \hat{A}^k, \hat{a}^k = VMM(\{I^k\}_{m})
\end{equation}

 

'Experiments' 카테고리의 다른 글

mujoco 150 설치하기. Ubuntu 18.04에서.  (0) 2022.01.19
고통의 3D spacemouse UR5와 연결하기.  (0) 2022.01.04
learning rate 결정하기  (0) 2021.08.11
data loader 속도 높이기  (0) 2021.08.09
image encoder batch normalization  (0) 2021.08.01

댓글