From 62374bd4a9d0b6b051a90b56b462c6be92792e67 Mon Sep 17 00:00:00 2001 From: dottorJekyll Date: Sun, 16 Feb 2020 15:48:34 +0100 Subject: [PATCH 1/2] Add mbox to social links --- awesome-cv.cls | 52 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index c26c7754b..a692b967b 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -465,79 +465,105 @@ {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}% + \mbox{ + \href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}% + } }% \ifthenelse{\isundefined{\@homepage}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}% + \mbox{ + \href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}% + } }% \ifthenelse{\isundefined{\@github}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}% + \mbox{ + \href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}% + } }% \ifthenelse{\isundefined{\@gitlab}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://gitlab.com/\@gitlab}{\faGitlab\acvHeaderIconSep\@gitlab}% + \mbox{ + \href{https://gitlab.com/\@gitlab}{\faGitlab\acvHeaderIconSep\@gitlab}% + } }% \ifthenelse{\isundefined{\@stackoverflowid}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}% + \mbox{ + \href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}% + } }% \ifthenelse{\isundefined{\@linkedin}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}% + \mbox{ + \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}% + } }% \ifthenelse{\isundefined{\@twitter}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}% + \mbox{ + \href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}% + } }% \ifthenelse{\isundefined{\@skype}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \faSkype\acvHeaderIconSep\@skype% + \mbox{ + \faSkype\acvHeaderIconSep\@skype% + } }% \ifthenelse{\isundefined{\@reddit}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.reddit.com/user/\@reddit}{\faReddit\acvHeaderIconSep\@reddit}% + \mbox{ + \href{https://www.reddit.com/user/\@reddit}{\faReddit\acvHeaderIconSep\@reddit}% + } }% \ifthenelse{\isundefined{\@xing}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.xing.com/profile/\@xing}{\faXingSquare\acvHeaderIconSep\@xing} + \mbox{ + \href{https://www.xing.com/profile/\@xing}{\faXingSquare\acvHeaderIconSep\@xing} + } }% \ifthenelse{\isundefined{\@medium}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://medium.com/@\@medium}{\faMedium\acvHeaderIconSep\@medium}% + \mbox{ + \href{https://medium.com/@\@medium}{\faMedium\acvHeaderIconSep\@medium}% + } }% \ifthenelse{\isundefined{\@googlescholarid}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://scholar.google.com/citations?user=\@googlescholarid}{\faGraduationCap\acvHeaderIconSep\@googlescholarname}% + \mbox{ + \href{https://scholar.google.com/citations?user=\@googlescholarid}{\faGraduationCap\acvHeaderIconSep\@googlescholarname}% + } }% \ifthenelse{\isundefined{\@extrainfo}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \@extrainfo% + \mbox{ + \@extrainfo% + } }% } \\[\acvHeaderAfterSocialSkip]% \ifthenelse{\isundefined{\@quote}}% From de5841f86d271335b860d1143b4322e807bf2f99 Mon Sep 17 00:00:00 2001 From: Luca Manca Date: Sat, 13 Jan 2024 17:59:12 +0100 Subject: [PATCH 2/2] wrap added sections --- awesome-cv.cls | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 175c0d575..8047de8cf 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -497,7 +497,9 @@ {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% % \mbox prevents wrapping of elements% - \mbox{\faBirthdayCake\acvHeaderIconSep\@dateofbirth}% + \mbox{ + \faBirthdayCake\acvHeaderIconSep\@dateofbirth + }% }% \ifthenelse{\isundefined{\@homepage}}% {}% @@ -527,7 +529,9 @@ {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://bitbucket.com/\@bitbucket}{\faBitbucket\acvHeaderIconSep\@bitbucket}% + \mbox{ + \href{https://bitbucket.com/\@bitbucket}{\faBitbucket\acvHeaderIconSep\@bitbucket}% + } }% \ifthenelse{\isundefined{\@stackoverflowid}}% {}% @@ -565,7 +569,9 @@ {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://\@mastodoninstance/@\@mastodonname}{\faMastodon\acvHeaderIconSep\@mastodonname}% + \mbox{ + \href{https://\@mastodoninstance/@\@mastodonname}{\faMastodon\acvHeaderIconSep\@mastodonname}% + } }% \ifthenelse{\isundefined{\@skype}}% {}% @@ -587,7 +593,9 @@ {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.researchgate.net/profile/\@researchgate}{\faResearchgate\acvHeaderIconSep\@researchgate}% + \mbox{ + \href{https://www.researchgate.net/profile/\@researchgate}{\faResearchgate\acvHeaderIconSep\@researchgate}% + } }% \ifthenelse{\isundefined{\@xing}}% {}% @@ -609,13 +617,17 @@ {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://kaggle.com/\@kaggle}{\faKaggle\acvHeaderIconSep\@kaggle}% + \mbox{ + \href{https://kaggle.com/\@kaggle}{\faKaggle\acvHeaderIconSep\@kaggle}% + } }% \ifthenelse{\isundefined{\@hackerrank}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.hackerrank.com/\@hackerrank}{\faHackerrank\acvHeaderIconSep\@hackerrank}% + \mbox{ + \href{https://www.hackerrank.com/\@hackerrank}{\faHackerrank\acvHeaderIconSep\@hackerrank}% + } }% \ifthenelse{\isundefined{\@googlescholarid}}% {}%