I want to add my medium profile in the personal section in my resume. Given that this is my first time using TeX, is there any way to do this. As font awesome is supported, so I added these lines:
\newcommand{\mediumsymbol}{\famedium}
\newcommand{\medium}[1]{\printinfo{\mediumsymbol}{#1}}
But this is throwing error. Also, the links in personal section are not spaced equally. Is there any way to correct it?
\personalinfo{%
\email{abc@gmail.com}
\location{XYZ}
\twitter{@abc}
\linkedin{linkedin.com/in/abc}
\github{github.com/abc}
EDIT: As pointed out in comments, I am providing a snippet of the file I am using on overleaf:
\documentclass[10pt,a4paper,ragged2e]{altacv}
%% AltaCV uses the fontawesome and academicon fonts
%% and packages.
%% See texdoc.net/pkg/fontawecome and http://texdoc.net/pkg/academicons for full list of symbols. You MUST compile with XeLaTeX or LuaLaTeX if you want to use academicons.
% Change the page layout if you need to
\geometry{left=2cm,right=10cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm}
% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
% If using xelatex or lualatex:
\setmainfont{Carlito}
\else
% If using pdflatex:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[default]{lato}
\fi
% Change the colours if you want to
\definecolor{VividPurple}{HTML}{000000}
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{2E2E2E}
\colorlet{heading}{VividPurple}
\colorlet{accent}{VividPurple}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}
% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}
%% sample.bib contains your publications
\addbibresource{sample.bib}
\begin{document}
\name{abc}
\tagline{AAAA}
% Cropped to square from https://en.wikipedia.org/wiki/Marissa_Mayer#/media/File:Marissa_Mayer_May_2014_(cropped).jpg, CC-BY 2.0
%\photo{3.3cm}{profile.jpg}
\personalinfo{%
% Not all of these are required!
% You can add your own with \printinfo{symbol}{detail}
\email{abc@gmail.com}
% \phone{000-00-0000}
% \mailaddress{Address, Street, 00000 County}
\location{loc}
\medium{meidum.com/abc}
% \twitter{@marissamayer}
\linkedin{linkedin.com/in/abc}
\github{github.com/abc} % I'm just making this up though.
% \orcid{orcid.org/0000-0000-0000-0000} % Obviously making this up too. If you want to use this field (and also other academicons symbols), add "academicons" option to \documentclass{altacv}
}
Best Answer
Well, you did not tell us the error you got. Please always add the complete error message you got to help us to help you ...
Bases on your sadly not compilable code snippet (forces us to guess what you are doing, not a good starting point for helping you ...) I can guess that your line
throws the error that controll sequence
famedium
is undefined. Of course, because the correct command defined infontawesome
is\faMedium
(see big letter M):I added missing code to your code snippet to get it compilable, see the following compilable MWE (without errors):
and its result:
As you can see with the corrected code the links in personal section are spaced equally. Do not missinterpret the short
loc
, it makes an optical illusion of not spaced equally ...