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"
This commit is contained in:
micheld93 2026-02-01 22:15:20 +01:00 committed by GitHub
commit 18430d4884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 1 deletions

View file

@ -16,6 +16,10 @@ version 2.5.1 (31 Jan 2026)
visible (#186) visible (#186)
- Fix minor horizontal spacing issue in 'contemporary' style header - 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) version 2.4.1 (18 Jul 2024)
- Fix commons/colors.tex not found in package (#194) - Fix commons/colors.tex not found in package (#194)

View file

@ -329,6 +329,7 @@ A command for a social media account.
Takes the platform as an optional argument. Takes the platform as an optional argument.
\begin{lstlisting} \begin{lstlisting}
\social[<platform>]{<username or handle>} \social[<platform>]{<username or handle>}
\social[<platform>][<link to site>]{<Text shown in document>}
\end{lstlisting} \end{lstlisting}
The following values are supported for \code{<platform>}: The following values are supported for \code{<platform>}:
\begin{itemize} \begin{itemize}
@ -347,6 +348,7 @@ The following values are supported for \code{<platform>}:
\item \code{mastodon} \item \code{mastodon}
\item \code{matrix} \item \code{matrix}
\item \code{orcid} \item \code{orcid}
\item \code{medium}
\item \code{playstation} \item \code{playstation}
\item \code{researcherid} \item \code{researcherid}
\item \code{researchgate} \item \code{researchgate}
@ -782,6 +784,7 @@ Currently \Moderncv supports the following commands as \code{<\\symbolcommand>}:
\item \code{\\signalsocialsymbol} \item \code{\\signalsocialsymbol}
\item \code{\\matrixsocialsymbol} \item \code{\\matrixsocialsymbol}
\item \code{\\orcidsocialsymbol} \item \code{\\orcidsocialsymbol}
\item \code{\\mediumsocialsymbol}
\item \code{\\researchgatesocialsymbol} \item \code{\\researchgatesocialsymbol}
\item \code{\\researcheridsocialsymbol} \item \code{\\researcheridsocialsymbol}
\item \code{\\bitbucketsocialsymbol} \item \code{\\bitbucketsocialsymbol}

View file

@ -328,6 +328,7 @@
\ifthenelse{\equal{#1}{inspire}} {\collectionadd[inspire]{socials} {\protect\httpslink[#3]{inspirehep.net/authors/#3}}} {}% \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}{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}{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}}}}% {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}%
@ -397,6 +398,10 @@
\newcommand*{\inspiresocialsymbol} {} \newcommand*{\inspiresocialsymbol} {}
\newcommand*{\simplexsocialsymbol} {} \newcommand*{\simplexsocialsymbol} {}
\newcommand*{\threemasocialsymbol} {} \newcommand*{\threemasocialsymbol} {}
\newcommand*{\mediumsocialsymbol} {}
% other % other
%------ %------

View file

@ -55,7 +55,7 @@
\providecolor{playstation}{named}{default-socialicon-color} \providecolor{playstation}{named}{default-socialicon-color}
\providecolor{battlenet}{named}{default-socialicon-color} \providecolor{battlenet}{named}{default-socialicon-color}
\providecolor{born}{named}{default-socialicon-color} \providecolor{born}{named}{default-socialicon-color}
\providecolor{medium}{named}{default-socialicon-color}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% all symbols described in moderncv.cls % all symbols described in moderncv.cls
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -101,6 +101,8 @@
% \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~} % \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~}
% \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~} % \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~}
\renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage \renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage
\renewcommand*{\mediumsocialsymbol} {{\color{medium}\small\faMedium}~}
\endinput \endinput

View file

@ -38,6 +38,7 @@
\renewcommand*{\bitbucketsocialsymbol} {\textbf{bb}~} \renewcommand*{\bitbucketsocialsymbol} {\textbf{bb}~}
\renewcommand*{\skypesocialsymbol} {\textbf{sk}~} \renewcommand*{\skypesocialsymbol} {\textbf{sk}~}
\renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~} \renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~}
\renewcommand*{\mediumsocialsymbol} {\textbf{Me}~}
\renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~} \renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~}
\renewcommand*{\researcheridsocialsymbol} {\textbf{ri}~} \renewcommand*{\researcheridsocialsymbol} {\textbf{ri}~}
\renewcommand*{\telegramsocialsymbol} {\textbf{tg}~} \renewcommand*{\telegramsocialsymbol} {\textbf{tg}~}

View file

@ -79,6 +79,8 @@
\social[researcherid]{jdoe} % optional, remove / comment the line if not wanted \social[researcherid]{jdoe} % optional, remove / comment the line if not wanted
\social[googlescholar]{googlescholarid} % 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[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[mastodon]{mastodon.social/web/@user} % optional, remove / comment the line if not wanted
\social[telegram]{jdoe} % optional, remove / comment the line if not wanted \social[telegram]{jdoe} % optional, remove / comment the line if not wanted