%% This is to translate eps to jpg. Firstly EPS is created by, e.g., TGIF, and complie this TEX. Then grip the figure on PDF and drop it to DOC via OpenOffice. then grip the figure and store as JPG.

\documentclass[12pt]{article}
%% newest 10/26
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{color}
\usepackage{graphicx}
\usepackage{epstopdf} 
\DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.mps} 

\textheight 230mm
\topmargin 5mm
\textwidth 160mm
\oddsidemargin -2mm

\pagestyle{myheadings}
\markright{(Automaton and its application)}

\newtheorem{formula}{Rule}
\newtheorem{example}{Example}
\newtheorem{exercise}{Exercise}
\newtheorem{algorithm}{Algorithm}
\newtheorem{definition}{Definition}


\makeatletter
\let\c@figure\c@table
\let\p@figure\p@table
\let\cl@figure\cl@table
\let\thefigure\thetable
\makeatother

\begin{document}


\begin{figure}[hbtp]
\begin{center}
   \includegraphics[width=8cm,height=6cm]{tsp-5-cities.eps}
\end{center}
\end{figure}

\begin{figure}[hbtp]
\begin{center}
   \includegraphics[width=8cm,height=6cm]{tsp-5-cities-2.eps}
\end{center}
\end{figure}


\begin{figure}[hbtp]
\begin{center}
   \includegraphics[width=8cm,height=6cm]{kribetski.eps}
\end{center}
\end{figure}


\end{document}


