# LaTeX A multiplication in LaTeX

1. May 1, 2017

### mech-eng

I try to write volume calculation equation in latex using both multiplication and deltat which is producted with velocity and quarter square of diameter to calculate volume.

Vvolume=Vvelocity$$\frac{diamter^2}{4}\deltat$$

Would you please explain what is wrong with the code?

Thank you.

2. May 1, 2017

### Drakkith

Staff Emeritus
Is this what you're looking for?

$V_{volume} = V_{velocity}\frac{diameter^2}{4}{\Delta}t$

The LaTeX code I used is: V_{volume} = V_{velocity}\frac{diameter^2}{4}{\Delta}t
Edit: There should be double '#' symbols before and after the entire thing.

3. May 1, 2017

### mech-eng

Why is there a big space between Velocity and diameter parts in my code in spite of they are written without in space in the code?

Thank you.

4. May 1, 2017

### Drakkith

Staff Emeritus
Best I can tell, it's because of 2 things.

1. In your code you have the double '\$' symbols right before the d^2/4 term. That tells the software that you want everything in between the dollar signs as LaTeX and also tells it you want it centered in the screen. You need to put the first set of dollar signs at the very front. Alternatively, you can use double '#' symbols instead of dollar signs. That tells the software your writing LaTeX, but that you want to keep it located where the actual text is, not centered in the screen.

2. You're using V(SUB)volume(/SUB) in your code (but with brackets instead of parentheses). I don't think that's compatible with LaTeX and so the software doesn't treat it as LaTeX. If I change the code to V_{velocity}, using an underscore instead, and put the dollar signs in front of the entire equation then it works fine.

Note that writing V_volume gives you $V_volume$. You need to write it as V_{volume} to get $V_{volume}$.

If you haven't already, take a look at our LaTeX primer: https://www.physicsforums.com/help/latexhelp/

5. May 2, 2017

### mech-eng

Does this mean that LaTeX and BB Coding are not compatible? Because V(SUB)volume(/SUB) works in this site.

Thank you.

6. May 2, 2017

### Drakkith

Staff Emeritus
I've just tried it and it doesn't appear to work correctly in conjunction with LaTeX.

7. May 2, 2017

### mech-eng

Delimiters, #,#, do not work in this case. Does that coding cause the delimiters to no be interpreted by the browser?

$Ab come$

Thank you.

8. May 2, 2017

### Drakkith

Staff Emeritus
I'm not sure what you mean by this. I'm pretty inexperienced with LaTeX myself, so I have no idea about any of the behind-the-scenes functionality.

9. May 2, 2017

### mech-eng

I mean the delimiters, the number signs, work well in this #, # A_b#, # > $A_b$ but these delimiters, the numbers signs do not work with $Ab$

The delimiter #, do not work.
#: Numbersign?
Thank you.

10. May 2, 2017

### Drakkith

Staff Emeritus
Okay, I had to click the "edit" button and look at the raw text in your post to understand.
You're saying exactly what I said before. You can't use A(sub)b(/sub) with the LaTeX delimiters. Unfortunately I don't know why.