| 1 |
\pdfmapfile{+simpleicons.map} |
| 2 |
\documentclass{article} |
| 3 |
\usepackage{xparse} |
| 4 |
\usepackage{booktabs} |
| 5 |
\usepackage{hyperref} |
| 6 |
\usepackage{shortvrb} |
| 7 |
\usepackage{longtable} |
| 8 |
\usepackage{simpleicons} |
| 9 |
\MakeShortVerb{\|} |
| 10 |
\setlength{\parindent}{0pt} |
| 11 |
\begin{document} |
| 12 |
\title{The \textsf{simpleicons} package\\High quality icons for popular brands} |
| 13 |
\author{% |
| 14 |
Simple Icons (Font)\\% |
| 15 |
Inesh Bose (\LaTeX{} package)% |
| 16 |
} |
| 17 |
\date{16.17.0 -- \today}\maketitle |
| 18 |
|
| 19 |
This package provides \LaTeX{} support for the Simple Icons logos. |
| 20 |
To use Simple Icons in your document, include the package with |\usepackage{simpleicons}|. |
| 21 |
|
| 22 |
An icon can be accessed using the icon name (one word, lowercase). To do this, you can use |\simpleicon{thebrandname}|. |
| 23 |
A list of all included icons with their respective commands can be found at the end of this document. |
| 24 |
|
| 25 |
\subsection*{Example} |
| 26 |
\begin{verbatim} |
| 27 |
... |
| 28 |
\usepackage{simpleicons} |
| 29 |
... |
| 30 |
\begin{document} |
| 31 |
... |
| 32 |
\simpleicon{github} |
| 33 |
... |
| 34 |
\end{document} |
| 35 |
\end{verbatim} |
| 36 |
Result: \simpleicon{github} |
| 37 |
|
| 38 |
\subsection*{Bugs} |
| 39 |
For bug reports and feature requests, report on the GitHub repository \href{https://github.com/ineshbose/simple-icons-latex}{\nolinkurl{https://github.com/ineshbose/simple-icons-latex}}. |
| 40 |
|
| 41 |
If you get an error "|dfTeX error: pdflatex: Font at 600 not found|", add |\pdfmapfile{+simpleicons.map}| in the preamble. |
| 42 |
|
| 43 |
\newpage |
| 44 |
\section*{List of icons} |
| 45 |
\newenvironment{showcase}{% |
| 46 |
\begin{longtable}{clll} |
| 47 |
\cmidrule[\heavyrulewidth]{1-3}% \toprule |
| 48 |
\bfseries Icon& \bfseries Name& \bfseries Direct command& \\ |
| 49 |
\cmidrule{1-3}\endhead} |
| 50 |
{\cmidrule[\heavyrulewidth]{1-3}\end{longtable}} |
| 51 |
\NewDocumentCommand{\showcaseicon}{mmo}{% |
| 52 |
\simpleicon{#1}& \itshape #1& \ttfamily \textbackslash #2\index{\ttfamily \textbackslash #2}& \IfNoValueTF{#3}{}{\textit{#3}}\\} |
| 53 |
|
| 54 |
\input{bindings} |
| 55 |
\end{document} |