Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A multiplication in LaTeX

  1. May 1, 2017 #1
    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$$

    upload_2017-5-2_1-4-49.png
    Would you please explain what is wrong with the code?

    Thank you.
     
  2. jcsd
  3. May 1, 2017 #2

    Drakkith

    User Avatar

    Staff: Mentor

    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.
     
  4. May 1, 2017 #3
    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.
     
  5. May 1, 2017 #4

    Drakkith

    User Avatar

    Staff: Mentor

    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/
     
  6. May 2, 2017 #5
    I am trying to understand this page step to step.

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

    Thank you.
     
  7. May 2, 2017 #6

    Drakkith

    User Avatar

    Staff: Mentor

    I've just tried it and it doesn't appear to work correctly in conjunction with LaTeX.
     
  8. May 2, 2017 #7
    Delimiters, #,#, do not work in this case. Does that coding cause the delimiters to no be interpreted by the browser?

    ##Ab come##

    Thank you.
     
  9. May 2, 2017 #8

    Drakkith

    User Avatar

    Staff: Mentor

    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.
     
  10. May 2, 2017 #9
    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.
     
  11. May 2, 2017 #10

    Drakkith

    User Avatar

    Staff: Mentor

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: A multiplication in LaTeX
Loading...