1

This is a moderncv in Persian. I used to compile it smoothly but now I cannot. The error it says is as follows:

untitled-3.tex 15 Undefined control sequence. l.15 \cvtheme [blue]{bidiclassic}

\documentclass[11pt,a4paper]{bidimoderncv}
\usepackage{hyperref}
\usepackage{color}
\usepackage[numbers]{natbib}%
%\setlength{\bibhang}{2em}
\cvtheme[blue]{bidiclassic}%casual} 
\usepackage{pifont}
%\usepackage[scale=0.8]{geometry}
\usepackage{xepersian}
\settextfont[Scale=1]{B Zar}%{XB Niloofar}%{B Nazanin}%
\setdigitfont{B Zar}%{XB Niloofar}%{B Nazanin}%
\setlatintextfont[Scale=1]{Linux Libertine}%{Times New Roman}%
%\defpersianfont\nastaliq[Scale=1.2]{IranNastaliq}
\defpersianfont\mytitlefont[Scale=.8]{XB Kayhan Sayeh}
\AtBeginDocument{\recomputelengths} 
\firstname{\mytitlefont رضا}
\familyname{\mytitlefont فرزانه\newline\hspace*{10mm}}%\newline\hspace*{10mm}
\resumename{رزومه}
\title {\upshape \fontsize{0.5cm}{1em}\selectfont{} \hspace*{2mm}شرح حال }
\address
{\upshape  گروه فلسفه\\ دانشکده ادبیات\\ دانشگاه کرمان\\ تهران، ایران}
\mobile{091939870283} 
%\fax{شماره فکس}   
\extrainfo{\emailsymbol \emaillink{ [email protected]}}
%\quote{نقل قول}  


\begin{document}
1
\end{document}
12
  • I'm not quite sure, if Scale is correct. on another note: are you sure, you want to leave your personal information out in the open on the internet like that?
    – naphaneal
    Mar 2, 2018 at 11:10
  • 1
    @naphaneal The personal information is not real!
    – Sasan
    Mar 2, 2018 at 11:12
  • 1
    please don't just say it doesn't compile, show the exact error from the log in a code section so line ends preserved. I (and others) don't have the fonts so can't run the example, but could still possibly debug, given an error message. Mar 2, 2018 at 12:08
  • @DavidCarlisle The question is now edited.
    – Sasan
    Mar 2, 2018 at 12:59
  • @naphaneal The question is now edited.
    – Sasan
    Mar 2, 2018 at 13:00

1 Answer 1

2

You need to check the availability of the selected fonts of the source file in the font directory of your operating system. In this case, Linux Libertine and XB Kayhan Sayeh must do exist in your system. In my case, I can simply substitute them with some other options like Times New Roman and XB Niloofar. Saying

\documentclass[11pt,a4paper]{bidimoderncv}

\usepackage{hyperref}
\usepackage{color}
\usepackage[numbers]{natbib}
\usepackage{xepersian}
\usepackage{pifont}

\cvtheme[blue]{bidiclassic}

\settextfont[Scale=1]{B Zar}
\setdigitfont{B Zar}
\setlatintextfont[Scale=1]{Times New Roman}
\defpersianfont\mytitlefont[Scale=.8]{XB Niloofar}
\AtBeginDocument{\recomputelengths} 

\firstname{\mytitlefont رضا}
\familyname{\mytitlefont فرزانه\newline\hspace*{10mm}}
\resumename{رزومه}
\title {\upshape \fontsize{0.5cm}{1em}\selectfont{} \hspace*{2mm}شرح حال }
\address
{\upshape  گروه فلسفه\\ دانشکده ادبیات\\ دانشگاه کرمان\\ تهران، ایران}
\mobile{091939870283} 
\extrainfo{\emailsymbol \emaillink{ [email protected]}}

\begin{document}
این رزومه متعلق به رضا فرزانه است.
\end{document}

applying XeLaTeX to the file yields a perfect compilation:

enter image description here

1
  • This doesn’t explain the error message in the OP. If the problem was just missing fonts, there wouldn’t be that error. Mar 3, 2018 at 15:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .