有没有 LaTeX 的 CD 图标/符号?我浏览了整个综合 LaTeX 符号列表但还没找到。
我追求的是这样的:
答案1
对于简单的图标,我也会使用 Ti钾Z 绘制我自己的图标(例如,以您的链接为模型)。
\documentclass{article}
\usepackage{tikz}
\newcommand{\disc}{{\tikz[baseline=-.75ex]{%
\draw[line width=.1ex] (0,0) circle(.8ex);
\draw[line width=.2ex] (0,0) circle(.2ex);
\draw[line width=.15ex] ([shift=(270:.5ex)]0,0) arc (270:340:.5ex);
\draw[line width=.15ex] ([shift=(90:.5ex)]0,0) arc (90:160:.5ex);
}}}
\begin{document}
Billie Holiday, {\it Body and Soul}, Verve Records \disc
\Large {\it Body and Soul} (1957) \disc
\footnotesize Billie Holiday, {\it Body and Soul} (1957) \disc
\tiny Billie Holiday, {\it Body and Soul} (1957), Verve Records \disc
\end{document}
答案2
完全地不切实际的:
\documentclass[tikz,border=5]{standalone}
\begin{document}
\begin{tikzpicture}[rotate=45]
\begin{scope}
\clip circle [radius=0.25] [rounded corners=1cm] (-1,-1) rectangle (1,1);
\fill [gray!10] circle [radius=1];
\foreach \i in {0,...,20}\foreach \r in {45, 135}
\fill [white, opacity=0.1, rotate=\r]
(-\i:1) arc (-\i:\i:1) -- (180+\i:1) arc (180+\i:180-\i:1) -- cycle;
\end{scope}
\begin{scope}
\clip circle [radius=0.3] [rounded corners=0.95cm]
(-.95,-.95) rectangle (.95,.95);
\fill [gray!20] circle [radius=1];
\foreach \i in {0,...,50}
\fill [white, opacity=0.05, rotate=90]
(-\i:1) arc (-\i:\i:1) -- (180+\i:1) arc (180+\i:180-\i:1) -- cycle;
\foreach \i in {0,0.5, ..., 10}
\foreach \c [count=\j from -4, evaluate={\a=\j*5-\i; \b=\j*5+5+\i;}] in
{gray!50!white, red, orange, yellow, green, cyan, blue, gray!50!white}
\fill [fill=\c!50, opacity=0.05]
(0:0) -- (\a:1) arc (\a:\b:1) -- (\b+180:1) arc (\b+180:\a+180:1) -- (0:0);
\foreach \i in {0,1, ..., 10}
\foreach \c [count=\j from 16, evaluate={\a=\j*5-\i; \b=\j*5+5+\i;}] in
{gray!25, white, white, white, gray!25}
\fill [fill=\c, opacity=0.1]
(0:0) -- (\a:1) arc (\a:\b:1) -- (\b+180:1) arc (\b+180:\a+180:1) -- (0:0);
\fill [white, opacity=0.5] circle [radius=1];
\end{scope}
\end{tikzpicture}
\end{document}
答案3
编辑
现在除了颜色之外没有任何包装(显然是可选的):
\documentclass{article}
\usepackage{xcolor}
\setlength{\unitlength}{1em}
\newcommand\CD[1][black]{{\color{#1!50!black}\begin{picture}(1,1)
\put(.5,.35){\circle{1}}
\put(.5,.35){\circle{.4}}
\put(.5,.35){\circle*{.3}}
\end{picture}}}
\begin{document}
CDROM CDROM CDROM CDROM \par
CDROM CDROM CDROM CDROM \par
CDROM \CD\ CDROM \CD\ CDROM \CD\par
\CD\ CDROM \CD[white] CDROM \CD[cyan] CDROM\par
\CD[blue] CDROM \CD[orange] CDROM \CD[olive] CDROM\par
CDROM CDROM CDROM CDROM \par
CDROM CDROM CDROM CDROM \par
\end{document}
采用相同方法的更现实的 CD:
\documentclass{article}
\usepackage{graphicx}
\usepackage{xcolor}
\setlength{\unitlength}{.5mm}
\newcommand\CD[1]{
\scalebox{#1}
{\begin{picture}(6,6)
\color{gray}\put(3.1,2.9){\circle*{6}}
\color{gray!50!cyan!30}\put(3,3){\circle*{6}}
\color{olive!20!cyan!25}\put(3,3){\circle*{5}}
\color{magenta!30!cyan!20!}\put(3,3){\circle*{4.5}}
\color{olive!30!cyan!20}\put(3,3){\circle*{3.7}}
\color{blue!30!cyan!20!}\put(3,3){\circle*{3.1}}
\color{gray!50}\put(3,3){\circle{2}}
\color{gray!30}\put(3,3){\circle*{2}}
\color{gray}\put(3,3){\circle{.7}}
\color{white}\put(3,3){\circle*{.7}}
\end{picture}}}
\begin{document}
\CD{10}
\end{document}
旧穷人版(是的,稍微偏离中心,眼睛很锐利……)
\documentclass{article}
\usepackage{graphicx}
\def\CDROM#1{\scalebox{#1}{\Huge\textcircled{\raisebox{-.5pt}%
{\small$^{\textcircled{\ensuremath\circ}}$}}}}
\begin{document}
\CDROM1 \CDROM{.5} CDROM
\end{document}
答案4
只需下载链接的图像版本,然后将其包含在内即可graphicx
:
\documentclass{article}
\usepackage{graphicx}
\newcommand{\disc}[1][]{\includegraphics[height=1.1ex,#1]{disc.png}}
\begin{document}
Billie Holiday, {\itshape Body and Soul}, Verve Records \disc
\Large {\itshape Body and Soul} (1957) \disc
\footnotesize Billie Holiday, {\itshape Body and Soul} (1957) \disc
\tiny Billie Holiday, {\itshape Body and Soul} (1957), Verve Records \disc
\end{document}
如果您想要更高质量的版本(矢量化,如 PDF 或 EPS),您可以使用 Inkscape 描摹位图。请参阅使用精美字体创建徽标。
如果你担心材料可能受版权保护,你可以搜索免费替代品(比如说)开放剪辑艺术。