Math & ScienceFractions in displayed Style

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Marcello98
Posts: 1
Joined: Sun Mar 02, 2014 10:39 am

Fractions in displayed Style

Post by Marcello98 »

Hello everybody,

I use writeLaTeX and not MiKTeX. I think writeLaTeX doesn't recognize the command \dfrac, cause it tells me it's an error. How can I write bigger fractions without using \displaystyle otherwise?

Thank you :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Fractions in displayed Style

Post by hugovdberg »

I tried it, with a basic example and it seems to work fine as long as you include the amsmath package that provides the command in the first place.

Code: Select all

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}

\title{Your Paper}
\author{You}
\date{\today}

\begin{document}
\maketitle

$\dfrac{1}{2}$

\(\dfrac{2}{3}\)

\[\dfrac{3}{4}\]
\end{document}
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Post Reply