[Tex/LaTex] Computer and save symbol in LaTeX

ctansymbols

How can I write a computer/pc symbol computer/pc symbol and a save symbol in LaTeX? I looked in the Comprehensive LaTeX symbol list but don't find them.

Best Answer

If you have trouble finding the symbols you are looking for in a font, or if you are unable to install the right font package, you can use the image files that you used in your question. You can specify the size of the image using the height attribute of \includegraphics. You can define a macro to save some typing if you use this icon multiple times (see \asav below). With a little more effort you can get the current font size and display the icon using this size, scaling it proportional to the text (see \bsav below). Examples:

\documentclass[11pt]{article}
\usepackage{graphicx}

\newlength{\mytextsize}

\newcommand{\asav}[0]{\includegraphics[height=20pt]{save-icon.png}}
\makeatletter
\newcommand{\bsav}[0]{\setlength{\mytextsize}{\f@size pt}\includegraphics[height=\mytextsize]{save-icon.png} }
\makeatother

\begin{document}
\begin{enumerate}
\item Press the \includegraphics{save-icon.png} button to save
\item Press the \includegraphics[height=20pt]{save-icon.png} button to save
\item Press the \asav button to save
\item Press the \bsav button to save
\item \tiny Press the \bsav button to save
\item \normalsize Press the \bsav button to save
\item \huge Press the \bsav button to save
\end{enumerate}
\end{document}