LaTeX Quick (probably easy) Latex Question

  • Thread starter Thread starter latentcorpse
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
SUMMARY

This discussion focuses on resolving LaTeX errors related to using square brackets in subscripts within the align environment. The user seeks to correctly format expressions like q_{[a} p_{b]} without encountering errors. The solution involves ensuring that the square brackets are properly enclosed using \left[ and \right] to avoid misinterpretation by LaTeX. Additionally, the user is advised to check their code for proper syntax to prevent parenthesis closure errors.

PREREQUISITES
  • Familiarity with LaTeX syntax and environments, specifically the align environment.
  • Understanding of mathematical notation in LaTeX, including subscripts and superscripts.
  • Knowledge of LaTeX error messages and debugging techniques.
  • Experience with LaTeX packages that enhance mathematical formatting.
NEXT STEPS
  • Research the use of \left and \right commands in LaTeX for dynamic sizing of brackets.
  • Explore common LaTeX error messages and their resolutions to improve debugging skills.
  • Learn about LaTeX packages like amsmath that provide enhanced functionality for mathematical typesetting.
  • Practice writing complex equations in LaTeX to solidify understanding of formatting rules.
USEFUL FOR

Mathematicians, physicists, students, and researchers who frequently use LaTeX for typesetting equations and need to troubleshoot formatting issues effectively.

latentcorpse
Messages
1,411
Reaction score
0
Hi,

I'm trying to write some equations in LaTeX. They are inside an align environment. My code is the following:

\begin{align*}
\omega_\mu{}^{ab}(e) &= \frac{1}{2} \eta^{ac} \eta^{bd} e^\nu_c e^\rho_d ( \Omega_{[\mu \nu] \rho} - \Omega_{[\nu \rho] \mu} + \Omega_{[\rho \mu] \nu})
\\ &= \frac{1}{2} e^{\nu a} e^{\rho b} ( \Omega_{[\mu \nu] \rho} - \Omega_{[\nu \rho] \mu} + \Omega_{[\rho \mu] \nu})
\intertext{now we use the result $\Omega_{[\mu \nu] \rho} = 2 \partial_{ \left[ \mu } e_{ \nu \right] }{}^a e_{a \rho}$ from eqn $(7.89)$}
\\ &=e^{\nu a} e^{\rho b} \left( \partial_{[\mu} e_{\nu]}{}^c e_{c \rho} - \partial_{[\nu} e_{\rho]}{}^c e_{c \mu} + \partial_{[\rho} e_{\mu]}{}^c e_{c \nu} \right)
\end{align*}

The problem is the last couple of lines where i split square brackets over two different subscripts. LaTeX doesn't like this and complains - a LOT!

So I guess my question boils down to how to write the LaTeX code for something like this:

q_{ [a } p_{ b] }

without getting lots of errors!

Thanks very much!
 
Physics news on Phys.org
Like this?
$$q_{[a} p_{b]}$$
 
Simon Bridge said:
Like this?
$$q_{[a} p_{b]}$$

Yes. Do I need a particular package to get that to work or something?

If you look at the chunk of code I posted above, I have used exactly what you've written but it gives me errors about not having properly closed the parenthesis
 
Looking through your code I get:$$\begin{align}\omega_\mu{}^{ab}(e) &= \frac{1}{2} \eta^{ac} \eta^{bd} e^\nu_c e^\rho_d ( \Omega_{[\mu \nu] \rho} - \Omega_{[\nu \rho] \mu} + \Omega_{[\rho \mu] \nu})
\\ &= \frac{1}{2} e^{\nu a} e^{\rho b} ( \Omega_{[\mu \nu] \rho} - \Omega_{[\nu \rho] \mu} + \Omega_{[\rho \mu] \nu})
\\ &\ldots \text{ now we use the result $\Omega_{[\mu \nu] \rho} = 2 \partial_{[ \mu } e_{ \nu] }{}^a e_{a \rho}$ from eqn $(7.89)$}

\\ &=e^{\nu a} e^{\rho b} \left( \partial_{[\mu} e_{\nu]}{}^c e_{c \rho} - \partial_{[\nu} e_{\rho]}{}^c e_{c \mu} + \partial_{[\rho} e_{\mu]}{}^c e_{c \nu} \right)\end{align}$$
... I think I see what you want to do: you want the square brackets in the partial (in the intertext) to resize so they are bigger than the e in the second part... the trouble was when you used the \left [ ... \right ] inside separate curly brackets latex did not see where the other side to each was. i.e. {\left [}{\right ]} is not allowed and that's the only reason I can think of for wanting to use \left \right in that context.

##2\partial \left [_\nu e_\rho \right ]## ... better?
Though it does kinda make it look like the nu belongs to the e.

[edit]
I have used exactly what you've written
I'm afraid you didn't. Take a closer look ;)

[note: that equ. reference should really be a link too - jic ;) ]
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
542
  • · Replies 5 ·
Replies
5
Views
1K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K