1

I have a single .png file that contains 4 figures (images) uniformly located on it. I would like to have a subfigure letter for each of them ( (a),(b),(c),(d) ), but I would like to avoid manually separating the figure in 4.

Is there a way to include a line below a single figure with (a),(b),(c),(d) between the figure and the caption? Best possible case by choosing the location of these letters so I can adjust them as pleased.

Ander Biguri
  • 1,837

1 Answers1

1

If I understand your question correctly, you could use tikz with onimage to use to the tikzonimage environment. Here's what I did to introduce text above an image (called imagefile).

    \documentclass{article}   

    \usepackage{onimage}            
    \usepackage{tikz}   

    \begin{document}

    \begin{figure}[h]
    \centering
    \begin{tikzonimage}[width=0.7\textwidth]{imagefile}
    \node at (0.10, 1.10) {(a)};
    \node at (0.50, 1.10) {(b)};
    \end{tikzonimage}
    \label{fig:blah}
    \end{figure}

    \end{document}

enter image description here

Harry
  • 46
  • Welcome to TeX.SX! It'd be better if you complete your code with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. – CarLaTeX Jan 26 '17 at 17:42
  • Hi! thanks for the response. I can't seem to be able to find the onimage package (its not even in CTAN). Is there an alternative using some more "standard" package? – Ander Biguri Jan 30 '17 at 16:52
  • @Ander, you are right about it not in CTAN. Here's some info about how to get it (and more importantly, to use it). http://tex.stackexchange.com/a/30435 – Harry Jan 30 '17 at 21:07