I'm trying to add a link in the personal info part of my CV.
I tried using
\url , \ref and \href
none of them is working with xelatex (you can see my code and the output down-below. I get an error " Undefined control sequence".
To be able to test this piece of code, you would need as well AltaCV
Can anyone help me ?
\documentclass[10pt,a4paper,normalphoto]{altacv}
\geometry{left=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm}
\ifxetexorluatex
\else
% If using pdflatex:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[default]{lato}
\usepackage[misc]{ifsym}
\usepackage{fontawesome}
\usepackage{fontawesome5}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage{textpos}
\usepackage{url}
\usepackage{logreq}
\usepackage{xetex}
\fi
\begin{document}
\name{Someone}
\personalinfo{%
\faLinkedin{}{ \url{http://facebook.com/}} \\
\faLinkedin{}{ \href{http://facebook.com/}{blabla}} \\
\faLinkedin{}{ \ref{http://facebook.com/}{blabla}} \\
}
\begin{fullwidth}
\makecvheader
\end{document}
altacv
is not a public class, so your example can not be tested (and it contains lots of\[
which would give errors anyway).\ifxetexorluatex..\else..\fi
-thingie with a lot of\usepackage
in the else-branch. To me it seems maybe packages likehyperref
,textpos
,url
,logreq
and probably some others are needed also when running XeLaTeX but are not loaded as due to the\ifxetexorluatex..\else..\fi
-thingie they are only loaded in case the TeX-engine running is based neither on XeTeX nor on LuaTeX.