1

I want to make a caption like thisenter image description here

See the (a) and (b). I dont know how to add to my figure. I only have like this enter image description here

The different is only in thisenter image description here

This is MWE

 \documentclass[a4paper, 12pt, twoside,demo]{book}
    \usepackage{pdfpages}
    \usepackage{pslatex}%
    \usepackage{setspace}
    \setlength{\abovecaptionskip}{1pt}
    \usepackage[paperheight=297mm,paperwidth=215mm,top=3cm,left=4cm,bottom=3cm,right=3cm]{geometry}


    \usepackage{graphicx}

    \usepackage{eqparbox} %membuat spasi chapter rata

 \begin{document}
 \begin{figure}[h!]
 \centering
  \fbox{%
    \begin{minipage}{\dimexpr12cm-2\fboxsep-2\fboxrule}\centering
     \includegraphics[scale=0.3]{kurvaeta2.png}
     \includegraphics[scale=0.4]{kurvaetamatlab.png}
     \caption{Perbandingan Kurva Kekentalan Mikroalga terhadap Posisi} \label{bab2g1}
    \end{minipage}}
 \end{figure}
 \end{document}
  • 1
    Probably you should minimize your MWE, if it is possible. – Sebastiano Dec 24 '19 at 13:03
  • 1
    @Sebastiano, I've minimize the MWE – Eddy Dec 24 '19 at 13:20
  • Use the subfigure environment (subcaption package), or subfloatrow (from the floatrow package). – Bernard Dec 24 '19 at 13:24
  • @Bernard, maybe you can show the example? – Eddy Dec 24 '19 at 13:26
0
\documentclass[12pt, twoside, demo]{book}
\usepackage[paperheight=297mm,paperwidth=215mm,
            hmargin={4cm,3cm}, vmargin=3cm]{geometry}
\usepackage{graphicx}
\usepackage{subcaption}

 \begin{document}
 \begin{figure}[ht]
    \centering
\begin{subfigure}{0.45\linewidth}
\includegraphics[width=\linewidth]{kurvaeta2.png}
    \caption{}
    \label{subfig:a}
\end{subfigure}
    \hfil
\begin{subfigure}{0.45\linewidth}
\includegraphics[width=\linewidth]{kurvaetamatlab.png}
    \caption{}
    \label{subfig:b}
\end{subfigure}
     \caption{Perbandingan Kurva Kekentalan Mikroalga terhadap Posisi} 
     \label{bab2g1}
 \end{figure}
 \end{document}

enter image description here

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.