1

I want to place these two .tikz Fig. side by side in a single column format. Please suggest me latex code for this.

\begin{figure} [H]
\begin{center}
\input{states2_zeta.tikz}
\end{center}
\caption{Output current of controlled zeta converter}
{\label{sec4:Zeta converter:load current}}
\end{figure}
\begin{figure} [H]
\begin{center}
\input{states4_zeta.tikz}
\end{center}
\caption{Output voltage of controlled zeta converter}
{\label{sec4:Zeta converter:output voltage}}
\end{figure}
Torbjørn T.
  • 206,688
Sanjeev
  • 11

1 Answers1

1

Here on TeX.Se are planty of similar questions, so yours is probably duplicate ... Anyway, try:

\documentclass{article}
\usepackage{graphicx}
\usepackage{tabularx}

\begin{document}
\begin{figure}[htb]
    \begin{tabularx}{\textwidth}{*{2}{>{\centering\arraybackslash}X}}
\includegraphics[width=0.9\hsize]{example-image}%\input{states2_zeta.tikz}
\caption{Output current of controlled zeta converter}
    \label{sec4:Zeta converter:load current}
    &
\includegraphics[width=0.9\hsize]{example-image}%{states4_zeta.tikz}
\caption{Output voltage of controlled zeta converter}
    \label{sec4:Zeta converter:output voltage}
    \end{tabularx}
\end{figure}
    \end{document}

enter image description here

Of course, instead of example images you use your TikZ picture.

Zarko
  • 296,517