Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the europecv class and I'd like to use my biblatex bibliographies inside. It turns out that europecv needs the ucs package which is incompatible.

Any idea how to deal with this problem?

share|improve this question
    
neither the biblatex nor the europecv manual do offer a solution –  louis cypher Oct 11 '12 at 10:46
add comment

1 Answer 1

up vote 9 down vote accepted

The scrlfile package (part of KOMA-Script) features, among other things, a \PreventPackageFromLoading macro that does exactly what its name suggests. You may use it to prevent the ucs and inputenc packages being loaded by europecv. After the class is loaded, we redefine its internal command \ecv@utf so that utf8 really means utf8, lift the ban on package loading and issue \usepackage[uft8]{inputenc}.

\RequirePackage{scrlfile}

\PreventPackageFromLoading{ucs,inputenc}

\documentclass{europecv}

\makeatletter
\renewcommand\ecv@utf[1]{{\inputencoding{utf8}#1}}
\makeatother

\ResetPreventPackageFromLoading

\usepackage[utf8]{inputenc}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}
share|improve this answer
    
Works like a charm! Thanks a lot. –  louis cypher Oct 12 '12 at 11:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.