货币符号:土耳其里拉

货币符号:土耳其里拉

我有两个问题。

  1. 是否存在包含最常见货币符号的单一货币包,例如美元、欧元、法郎、英镑、日元、比索等。

  2. 我在 LaTeX 中找不到土耳其的货币符号。如何为 LaTeX 制作土耳其里拉符号?土耳其里拉符号如下

在此处输入图片描述

其技术细节如下:这里。另外它的unicode编码是U+20BA。

如果有人能不使用外部图形将这个符号构建为 LaTeX 代码,或者向我解释如何构建它,我会非常高兴。

答案1

稍微作弊一下tikz(即使用inkscape2tikz):

\documentclass{article}
\usepackage{tikz}
\newcommand{\Lira}{%
\begin{tikzpicture}[x=0.08em, y=0.08em, xscale=0.03, yscale=-0.03, inner sep=0pt, outer sep=0pt]
\fill (54.3355,9.3092) .. controls (70.3869,9.3092) and (79.7110,9.3092) ..
  (82.3075,9.3092) .. controls (82.3075,12.1418) and (82.3075,24.2985) ..
  (82.3075,45.7791) .. controls (82.3075,67.2598) and (82.3075,79.2984) ..
  (82.3075,81.8950) -- (167.2860,51.0903) .. controls (167.2860,59.3521) and
  (167.2860,66.7877) .. (167.2860,73.3971) -- (82.3075,104.2018) .. controls
  (82.3075,105.1460) and (82.3075,107.1525) .. (82.3075,110.2211) .. controls
  (82.3075,113.2898) and (82.3075,115.2962) .. (82.3075,116.2404) --
  (128.3375,99.9529) -- (167.2860,85.4358) .. controls (167.2860,86.8521) and
  (167.2860,90.4518) .. (167.2860,96.2351) .. controls (167.2860,102.0184) and
  (167.2860,105.5001) .. (167.2860,106.6804) .. controls (167.2860,107.6246) and
  (167.0499,108.0967) .. (166.5778,108.0967) -- (84.7861,137.4851) .. controls
  (83.8419,137.9572) and (83.0157,138.4293) .. (82.3075,138.9014) .. controls
  (82.3075,153.3005) and (82.3075,173.1878) .. (82.3075,198.5633) .. controls
  (82.3075,223.9388) and (82.3075,243.8262) .. (82.3075,258.2253) .. controls
  (82.3075,258.2253) and (82.3075,258.3433) .. (82.3075,258.5794) .. controls
  (82.3075,258.8154) and (82.3075,258.9334) .. (82.3075,258.9334) .. controls
  (103.7882,256.3369) and (122.7903,248.1931) .. (139.3139,234.5021) .. controls
  (157.4899,219.6309) and (169.6465,201.1009) .. (175.7838,178.9121) .. controls
  (178.3804,168.7619) and (179.6787,158.6117) .. (179.6787,148.4614) .. controls
  (179.6787,148.4614) and (189.1207,148.4614) .. (208.0048,148.4614) .. controls
  (208.0048,171.3584) and (202.4576,192.9571) .. (191.3632,213.2575) .. controls
  (183.5735,228.8369) and (172.9512,242.2918) .. (159.4963,253.6223) .. controls
  (146.9856,264.7167) and (132.9405,273.2145) .. (117.3611,279.1158) .. controls
  (97.0607,286.9055) and (76.0522,289.6201) .. (54.3355,287.2596) .. controls
  (54.3355,271.9163) and (54.3355,248.9013) .. (54.3355,218.2146) .. controls
  (54.3355,187.5279) and (54.3355,164.3949) .. (54.3355,148.8155) .. controls
  (54.3355,148.8155) and (52.8011,149.4057) .. (49.7325,150.5859) --
  (1.2239,167.9357) .. controls (1.2239,160.8541) and (1.2239,153.4185) ..
  (1.2239,145.6288) -- (54.3355,126.5087) .. controls (54.3355,125.0924) and
  (54.3355,120.9615) .. (54.3355,114.1160) .. controls (51.7389,115.2962) and
  (48.2571,116.7126) .. (43.8902,118.3649) .. controls (39.5232,120.0173) and
  (36.7496,120.9615) .. (35.5694,121.1975) -- (7.5973,131.4658) .. controls
  (7.5973,131.4658) and (6.8301,131.7018) .. (5.2958,132.1739) .. controls
  (3.7615,132.6460) and (2.4042,133.0001) .. (1.2239,133.2361) .. controls
  (1.2239,121.9057) and (1.2239,114.4701) .. (1.2239,110.9293) --
  (54.3355,92.1632) .. controls (54.3355,81.7770) and (54.3355,67.9680) ..
  (54.3355,50.7362) .. controls (54.3355,33.5045) and (54.3355,19.6955) ..
  (54.3355,9.3092) -- cycle;

\end{tikzpicture}}


\begin{document}
  This will cost you 10\Lira.
\end{document}

在此处输入图片描述

答案2

该符号存在于 FontAwesome 图标中:

在此处输入图片描述

有一个名为 的 LaTeX 包fontawesome,它为 FontAwesome 图标提供了方便的界面。不幸的是,它基于这些图标的 3.xxx 版本,并且这个符号自 4.0 版本以来就存在于字体中。如果作者没有完成这个包,我可能会尝试完成它,但要等上几周。目前,你可以将它与 Xe/LuaLaTeX 一起使用。

这一页,您将找到支持土耳其里拉的字体列表。其中许多字体在 LaTeX 中受支持(DejaVuSourceCode ProSourceSans Pro)。

答案3

  1. 我不知道有哪个包定义了最常见的货币符号。我只想搜索一个包含所有货币符号的字体。您可能首先想搜索现有符号的 unicode:http://www.fileformat.info/info/unicode/category/Sc/list.htm

  2. 以下是使用 unicode (和siunitx)的土耳其语符号:

    % arara: lualatex
    
    \documentclass{article}
    \usepackage{fontspec}
    \usepackage{mathtools}
    \usepackage{siunitx}
    \DeclareSIUnit\turkishLira{{\fontspec{symbola.ttf}\text{\symbol{"20BA}}}}
    
    \begin{document}
        \SI{1000000}{\turkishLira}
    
        \setmainfont{quivira.otf}\symbol{"20BA}
        \setmainfont{symbola.ttf}\symbol{"20BA}
    \end{document}
    

在此处输入图片描述

相关内容