link_pdfプラグインはご利用いただけなくなりました。
platexめも
このページはメモ書きです、どこまで正しいかは不明です。
画像
\begin{figure}[H]
\begin{center}
\includegraphics[scale=0.2]{images/3-2-q.eps}
\caption{3-2 Spectrum}
\end{center}
\end{figure}
複数行数式
\begin{eqnarray*}
\begin{array}{l}
\displaystyle u_{0} = \frac{1}{4}(d_{0} + d_{1} + d_{2} + d_{3}) \\
\displaystyle \ \ \ \ = \frac{1}{4}((1+j) + (1+j) + (1+j) + (1+j)) \\
\displaystyle \ \ \ \ = \frac{1}{4}(4+4j) = (1+j)
\end{array}
\end{eqnarray*}
並べて表示
\begin{center}
\begin{tabular}{cc}
\begin{minipage}{0.5\hsize}
左
\end{minipage}
\begin{minipage}{0.5\hsize}
右
\end{minipage}
\end{tabular}
\end{center}
行番号付きでソースコード表示
jlisting.styを用意すること!
設定
\usepackage{color}
\usepackage{listings,jlisting}
%listingの設定
\lstset{%
language={C},
backgroundcolor={\color[gray]{.90}},%
basicstyle={\small \ttfamily},%
identifierstyle={\small},%
commentstyle={\small},
keywordstyle={\small \color[rgb]{0,0,1}},%
ndkeywordstyle={\small},%
stringstyle={\small},
numberstyle={\scriptsize \color[rgb]{0.5,0,0}},%
frame={tb},
breaklines=true,
columns=[l]{fullflexible},%
numbers=left,%
xrightmargin=0zw,%
xleftmargin=0zw,%
stepnumber=1,
numbersep=1zw,%
morecomment=[l]{//}%
}
使用方法
\begin{lstlisting}[caption={log2の関数}]
double lg(double x){
return log(x)/log(2);
}
\end{lstlisting}
ソースコード一覧の表示
\lstlistoflistings