0

I am currently writing my thesis. How to add text on right subfigures in latex like this? Figure

I wrote the following piece of code:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
  \subfloat[]{\includegraphics[height=1.1cm,width=1.2cm]{image1}}\\
   \subfloat[]{\includegraphics[height=1.1cm,width=1.2cm]{image1}}\\
 \end{figure}
\end{document}
  • A subfloat is basically a minipage with the baseline at the bottom of the image (above the caption). The main question is how you want to align the text relative to it. – John Kormylo Nov 16 '17 at 15:33
1

This shows how to align to the top, middle and bottom of the image (assuming you know the height=1.1cm).

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
  \subfloat[]{\includegraphics[height=1.1cm,width=1.2cm]{image1}}%
    \hspace{\bibindent}\raisebox{\dimexpr 1.1cm-\height}{Add text here}\\
  \subfloat[]{\includegraphics[height=1.1cm,width=1.2cm]{image1}}%
    \hspace{\bibindent}\raisebox{\dimexpr .55cm-0.5\height}{Add text here}\\
  \subfloat[]{\includegraphics[height=1.1cm,width=1.2cm]{image1}}%
    \hspace{\bibindent}Add text here\\
 \end{figure}
\end{document}

demo

-1

Hope below suggestion will help:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
  \subfloat[]{\includegraphics[height=150pt,width=1.2cm]{image1}} \hspace*{8pt} \begin{minipage}{\linewidth}\vskip-150pt your text here your text here your text here your text here your text here your text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text here your text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text here\end{minipage} \\
   \subfloat[]{\includegraphics[height=150pt,width=1.2cm]{image1}} \hspace*{8pt} \begin{minipage}{\linewidth}\vskip-150pt your text here your text here your text here your text here your text here your text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text here your text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text hereyour text here your text here your text here your text here your text here\end{minipage}
 \end{figure}
\end{document} 

enter image description here

If you need to increase the figure width, reduce or adjust the minipage width.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.