TransWikia.com

Write in an easy way $frac{a}{b}$. Shortcuts to output the fractions

TeX - LaTeX Asked by Iuli on April 22, 2021

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

2 Answers

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.

Answered by Quaerendo on April 22, 2021

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.

Answered by gigiair on April 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP