Putting Brackets around fractions LATEX

  • Context: LaTeX 
  • Thread starter Thread starter NoobixCube
  • Start date Start date
  • Tags Tags
    Fractions Latex
Click For Summary

Discussion Overview

The discussion revolves around formatting fractions in LaTeX, specifically how to properly use brackets around fractions in the context of writing differential equations.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant expresses difficulty in making brackets cover the full fraction when writing a differential.
  • Another participant suggests using the left and right macros in LaTeX to achieve the desired formatting.
  • A participant seeks clarification on the term "macros" used in the context of LaTeX.
  • A further explanation is provided regarding what macros are and their historical context in programming languages.

Areas of Agreement / Disagreement

Participants generally agree on the solution involving the use of left and right macros, but there is no explicit consensus on the broader implications or definitions of macros in programming.

Contextual Notes

The discussion does not address potential limitations or assumptions regarding the use of macros in different contexts or LaTeX environments.

Who May Find This Useful

Individuals interested in LaTeX formatting, particularly those working with mathematical expressions and differential equations.

NoobixCube
Messages
154
Reaction score
0
I can't seem to make the brackets cover the full fraction when stating a differential, namely

\begin{equation}
(\frac{df}{dt})
\end{equation}

Any tips?
 
Physics news on Phys.org
You need to tell LaTeX that those parentheses are around the fraction. One way is with the left and right macros:

\left(\frac{df}{dt}\right)

[tex]\left(\frac{df}{dt}\right)[/tex]
 
Thanks loads!
By the by, what do you mean by macros?
 
All of those things preceded by a backslash in LaTeX are macros. LaTeX, unfortunately, is a macro language rather than a functional or procedural language. The term 'macro' goes back to the earliest days of computer programming. Some languages (e.g. C and C++) still provide a macro processing capability (#define in C/C++).
 
Awesome thanks :)
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 16 ·
Replies
16
Views
3K