我的 LaTeX 文件遇到了问题,我要求将我的作品从英语改为法语,因此我进行了如下更改:
\usepackage[latin1]{inputenc}
到
\usepackage[UTF-8]{inputenc}
这让我遇到了另一个我无法识别的问题。
这些是我加载的包:
\documentclass[12pt,a4paper]{report}<br>
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}<br>
\usepackage[T1]{fontenc}<br>
\usepackage[UTF-8]{inputenc}
\pagestyle{plain}%{\markboth{\normalsize \it Opérateurs de
%Hankel}{\normalsize \sl Unicité et Stabilité du probléme inverse}}
\oddsidemargin0cm \evensidemargin0cm<br>
\usepackage{graphicx}<br>
\usepackage{graphics}<br>
\usepackage{amsfonts}<br>
\usepackage{indentfirst}<br>
\usepackage[frenchb,english]{babel}<br>
\textheight22cm \textwidth16cm<br>
%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br>
\def\chaptername{chapitre}<br>
\pagestyle{plain}<br>
\newtheorem{theorem}{Theorem}<br>
\newtheorem{acknowledgement}[theorem]{Acknowledgement}<br>
\newtheorem{algorithm}[theorem]{Algorithm}<br>
\newtheorem{axiom}[theorem]{Axiom}<br>
\newtheorem{thm}{Th\'{e}or\`{e}me}[section]<br>
\newtheorem{cor}[thm]{Corollaire}<br>
\newtheorem{exer}[thm]{exercice}<br>
\newtheorem{lem}[thm]{Lemme}<br>
\newtheorem{lemma}[thm]{Lemma}<br>
\newtheorem{pro}[thm]{Proposition}<br>
\newtheorem{prop}[thm]{Propri\'{e}t\'{e}}<br>
\newtheorem{proprs}[thm]{Propri\'{e}t\'{e}s}<br>
\newtheorem{d\'{e}fn}[thm]{D\'{e}finition}<br>
\newtheorem{them}[thm]{Th\'{e}or\`{e}me}<br>
\newtheorem{rem}[thm]{Remarque}<br>
\newtheorem{rems&d\'{e}fn}[thm]{Remarque et d\'{e}finition}<br>
\newtheorem{dem}[thm]{D\'{e}monstration}<br>
\newtheorem{exmp}[thm]{Exemple}<br>
\newtheorem{exmps}[thm]{Exemples}<br>
\newtheorem{nota}[thm]{Notation}<br>
\newtheorem{rems}[thm]{Remarques}<br>
\newtheorem{goal}[thm]{Goal}<br>
\newtheorem{notas}[thm]{Notations}<br>
\newtheorem{hyp}[thm]{Hypothèse}<br>
\newtheorem{defprop}[thm]{D\'{e}finition-Proposition}<br>
\newcommand{\set}[1]{\left\{#1\right\}}<br>
\newcommand{\R}{\mathbb{R}}<br>
\newcommand{\N}{\mathds{N}}<br>
\newcommand{\F}{\mathcal{F}}<br>
\newcommand{\A}{{\cal A}}<br>
\newcommand{\E}{\mathcal{E}}<br>
\newcommand{\h}{{\cal H}}<br>
\newcommand{\s}{{\cal S}}<br>
\newcommand{\C}{\mathcal{C}}<br>
\newcommand{\G}{\mathcal{G}}<br>
\newcommand{\Fn}{\mathcal{F}_n}<br>
\newcommand{\Field}{\mathbf{F}}<br>
\newcommand{\RPlus}{\R^{+}}<br>
\newcommand{\To}{\longrightarrow}<br>
\newcommand{\norm}[1]{\left\Vert#1\right\Vert}<br>
\newcommand{\essnorm}[1]{\norm{#1}_{\text{\rm\normalshape ess}}}<br>
\vsize 29.7cm \hsize 19cm \topmargin 0.23cm \textheight 22cm<br>
\textwidth 15cm \oddsidemargin 0.5cm \evensidemargin 0.5cm<br>
\newcommand{\biindice}[3]%.<br>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
{ #1\renewcommand{\arraystretch}{0.5}\begin{array}[t]{c}<br>
{\scriptstyle #2}\\<br>
{\scriptstyle #3}\end{array}<br>
\renewcommand{\arraystretch}{1}}<br>
\def\contentsname{Table des matiéres}<br>
\def \endproof {\quad \hfill \rule{2mm}{2mm}\par\medskip}<br>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
%Included for Gather Purpose only:<br>
%input "Xbib.bib"<br>
%\bibliographystyle{amsplain}<br>
%\bibliography{xbib}<br>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
这是控制台返回的错误信息:
Command Line: bibtex.exe "introduction lotka"
Startup Folder: C:\Users\MANEL\Documents
This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: introduction lotka.aux
I found no \citation commands---while reading file introduction lotka.aux
I found no \bibdata command---while reading file introduction lotka.aux
I found no \bibstyle command---while reading file introduction lotka.aux
(There were 3 error messages)
Command Line: texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=-1 "C:\Users\MANEL\Documents\introduction lotka.tex"
Startup Folder: C:\Users\MANEL\Documents
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
("C:/Users/MANEL/Documents/introduction lotka.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\report.cls"
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size12.clo"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\classes\amsthm.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amscd.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
! LaTeX Error: File `UTF-8.def' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)
Enter file name:
那么有没有什么办法可以解决这个问题呢?
答案1
转到WinEdt.org
,更准确地说是宏页面,下载宏并安装。菜单中ANSI2UTF8
会有一个子菜单。Convert to UTF8…
File