From 18430d4884c76b83f4463185e890185f1d9db062 Mon Sep 17 00:00:00 2001 From: micheld93 Date: Sun, 1 Feb 2026 22:15:20 +0100 Subject: [PATCH] Added support for "Medium.com" social symbols (#264) * Added support for "Medium.com" social symbols * Update CHANGELOG Add new version with Medium.com icon support. * Update moderncv_userguide.tex Added "Medium.com" as icon in the manual * Update moderncviconsletters.sty Added "Medium.com" * Update template.tex Added "Medium.com" --- CHANGELOG | 4 ++++ manual/moderncv_userguide.tex | 3 +++ moderncv.cls | 5 +++++ moderncviconsawesome.sty | 4 +++- moderncviconsletters.sty | 1 + template.tex | 2 ++ 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 9713ed9..258f069 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -16,6 +16,10 @@ version 2.5.1 (31 Jan 2026) visible (#186) - Fix minor horizontal spacing issue in 'contemporary' style header + +version 2.4.2 (01 Feb 2025) +- Added support for additional social icons like medium. (#264) + version 2.4.1 (18 Jul 2024) - Fix commons/colors.tex not found in package (#194) diff --git a/manual/moderncv_userguide.tex b/manual/moderncv_userguide.tex index 8c421f1..ba4c5ab 100644 --- a/manual/moderncv_userguide.tex +++ b/manual/moderncv_userguide.tex @@ -329,6 +329,7 @@ A command for a social media account. Takes the platform as an optional argument. \begin{lstlisting} \social[]{} + \social[][]{} \end{lstlisting} The following values are supported for \code{}: \begin{itemize} @@ -347,6 +348,7 @@ The following values are supported for \code{}: \item \code{mastodon} \item \code{matrix} \item \code{orcid} + \item \code{medium} \item \code{playstation} \item \code{researcherid} \item \code{researchgate} @@ -782,6 +784,7 @@ Currently \Moderncv supports the following commands as \code{<\\symbolcommand>}: \item \code{\\signalsocialsymbol} \item \code{\\matrixsocialsymbol} \item \code{\\orcidsocialsymbol} + \item \code{\\mediumsocialsymbol} \item \code{\\researchgatesocialsymbol} \item \code{\\researcheridsocialsymbol} \item \code{\\bitbucketsocialsymbol} diff --git a/moderncv.cls b/moderncv.cls index 2e3ab10..1328bdb 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -328,6 +328,7 @@ \ifthenelse{\equal{#1}{inspire}} {\collectionadd[inspire]{socials} {\protect\httpslink[#3]{inspirehep.net/authors/#3}}} {}% \ifthenelse{\equal{#1}{simplex}} {\collectionadd[simplex]{socials} {\protect\httpslink[#3]{simplex.chat/#3}}} {}% \ifthenelse{\equal{#1}{threema}} {\collectionadd[threema]{socials} {\protect\httpslink[#3]{threema.id/#3}}} {}% + \ifthenelse{\equal{#1}{medium}} {\collectionadd[medium]{socials} {\protect\httpslink[#3]{medium.com/#3}}} {}% } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% @@ -397,6 +398,10 @@ \newcommand*{\inspiresocialsymbol} {} \newcommand*{\simplexsocialsymbol} {} \newcommand*{\threemasocialsymbol} {} +\newcommand*{\mediumsocialsymbol} {} + + + % other %------ diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 6bd7b26..de29355 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -55,7 +55,7 @@ \providecolor{playstation}{named}{default-socialicon-color} \providecolor{battlenet}{named}{default-socialicon-color} \providecolor{born}{named}{default-socialicon-color} - +\providecolor{medium}{named}{default-socialicon-color} %------------------------------------------------------------------------------- % all symbols described in moderncv.cls %------------------------------------------------------------------------------- @@ -101,6 +101,8 @@ % \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~} % \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~} \renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage +\renewcommand*{\mediumsocialsymbol} {{\color{medium}\small\faMedium}~} + \endinput diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index d649b14..29610c6 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -38,6 +38,7 @@ \renewcommand*{\bitbucketsocialsymbol} {\textbf{bb}~} \renewcommand*{\skypesocialsymbol} {\textbf{sk}~} \renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~} +\renewcommand*{\mediumsocialsymbol} {\textbf{Me}~} \renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~} \renewcommand*{\researcheridsocialsymbol} {\textbf{ri}~} \renewcommand*{\telegramsocialsymbol} {\textbf{tg}~} diff --git a/template.tex b/template.tex index 5e38a6a..473d22e 100644 --- a/template.tex +++ b/template.tex @@ -79,6 +79,8 @@ \social[researcherid]{jdoe} % optional, remove / comment the line if not wanted \social[googlescholar]{googlescholarid} % optional, remove / comment the line if not wanted +\social[medium]{jdoe} % optional, remove / comment the line if not wanted + \social[twitter]{ji\_doe} % optional, remove / comment the line if not wanted \social[mastodon]{mastodon.social/web/@user} % optional, remove / comment the line if not wanted \social[telegram]{jdoe} % optional, remove / comment the line if not wanted