Skip to main content

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
10 votes
2 answers

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 ...
Mark Birtwistle's user avatar
7 votes
2 answers

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?
bas's user avatar
  • 277
4 votes
2 answers

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}...
skranz's user avatar
  • 43
3 votes
1 answer

\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 ...
ahmetbayirli's user avatar
3 votes
2 answers

\nicefrac or \xfrac in \displaystyle

How do I get \nicefrac or \xfrac work in \displaystyle, i.e., without reducing the font size?
Subhajit Paul's user avatar
2 votes
2 answers

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)} \...
David Scott's user avatar
2 votes
1 answer

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....
Alex Adinolfi's user avatar
1 vote
2 answers

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 \...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
0 answers

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[&...
Denis Cousineau's user avatar
0 votes
2 answers

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} \...'s user avatar
0 votes
0 answers

\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!
Gagik's user avatar
  • 391