在哪里可以找到电子设备的开/关符号?
答案1
包裹fontawesome
提供了很多有用的符号:
% arara: lualatex
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faOff
\end{document}
答案2
还有一个tikz
可用作独立符号图形的解决方案:
\documentclass{standalone}
\usepackage{tikz}
\newlength\unit
\setlength{\unit}{20pt}
\begin{document}
\begin{tikzpicture}[
x=\unit,
y=\unit,
radius=\unit,
line width=.4\unit,
line cap=round,
]
\draw[overlay]
(0,1.2) -- (0,0)
(130:1) [overlay] arc[start angle=130, delta angle=280]
;
\path[use as bounding box] (-1.2,-1.2) (1.2,1.4);
% arc is is taking the points of the internally used Bézier
% curves into account for the bounding box
\end{tikzpicture}
\end{document}
评论:
- 边界框是单独指定的,因为
arc
使用内部使用的贝塞尔曲线的点作为边界框。 - 我使用了圆形线帽,它们看起来更符合我的口味。
答案3
\documentclass[pstricks,border=12pt]{standalone}
\begin{document}
\begin{pspicture}[linewidth=1,linecap=1](6,6)
\psarc(3,3){2.5}{125}{55}
\psline(3,3)(3,5.5)
\end{pspicture}
\end{document}
答案4
您可以使用 PSTricks 自己绘制它。
带有“尖”角:
\documentclass{article}
\usepackage{pstricks-add}
\newcommand*\OnOff[1]{%
\begin{pspicture}(6,6.5)
\psset{
dimen = middel,
linecolor = #1,
fillstyle = solid,
fillcolor = #1
}
\psRing(3,3)[125,55]{2}{3}
\psarc(3,3){0.5}{180}{360}
\psframe(2.5,3)(3.5,6)
\psarcn(3,6){0.5}{180}{0}
\end{pspicture}}
\begin{document}
\begin{center}
\OnOff{black}
\OnOff{blue}
\OnOff{red}
\OnOff{yellow}
\end{center}
\end{document}
带有“圆”角:
\documentclass{article}
\usepackage{pstricks-add}
\newcommand*\OnOff[1]{%
\begin{pspicture}(6,6.5)
\psset{
dimen = middel,
linecolor = #1,
fillstyle = solid,
fillcolor = #1
}
\psarc(!3 2.5 130 cos mul add 3 2.5 130 sin mul add){0.5}{310}{130}
\psRing(3,3)[130,50]{2}{3}
\psarc(!3 2.5 50 cos mul add 3 2.5 50 sin mul add){0.5}{50}{230}
\psarc(3,3){0.5}{180}{360}
\psframe(2.5,3)(3.5,6)
\psarcn(3,6){0.5}{180}{0}
\end{pspicture}}
\begin{document}
\begin{center}
\OnOff{black}
\OnOff{blue}
\OnOff{red}
\OnOff{yellow}
\end{center}
\end{document}