![铅笔、尺子和圆规的符号](https://linux22.com/image/279884/%E9%93%85%E7%AC%94%E3%80%81%E5%B0%BA%E5%AD%90%E5%92%8C%E5%9C%86%E8%A7%84%E7%9A%84%E7%AC%A6%E5%8F%B7.png)
我如何生成代码来获取铅笔、尺子和圆规的符号LATEX
?我要I can draw this figure by using simple tools
在演示文稿中写一个句子。所以我更喜欢包含铅笔、尺子和圆规的符号,而不是单词simple tools
。这可能吗?
答案1
首先是一支铅笔:
\documentclass[tikz,border=1cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[rotate=30]
\fill[gray!50] (0,4) -- (0.4,4) -- (0.4,0) --(0.3,-0.15) -- (0.2,0) -- (0.1,-0.14) -- (0,0) -- cycle;
\draw[color=white] (0.2,4) -- (0.2,0);
\fill[black] (0,3.5) -- (0.2,3.47) -- (0.4,3.5) -- (0.4,4) arc(30:150:0.23cm);
\fill[brown!40] (0,0) -- (0.2,-0.8)node[coordinate,pos=0.75](a){} -- (0.4,0)node[coordinate,pos=0.25](b){} -- (0.3,-0.15) -- (0.2,0) -- (0.1,-0.14) -- cycle;
\fill[gray] (a) -- (0.2,-0.8) -- (b) -- cycle;
\end{tikzpicture}
\end{document}
还有一个刻度(标尺):
\documentclass[tikz,border=1cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[rotate=-30,transform shape]
\draw (-0.2,0) rectangle (15.5,1);
%% lower divisions
\foreach \x in {0,1,...,15}{
\draw (\x,0) -- (\x,0.2)node[above,scale=0.4]{\x};
}
\foreach \x in {0.1,0.2,...,14.9}{
\draw (\x,0) -- (\x,0.075);
}
\foreach \x in {0.5,1,...,14.5}{
\draw (\x,0) -- (\x,0.15);
}
% Upper divisions
\foreach \x in {0,1,...,6}{
\draw (\x in,1) -- (\x in,0.8)node[below,scale=0.4]{\x};
}
\foreach \x in {0.1,0.2,...,5.9}{
\draw (\x in,1) -- (\x in,0.925);
}
\foreach \x in {0.5,1,...,5.5}{
\draw (\x in,1) -- (\x in,0.85);
}
\end{tikzpicture}
\end{document}
还有一个指南针:
\documentclass[tikz,border=1cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[rotate=0,transform shape]
%\draw[help lines] (0,0) grid (5,5);
\draw (2.95,3.7) rectangle (3,3.95);
\draw (2.92,3.68) -- (2.5,2.5) -- (2.5,2.3) -- (2.99,3.68);
\draw (3.5,2.5) -- (3.43,2.48);
\draw (3.04,3.68) -- (3.5,2.5) -- (3.5,2.3) -- (2.975,3.68);
\draw (2.5,2.5) -- (2.56,2.48);
\draw[fill=white] (2.975,3.75) circle (0.1cm);
\draw (2.975,3.75) circle (0.04cm);
\draw (2.5,3.2) -- (3.5,3.2);
\draw[line width = 0.5pt,line cap=round] (2.975,3.15) -- (2.975,3.25);
\end{tikzpicture}
\end{document}
答案2
答案3
这是一个老问题,但也许对某些人(比如我)有帮助:有一个包pst-几何工具:“用量角器、直尺、圆规和铅笔绘图。”