Math & Science ⇒ Having a fraction with words
Having a fraction with words
# 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?
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Having a fraction with words
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10