I want to be able to have a fraction with words so that I can print:
# of cards/ Total # cards so that it will be look nice.
I have done
$$\frac{\# of cards}{Total \# of cards}$$
The result is a fraction with Italized font and all the letters are crammed together.
Is there a way I can fix this?
Math & Science ⇒ Having a fraction with words
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Having a fraction with words
Never ever introduce an unnumbered displayed equation the way you do (see l2tabu). Use the amsmath package to format the text in the fraction.
Best regards and welcome to the board
Thorsten
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\frac{\text{\# of cards}}{\text{Total \# of cards}}
\]
\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10