-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyb-icons.sty
59 lines (55 loc) · 1.64 KB
/
cyb-icons.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cyb-icons}[2023/03/23 Icon handling for my CV]
\RequirePackage[fixed]{fontawesome5}
\RequirePackage{ifthen}
\newcommand{\emailIcon}{\faEnvelope[regular]}
\newcommand{\locationIcon}{\faMapMarker*}
\newcommand{\infoIcon}{\faInfo}
\newcommand{\linkedinIcon}{\faLinkedinIn}
\newcommand{\phoneIcon}{\faPhone*}
\newcommand{\githubIcon}{\faGithub}
\newcommand{\gitlabIcon}{\faGitlab}
\newcommand{\bitbucketIcon}{\faBitbucket}
\newcommand{\sourcehutIcon}{\faIcon[regular]{circle}}
\newcommand{\stackoverflowIcon}{\faStackOverflow}
\newcommand{\stackexchangeIcon}{\faStackExchange}
\newcommand{\soundcloudIcon}{\faSoundcloud}
\newcommand{\mastodonIcon}{\faMastodon}
\newcommand{\twitterIcon}{\faTwitter}
\newcommand{\websiteIcon}{\faLink}
%% This takes the name of the network/service as the only argument
\newcommand* \linkIcon[1]{%
\ifthenelse{\equal{#1}{email}}{%
\emailIcon%
}{%
\ifthenelse{\equal{#1}{phone}}{%
\phoneIcon%
}{%
\ifthenelse{\equal{#1}{LinkedIn}}{%
\linkedinIcon%
}{%
\ifthenelse{\equal{#1}{GitHub}}{%
\githubIcon%
}{%
\ifthenelse{\equal{#1}{GitLab}}{%
\gitlabIcon%
}{%
\ifthenelse{\equal{#1}{Bitbucket}}{%
\bitbucketIcon%
}{%
\ifthenelse{\equal{#1}{sourcehut}}{%
\sourcehutIcon%
}{%
\ifthenelse{\equal{#1}{Mastodon}}{%
\mastodonIcon%
}{%
\ifthenelse{\equal{#1}{Twitter}}{%
\twitterIcon%
}{%
\ifthenelse{\equal{#1}{SoundCloud}}{%
\soundcloudIcon%
}{%
\websiteIcon%
}}}}}}}}}}%
}
% vim: set filetype=tex tabstop=4 softtabstop=4 shiftwidth=4 expandtab :