メモメモ_t - nkchan/configfile GitHub Wiki

メモメモ_t

画像を貼る

source

\begin{figure}[hbtp]
 \centering
 \includegraphics[clip,width=7.0cm]{fig/hoge.eps}
 \caption{fuga \label{label}}
\end{figure}

画像の表

\begin{table}[hbtp]
\caption{hoge}
\label{fuga}
\center
\includegraphics[width=0.5\linewidth]{fig/fig2.eps}
\end{table}

画像を並べる

minipage

\begin{figure}
\centering
\begin{minipage}{0.45\columnwidth}
\centering
\includegraphics[width=\columnwidth]{fig/1-2-1-N=3.png}
\caption{N=3のヒストグラム}
\label{fig:hidari}
\end{minipage}
\begin{minipage}{0.45\columnwidth}
\centering
\includegraphics[width=\columnwidth]{fig/1-2-1N=30.png}
\caption{N=30のヒストグラム}
\label{fig:migi}
\end{minipage}
\end{figure}

ソースコードを乗せる

\begin{framed}
\begin{quote}
\setlength{\baselineskip}{12pt}
\begin{verbatim}
//ここにコード                                                                                                 
\end{verbatim}
\end{quote}
\end{framed}

行数付きのlistling環境


\lstset{
  breaklines=true,
  basicstyle={\small},
  numbers=left,
  numberstyle=\scriptsize,
}
\begin{framed}
\begin{lstlisting}
ここに                                                                                        
\end{lstlisting}
\end{framed}

引用

\ref{label}

png for eps

convert hoge.png hoge.eps

数式

括弧

こんな感じでleftとright

\left( \frac{1}{c} \right)

ラプラス変換

\mathcal{L}[f]
\mathcal{L}^{-1} [f] /*逆ラプラス*/

/*L→Fでフーリエ変換*/ 

式番号

\begin{eqnarray}
   hogehoge
\end{eqnarray}

ソースコード

\usepackage{listings}いれて

\begin{lstlisting}[basicstyle=\ttfamily\footnotesize, frame=single]

(ここにプログラムソース)

 \end{lstlisting}

破線

|:に変更 \usepackage{arydshln}