如何寫這個程式化的英鎊符號?

如何寫這個程式化的英鎊符號?

我想寫一個英鎊符號如此處轉載的, 從這篇文章關於#號。注意複製牛頓的手寫體,它說明了從 lb 到 # 的發展。

我怎麼才能獲得我想要使用的符號?

答案1

它來自marvosym包裝。筆記:解毒正確辨識該符號。

在此輸入影像描述

\documentclass{article}
\usepackage{marvosym}

\begin{document}

\Pfund

\end{document}

答案2

如果您有要包含的向量圖像(此處,pfund.svg),您可以在 Inkscape 中開啟它並將其另存為.pdf檔案。您要選擇將頁面大小設定為匯出物件的大小的選項,以免字形周圍有邊框,並且背景透明。

然後,您可以將圖像作為圖形包含在內graphicx。此程式碼會自動將其縮放到目前字體中大寫字母的高度。

\documentclass{article}
\tracinglostchars=2
\usepackage{graphicx} % For \includegraphics

\newlength{\capheight}

\newcommand\librapondo{%
  \settoheight{\capheight}{H}%
  \includegraphics[height=\capheight]{pfund.pdf}%
}

\begin{document}
\section*{The {\librapondo} Symbol}

Sir Isaac Newton wrote the {\textsterling} symbol as {\librapondo}.

{\footnotesize A smaller {\librapondo}.}
\end{document}

範例圖片

答案3

此符號包含在marvosym.ttf字體中的位置 163 處。

\fontfam[lm]
\font\tenmarvosym=[marvosym.ttf]
\def\pfund{{\tenmarvosym\resizethefont\char163}}

\sec The \pfund{} symbol

Sir Isaac Newton wrote the £ symbol as \pfund.

{\typosize[8/] A smaller \pfund.}

\bye

相關內容