考虑以下 MWE:
\documentclass{article}
\usepackage{tfrupee}
\begin{document}
The sales were ₹500,000,000 (\$200,000) in FY2016.
The sales were \rupee~500,000,000 (\$200,000) in FY2016.
\end{document}
使用tfrupee
包,可以打印印度卢比符号。但这需要使用 \rupee 代替符号。
有没有办法直接打印₹字符?
答案1
使用newunicode
包定义₹
符号:
\documentclass{article}
\usepackage{tfrupee}
\usepackage{newunicodechar}
\newunicodechar{₹}{\rupee}
\begin{document}
The sales were ₹500,000,000 (\$200,000) in FY2016.
The sales were \rupee~500,000,000 (\$200,000) in FY2016.
\end{document}
这也适用pdflatex
于utf8
输入编码(即\usepackage[utf8]{inputenc}
)。