Questions tagged [nicefrac]

The `nicefrac`package allows you to type nice fractions, that is, fractions with the numerator in superscript and in a smaller font size followed by a fraction slash, which is followed by the denominator in subscript and in a smaller font size. This is appropriate for typesetting fractions within a piece of text.

Filter by
Sorted by
Tagged with
0
votes
2answers
174 views

Mixed number with slanted fraction

I wanted to use some mixed numbers with slanted fraction in my text, so I used \sfrac or \nicefrac, as recommended by S. Kottwitz. \documentclass{article} \usepackage{amsmath} \usepackage{xfrac} \...
2
votes
2answers
882 views

\nicefrac or \xfrac in \displaystyle

How do I get \nicefrac or \xfrac work in \displaystyle, i.e., without reducing the font size?
2
votes
2answers
635 views

How do I make my nicefrac fraction line larger?

I am trying to replicate this formula with LaTeX: However, I am struggling to make the fraction look the same. This is my attempt: \begin{equation} \label{eq:alphaK} \alpha(k) = \frac{1}{(N-k)} \...
2
votes
1answer
687 views

I'm getting an error with the $\frac$ function and can't seem to figure out what the issue is

I am trying to get a fraction to show up that has multiple terms in the numerator and only one term in the denominator. I would like the numerator to be "2pi(12,500mi)" and the denominator to be "2pi....
1
vote
2answers
201 views

Define xfrac/nicefrac based macro to automatically append ordinal qualifiers for in-line fractions

I would like to append suitable ordinal suffixes for inline fractions similar to capabilities provided by the engord package from the oberdiek bundle. Let me clarify. I want to use a macro \...
4
votes
1answer
7k views

Typeset flipped \nicefrac

\nicefrac{a}{b} typesets like a / / b (actual image: ) Is there a way to get \ a b \
3
votes
1answer
455 views

\frac with rounded corners

I am overwriting \frac code and making it longer and thicker. I am successful so far. Thick frac is better for printing, but it seems sharp on the edges. I want to make its edges rounded. Is there ...
10
votes
2answers
3k views

Can I use nicefrac within siunitx?

I suspect the answer is a straight 'No', but nothing ventured... I have a table of time periods (minutes and hours), and a couple of the periods involve the fraction 1/2. I generally use the \SI macro ...