diff options
author | Karl Berry <karl@freefriends.org> | 2022-05-19 20:10:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-05-19 20:10:19 +0000 |
commit | a28863f9f03f7981eed520b690d94cb504bf0668 (patch) | |
tree | 4642c91e9d736f86d9688684cda4c02b2e16351e /Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex | |
parent | 55d5411b9fd43eb0987342fed2264edfb2d69a95 (diff) |
simpleicons (18may22)
git-svn-id: svn://tug.org/texlive/trunk@63335 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex')
-rw-r--r-- | Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex b/Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex new file mode 100644 index 00000000000..601ef7e4092 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/simpleicons/simpleicons.tex @@ -0,0 +1,55 @@ +\pdfmapfile{+simpleicons.map} +\documentclass{article} +\usepackage{xparse} +\usepackage{booktabs} +\usepackage{hyperref} +\usepackage{shortvrb} +\usepackage{longtable} +\usepackage{simpleicons} +\MakeShortVerb{\|} +\setlength{\parindent}{0pt} +\begin{document} +\title{The \textsf{simpleicons} package\\High quality icons for popular brands} +\author{% + Simple Icons (Font)\\% + Inesh Bose (\LaTeX{} package)% +} +\maketitle + +This package provides \LaTeX{} support for the Simple Icons logos. +To use Simple Icons in your document, include the package with |\usepackage{simpleicons}|. + +An icon can be accessed using the icon name (one word, lowercase). To do this, you can use |\simpleicon{thebrandname}|. +A list of all included icons with their respective commands can be found at the end of this document. + +\subsection*{Example} +\begin{verbatim} +... +\usepackage{simpleicons} +... +\begin{document} +... +\simpleicon{github} +... +\end{document} +\end{verbatim} +Result: \simpleicon{github} + +\subsection*{Bugs} +This package is very new and in alpha stage right now. 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}}. + +If you get an error "|dfTeX error: pdflatex: Font at 600 not found|", add |\pdfmapfile{+simpleicons.map}| in the preamble. + +\newpage +\section*{List of icons} +\newenvironment{showcase}{% + \begin{longtable}{clll} + \cmidrule[\heavyrulewidth]{1-3}% \toprule + \bfseries Icon& \bfseries Name& \bfseries Direct command& \\ + \cmidrule{1-3}\endhead} + {\cmidrule[\heavyrulewidth]{1-3}\end{longtable}} +\NewDocumentCommand{\showcaseicon}{mmo}{% + \simpleicon{#1}& \itshape #1& \ttfamily \textbackslash #2\index{\ttfamily \textbackslash #2}& \IfNoValueTF{#3}{}{\textit{#3}}\\} + +\input{bindings} +\end{document} |