现代 cv - WinEdt 和 MikTex - 在 Windows 7 上安装后 - 不起作用

现代 cv - WinEdt 和 MikTex - 在 Windows 7 上安装后 - 不起作用

我昨天在电脑上安装了MikTex和WinEdt 10.3版本。我打开了我想要生成的文件,但是它总是报告错误:

! LaTeX Error: Option clash for package inputenc.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.21 \usepackage
                {comment}
? h
The package inputenc has already been loaded with options:
  [utf8]
There has now been an attempt to load it with options
  [ansinew]
Adding the global options:
  utf8,ansinew
to your \documentclass declaration may fix this.
Try typing  <return>  to proceed.
? 

tex 文件在我安装了 Microsoft 10 的旧电脑上可以运行(两天前),但在新电脑上却不行。可能是因为 Microsoft 7 吗?

这是我的 tex 文件的开头:


%\documentclass[11pt,a4paper]{moderncv}

\documentclass[sans]{moderncv}

\moderncvstyle[left]{casual}

\moderncvcolor{grey}

\usepackage[utf8]{inputenc}

% character encoding

\usepackage[english,ngerman]{babel}

\usepackage[ansinew]{inputenc}

\usepackage{comment}

\usepackage{textcomp}               
 
\usepackage[version=3]{mhchem}

% adjust the page margins

\usepackage[scale=0.84]{geometry}

\recomputelengths

\usepackage{graphicx}

%\usepackage{paralist}

\usepackage{enumitem}

%\usepackage{xcolor}

\usepackage{color}

\usepackage{wrapfig}

\setlength{\hintscolumnwidth}{3.0cm}    
                
\AtBeginDocument{\recomputelengths}

.........................

如果有人能帮助我解决这个问题我会非常高兴。

先感谢您

卡塔琳娜

相关内容