erro de subscrito duplo $}

erro de subscrito duplo $}

insira a descrição da imagem aqui

Olá, estou tentando encaixar esta grande equação matricial nas margens da página, mas continuo recebendo erro de subscrito duplo. Qualquer sugestão é bem-vinda, tnx!

Aqui está o código:

\begin{equation}\\
%\renewcommand*{\arraystretch}{1.1}
\resizebox{1 \textwidth}{!} 
{$
\begin{bmatrix}
V_{A} \\
V_{B} \\
V_{C} \\
0\\
0\\
0\\
\end{bmatrix}
=
\begin{bmatrix}
R_A+X_{AA} & X_{AB} & X_{AC} & X_{AN_1} & X_{AN_2} & R_{AG}+X_{AG} \\
X_{BA} & R_B+X_{BB} & X_{BC} & X_{BN_1}& X_{BN_2} & R_{BG}+X_{BG} \\
X_{CA} & X_{CB} & R_C+X_{CC} & X_{CN_1}  & X_{CN_2} & R_{CG}+X_{CG} \\
X_{N_1A} & X_{N_1B} & X_{N_1C} & R_N_1 +X_{N_1N_1} & X_{N_1N_2} & R_{N_1G}+X_{N_1G} \\
X_{N_2A} & X_{N_2B} & X_{N_2C} & X_{N_2N_1} & R_{N_2}+X_{N_2N_2} & R{N_2G}+ X_{N_2G} \\
* &* &* &* &* &*\\
\end{bmatrix}
\begin{bmatrix}
I_{A} \\
I_{B} \\
I_{C} \\
I_{N_1} \\
I_{N_2}\\
I_G\\
\end{bmatrix}
$}
\end{equation}

Responder1

Além de mudar R_N_1para R_{N_1}, você também deve mudar R{N_2G}para R_{N_2G}.

Uma questão separada: em vez de \resizeboxencaixar a equação no espaço disponível, considere empregar uma \smalldiretivaforao equationambiente. Se você realmente deseja usar \resizebox, você deve usar 0.94\textwidthcomo largura do design,não 1\textwidth. Por que? Porque você precisa reservar algum espaço para digitar o número da equação.

insira a descrição da imagem aqui

\documentclass{article}
\usepackage{amsmath,geometry}
\begin{document}
\begingroup % localize scope of the "\small" directive
\small
\begin{equation}
   \setlength\arraycolsep{2.5pt} % default: 5pt
    \begin{bmatrix}
    V_{A} \\
    V_{B} \\
    V_{C} \\
    0\\
    0\\
    0
    \end{bmatrix}
    =
    \begin{bmatrix}
    R_A+X_{AA} & X_{AB} & X_{AC} & X_{AN_1} & X_{AN_2} & R_{AG}+X_{AG} \\
    X_{BA} & R_B+X_{BB} & X_{BC} & X_{BN_1}& X_{BN_2} & R_{BG}+X_{BG} \\
    X_{CA} & X_{CB} & R_C+X_{CC} & X_{CN_1}  & X_{CN_2} & R_{CG}+X_{CG} \\
    X_{N_1A} & X_{N_1B} & X_{N_1C} & R_{N_1} +X_{N_1N_1} & X_{N_1N_2} & R_{N_1G}+X_{N_1G} \\
    X_{N_2A} & X_{N_2B} & X_{N_2C} & X_{N_2N_1} & R_{N_2}+X_{N_2N_2} & R{N_2G}+ X_{N_2G} \\
    * &* &* &* &* &*
    \end{bmatrix}
    \begin{bmatrix}
    I_{A}   \\
    I_{B}   \\
    I_{C}   \\
    I_{N_1} \\
    I_{N_2} \\
    I_G 
    \end{bmatrix}
\end{equation}
\endgroup
\end{document}

informação relacionada