Simple latex notation question

  • Context: LaTeX 
  • Thread starter Thread starter jeffreydk
  • Start date Start date
  • Tags Tags
    Latex Notation
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 16K views
jeffreydk
Messages
133
Reaction score
0
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?
 
Physics news on Phys.org
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 can't remember.

Hope this helps
 
Oh ok I see, that does help. Thanks.