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.
12
questions
4
votes
1
answer
77
views
How can I modify the \dfrac command to automatically display thousands separators?
In small math classes, students are asked to respect the thousand separators, like this:
This forces me to use the \num{} command from the siunitx package in each argument of the \dfrac command.
How ...
1
vote
0
answers
134
views
Changing font specification within \nicefrac
The package \nicefrac is a very useful tool for small fractions. In the documentation, it says that a font command optional argument can be given, but no example is provided. Specification:
\nicefrac[&...
0
votes
0
answers
182
views
\xfrac or \nicefrac in siunitx package
Is there a way of presenting 1/2 kg using siunitx by displaying the number fraction in \xfrac or \nicefrac? \SI[parse-numbers=false]{1/2}{\kg} command DOES NOT do it!
4
votes
2
answers
981
views
How can I display very large fractions nicely?
I want to replicate the following fraction:
However, I don't know, how I can get this nice diagonal fraction line. The nicefrac package did not display it like I would like to.
So far I used
\frac{dN}...
7
votes
2
answers
11k
views
How do you Typeset a Horizontally "Flipped" \nicefrac?
The command \nicefrac{a}{b} renders as a/b. Is there a similar command for b\a?
3
votes
2
answers
6k
views
\nicefrac or \xfrac in \displaystyle
How do I get \nicefrac or \xfrac work in \displaystyle, i.e., without reducing the font size?
0
votes
2
answers
915
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
2
answers
1k
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
1
answer
1k
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
2
answers
276
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 \...
3
votes
1
answer
510
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
2
answers
4k
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 ...