Fonts & Character Setsinputenc | Option Clash

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
shep
Posts: 6
Joined: Sun Oct 14, 2012 6:39 pm

inputenc | Option Clash

Post by shep »

hello,

I can't get over this error using MiKTeX.

Code: Select all

! LaTeX Error: Option clash for package inputenc.
This is my preamble.

Code: Select all

\documentclass[article, 12pt]{article} 

\RequirePackage{amsthm,amsmath}
\RequirePackage[numbers]{natbib}
\RequirePackage{inputenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
I would be glad if somebody could help.


Cheers
shep
Last edited by localghost on Sun Oct 14, 2012 10:03 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

inputenc | Option Clash

Post by localghost »

No surprise since you load inputenc twice with different options.

And by the way, you should exclusively use the \usepackage command to load macro packages. The command \RequirePackage is not for use in documents but in classes or other packages.


Best regards and welcome to the board
Thorsten
shep
Posts: 6
Joined: Sun Oct 14, 2012 6:39 pm

inputenc | Option Clash

Post by shep »

Thanks,Thorsten. I see. I've opted for the inputenx now.
But now my problem is related to OT1 encoding. I think I need T2A. How can I activate it?

The typical error is

Code: Select all

! LaTeX Error: Command \dh unavailable in encoding OT1.
And my typical peambule, that i test at this moment is

Code: Select all

\documentclass[article, 12pt]{article} %dvips,elsarticle
%\usepackage[T2A]{fontenc}
\usepackage[cp858]{inputenx}
\usepackage[english]{babel}%
Cheers,
shep
Post Reply