Skip to main content

Questions tagged [xfrac]

{xfrac} is a package for typesetting split level (i.e. slanted) fractions.

Filter by
Sorted by
Tagged with
5 votes
1 answer
67 views

Do I need to replace \DeclareCollectionInstance after recent package change?

After a recent tlmgr update, the code below no longer compiles: \documentclass{article} \usepackage{xfrac} \DeclareCollectionInstance{smallLetterFrac}{xfrac}{default}{text} {phantom=c, scale-...
scottkosty's user avatar
  • 13.3k
2 votes
0 answers
48 views

Undefined control sequence when using \sfrac [closed]

Good evening, I was wondering if you could help me with making sense of an error I have started encountering. For some reason the LaTeX interpreter no longer recognises the \sfrac command from the ...
NDC's user avatar
  • 145
12 votes
1 answer
175 views

xfrac and anyfontsize cause missing superscripts in $\frac{1}{x^2}$

Using anyfontsize and xfrac together seems to break superscripts within inline math. \documentclass{article} \usepackage{anyfontsize} \usepackage{xfrac} \begin{document} $\frac{1}{x^2}$ (good) $\...
Mateen Ulhaq's user avatar
2 votes
1 answer
553 views

`sfrac` with fraction numerator and denominator

I want a fraction of derivatives, so I use this code: \documentclass{article} \usepackage{amsmath} \usepackage{xfrac} \begin{document} Good: $\sfrac{4}{5}$ Not good: $ \sfrac{\dfrac{dy}{...
Kώστας Κούδας's user avatar
1 vote
1 answer
469 views

How to create a backslash fraction using sfrac

I tried to create a backslash fraction using sfrac, but the output looks like this: \documentclass{article} \usepackage{xfrac} \begin{document} $ \sfrac{A}[\backslash]{B} $ \end{document} Any ...
ufer324's user avatar
  • 15
0 votes
0 answers
160 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!
Gagik's user avatar
  • 391
2 votes
1 answer
112 views

Ugly sfrac with newtx

I am using \sfrac with the newtx font package, and I get a very ugly result: WHat I am doing wrong? MWE: \documentclass{standalone} \usepackage[osf]{newtxtext} \usepackage{xfrac} \begin{document} \...
Pygmalion's user avatar
  • 6,309
1 vote
1 answer
207 views

sfrac inside siunitx no longer works

I have been using \sfrac inside of siunitx for a long time. Since recently, it does not work and I get bunch of errors. Can you suggest me what to do? MWE: \documentclass{minimal} \usepackage{tikz,...
Pygmalion's user avatar
  • 6,309
2 votes
0 answers
162 views

Error with siunitx and sfrac as fraction-command

I like to combins siunitx with xfrac (see example below). This worked really well for years but today (after a fresh update to my TeX Live 2021 installation) it stopped working. Here's a short example:...
Stefan Nobis's user avatar
1 vote
1 answer
262 views

Why are xfrac-style fractions so ugly in this document?

I seem to have stumbled on a rather robust way of stopping the xfrac package from working properly. This is a MWE of the problem: \documentclass{amsart} \usepackage[a5paper, margin=28mm, ...
Tom Hosker's user avatar
8 votes
1 answer
488 views

Why did xfrac change in 2021?

In TeX Live 2020, and earlier, my MVE looked just the way I wanted: but in TeX Live 2021, it looks like this: notice how the second fraction, the sfrac in math mode, has changed. I found that two ...
Mankka's user avatar
  • 665
2 votes
2 answers
268 views

Top of massive \cfrac cut off

Working on a physics assignment, where I'm showing my work how I derived an equation from other equations. First time LaTex user, so not sure how to fix this. In the last fraction, the top part of the ...
Celina Emma's user avatar
3 votes
2 answers
5k views

\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
5 votes
0 answers
263 views

Excessive memory use with unicode-math/Fira Sans and xfrac

When trying to use the Greek symbols in the font Fira Sans with unicode-math, I noticed that running lualatex on my document uses up enormous amounts of RAM. I have distilled my problem to a minimal ...
Socob's user avatar
  • 1,703
6 votes
5 answers
3k views

How do I write a formula in words in LaTeX?

I want to write this equation in LaTeX: This my LaTeX code for the equation: \begin{equation} \nonumber q^*_1 =\frac{\text{number of women who had their second birth in 1971}}{\text{number of ...
statistician's user avatar
2 votes
2 answers
169 views

xfrac resets \oldstylenums to computer modern

Using xelatex, fontspec and unicode-math, old style nums work just fine. But when using xfrac, the oldstylenums seems to be reverted to some basic version of the command, using a pixely computer ...
Marian's user avatar
  • 311
1 vote
2 answers
273 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 \...
Dr Krishnakumar Gopalakrishnan's user avatar
0 votes
1 answer
137 views

ghsystem, xfrac error in beamer frames

In the following MWE, the second \sfrac{1}{2} (in a frame) throws an error Font \OT1/cmr/m/n/3.83247=cmr4 at 4pt not loadable: metric data not found or bad. There is no problem outside of the frame ...
wilk's user avatar
  • 949
7 votes
1 answer
512 views

Weird DeclareUnicodeCharacter / siunitx clash

I love declaring unicode characters to write readable formulas. However, I just ran into a strange issue. The following works as expected, with the “×” sign being replaced with the chosen code (“plop”)...
Alice M.'s user avatar
  • 1,011
3 votes
2 answers
179 views

Make mathematical expression to go to next line

I am writing a paper in two column format. I have a mathematical expression like the following $G(s)= \frac{8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020}{s^8+66s^7+546s^...
ShJ's user avatar
  • 931
3 votes
1 answer
554 views

xfrac package together with cabin package (sf font)

Can't I use cabin and xfrac together? nicefrac package works by the way. MWE \documentclass{article} \usepackage[sfdefault]{cabin} \usepackage{xfrac} \begin{document} \sfrac{1}{2} \end{document} ...
Dr. Manuel Kuehner's user avatar
2 votes
1 answer
487 views

\sfrac breaks vertical spacing in multlined enviroment

I have found that including a \sfrac from the package xfrac into a multlined environment from mathtools completely breaks the vertical spacing of the multlined. Actually, this affect the spacing ...
Marco's user avatar
  • 490
0 votes
1 answer
202 views

\frac function - file not found

Is there anyone who knows why my \frac function does not work? Is there a problem with notation? \documentclass[10pt]{article} \usepackage[•]{graphicx} \usepackage{amsmath} \usepackage{amsfonts} \...
Ktp's user avatar
  • 37
7 votes
1 answer
657 views

fontsize fractions in the package siunitx

I'm using the siunitx package to problems in physics, but to express the speed units in the style \sfrac, they are too small, how could slightly increase the size? \documentclass[12pt]{article} \...
Cristian Rodríguez's user avatar
5 votes
1 answer
6k views

How to create A/B with LaTeX/LyX?

I want to create frac with this style: Is this possible? I try to find another way, alternative to xfrac.
heblyx's user avatar
  • 2,591
3 votes
0 answers
10k views

Errors from \sfrac (xfrac package): "missing number" and "illegal unit of measurement" [closed]

When I attempt to use \sfrac (from the xfrac package), multiple missing number, treated as zero and illegal unit of measurement (pt inserted) errors are generated. Example document: \documentclass{...
Reign of Error's user avatar
1 vote
2 answers
580 views

Degree (°) signs disappear with package xfrac

When I use the package xfrac all of my °-signs are gone. \documentclass[12pt,a4paper,headinclude,headsepline,twoside,parskip=half,DIV12,BCOR12mm,numbers=noenddot]{scrreprt} \usepackage{rotating} \...
Michael's user avatar
  • 11
2 votes
0 answers
725 views

Are packages siunitx and xfrac incompatible? - "redefsymbols" [closed]

Is this a bug? Where can this be reported? Can someone of you report this? Code: \documentclass{article} \usepackage{siunitx} \usepackage{xfrac} \begin{document} bla \end{document} Output: ...
SeMa's user avatar
  • 195
6 votes
3 answers
1k views

Define my own xfrac command?

Is it possible to create my own xfrac command - without using that package (it is giving me too much trouble)? I know you can do superscript, subscript to make a fraction look. Can I do something ...
Andriy Drozdyuk's user avatar
5 votes
2 answers
6k views

xfrac.sty not found

I am using Tex Live 2011 on Windows, and when I compile (vim-latex) my file: \documentclass{article} \usepackage{amsmath} % makes for prettier typography \usepackage{microtype} % For slanted ...
Andriy Drozdyuk's user avatar
4 votes
1 answer
3k views

xfrac + siunitx gives me a font warning

I'm using mathpazo and the AMS math packages, and I just started using xfrac for the \sfrac command. However, now when I use \sfrac (or when I set siunitx to use it), I get this output: LaTeX Font ...
jtbandes's user avatar
  • 4,262
17 votes
3 answers
1k views

Why does the use of microtype and xfrac lead to a long compile time?

While I was discussing another issue I came across this problem: I included the xfrac package and the compile time of my document 100folded. After playing around I found out that microtype caused the ...
qbi's user avatar
  • 2,100
4 votes
0 answers
1k views

Where is template.sty? (Required in xfrac) [closed]

Having just updated to TL2011, I find that the xfrac package fails with the error: ! LaTeX Error: File `template.sty' not found. Sure enough, neither kpsewhich nor find can locate it. I can find it ...
Andrew Stacey's user avatar
7 votes
1 answer
2k views

Using 'xfrac' with 'mathrsfs'

I'm attempting to move from the nicefrac package to xfrac. The following source compiles, but with a warning: \RequirePackage{fix-cm} \documentclass{article} \usepackage{xfrac} \usepackage{mathrsfs} \...
mbauman's user avatar
  • 1,302
6 votes
3 answers
5k views

What LaTeX Lab packages use expl3?

I am trying to migrate documents to http://latexlab.org, but they won't compile because they require expl3.sty. Yesterday I started by uploading all of the expl3 sty files but then latex demanded even ...
David LeBauer's user avatar