title: Multiple subfigures in a row in a LaTeX document
body: <p>I am trying to insert four figures in a LaTeX document but if I use subfigure command, two of my figures stay in first row and the other two go to the second line. Like this :
   <a href="https://i.stack.imgur.com/sZ3s3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sZ3s3.png" alt="enter image description here"></a></p>
  
  <p>The other solution I tried was using minipage command, but the problem with minipage is that the subfigures get normal figure caption (like Figure 1) while I would like subfigure captions like (a). See the following figure:
  <a href="https://i.stack.imgur.com/8m57T.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8m57T.png" alt="enter image description here"></a></p>
  
  <p>What I prefer is to have something like second picture but with the captions like first picture.</p>