数学旁边的图像

数学旁边的图像

我怎样才能让我保持以下方式,但不是使用 $,而是使用命令 /begin {align} 来编号数学公式以便以后引用它们?

 \begin{center} 
 \begin{tabular}{ll}
 \begin{tikzpicture}
            \coordinate (A) at (0,0);
            \coordinate (B) at (1.3,0);
            \coordinate (C) at (0,1.12);
            \coordinate (D) at (1.3,1.12);
            \draw[o-] (A)--(B) ;
            \draw[o-] (C)--(D) ;
            \draw   (1.3,1.12) to[resistor,label=\mbox{\textcolor{red}{$R$}}] (1.3,0);
            \draw [->,color=blue] (0.5,0.8) arc (90:-90:0.3cm);%
            \draw (0.5,0.5) node {\textcolor{blue}{$i$}}; \end{tikzpicture}
 &
\begin{tabular}{l}
$v_e=R i$ \\ \\
$v_e(s)=R I(s)$ \\ \\
\end{tabular}
% \caption{Resistencia}
 \label{fig:1.10}
\end{tabular}
\end{center}

因为当我尝试使用下一个表单时,编译器出现错误

\begin{center}%----figura de la Resistencia
\begin{tabular}{ll}
\begin{tikzpicture}
            \coordinate (A) at (0,0);
            \coordinate (B) at (1.3,0);
            \coordinate (C) at (0,1.12);
            \coordinate (D) at (1.3,1.12);
            \draw[o-] (A)--(B) ;
            \draw[o-] (C)--(D) ;
            \draw   (1.3,1.12) to[resistor,label=\mbox{\textcolor{red}{$R$}}] (1.3,0);
            \draw [->,color=blue] (0.5,0.8) arc (90:-90:0.3cm);%
            \draw (0.5,0.5) node {\textcolor{blue}{$i$}}; \end{tikzpicture}
 &
\begin{align}
v_e=R i$ \\
v_e(s)=R I(s)
\end{align}
% \caption{Resistencia}
 \label{fig:1.10}
\end{tabular}
\end{center}

有什么建议吗?谢谢

答案1

您可以简单地使用两个并排的minipage;由于您没有提供 MWE,我更改了您的代码:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{circuits,arrows}

\begin{document}

\begin{center} 
\begin{minipage}{.5\textwidth}
\centering
 \begin{tikzpicture}
            \coordinate (A) at (0,0);
            \coordinate (B) at (1.3,0);
            \coordinate (C) at (0,1.12);
            \coordinate (D) at (1.3,1.12);
            \draw[o-] (A)--(B) ;
            \draw[o-] (C)--(D) ;
            \draw (0.5,0.5) node {\textcolor{blue}{$i$}}; 
\end{tikzpicture}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\begin{align*}
v_e &= R i \\
v_e(s) &= R I(s)
\end{align*}
\end{minipage}
\end{center}

\end{document}

这就是您想要实现的目标吗?

相关内容