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

Simple latex notation question

  1. Aug 6, 2008 #1
    Is there a symbol in latex for a divide bar that works with absolute values? The problem is for example if you want to write [itex] |a|[/itex] divides [itex] |b|[/itex]. It ends up looking horrible because you can't tell the difference between the abs value signs and the divide bar...

    [tex]|a| \vert |b|[/tex]

    Any suggestions?
  2. jcsd
  3. Aug 6, 2008 #2
    You can use \frac [tex] \frac{|a|}{|b|}[/tex] or if you want to do it the way you want with space use \quad or \qquad or more recommended is \, \: \; [tex] |a| \, \vert \, |b| =|a| \: \vert \: |b| = |a| \; \vert \; |b| = |a| \quad \vert \quad |b| =|a| \qquad \vert \qquad |b| [/tex] or \div [tex] |a| \div |b| [/tex]. Possibilities are endless really. I like \fraq personally, I find it more readable. I know there is also one that does like x/y but I never use it so I cant remember.

    Hope this helps
  4. Aug 6, 2008 #3
    Oh ok I see, that does help. Thanks.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook