Code: Select all
\begin{figure}
\centering
\includegraphics[width=.7\textwidth]{example-image-a}
\doubleCaptionAndLabel{label-for-ref}[text in list entry][english language caption][malay language caption] % with full input
\end{figure}
nanana nanana \ref{label-for-ref} nanana\par
\begin{figure}
\centering
\includegraphics[width=.7\textwidth]{example-image-b}
\doubleCaptionAndLabel{fig-bola}[][][] % with minimum input
\end{figure}
lala lalala \ref{fig-bola} lalala\par
I am looking for a draff function of the \doubleCaptionAndLabel.
Maybe using something like \NewDocumentCommand from package xparse, I'm not sure, still studying. Need the draff so I can understand how it works, at the same time refering maybe at http://ossm.utm.my/tex-archive/macros/l ... aption.pdf and http://ossm.utm.my/tex-archive/macros/l ... xparse.pdf
Thank you.