TeXipedia

textdollar

Renders a typographically correct dollar sign within text mode, ensuring proper spacing and font consistency.

Overview

Essential for typesetting financial amounts, prices, and currency-related content in professional documents and academic papers.

  • Preferred over the direct $ symbol when writing actual currency amounts in text.
  • Maintains consistent font styling with surrounding text.
  • Particularly useful in business documents, economic papers, and financial reports.
  • Avoids potential confusion with LaTeX's math mode delimiters.

Examples

Displaying currency in an equation with a dollar amount.

Total cost = $25.99+x\text{Total cost = }\text{\textdollar}25.99 + x
\text{Total cost = }\text{\textdollar}25.99 + x

Showing price ranges in mathematical expressions.

$10p$50\text{\textdollar}10 \leq p \leq \text{\textdollar}50
\text{\textdollar}10 \leq p \leq \text{\textdollar}50

Representing financial calculations with dollar symbols.

Revenue=$100x$500\text{Revenue} = \text{\textdollar}100x - \text{\textdollar}500
\text{Revenue} = \text{\textdollar}100x - \text{\textdollar}500