Skip to content

Commit c7112fa

Browse files
xaviermawetOJFord
authored andcommitted
Added \x command
Supposed to replace twitter
1 parent 685aa60 commit c7112fa

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

awesome-cv.cls

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@
314314
% Usage: \twitter{<twitter handle>}
315315
\newcommand*{\twitter}[1]{\def\@twitter{#1}}
316316

317+
% Defines writer's x (formerly twitter) (optional)
318+
% Usage: \x{<x account>}
319+
\newcommand*{\x}[1]{\def\@x{#1}}
320+
317321
% Defines writer's Mastodon (optional)
318322
% Usage: \mastodon{<instance>}{<mastodon-nick>}
319323
\newcommand*{\mastodon}[2]{\def\@mastodoninstance{#1}\def\@mastodonname{#2}}
@@ -549,6 +553,12 @@
549553
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
550554
\href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}%
551555
}%
556+
\ifthenelse{\isundefined{\@x}}%
557+
{}%
558+
{%
559+
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
560+
\href{https://x.com/\@x}{\faXTwitter\acvHeaderIconSep\@x}%
561+
}%
552562
\ifthenelse{\isundefined{\@mastodonname}}%
553563
{}%
554564
{%

examples/coverletter.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
% \gitlab{gitlab-id}
6565
% \stackoverflow{SO-id}{SO-name}
6666
% \twitter{@twit}
67+
% \x{x-id}
6768
% \skype{skype-id}
6869
% \reddit{reddit-id}
6970
% \medium{madium-id}

examples/cv.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
% \gitlab{gitlab-id}
6565
% \stackoverflow{SO-id}{SO-name}
6666
% \twitter{@twit}
67+
% \x{x-id}
6768
% \skype{skype-id}
6869
% \reddit{reddit-id}
6970
% \medium{medium-id}

examples/resume.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
% \gitlab{gitlab-id}
6565
% \stackoverflow{SO-id}{SO-name}
6666
% \twitter{@twit}
67+
% \x{x-id}
6768
% \skype{skype-id}
6869
% \reddit{reddit-id}
6970
% \medium{madium-id}

0 commit comments

Comments
 (0)