% content
%----------------------------------------------------------------------------------
\begin{document}
-%\selectlanguage{spanish}
-\selectlanguage{english}
+% I use this for automatic creation of the cv
+\ifdef{\defaultopts}%
+% default options passed outside of the cv, generally through the Makefile
+{\defaultops}{%
+ % options by hand
+ % \selectlanguage{spanish}
+ \selectshortlanguage{es}
+}
% Print the header
\makecvtitle
\printbibliography[type=article, heading=subbibliography,title={\journals}, resetnumbers=true]
\section{\appointments}
+% fixme: check why this entry generates weird error
\printcvmiscs[heading=subbibliography, title={\memberships}, keyword=membership]
\end{document}