Added «nicefrac» information

This commit is contained in:
Kenneth John Odle 2023-07-22 09:42:19 -04:00
parent 78bdadc738
commit 6d0117914f

View File

@ -9,6 +9,8 @@
\usepackage{float} \usepackage{float}
\raggedbottom \raggedbottom
\usepackage{nicefrac}
% Where are our images? % Where are our images?
\graphicspath{{images/}} \graphicspath{{images/}}
@ -707,6 +709,18 @@ The Pythagorean Theorem is \[x^2 + y^2 = z^2\]
\section{The \texttt{array} Environment} \section{The \texttt{array} Environment}
\section{Special Math Environments}
You can use the \texttt{nicefrac} package to get fractions with a diagonal slash. This is an ordinary fraction inline (using the \texttt{frac} command): $\frac{3}{4}$, and this is a ``nice'' fraction inline (using the \texttt{nicefrac} command): $\nicefrac{3}{4}$.
The following array shows the difference between ordinary and ``nice'' fractions in display mode:
\[\begin{array}{ccc}
\frac{3}{4} & & \nicefrac{3}{4}
\end{array}\]
\chapter{Images} \chapter{Images}