Linebreak in Equations: Is it Possible?

  • Thread starter Thread starter RedX
  • Start date Start date
AI Thread Summary
Line breaks in equations can be achieved using the split environment in LaTeX, as demonstrated in the provided syntax. The default environment for LaTeX is typically in-line, not \begin{equation*} \end{equation*}. To format equations correctly, users should ensure they are using the appropriate tags and environments. The ampersands in the split environment help with alignment, and users should remember to refresh their browser to see changes. The split environment is recommended for those needing line breaks in their equations.
RedX
Messages
963
Reaction score
3
Is there a way to have a linebreak in an equation?

I tried \linebreak, \newline, \\*, \\, but these don't seem to work.

Also what is the default environment for (tex) (/tex)? When you have those two tags, is that equivalent to \begin{equation*} \end{equation*}? Or if you want an environment do you have to put it between those two tags: (tex) \begin{equation*} equation goes here \end{equation*} (/tex)?
 
Physics news on Phys.org
RedX: I could be wrong, but I currently think the default environment is not \begin{equation*} \end{equation*}. I think the default environment is called in-line (?). To obtain a line break, you could use the following syntax. The ampersands (&) are optional; I am currently not sure exactly what the ampersands do here. Notice "stuff3" will be indented differently if you omit the ampersands. Do not forget to always press the Reload or Refresh button in your browser (located on your browser navigation toolbar) each and every time you preview your latex. (But always copy your text before you press Reload or Refresh, in case it loses what you typed.)

[ tex]\begin{equation*}\begin{split}stuff1&=stuff2\\
stuff3\\
&=stuff4\\
&=stuff5\end{split}\end{equation*}[ /tex]​
 
Last edited:
Thanks. The split environment is new to me. I had tried \\ with eqnarray, but it didn't seem to work on here. But it works with split.
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top