Question: I'm trying to include .eps figures in my .tex file (I'm using MiKTeX 2.9).
I need to include graphics in this particular way:

```
\usepackage{graphics} % or graphicx 
...

\begin{figure}
 \caption{\label{tha_label} ....}
 \includegraphics{the_graphics.eps}
 \end{figure}

```

But that way doesn't work, because it produces the error `Unknown graphics extension: .eps`. Of course, I can use `\uspackage{eps-to-pdf}` and include my graphics without errors, but I do not need to use that usepackage (the method above is only allowed). How can I do it?

Answer: 
Have a look at the following example:

```
\documentclass{article}

\newcounter{testcount}

\newcommand{\modifyme}{%
\addtocounter{testcount}{1}
\ifnum\thetestcount<3%
    Hello 
\fi
\ifnum\thetestcount>2%
    World
\fi
}

\newcommand{\resetme}{\setcounter{testcount}{0}}

\begin{document}

\modifyme

\modifyme

\modifyme

\modifyme

\resetme

\modifyme

\end{document}

```

![Updated example](https://i.stack.imgur.com/dRe96.png)
No counter, but three macros for each command of this type:

```
\documentclass{article}

\makeatletter
\newcommand{\newchangingcommand}[4]{%
  % #1 = macro name
  % #2 = steps
  % #3 = value until step #1
  % #4 = value from step #1
  \@namedef{\string#1@counter}{0}%
  \@namedef{\string#1@limit}{#2}%
  \def#1{%
     % step the counter
     \global\@nameedef{\string#1@counter}{\number\numexpr\@nameuse{\string#1@counter}+1\relax}%
     \ifnum\@nameuse{\string#1@counter}=\@nameuse{\string#1@limit}\relax
       \gdef#1{#4}#4%
     \else
       #3%
     \fi
  }%
}
\providecommand\@nameedef[1]{\expandafter\edef\csname#1\endcsname}
\makeatother

\newchangingcommand{\foo}{3}{Two}{Next}
\newchangingcommand{\foob}{2}{One}{Next}

\begin{document}

\foo--\foob\par
\foo--\foob\par
\foo--\foob\par
\foo--\foob\par

\end{document}

```

![enter image description here](https://i.stack.imgur.com/RHjl4.png)

Be aware that using such commands in moving arguments will fail for several reasons.