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 keep getting this error whenever I start an article with the basic set of packages:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{kpfonts}
\usepackage{fourier}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
text
\end{document}

I understand it's the command \widering being defined in two different packages at the same time, but I don't know how to get around the problem. How could I fix the issue?

share|improve this question
2  
Welcome to TeX.SX! It doesn't make sense to load both kpfonts and fourier: the second package will override the first anyway, as they both set the fonts for the document. –  egreg Apr 27 at 10:38
1  
possible duplicate of Two conflicting packages in one document — doable? –  Rüdiger Voigt Apr 27 at 11:23

1 Answer 1

up vote 8 down vote accepted

Loading kpfonts together with fourier does not make sense: they are both font packages that define a font family (with accompanying math fonts) for the document. So, even if there were no error message, loading kpfonts before fourier would result in the former package being overridden by the latter.

So the remedy is simple:

  • if you want the Fourier fonts (based on Utopia), remove \usepackage{kpfonts};

  • if you want the KPfonts, remove \usepackage{fourier};

  • if you want the standard Computer Modern fonts, remove both.

share|improve this answer

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.