Math & Science ⇒ Mixed numbers
-
- Posts: 2
- Joined: Thu Mar 31, 2011 1:03 pm
Mixed numbers
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Mixed numbers
-
- Posts: 2
- Joined: Thu Mar 31, 2011 1:03 pm
Re: Mixed numbers
I tried nicefrac and it does just what I want.
Thanks for your help.
Jonathan
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Mixed numbers
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).lutoslawski wrote:[…] I tried nicefrac and it does just what I want. […]
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10