我想将这两个 .tikz 图以单列格式并排放置。请为我推荐乳胶代码。
\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}
答案1
TeX.Se 上有很多类似的问题,所以你的问题可能是重复的...无论如何,尝试:
\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}
当然,您可以使用 TikZ 图片而不是示例图像。