Math & ScienceMixed numbers

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
lutoslawski
Posts: 2
Joined: Thu Mar 31, 2011 1:03 pm

Mixed numbers

Post by lutoslawski »

Hello, I hope you can help.

I am typing a mixed number in-text, and I want it to display the fractional part as 1/4, for example. I have tried the \tfrac command, but this produces a horizontal bar and not a solidus. Is there a way to get what I want so that, for example, 3 3/4 looks correctly typeset?

Many thanks
Last edited by lutoslawski on Fri Apr 01, 2011 11:03 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Mixed numbers

Post by Stefan Kottwitz »

Hi lutoslawski,

welcome to the board!
You could use nicefrac or xfrac for that.

Stefan
LaTeX.org admin
lutoslawski
Posts: 2
Joined: Thu Mar 31, 2011 1:03 pm

Re: Mixed numbers

Post by lutoslawski »

Hi Stefan_K,

I tried nicefrac and it does just what I want.

Thanks for your help.

Jonathan
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Mixed numbers

Post by localghost »

lutoslawski wrote:[…] I tried nicefrac and it does just what I want. […]
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).

By the way, xfrac is the preferable solution since it uses future technologies of LaTeX3 by some xpackages.


Best regards and welcome to the board
Thorsten
Post Reply