LaTeX help

I tried to have an alpha point along with an image:

so I want it to be something like this:


a.

       picture


b.

    picture



however why is it in the code below it shows:L

a.

    picture

b.
c.
d.
e.
   

   picture
   picture
  ........

    picture

can someone help me?
\begin{enumerate}[itemindent=1.8em,label=(\alph*)]
 
\item L = \{w $\mid$ each a in w is immediately preceded and immediately followed by a b\}
\begin{figure}[htp]
\centering
\includegraphics{2a}
\caption{L = \{w $\mid$ each a in w is immediately preceded and immediately followed by a b\}}\label{fig:erptsqfit}
\end{figure}
     
 
\item L = \{w $\mid$ w has ababa as a substring\}
\begin{figure}[htp]
\centering
\includegraphics{2b}
\caption{L = \{w $\mid$ w has ababa as a substring\}}\label{fig:erptsqfit}
\end{figure}
 
 
\item L = \{w $\mid$ w has neither aa nor bb as a substring\}
\begin{figure}[htp]
\centering
\includegraphics{2c}
\caption{L = \{w $\mid$ w has neither aa nor bb as a substring\}}\label{fig:erptsqfit}
\end{figure}
        
\item L = \{w $\mid$ w has an odd number of a's and an even number of b's\}
\begin{figure}[htp]
\centering
\includegraphics{2d}
\caption{L = \{w $\mid$ w has an odd number of a's and an even number of b's\}}\label{fig:erptsqfit}
\end{figure} 
 
\item L = \{w $\mid$ w has both ab and ba as substrings\}
\begin{figure}[htp]
\centering
\includegraphics{2e}
\caption{L = \{w $\mid$ w has both ab and ba as substrings\}}\label{fig:erptsqfit}
\end{figure} 
\end{enumerate}

Open in new window

kuntilanakAsked:
Who is Participating?
 
wwnosalConnect With a Mentor Commented:
Please try putting this at the begining (e.g: line 2):


\renewcommand{\thefigure}{\alph{figure}}

Open in new window

0
 
kuntilanakAuthor Commented:
nah it still doesn't work
0
All Courses

From novice to tech pro — start learning today.