LaTeX Latex Braces: How to Center and Reference Multiple Equations | PF Question

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
The discussion focuses on how to format LaTeX braces to center and reference multiple equations with a single number. The user seeks to create a brace that includes two equations, A and B, and have it automatically adopt the next sequential number in the equation series. Suggestions include using the array environment and the equation environment to achieve this formatting. It's noted that using single dollar signs results in inline math mode, which does not provide equation numbers, while double dollar signs are deprecated. The recommended solution is to use the equation environment to properly display the brace with an equation number.
member 428835
hey pf!

i have a question on latex, specifically on braces. i have:

$$\left.\begin{aligned}
A \\
B \end{aligned}
\right\}$$

but i am wanting one number far to the right and centered at the point of the brace so i can reference these two equations as one number.

also, the number should be able to fit directly into the number sequence it is written (what i mean is, i have equations before this and it would be nice if this brace simply adopted the next natural number, so if the equation before was (4) this would automatically be (5) so the next equation would be (6) automatically).

i'm sorry, but i don't know how to enter the command without it showing in latex (yes, I am a rookie). i tried googling it, but no luck. perhaps if you help you can QUOTE me and it should pop up.

thanks!
 
Physics news on Phys.org
joshmccraney said:
hey pf!

i have a question on latex, specifically on braces. i have:

$$\left.\begin{aligned}
A \\
B \end{aligned}
\right\}$$

Code:
\left.\begin{aligned}
 A \\
 B \end{aligned}
 \right\}

but i am wanting one number far to the right and centered at the point of the brace so i can reference these two equations as one number.

also, the number should be able to fit directly into the number sequence it is written (what i mean is, i have equations before this and it would be nice if this brace simply adopted the next natural number, so if the equation before was (4) this would automatically be (5) so the next equation would be (6) automatically).

i'm sorry, but i don't know how to enter the command without it showing in latex (yes, I am a rookie). i tried googling it, but no luck. perhaps if you help you can QUOTE me and it should pop up.

thanks!

The array environment should do the trick.
\left. \begin{array}{c} A\\ B\end{array}\right\}

Code:
$\left. \begin{array}{c} A\\ 
B\end{array}\right\}$

or something like that. The "\left." means that there is an invisible thing to the left of whatever you try to enclose with the brackets.

The CODE tags are useful for posting stuff like this on the forum.
 
thanks hypersphere. you mean title mine as "CODE" next time with a description?
 
also, i tried the code you proposed but there is no number on the side. it's what i already had
 
joshmccraney said:
thanks hypersphere. you mean title mine as "CODE" next time with a description?
I meant that if you want to post LaTeX code giving you trouble and display the actual code instead of its result, you can write it like
Code:
code you don't want the forum to process goes here[\code]
but with the backslash replaced by a slash.

[quote="joshmccraney, post: 4593009"]also, i tried the code you proposed but there is no number on the side. it's what i already had[/QUOTE]

Sorry about that. Yeah, LaTeX distinguishes between a few math modes, and the (single) dollar signs toggle "inline math mode", which is meant to be part of a paragraph without breaking the lines. Naturally then, there is no equation number. The double dollar signs is deprecated,by the way. To get equation numbers you want a math environment that's part of the "display math mode", such as equation or align (a few other ones don't use equation numbers though). E.g.
[code]
\begin{equation}
    \left. \begin{array}{c} A\\ B\end{array}\right\}
\end{equation}
 
  • Like
Likes 1 person
thanks!
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
8K