It is not entirely clear what you after. Probably something like this?
This can be simply to obtain by use of minipages, in which you insert for example tikzpicture
by use of \input{<file name>}
and some image on the same way (however, in such cases is simpler to insert it directly by using includegraphics
). Of course, each minipage should contain \caption
and \label
too:
\begin{filecontents}{fig-a}
\begin{tikzpicture}
\node{Hello world!};
\end{tikzpicture}
\end{filecontents}
\begin{filecontents}{fig-b}
\includegraphics{photo}
\end{filecontents}
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\input{fig-a}%\includegraphics[width=\linewidth]{example-image-duck}
\caption{caption}
\label{fig-a}
\end{minipage}\hfill\begin{minipage}[b]{0.45\linewidth}
\input{fig-b}
\caption{caption}
\label{fig-b}
\end{minipage}
\end{figure}
See figure \ref{fig-a} and \ref{fig-b} ...
\end{document}