当我运行下面的代码时,我收到一个错误
Package ifluatex Error: Name clash, \ifluatex is already defined.
奇怪的是,它说错误发生在第 174 行,但代码中并没有那么多行。我在使用该imakeidx
包时遇到了同样的错误。
我根本没有使用 luatex,而且不知道它是从哪里来的。
MWE 从这里开始。
\documentclass[11pt, statementpaper]{memoir}
% \let\providelength\relax
\title{Interesting words}
\author{Peter Flom}
\usepackage[columns=3]{idxlayout}
%\usepackage{imakeidx}[2012/05/09]
%\makeindex[columns=3]
%% A convenience command, for typesetting the
%% word and pronunciation
%\newcommand{\entry}[2]{\medskip\noindent{\Large\textbf{#1} (#2)\par}}
\newcommand{\entry}[2]{\medskip\noindent{\Large\textbf{#1} \normalsize{#2} \par}}
%\newcommand{\sclabel}[1]{\normalfont\scshape #1}
\newcommand{\sclabel}[1]{\leavevmode{\normalfont\scshape #1}}
%% Less spacing around lists
\firmlists
\newcommand{\quotesep}{\rule{3in}{1pt}{\hfill}}
\newcommand{\quotefull}{\epigraphwidth 3.5in
\epigraphrule 0pt}
%From https://tex.stackexchange.com/questions/182869/typesetting-a-dialogue-paragraphs-or-something-else
\newenvironment{dialogue}{\list{}{\itemsep=\parskip \topsep=\parskip \parsep=\parskip}}{\endlist}
\makeindex
\begin{document}
\printindex
\bibliography{c:/writing/references}
\bibliographystyle{plain}
\end{document}
编辑我正在使用 MikTeX 2.9。
编辑这里是日志文件
4"
Startup Folder: C:\Writing
This is BibTeX, Version 0.99d (MiKTeX 2.9.6100 64-bit)
The top-level auxiliary file: MWEAug14.aux
I found no \citation commands---while reading file MWEAug14.aux
I found no \bibdata command---while reading file MWEAug14.aux
I found no \bibstyle command---while reading file MWEAug14.aux
(There were 3 error messages)
Command Line: makeindex.exe "MWEAug14.idx"
Startup Folder: C:\Writing
This is makeindex, version 2.15 [MiKTeX 2.9.6100 64-bit] (kpathsea + Thai support).
Scanning input file MWEAug14.idx...done (0 entries accepted, 0 rejected).
Nothing written in MWEAug14.ind.
Transcript written in MWEAug14.ilg.
Command Line: pdflatex.exe --interaction=errorstopmode --synctex=-1 "MWEAug14.tex"
Startup Folder: C:\Writing
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(MWEAug14.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\memoir\memoir.cls"
Document Class: memoir 2020/03/25 v3.7k configurable book, report, article docu
ment class
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\iftex\iftex.sty"
) ("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\memoir\mem11.clo
") ("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\tools\array.sty
")
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\tools\dcolumn.sty"
)
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\tools\delarray.sty
")
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\tools\tabularx.sty
") (C:\Users\Peter\AppData\Roaming\MiKTeX\2.9\tex\latex\textcase\textcase.sty))
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\idxlayout\idxlayou
t.sty"
(C:\Users\Peter\AppData\Roaming\MiKTeX\2.9\tex\latex\etoolbox\etoolbox.sty)
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\oberdiek\kvoptions
.sty"
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\latex\graphics\keyval.st
y")
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds
.sty")
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\kvsetke
ys.sty"
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\infware
rr.sty")
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\etexcmd
s.sty"
("C:\Users\Peter\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\ifluate
x.sty"
! Package ifluatex Error: Name clash, \ifluatex is already defined.
See the ifluatex package documentation for explanation.
Type H <return> for immediate help.
...
l.174 }
%
? x
No pages of output.
Transcript written on MWEAug14.log.
日志文件结束
我得出去一下,明天我会再看看这个