How can one include the Cedi symbol ₵ in a LaTeX document? More about this currency symbol can be found at https://en.wikipedia.org/wiki/Ghanaian_cedi
1 Answer
In addendum to the comments I can suggest to use textcomp
package that provide to get the desidered symbols without to touch the CM font (default) symbols:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{textcomp}
\begin{document}
In text mode
\textcent, \textcentoldstyle, \textcolonmonetary,
In math mode
$\mbox{\textcent}, \mbox{\textcentoldstyle}, \mbox{\textcolonmonetary}$
\end{document}
-
1As of 2021, the
textcomp
package has been integrated into the kernel, making\usepackage{textcomp}
redundant. (But harmless.) Older installations might still need it, though.– DavislorNov 25, 2021 at 18:10 -
Very kind Davislor I have not understood the assert textcomp package has been integrated into the kernel! What is the real reason? Thank you very much.- Nov 25, 2021 at 21:28
-
You’d can ask the LaTeX kernel maintainers what their reasoning was, but here’s my guess. Back in the ’90s, people often bought Type 1 fonts and wanted to convert them to LaTeX encodings. These fonts used different 8-bit encodings from TeX, and typically would support some but not all of the symbols in TS1. The original purpose of creating
\usepackage{textcomp}
instead of\usepackage[TS1,T1]{fontenc}
was to attempt to detect which symbols your Type 1 font actually had. In this century, nobody does that any more. It’s more important that those symbols supportfontspec
.– DavislorNov 26, 2021 at 0:18
cent
symbol, if yes, try with\usepackage{wasysym}
and the tag is\cent
\documentclass[12pt,a4paper]{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} % or whatever \newfontfamily{\currencies}{FreeSerif}[Scale=MatchUppercase] \newcommand{\curr}[1]{% {\iffontchar\font`#1 #1\else\currencies#1\fi}% } \begin{document} \curr{₵} \end{document}