Class moderncv error: undefined control sequence gitlabsocialsymbolHow to install “vanilla” TeXLive on...

Formatting a table to look nice

Lock enemy's y-axis when using Vector3.MoveTowards to follow the player

Can we carry rice to Japan?

What can I do if someone tampers with my SSH public key?

Would the melodic leap of the opening phrase of Mozart's K545 be considered dissonant?

Did Amazon pay $0 in taxes last year?

Are small insurances worth it

How do I deal with being envious of my own players?

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

The need of reserving one's ability in job interviews

Sometimes a banana is just a banana

Quitting employee has privileged access to critical information

Meaning of '4:1 (3:0)' as score in football (World Cup match)

Is there a frame of reference in which I was born before I was conceived?

Specific Chinese carabiner QA?

Correct physics behind the colors on CD (compact disc)?

A bug in Excel? Conditional formatting for marking duplicates also highlights unique value

Misplaced tyre lever - alternatives?

When was drinking water recognized as crucial in marathon running?

How do you say “my friend is throwing a party, do you wanna come?” in german

How do we objectively assess if a dialogue sounds unnatural or cringy?

PTIJ: Why can't I sing about soda on certain days?

How to get the first element while continue streaming?

Why are special aircraft used for the carriers in the United States Navy?



Class moderncv error: undefined control sequence gitlabsocialsymbol


How to install “vanilla” TeXLive on Debian or Ubuntu?Undefined control sequence Error with moderncv+HebrewUndefined control sequence error with moderncvUndefined control sequence makecvtitle in moderncv packageModerncv and AAS macros lead to Undefined control sequenceError “! Undefined control sequence” using moderncv with the “casual” optionClass moderncv: renewcommand makecvtitle results in undefined control sequence errorModerncv - undefined control sequence in minimal documentlatex error “undefined control sequence” begin{document}Undefined control sequence in moderncv latex classUndefined control sequence makecvtitle with moderncv package













1















I'm having problems to display the favicon for Gitlab in my moderncv project. I think it has to do with my installation of moderncv.



I'm on a Ubuntu machine and first I installed texlive-latex-extra.



After some googling I found out that the moderncv version in TeX Live is out of date. So I cloned the moderncv git repo and put it into /home/{user}/texmf/tex/latex/moderncv.



$ kpsewhich -var-value=TEXMFHOME
/home/{user}/texmf


So I would think that the newer version of moderncv in my home folder has precedence. But apparently this is not the case.



When I try to compile the example template from moderncv



%% start of file `template.tex'.
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


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')

% moderncv themes
moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%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

% character encoding
%usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
%usepackage{CJKutf8} % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
usepackage[scale=0.75]{geometry}
%setlength{hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%setlength{makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
name{John}{Doe}
title{Resumé title} % optional, remove / comment the line if not wanted
address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org} % optional, remove / comment the line if not wanted
homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
social[xing]{john_doe} % optional, remove / comment the line if not wanted
social[twitter]{jdoe} % optional, remove / comment the line if not wanted
social[github]{jdoe} % optional, remove / comment the line if not wanted
social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
social[skype]{jdoe} % optional, remove / comment the line if not wanted
extrainfo{additional information} % optional, remove / comment the line if not wanted
photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
quote{Some quote} % optional, remove / comment the line if not wanted

% bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
% to show numerical labels in the bibliography (default is to show no labels)
%makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
renewcommand*{bibliographyitemlabel}{[arabic{enumiv}]}
% to redefine the bibliography heading string ("Publications")
%renewcommand{refname}{Articles}

% bibliography with mutiple entries
%usepackage{multibib}
%newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
begin{document}
%begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{Language 2}{Skill level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5cite{book1}}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

% Publications from a BibTeX file without multibib
% for numerical labels: renewcommand{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
% to redefine the heading string ("Publications"): renewcommand{refname}{Articles}
nocite{*}
bibliographystyle{plain}
bibliography{publications} % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%section{Publications}
%nocitebook{book1,book2}
%bibliographystylebook{plain}
%bibliographybook{publications} % 'publications' is the name of a BibTeX file
%nocitemisc{misc1,misc2,misc3}
%bibliographystylemisc{plain}
%bibliographymisc{publications} % 'publications' is the name of a BibTeX file

clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}} % use an optional argument to use a string other than "Enclosure", or redefine enclname
makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]

makeletterclosing

%clearpageend{CJK*} % if you are typesetting your resume in Chinese using CJK; the clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making lastpage undefined
end{document}


%% end of file `template.tex'.


