I'm new to Latex
. I am creating my resume using moderncv
and I want to add my google scholar and researchgate profiles (icon and clickable link) to the preamble (below the website link in the image). Is there a simpler way to do that?
Here is my preamble:
\documentclass[11pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
% modern themes
\moderncvstyle{banking} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
\usepackage[parfill]{parskip} % Remove paragraph indentation
% character encoding
\usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
\usepackage{ifthen} % Required for ifthenelse statements
\usepackage{fontawesome}
% \usepackage{hyperref}
\pagestyle{empty} % Suppress page numbers
\usepackage{import}
% personal data
\vspace{-2.00cm}
\name {Md.Tahsin}{Mostafiz}
% \vspace{-.4cm}
% \title{Curriculum Vitae} % optional, remove / comment the line if not wanted
\address{16/C Judges Complex, Kakrail, Dhaka}{}{}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\vspace{-.5cm}
\phone[mobile]{+88 01517262551} % optional, remove / comment the line if not wanted
\email{tahsinmostafiz314@gmail.com} %
Best Answer
Because you did not give us a complete MWE, I can only guess as to why you are using
\vspace{-2.00cm}
in your code/preamble. I suppose that it will not do what you want, but that is alas another question ;-)A command exists for your problem:
\socials
in classmoderncv
:john.doe
stands for your account name in both cases.To be able to use these commands you need to add the following code to your preamble:
That allows you to use the given commands
\socials
. Please note that you have to change the codewww.googlescholar.com/profile/
forto what you need.
#3
contains your displayed name, which is also the account name.The second part you have to change is the following commands:
Instead of
\includegraphics[width=0.5cm]{example-image-a}
add the image you need, to display the logo of that page you did not tell us.If the displayed name and the link differ in the last part (
john.doe
is not part of the link, but you want to display it, you can use the following command:Then please change the second and third parameter to your needs. Instead of
test
usegooglescholar
andresearchgate
to name the new social commands. BTW, if you only use the possibility oftest
you can use a shorter code in your preamble:You need this code to get
https:
instead ofhttp:
in the links ...With the following compilable code (MWE; please next time add one to your question!):
you get: