9 votes
Accepted

How do you Typeset a Horizontally "Flipped" \nicefrac?

Use reflectbox from package graphicx: \documentclass{article} \usepackage{graphicx, nicefrac} \let\rfb\reflectbox \newcommand{\uglyfrac}[2]{\rfb{\nicefrac{\rfb{#1}}{\rfb{#2}}}} % for math mode, ...
Michael Palmer's user avatar
7 votes
Accepted

How do I make my nicefrac fraction line larger?

There are many ways. You will find two different in some variation below. The last one looks more like your desired output. \documentclass{memoir} \usepackage{amsmath,xfrac,mathtools} \begin{document}...
CampanIgnis's user avatar
  • 4,539
6 votes
Accepted

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

You wrote, I would like the numerator to be 2pi(12,500mi) and the denominator to be 2pi. In addition to not entering and exiting math mode inside a formula, you also need to take care of ...
Mico's user avatar
  • 495k
5 votes
Accepted

How can I display very large fractions nicely?

\middle but adjust the space slightly \documentclass{article} \usepackage{amsmath} \begin{document} \[ \frac{dN}{dS} = \left.\frac{\sum_{p \in G}i_p^N}{T_G^N} \!\middle/\, ...
David Carlisle's user avatar
4 votes
Accepted

\nicefrac or \xfrac in \displaystyle

As an alternative (since \nicefrac and \sfrac do not seem to be adjustable to representing digits in displaystyle)... Adjusting my answer from Modifying fraction macro for in-line text and exponents, ...
Steven B. Segletes's user avatar
4 votes

How do I make my nicefrac fraction line larger?

a small variation of CampanIgnis answer (since he was to fast for my frozen fingers :-( ): \documentclass{article} \usepackage{nccmath} \begin{document} \begin{equation}%\label{eq:alphaK} \alpha(k) =...
Zarko's user avatar
  • 293k
4 votes

Can I use nicefrac within siunitx?

The option fraction-function=\nicefrac option will do just that, but you'll need to load the package nicefrac and set quotient-mode = fraction as well. \documentclass{standalone} \usepackage{...
lblb's user avatar
  • 3,414
3 votes

How can I display very large fractions nicely?

You can use \left/ and \right. to get what you want, and so the nicefrac package isn't necessary. \documentclass{article} \usepackage{amsmath} \begin{document} \[\frac{dN}{dS} = \frac{\sum_{p \in G}...
M. Logic's user avatar
  • 4,023
3 votes

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

Is it something like this you're after? \documentclass{article} \usepackage{nicefrac} \usepackage{engord} \newcommand{\ordfrac}[2]{\nicefrac{#1}{\engordnumber{#2}}} \begin{document} This is the \...
Bernard's user avatar
  • 270k
2 votes
Accepted

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

(updated the answer to make fuller use of LuaLaTeX) Since you're ok with using LuaLaTeX, I think it's natural to set up a Lua function that replicates some of the work of the engord package. ...
Mico's user avatar
  • 495k
2 votes

\nicefrac or \xfrac in \displaystyle

Using \Large before is doing the trick : \text{\Large$\sfrac{1}{10}$} It's not a proper solution and more just a hack since it produces a warning (Font: Size substitution...) and it's has to be ...
remjg's user avatar
  • 2,466
1 vote

Mixed number with slanted fraction

If there is font feature +frac in used font then it is much better to use it instead of to crate a macro which build the fraction from slash and other components. The font designer implements better ...
wipet's user avatar
  • 72k
1 vote

How do you Typeset a Horizontally "Flipped" \nicefrac?

You can select between more alternatives: % simply using math mode: \def\uglyfrac#1#2{\leavevmode\hbox{${}_{\rm#2}{\mkern-4mu\backslash\mkern-4mu}^{\rm#1}$}} % using \lower, \raise, you can simply ...
wipet's user avatar
  • 72k

Only top scored, non community-wiki answers of a minimum length are eligible