I get the following error:



Undefined control sequence.
gitlabsocialsymbol ->{small faGitlab


If it makes any difference I'm using VS Code with the LaTeX Workshop plugin. I think the compiler it is using is latexmk.



If I take out the line social[gitlab]{jdoe} everything works fine.



Would be much appreciated if anyone could help me sort out these issues. Happy to provide any additional info that is needed.










share|improve this question









New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

    – Marcel Krüger
    yesterday











  • Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

    – c_student
    yesterday











  • You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

    – Kurt
    yesterday
















1















I'm having problems to display the favicon for Gitlab in my moderncv project. I think it has to do with my installation of moderncv.



I'm on a Ubuntu machine and first I installed texlive-latex-extra.



After some googling I found out that the moderncv version in TeX Live is out of date. So I cloned the moderncv git repo and put it into /home/{user}/texmf/tex/latex/moderncv.



$ kpsewhich -var-value=TEXMFHOME
/home/{user}/texmf


So I would think that the newer version of moderncv in my home folder has precedence. But apparently this is not the case.



When I try to compile the example template from moderncv



%% start of file `template.tex'.
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


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')

% moderncv themes
moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%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

% character encoding
%usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
%usepackage{CJKutf8} % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
usepackage[scale=0.75]{geometry}
%setlength{hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%setlength{makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
name{John}{Doe}
title{Resumé title} % optional, remove / comment the line if not wanted
address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org} % optional, remove / comment the line if not wanted
homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
social[xing]{john_doe} % optional, remove / comment the line if not wanted
social[twitter]{jdoe} % optional, remove / comment the line if not wanted
social[github]{jdoe} % optional, remove / comment the line if not wanted
social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
social[skype]{jdoe} % optional, remove / comment the line if not wanted
extrainfo{additional information} % optional, remove / comment the line if not wanted
photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
quote{Some quote} % optional, remove / comment the line if not wanted

% bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
% to show numerical labels in the bibliography (default is to show no labels)
%makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
renewcommand*{bibliographyitemlabel}{[arabic{enumiv}]}
% to redefine the bibliography heading string ("Publications")
%renewcommand{refname}{Articles}

% bibliography with mutiple entries
%usepackage{multibib}
%newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
begin{document}
%begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{Language 2}{Skill level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5cite{book1}}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

% Publications from a BibTeX file without multibib
% for numerical labels: renewcommand{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
% to redefine the heading string ("Publications"): renewcommand{refname}{Articles}
nocite{*}
bibliographystyle{plain}
bibliography{publications} % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%section{Publications}
%nocitebook{book1,book2}
%bibliographystylebook{plain}
%bibliographybook{publications} % 'publications' is the name of a BibTeX file
%nocitemisc{misc1,misc2,misc3}
%bibliographystylemisc{plain}
%bibliographymisc{publications} % 'publications' is the name of a BibTeX file

clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}} % use an optional argument to use a string other than "Enclosure", or redefine enclname
makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]

makeletterclosing

%clearpageend{CJK*} % if you are typesetting your resume in Chinese using CJK; the clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making lastpage undefined
end{document}


%% end of file `template.tex'.


I get the following error:



Undefined control sequence.
gitlabsocialsymbol ->{small faGitlab


If it makes any difference I'm using VS Code with the LaTeX Workshop plugin. I think the compiler it is using is latexmk.



If I take out the line social[gitlab]{jdoe} everything works fine.



Would be much appreciated if anyone could help me sort out these issues. Happy to provide any additional info that is needed.










share|improve this question









New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

    – Marcel Krüger
    yesterday











  • Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

    – c_student
    yesterday











  • You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

    – Kurt
    yesterday














1












1








1








I'm having problems to display the favicon for Gitlab in my moderncv project. I think it has to do with my installation of moderncv.



I'm on a Ubuntu machine and first I installed texlive-latex-extra.



After some googling I found out that the moderncv version in TeX Live is out of date. So I cloned the moderncv git repo and put it into /home/{user}/texmf/tex/latex/moderncv.



$ kpsewhich -var-value=TEXMFHOME
/home/{user}/texmf


So I would think that the newer version of moderncv in my home folder has precedence. But apparently this is not the case.



When I try to compile the example template from moderncv



%% start of file `template.tex'.
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


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')

% moderncv themes
moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%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

% character encoding
%usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
%usepackage{CJKutf8} % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
usepackage[scale=0.75]{geometry}
%setlength{hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%setlength{makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
name{John}{Doe}
title{Resumé title} % optional, remove / comment the line if not wanted
address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org} % optional, remove / comment the line if not wanted
homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
social[xing]{john_doe} % optional, remove / comment the line if not wanted
social[twitter]{jdoe} % optional, remove / comment the line if not wanted
social[github]{jdoe} % optional, remove / comment the line if not wanted
social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
social[skype]{jdoe} % optional, remove / comment the line if not wanted
extrainfo{additional information} % optional, remove / comment the line if not wanted
photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
quote{Some quote} % optional, remove / comment the line if not wanted

% bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
% to show numerical labels in the bibliography (default is to show no labels)
%makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
renewcommand*{bibliographyitemlabel}{[arabic{enumiv}]}
% to redefine the bibliography heading string ("Publications")
%renewcommand{refname}{Articles}

% bibliography with mutiple entries
%usepackage{multibib}
%newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
begin{document}
%begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{Language 2}{Skill level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5cite{book1}}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

% Publications from a BibTeX file without multibib
% for numerical labels: renewcommand{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
% to redefine the heading string ("Publications"): renewcommand{refname}{Articles}
nocite{*}
bibliographystyle{plain}
bibliography{publications} % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%section{Publications}
%nocitebook{book1,book2}
%bibliographystylebook{plain}
%bibliographybook{publications} % 'publications' is the name of a BibTeX file
%nocitemisc{misc1,misc2,misc3}
%bibliographystylemisc{plain}
%bibliographymisc{publications} % 'publications' is the name of a BibTeX file

clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}} % use an optional argument to use a string other than "Enclosure", or redefine enclname
makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]

makeletterclosing

%clearpageend{CJK*} % if you are typesetting your resume in Chinese using CJK; the clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making lastpage undefined
end{document}


%% end of file `template.tex'.


I get the following error:



Undefined control sequence.
gitlabsocialsymbol ->{small faGitlab


If it makes any difference I'm using VS Code with the LaTeX Workshop plugin. I think the compiler it is using is latexmk.



If I take out the line social[gitlab]{jdoe} everything works fine.



Would be much appreciated if anyone could help me sort out these issues. Happy to provide any additional info that is needed.










share|improve this question









New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm having problems to display the favicon for Gitlab in my moderncv project. I think it has to do with my installation of moderncv.



I'm on a Ubuntu machine and first I installed texlive-latex-extra.



After some googling I found out that the moderncv version in TeX Live is out of date. So I cloned the moderncv git repo and put it into /home/{user}/texmf/tex/latex/moderncv.



$ kpsewhich -var-value=TEXMFHOME
/home/{user}/texmf


So I would think that the newer version of moderncv in my home folder has precedence. But apparently this is not the case.



When I try to compile the example template from moderncv



%% start of file `template.tex'.
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


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')

% moderncv themes
moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%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

% character encoding
%usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
%usepackage{CJKutf8} % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
usepackage[scale=0.75]{geometry}
%setlength{hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%setlength{makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
name{John}{Doe}
title{Resumé title} % optional, remove / comment the line if not wanted
address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org} % optional, remove / comment the line if not wanted
homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
social[xing]{john_doe} % optional, remove / comment the line if not wanted
social[twitter]{jdoe} % optional, remove / comment the line if not wanted
social[github]{jdoe} % optional, remove / comment the line if not wanted
social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
social[skype]{jdoe} % optional, remove / comment the line if not wanted
extrainfo{additional information} % optional, remove / comment the line if not wanted
photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
quote{Some quote} % optional, remove / comment the line if not wanted

% bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
% to show numerical labels in the bibliography (default is to show no labels)
%makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
renewcommand*{bibliographyitemlabel}{[arabic{enumiv}]}
% to redefine the bibliography heading string ("Publications")
%renewcommand{refname}{Articles}

% bibliography with mutiple entries
%usepackage{multibib}
%newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
begin{document}
%begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{Language 2}{Skill level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5cite{book1}}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

% Publications from a BibTeX file without multibib
% for numerical labels: renewcommand{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
% to redefine the heading string ("Publications"): renewcommand{refname}{Articles}
nocite{*}
bibliographystyle{plain}
bibliography{publications} % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%section{Publications}
%nocitebook{book1,book2}
%bibliographystylebook{plain}
%bibliographybook{publications} % 'publications' is the name of a BibTeX file
%nocitemisc{misc1,misc2,misc3}
%bibliographystylemisc{plain}
%bibliographymisc{publications} % 'publications' is the name of a BibTeX file

clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}} % use an optional argument to use a string other than "Enclosure", or redefine enclname
makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]

makeletterclosing

%clearpageend{CJK*} % if you are typesetting your resume in Chinese using CJK; the clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making lastpage undefined
end{document}


%% end of file `template.tex'.


I get the following error:



Undefined control sequence.
gitlabsocialsymbol ->{small faGitlab


If it makes any difference I'm using VS Code with the LaTeX Workshop plugin. I think the compiler it is using is latexmk.



If I take out the line social[gitlab]{jdoe} everything works fine.



Would be much appreciated if anyone could help me sort out these issues. Happy to provide any additional info that is needed.







moderncv fontawesome






share|improve this question









New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Kurt

38.6k849162




38.6k849162






New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









c_studentc_student

83




83




New contributor




c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






c_student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

    – Marcel Krüger
    yesterday











  • Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

    – c_student
    yesterday











  • You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

    – Kurt
    yesterday



















  • Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

    – Marcel Krüger
    yesterday











  • Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

    – c_student
    yesterday











  • You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

    – Kurt
    yesterday

















Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

– Marcel Krüger
yesterday





Welcome to TeX StackExchange. If you had to manually update moerncv, most likely the fontawesome package is out of date too. Sadly, manually updating fontawesome is a bit more advanced and might require even more updates of other packages. So I would recommend replacing the whole TeX Live version packaged for Ubuntu with an up-to-date version of TeX Live. See here for details how to install "vanilla" TeX Live on Ubuntu.

– Marcel Krüger
yesterday













Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

– c_student
yesterday





Thanks for your reply! Yes I think you are right in regards to fontawesome. I was using a version from 2015. I just tried to update by downloading a package from ctan and putting the files in my local texmf folder. It does compile now with the Gitlab favicon but the icons are all wrong now and I get warnings that fonts were substitued. I guess I will try your way and install up-to-date TeX Live.

– c_student
yesterday













You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

– Kurt
yesterday





You did not tell us the version numbers of your used class moderncv and fontawesome. Some time ago there was a severe bug in fontawesome. Did you compile with pdflatex or xelatex?

– Kurt
yesterday










1 Answer
1






active

oldest

votes


















0














You did not tell us which versions of modencv and fontawesome you use.



At last ubuntu (and debian) installed an outdated version of TeX Live. Better is to use the original TeX Live you can install following this question.



If you want to try only installation of fontawesome on Ubuntu, use the command:



sudo apt-get install texlive-fonts-extra


Make sure that the FNDB is updated and that all font maps are loaded (I do not use ubuntu, I do not know how that is done with that OS).



After installing TeX Live new you lost your manualy updated moderncv. Therefore it is better to add the needed changes to moderncv into the preamble of your cv.



Please see the following code (I marked all important code changings with <=========; Please see that I changed htpp in the links to the today used and more secure https):



documentclass[11pt,a4paper,sans]{moderncv}

% moderncv themes
moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
moderncvcolor{blue}

usepackage[utf8]{inputenc}

usepackage[scale=0.75]{geometry}

% makes a https hyperlink
% usage: httpslink[optional text]{link}
newcommand*{httpslink}[2][]{% <=======================================
ifthenelse{equal{#1}{}}%
{href{https://#2}{#2}}%
{href{https://#2}{#1}}}

newcommand*{xingsocialsymbol} {{smallfaXing}~} % <===============
newcommand*{gitlabsocialsymbol} {{smallfaGitlab}~} % <=============
newcommand*{skypesocialsymbol} {{smallfaSkype}~} % <==============

makeatletter % <=======================================================
RenewDocumentCommand{social}{O{}O{}m}{%
ifthenelse{equal{#2}{}}%
{%
ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}} {}%
ifthenelse{equal{#1}{xing}} {collectionadd[xing]{socials} {protecthttpslink[#3]{www.xing.com/profile/#3}}}{}%
ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}%
ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}%
ifthenelse{equal{#1}{gitlab}} {collectionadd[gitlab]{socials} {protecthttpslink[#3]{www.gitlab.com/#3}}} {}%
ifthenelse{equal{#1}{skype}} {collectionadd[skype]{socials} {#3}} {}%
}
{collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}
makeatother % <========================================================


% personal data
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[xing]{john_doe} % <============================================
social[twitter]{jdoe}
social[github]{jdoe}
social[gitlab]{jdoe}
social[skype]{jdoe} % <================================================
extrainfo{additional information}
quote{Some quote}

setlength{footskip}{66pt}


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}


and its result:



resulting footer



This is compiled with current class moderncv 2.0.0 (that one from ctan, not from the github!), current fontawesome fontawesome.sty 2016/05/15 v4.6.3.1 font awesome icons and current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6960 64-bit).






share|improve this answer
























  • Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

    – c_student
    14 hours ago











  • @c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

    – Kurt
    13 hours ago













  • Great it works! Thanks a lot @Kurt

    – c_student
    13 hours ago











  • @c_student You are welcome!

    – Kurt
    13 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






c_student is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477882%2fclass-moderncv-error-undefined-control-sequence-gitlabsocialsymbol%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You did not tell us which versions of modencv and fontawesome you use.



At last ubuntu (and debian) installed an outdated version of TeX Live. Better is to use the original TeX Live you can install following this question.



If you want to try only installation of fontawesome on Ubuntu, use the command:



sudo apt-get install texlive-fonts-extra


Make sure that the FNDB is updated and that all font maps are loaded (I do not use ubuntu, I do not know how that is done with that OS).



After installing TeX Live new you lost your manualy updated moderncv. Therefore it is better to add the needed changes to moderncv into the preamble of your cv.



Please see the following code (I marked all important code changings with <=========; Please see that I changed htpp in the links to the today used and more secure https):



documentclass[11pt,a4paper,sans]{moderncv}

% moderncv themes
moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
moderncvcolor{blue}

usepackage[utf8]{inputenc}

usepackage[scale=0.75]{geometry}

% makes a https hyperlink
% usage: httpslink[optional text]{link}
newcommand*{httpslink}[2][]{% <=======================================
ifthenelse{equal{#1}{}}%
{href{https://#2}{#2}}%
{href{https://#2}{#1}}}

newcommand*{xingsocialsymbol} {{smallfaXing}~} % <===============
newcommand*{gitlabsocialsymbol} {{smallfaGitlab}~} % <=============
newcommand*{skypesocialsymbol} {{smallfaSkype}~} % <==============

makeatletter % <=======================================================
RenewDocumentCommand{social}{O{}O{}m}{%
ifthenelse{equal{#2}{}}%
{%
ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}} {}%
ifthenelse{equal{#1}{xing}} {collectionadd[xing]{socials} {protecthttpslink[#3]{www.xing.com/profile/#3}}}{}%
ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}%
ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}%
ifthenelse{equal{#1}{gitlab}} {collectionadd[gitlab]{socials} {protecthttpslink[#3]{www.gitlab.com/#3}}} {}%
ifthenelse{equal{#1}{skype}} {collectionadd[skype]{socials} {#3}} {}%
}
{collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}
makeatother % <========================================================


% personal data
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[xing]{john_doe} % <============================================
social[twitter]{jdoe}
social[github]{jdoe}
social[gitlab]{jdoe}
social[skype]{jdoe} % <================================================
extrainfo{additional information}
quote{Some quote}

setlength{footskip}{66pt}


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}


and its result:



resulting footer



This is compiled with current class moderncv 2.0.0 (that one from ctan, not from the github!), current fontawesome fontawesome.sty 2016/05/15 v4.6.3.1 font awesome icons and current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6960 64-bit).






share|improve this answer
























  • Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

    – c_student
    14 hours ago











  • @c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

    – Kurt
    13 hours ago













  • Great it works! Thanks a lot @Kurt

    – c_student
    13 hours ago











  • @c_student You are welcome!

    – Kurt
    13 hours ago
















0














You did not tell us which versions of modencv and fontawesome you use.



At last ubuntu (and debian) installed an outdated version of TeX Live. Better is to use the original TeX Live you can install following this question.



If you want to try only installation of fontawesome on Ubuntu, use the command:



sudo apt-get install texlive-fonts-extra


Make sure that the FNDB is updated and that all font maps are loaded (I do not use ubuntu, I do not know how that is done with that OS).



After installing TeX Live new you lost your manualy updated moderncv. Therefore it is better to add the needed changes to moderncv into the preamble of your cv.



Please see the following code (I marked all important code changings with <=========; Please see that I changed htpp in the links to the today used and more secure https):



documentclass[11pt,a4paper,sans]{moderncv}

% moderncv themes
moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
moderncvcolor{blue}

usepackage[utf8]{inputenc}

usepackage[scale=0.75]{geometry}

% makes a https hyperlink
% usage: httpslink[optional text]{link}
newcommand*{httpslink}[2][]{% <=======================================
ifthenelse{equal{#1}{}}%
{href{https://#2}{#2}}%
{href{https://#2}{#1}}}

newcommand*{xingsocialsymbol} {{smallfaXing}~} % <===============
newcommand*{gitlabsocialsymbol} {{smallfaGitlab}~} % <=============
newcommand*{skypesocialsymbol} {{smallfaSkype}~} % <==============

makeatletter % <=======================================================
RenewDocumentCommand{social}{O{}O{}m}{%
ifthenelse{equal{#2}{}}%
{%
ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}} {}%
ifthenelse{equal{#1}{xing}} {collectionadd[xing]{socials} {protecthttpslink[#3]{www.xing.com/profile/#3}}}{}%
ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}%
ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}%
ifthenelse{equal{#1}{gitlab}} {collectionadd[gitlab]{socials} {protecthttpslink[#3]{www.gitlab.com/#3}}} {}%
ifthenelse{equal{#1}{skype}} {collectionadd[skype]{socials} {#3}} {}%
}
{collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}
makeatother % <========================================================


% personal data
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[xing]{john_doe} % <============================================
social[twitter]{jdoe}
social[github]{jdoe}
social[gitlab]{jdoe}
social[skype]{jdoe} % <================================================
extrainfo{additional information}
quote{Some quote}

setlength{footskip}{66pt}


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}


and its result:



resulting footer



This is compiled with current class moderncv 2.0.0 (that one from ctan, not from the github!), current fontawesome fontawesome.sty 2016/05/15 v4.6.3.1 font awesome icons and current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6960 64-bit).






share|improve this answer
























  • Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

    – c_student
    14 hours ago











  • @c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

    – Kurt
    13 hours ago













  • Great it works! Thanks a lot @Kurt

    – c_student
    13 hours ago











  • @c_student You are welcome!

    – Kurt
    13 hours ago














0












0








0







You did not tell us which versions of modencv and fontawesome you use.



At last ubuntu (and debian) installed an outdated version of TeX Live. Better is to use the original TeX Live you can install following this question.



If you want to try only installation of fontawesome on Ubuntu, use the command:



sudo apt-get install texlive-fonts-extra


Make sure that the FNDB is updated and that all font maps are loaded (I do not use ubuntu, I do not know how that is done with that OS).



After installing TeX Live new you lost your manualy updated moderncv. Therefore it is better to add the needed changes to moderncv into the preamble of your cv.



Please see the following code (I marked all important code changings with <=========; Please see that I changed htpp in the links to the today used and more secure https):



documentclass[11pt,a4paper,sans]{moderncv}

% moderncv themes
moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
moderncvcolor{blue}

usepackage[utf8]{inputenc}

usepackage[scale=0.75]{geometry}

% makes a https hyperlink
% usage: httpslink[optional text]{link}
newcommand*{httpslink}[2][]{% <=======================================
ifthenelse{equal{#1}{}}%
{href{https://#2}{#2}}%
{href{https://#2}{#1}}}

newcommand*{xingsocialsymbol} {{smallfaXing}~} % <===============
newcommand*{gitlabsocialsymbol} {{smallfaGitlab}~} % <=============
newcommand*{skypesocialsymbol} {{smallfaSkype}~} % <==============

makeatletter % <=======================================================
RenewDocumentCommand{social}{O{}O{}m}{%
ifthenelse{equal{#2}{}}%
{%
ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}} {}%
ifthenelse{equal{#1}{xing}} {collectionadd[xing]{socials} {protecthttpslink[#3]{www.xing.com/profile/#3}}}{}%
ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}%
ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}%
ifthenelse{equal{#1}{gitlab}} {collectionadd[gitlab]{socials} {protecthttpslink[#3]{www.gitlab.com/#3}}} {}%
ifthenelse{equal{#1}{skype}} {collectionadd[skype]{socials} {#3}} {}%
}
{collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}
makeatother % <========================================================


% personal data
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[xing]{john_doe} % <============================================
social[twitter]{jdoe}
social[github]{jdoe}
social[gitlab]{jdoe}
social[skype]{jdoe} % <================================================
extrainfo{additional information}
quote{Some quote}

setlength{footskip}{66pt}


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}


and its result:



resulting footer



This is compiled with current class moderncv 2.0.0 (that one from ctan, not from the github!), current fontawesome fontawesome.sty 2016/05/15 v4.6.3.1 font awesome icons and current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6960 64-bit).






share|improve this answer













You did not tell us which versions of modencv and fontawesome you use.



At last ubuntu (and debian) installed an outdated version of TeX Live. Better is to use the original TeX Live you can install following this question.



If you want to try only installation of fontawesome on Ubuntu, use the command:



sudo apt-get install texlive-fonts-extra


Make sure that the FNDB is updated and that all font maps are loaded (I do not use ubuntu, I do not know how that is done with that OS).



After installing TeX Live new you lost your manualy updated moderncv. Therefore it is better to add the needed changes to moderncv into the preamble of your cv.



Please see the following code (I marked all important code changings with <=========; Please see that I changed htpp in the links to the today used and more secure https):



documentclass[11pt,a4paper,sans]{moderncv}

% moderncv themes
moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
moderncvcolor{blue}

usepackage[utf8]{inputenc}

usepackage[scale=0.75]{geometry}

% makes a https hyperlink
% usage: httpslink[optional text]{link}
newcommand*{httpslink}[2][]{% <=======================================
ifthenelse{equal{#1}{}}%
{href{https://#2}{#2}}%
{href{https://#2}{#1}}}

newcommand*{xingsocialsymbol} {{smallfaXing}~} % <===============
newcommand*{gitlabsocialsymbol} {{smallfaGitlab}~} % <=============
newcommand*{skypesocialsymbol} {{smallfaSkype}~} % <==============

makeatletter % <=======================================================
RenewDocumentCommand{social}{O{}O{}m}{%
ifthenelse{equal{#2}{}}%
{%
ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}} {}%
ifthenelse{equal{#1}{xing}} {collectionadd[xing]{socials} {protecthttpslink[#3]{www.xing.com/profile/#3}}}{}%
ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}%
ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}%
ifthenelse{equal{#1}{gitlab}} {collectionadd[gitlab]{socials} {protecthttpslink[#3]{www.gitlab.com/#3}}} {}%
ifthenelse{equal{#1}{skype}} {collectionadd[skype]{socials} {#3}} {}%
}
{collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}
makeatother % <========================================================


% personal data
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[xing]{john_doe} % <============================================
social[twitter]{jdoe}
social[github]{jdoe}
social[gitlab]{jdoe}
social[skype]{jdoe} % <================================================
extrainfo{additional information}
quote{Some quote}

setlength{footskip}{66pt}


begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution--3}{City--4}{textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}

section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}

section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}

section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}

section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}

section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}

section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}

end{document}


and its result:



resulting footer



This is compiled with current class moderncv 2.0.0 (that one from ctan, not from the github!), current fontawesome fontawesome.sty 2016/05/15 v4.6.3.1 font awesome icons and current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6960 64-bit).







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









KurtKurt

38.6k849162




38.6k849162













  • Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

    – c_student
    14 hours ago











  • @c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

    – Kurt
    13 hours ago













  • Great it works! Thanks a lot @Kurt

    – c_student
    13 hours ago











  • @c_student You are welcome!

    – Kurt
    13 hours ago



















  • Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

    – c_student
    14 hours ago











  • @c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

    – Kurt
    13 hours ago













  • Great it works! Thanks a lot @Kurt

    – c_student
    13 hours ago











  • @c_student You are welcome!

    – Kurt
    13 hours ago

















Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

– c_student
14 hours ago





Thanks! It's working now after I installed the newest version of texlive and fontawesome. Even without your tweaks. Interestingly the Gitlab social symbol is not working when I use classic style for moderncv instead of casual. I guess it is because moderncv uses different icons for the classic style. Can you confirm that the Gitlab icon does work for you in classic style? Also I prefer the casual symbols anyway, so is there a simple way to switch between them or do I have to redefine them like you did?

– c_student
14 hours ago













@c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

– Kurt
13 hours ago







@c_student With style classic class moderncv calls different icons (in the log file you can find moderncviconsmarvosym.sty calling marvosym). The reason is that in earlier times awesomefont could not be used with pdflatex, only lualatex or xelatex. Today you can use it with pdflatex too (if it is correctly installed). To use fontawesome with style classic simply add moderncvicons{awesome} after line moderncvcolor{blue} in my given MWE.

– Kurt
13 hours ago















Great it works! Thanks a lot @Kurt

– c_student
13 hours ago





Great it works! Thanks a lot @Kurt

– c_student
13 hours ago













@c_student You are welcome!

– Kurt
13 hours ago





@c_student You are welcome!

– Kurt
13 hours ago










c_student is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















c_student is a new contributor. Be nice, and check out our Code of Conduct.













c_student is a new contributor. Be nice, and check out our Code of Conduct.












c_student is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477882%2fclass-moderncv-error-undefined-control-sequence-gitlabsocialsymbol%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...