LaTeXのメモ

個人的なメモです.

百分率(%)

パッケージ使用:\usepackage{textcomp}

\%

角度(°)

パッケージ使用:\usepackage{textcomp}または\usepackage{mathcomp}

\textdegree

\tcdegree

摂氏温度(℃)

パッケージ使用:\usepackage{textcomp}

\textcelsius

化学式

パッケージ使用:\usepackage[version=3]{mhchem}

\ce{}

->で,右矢印.<-で,左矢印.

太字のベクトル表記

パッケージ使用:\usepackage{bm}

\bm{}

ギリシャ文字の太字

パッケージ使用:\usepackage{amsmath}

\boldsymbol{}

{}中に,たとえば\sigmaなど.

図の挿入

パッケージ使用:\usepackage[dvipdfmx]{graphicx}

\begin{figure}

\includegraphics[width=]{}

\caption{}

\end{figure}

\begin{figure}の[]には,h,b,t,p,Hが入る.

\usepackage{float}すれば,[H]で決まった位置に出せる.

\begin{center}とすれば,中央揃え.(\centering)

図の挿入(3列)

パッケージ使用:\usepackage[dvipdfmx]{graphicx}

\begin{figure}[H]
\centering
\begin{tabular}{ccc}

 

\begin{minipage}{0.30\columnwidth}
\includegraphics[width=\columnwidth]{}
\caption{}
\end{minipage}


\begin{minipage}{0.30\columnwidth}
\includegraphics[width=\columnwidth]{}
\caption{}
\end{minipage}

 

\begin{minipage}{0.30\columnwidth}
\includegraphics[width=\columnwidth]{}
\caption{}
\end{minipage}

 

\end{tabular}

\end{figure}

 \\で行を追加可能.

数式と図の番号

プリアンブルに,

\makeatletter

\renewcommand{\thefigure}{\thesection.\arabic{figure}}

\@addtoreset{figure}{section}

\renewcommand{\theequation}{\thesection.\arabic{equation}}

\@addtoreset{equation}{section}

\makeatother