General ⇒ Getting the Dollar Sign in the Output
Getting the Dollar Sign in the Output
I know the us dollar sign "$" is used to characterize number in latex but how to write a dollar sign itself not to characterize numbers but the currency itself?
For example: The cost of material is $150...
I appreciate your response. 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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Getting the Dollar Sign in the Output
Code: Select all
\$ 150
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Getting the Dollar Sign in the Output
& % $ # _ { } ~ ^ \
Outside
\verb
, the first seven of them can be typeset by prepending a backslash; for the other three, you can use the macros \textasciitilde,
\textasciicircum
and \textbackslash
.Code: Select all
\documentclass{article}
\begin{document}
\& \% \$ \# \_ \{ \}
\textasciitilde
\textasciicircum
\textbackslash
\end{document}