Skip to main content

How Do You Write Fractions In Tex?

by
Last updated on 5 min read

How Do You Write Fractions In Tex?

In LaTeX, write fractions with \frac{numerator}{denominator}—just swap in your actual numbers or expressions.

Notion won’t render LaTeX fractions like \frac{1}{2} natively unless you bring in a third-party tool or external LaTeX renderer.

How do you write a fraction in notion?

Notion doesn’t do native LaTeX, but you can fake fractions with Unicode or embed rendered LaTeX images.

For quick results, type ½ for a half or for a third using keyboard shortcuts. Need something custom like ? Fire up a LaTeX editor, compile it to an image, then upload that image to Notion. Another trick? Use Notion integrations like third-party LaTeX renderers that turn formulas into images automatically.

How do you write slanted fractions in latex?

Load the xfrac package and use \sfrac{numerator}{denominator} for slanted fractions.

First, toss \usepackage{xfrac} in your preamble. Then write \sfrac{1}{2} for a slanted ½. These look great inline where straight fractions feel too tall, like $\sfrac{2}{3}$ → ⅔. Just don’t overdo it—slanted fractions can throw off text alignment if you sprinkle them everywhere.

How do I write in latex?

LaTeX is plain text with markup; just type normally inside the document body.

Start with a document class like \documentclass{article}. Add packages if you need extras—\usepackage{amsmath} unlocks math features. The body begins with \begin{document}, and you type away. LaTeX handles spacing, fonts, and alignment automatically. Want bold or italic? Use \textbf{text} or \textit{text}. Compile with pdflatex (or your engine of choice), and your PDF will look polished without extra tweaking.

How do you do subscript in latex?

Type _{subscript} to create a subscript; braces aren’t needed for single characters.

For example, H_2O becomes H2O. Multiple characters? Use braces: X_{ij} → Xij. Subscripts pop up everywhere—chemical formulas, matrices, math notation. In math mode, they automatically shrink and drop below the baseline. You can even stack them, like a_i^2 → ai2.

What is Dfrac LaTeX?

\dfrac forces fractions into “display style,” making them larger and clearer for standalone equations.

\dfrac comes from the AMS-LaTeX package. Compare \frac{1}{2} (text style) versus \dfrac{1}{2} (display style): the latter is taller and easier to read in equations like . Use \dfrac when fractions are the star of the show. For inline math, stick with \frac to keep line spacing tight.

Is LaTeX really better than Word?

LaTeX crushes Word for complex documents—math, bibliographies, cross-references—but Word wins for quick edits and teamwork.

LaTeX shines with scientific papers, theses, and manuals where precision matters. It automates tables of contents, BibTeX citations, and equation numbering. Word? Far friendlier for real-time collaboration. A 2024 Overleaf survey found 78% of STEM pros prefer LaTeX for docs with 50+ equations. But for business reports or shared drafts, Word’s the better pick. Pick your tool based on the job.

How do I install LaTeX?

Grab a full LaTeX distribution like TeX Live or MiKTeX, then pair it with an editor such as TeXstudio or VS Code.

Windows users: download MiKTeX and run the installer. macOS/Linux folks: go with TeX Live. Once the engine’s installed, pick an editor. TeXstudio is beginner-friendly and has a built-in PDF viewer. Prefer modern features? VS Code with the LaTeX Workshop extension gives you IntelliSense and live previews. Both compile to PDF using engines like pdfLaTeX or XeLaTeX.

How do I use LaTeX in Word?

Word’s Equation Editor has a LaTeX mode—type commands, hit Enter, and Word converts them to native equations.

Open Word, go to Insert > Equation. Click the dropdown arrow on the new equation box and pick LaTeX mode. Type your LaTeX, like x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}, then press Enter. Word turns it into a proper equation. Handy for collaborating with non-LaTeX folks. Just know not every command works—complex macros might not convert cleanly.

How do I use LaTeX editor?

A LaTeX editor lets you write .tex files, compile them with a LaTeX engine, and preview the resulting PDF.

Start simple with TeXstudio or Overleaf (online). Write your document in a .tex file using commands like \section{Introduction}. Hit compile—usually the green arrow or Ctrl+F5. Editors like VS Code (with LaTeX Workshop) give live previews and error highlights. For teamwork, Overleaf or Git with a LaTeX-aware editor works best. Pro tip: back up your .tex files—PDFs are just outputs.

How do you write limits?

Write limits in LaTeX with \lim_{condition}, where the condition goes below the limit symbol.

Example: → limx→3 f(x). Need a subscript? → limn→∞ an. For inline math, use single dollar signs: → limx→0 1/x. This syntax is everywhere in calculus and analysis.

How do you write limits in LYX?

In LyX, press Ctrl+M to open math mode, then type \lim_{condition} to create a limit.

LyX is a WYSIWYM editor—you see the meaning, not the markup. Press Ctrl+M, type lim_{x \to a}, and LyX renders it properly with the condition under the “lim” symbol. For inline limits, use Ctrl+M again with . LyX handles spacing and formatting automatically and exports clean PDFs via LaTeX. It’s perfect for users who want LaTeX power without wrestling raw code.

What is the significance of := in LaTeX?

In LaTeX, := means “is defined as”—it’s a way to set variables or functions clearly.

Use it like to mean “X is defined to equal Y plus Z.” This notation pops up in math and computer science to separate definitions from equations. Some folks prefer or instead. Example: defines f(x) as x squared. Pick one style and stick with it to keep your document unambiguous.

Edited and fact-checked by the FixAnswer editorial team.
Joel Walsh

Known as a jack of all trades and master of none, though he prefers the term "Intellectual Tourist." He spent years dabbling in everything from 18th-century botany to the physics of toast, ensuring he has just enough knowledge to be dangerous at a dinner party but not enough to actually fix your computer.