LaTeX Debugging Latex Code: 28 Errors and Still Trying

AI Thread Summary
The discussion revolves around troubleshooting LaTeX code that is generating 28 errors, primarily related to missing brackets and delimiters. The user has shared their code, which includes several equations formatted with the align environment. A key point raised is the correct usage of the \right and \left commands; specifically, the user is advised that \right should not be used when a delimiter is not desired. Instead, they should use \right. to indicate the end of a delimiter without actually displaying it. The user mentions that the code displays correctly in TeXnicCenter, suggesting that the issue may be specific to the environment they are using to compile the LaTeX document.
latentcorpse
Messages
1,411
Reaction score
0
hi. not sure if this is the right forum.
i have latex code that I'm trying to get to print but it's giving me 28 errors and i can't find any of them


i've got it to display nice but I'm still getting 28 errors when i run and they're all apparently related to missing brackets and stuff but i just can't find them
here's my code:

\begin{align}
\theta^0{}_1 &= L^{-2}e^{-2a} \left \{ \left( a'' - \ddot{a} \right) \omega^0 \wedge \omega^1 - \left( \star \left[ P_{\text{sym}}, U_{\text{sym}} \right] \right) \omega^2 \wedge \omega^3 \right \} \\
\theta_0 &= L^{-2}e^{-2a} \biggl\{ \biggl( \dot{a} P_{\text{sym}} + a' U_{\text{sym}} - \dot{P}_{\text{sym}} - {P_{\text{sym}}}^2 + \left( \star P \right) \left[ \epsilon, P \right] \biggr) \omega^0 \right \\ \nonumber &+ \biggl( a'P_{\text{sym}} + \dot{a} U_{\text{sym}} - {P_{\text{sym}}}'-P_{\text{sym}}U_{\text{sym}} + \left( \star U \right) \left[ \epsilon, P \right] \biggr) \omega^1 \biggr\} \wedge \omega \\
\theta_1 &= L^{-2}e^{-2a} \biggl\{ \biggl( a' U_{\text{sym}} + \dot{a} P_{\text{sym}} - {U_{\text{sym}}}' - {U_{\text{sym}}}^2 + \left( \star \right) \left[ \epsilon, U \right] \biggr) \omega^1 \right \\ \nonumber &+ \left \biggl( \dot{a} U_{\text{sym}} + a'P_{\text{sym}} - \dot{U}_{\text{sym}} - U_{\text{sym}}P_{\text{sym}} + \left( \star P \right) \left[ \epsilon, U \right] \biggr) \omega^0 \biggr\} \wedge \omega \\
\theta &= L^{-2}e^{-2a} \left( \left[ U, P \right]_{\text{asym}} \omega^0 \wedge \omega^1 + \left( \text{det} U_{\text{sym}} - \text{det} P_{\text{sym}} \right) \omega \wedge \omega \right)
\end{align}

and the display:

\begin{align}<br /> \theta^0{}_1 &amp;= L^{-2}e^{-2a} \left \{ \left( a&#039;&#039; - \ddot{a} \right) \omega^0 \wedge \omega^1 - \left( \star \left[ P_{\text{sym}}, U_{\text{sym}} \right] \right) \omega^2 \wedge \omega^3 \right \} \\<br /> \theta_0 &amp;= L^{-2}e^{-2a} \biggl\{ \biggl( \dot{a} P_{\text{sym}} + a&#039; U_{\text{sym}} - \dot{P}_{\text{sym}} - {P_{\text{sym}}}^2 + \left( \star P \right) \left[ \epsilon, P \right] \biggr) \omega^0 \right \\ \nonumber &amp;+ \biggl( a&#039;P_{\text{sym}} + \dot{a} U_{\text{sym}} - {P_{\text{sym}}}&#039;-P_{\text{sym}}U_{\text{sym}} + \left( \star U \right) \left[ \epsilon, P \right] \biggr) \omega^1 \biggr\} \wedge \omega \\<br /> \theta_1 &amp;= L^{-2}e^{-2a} \biggl\{ \biggl( a&#039; U_{\text{sym}} + \dot{a} P_{\text{sym}} - {U_{\text{sym}}}&#039; - {U_{\text{sym}}}^2 + \left( \star \right) \left[ \epsilon, U \right] \biggr) \omega^1 \right \\ \nonumber &amp;+ \left \biggl( \dot{a} U_{\text{sym}} + a&#039;P_{\text{sym}} - \dot{U}_{\text{sym}} - U_{\text{sym}}P_{\text{sym}} + \left( \star P \right) \left[ \epsilon, U \right] \biggr) \omega^0 \biggr\} \wedge \omega \\<br /> \theta &amp;= L^{-2}e^{-2a} \left( \left[ U, P \right]_{\text{asym}} \omega^0 \wedge \omega^1 + \left( \text{det} U_{\text{sym}} - \text{det} P_{\text{sym}} \right) \omega \wedge \omega \right)<br /> \end{align}
sort of works here and it definitely does on TeXnicCenter which is what I'm using.

thanks for any help.
 
Physics news on Phys.org
You cannot write \right when you don't want a delimiter. Instead, use \right. (\right followed by a period).
 

Similar threads

Replies
3
Views
3K
Replies
1
Views
3K
Replies
16
Views
4K
Replies
17
Views
350
Replies
3
Views
2K
Back
Top