Why can't I use A(sub)b(/sub) with LaTeX delimiters?

  • Context: LaTeX 
  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Latex Multiplication
Click For Summary

Discussion Overview

The discussion revolves around the use of LaTeX for formatting equations in a forum context, specifically addressing issues with delimiters and compatibility with BB coding. Participants explore problems related to spacing, syntax, and the correct usage of LaTeX commands.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant attempts to write a volume calculation equation in LaTeX but encounters issues with spacing and syntax.
  • Another participant suggests a corrected version of the equation and notes the importance of using double '#' symbols instead of dollar signs for inline LaTeX.
  • Concerns are raised about the spacing between terms in the LaTeX code, attributed to the placement of dollar signs and the use of underscores for subscripts.
  • There is a discussion about the compatibility of LaTeX with BB coding, with some participants questioning whether they can be used together effectively.
  • Some participants express uncertainty about the functionality of delimiters and their interaction with LaTeX commands.
  • A participant notes that the delimiters do not work correctly with certain LaTeX expressions, specifically mentioning the issue with using A(sub)b(/sub).

Areas of Agreement / Disagreement

Participants express differing views on the compatibility of LaTeX and BB coding, with no consensus reached on the underlying reasons for the issues encountered. The discussion remains unresolved regarding the specific interactions between delimiters and LaTeX formatting.

Contextual Notes

Limitations include the potential misunderstanding of how LaTeX and BB coding interact, as well as the specific formatting requirements that may not be universally applicable across different contexts.

mech-eng
Messages
826
Reaction score
13
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.
 
Physics news on Phys.org
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.
 
  • Like
Likes   Reactions: 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.
 
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/
 
  • Like
Likes   Reactions: mech-eng
Drakkith said:
If you haven't already, take a look at our LaTeX primer: https://www.physicsforums.com/help/latexhelp/

I am trying to understand this page step to step.

Drakkith said:
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.
Does this mean that LaTeX and BB Coding are not compatible? Because V(SUB)volume(/SUB) works in this site.

Thank you.
 
mech-eng said:
Does this mean that LaTeX and BB Coding are not compatible? Because V(SUB)volume(/SUB) works in this site.

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

##Ab come##

Thank you.
 
mech-eng said:
Delimiters, #,#, do not work in this case. Does that coding cause the delimiters to no be interpreted by the browser?

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.
 
Drakkith said:
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.

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
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K