Simple latex notation question

  • Context: LaTeX 
  • Thread starter Thread starter jeffreydk
  • Start date Start date
  • Tags Tags
    Latex Notation
Click For Summary
SUMMARY

The discussion addresses the challenge of representing a divide bar in LaTeX that distinguishes between absolute value signs and the division operator. Users suggest various methods to achieve clarity, including using the commands \frac, \quad, \qquad, and spacing commands like \, and \:. The recommended approach for readability is to use \frac{|a|}{|b|}, while alternatives include |a| \, \vert \, |b| and |a| \quad \vert \quad |b|. These methods ensure that the notation is visually distinct and comprehensible.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of mathematical notation and absolute values
  • Knowledge of spacing commands in LaTeX
  • Basic experience with LaTeX document preparation
NEXT STEPS
  • Explore advanced LaTeX formatting techniques for mathematical expressions
  • Learn about LaTeX spacing commands and their applications
  • Investigate the use of the \frac command for fractions in LaTeX
  • Review best practices for typesetting mathematical notation in LaTeX
USEFUL FOR

Mathematicians, educators, students, and anyone involved in typesetting mathematical documents using LaTeX.

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.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K