2

Is there any way to create automatically fractions without writing every time \frac{a}{b}. Is there any easy method to write this?

Iuli
  • 471

2 Answers2

0

Some time ago I found this great AHK script, written by the user @scavi, which makes writing in LateX much more comfortable and agile. It autocompletes the tedious \frac{}{} by just typing \fra and pressing the tab key, as well as including many other features.

Quaerendo
  • 101
  • 2
0

If you are an Emacs user, you can use the quick calc mode in your latex document. calc must be configured (see the calc menu bar): Fraction mode, symbolic mode, no simplification mode, LaTeX language mode.

If it's set up correctly, you can just call Quick Calculation Mode, type your formula, and paste the output into your latex document. for example, you type C-x * q to invoke quick calc mode and type

  (-b + sqrt (b ^ 2-4 ac)) / (2 a)

the output is

  \ frac {-b + \ sqrt {b ^ 2-4 ac}} {2 a}

An alternative is the embedded calc mode: you type your formula directly into your latex document and call this mode which performs the conversion.

gigiair
  • 1,812