我写了一篇论文,参考书目采用 IEEEtran 风格。所有内容都已正确编译和生成。现在我被要求将参考文献转换为 APA 风格。我已添加 pacakge 和 bibstyle apacite.sty。现在我无法编译它。弹出未定义的引用消息。我的 latex 文件如下所示:
documentclass[conference]{IEEEtran}
\ifCLASSINFOpdf
\usepackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.jpeg,.png}
\else
\usepackage[dvips]{graphicx}
\DeclareGraphicsExtensions{.eps}
\fi
\usepackage{fixltx2e}
\ifCLASSOPTIONcompsoc
\usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
\else
\usepackage[caption=false,font=footnotesize]{subfig}
\fi
\usepackage{txfonts}
\usepackage{multirow}
%\usepackage{apacite}
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
\begin{document}
blah blah blah
\bibliographystyle{IEEEtran/bibtex/IEEEtran}
%\bibliographystyle{apacite}
\bibliography{bibfile}
\end{document}
Latex 消息包括:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./ije.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, loaded.
(./IEEEtran.cls
Document Class: IEEEtran 2014/09/17 V1.8a by Michael Shell
-- See the "IEEEtran_HOWTO" manual for usage information.
-- http://www.michaelshell.org/tex/ieeetran/
(/usr/share/texmf-texlive/tex/latex/psnfss/ot1ptm.fd)
-- Using 8.5in x 11in (letter) paper.
-- Using DVI output.
-- This is a 10 point document.
) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/base/fixltx2e.sty)
(/usr/share/texmf-texlive/tex/latex/subfig/subfig.sty (./caption3.sty))
(/usr/share/texmf-texlive/tex/latex/txfonts/txfonts.sty)
(/usr/share/texmf-texlive/tex/latex/multirow/multirow.sty) (./apacite.sty)
(./ije.aux) (/usr/share/texmf-texlive/tex/latex/txfonts/omltxmi.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/omstxsy.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/omxtxex.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/utxexa.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/ot1txr.fd)
-- Lines per column: 56 (exact).
(/usr/share/texmf-texlive/tex/latex/txfonts/utxmia.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/utxsya.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/utxsyb.fd)
(/usr/share/texmf-texlive/tex/latex/txfonts/utxsyc.fd)
LaTeX Warning: Reference `leakage' on page 1 undefined on input line 69.
<gatelength.eps> <dynamic.eps> <leakage.eps>
LaTeX Warning: Citation `chandrakasan1992low' undefined on input line 93.
[1]
LaTeX Warning: Citation `lee2004gate' undefined on input line 102.
LaTeX Warning: Reference `igate' on page 2 undefined on input line 102.
<igate.eps>
! Illegal parameter number in definition of \reserved@a.
<to be read again>
}
l.108 ...an nmos transistor \cite{choi2001impact}}
?
我已将所有 apacite 文件放在公共文件夹中。请帮忙。
答案1
可能有点晚了,但对于未来寻找解决方案的人来说,这为我解决了这个问题:
必须将包命名为 hyperref:修复 JAIR 样式
必须设置选项“草稿”:\pdfendlink 最终与 \pdfstartlink 处于不同的嵌套级别
序言中的这段代码起了作用:
\usepackage[draft]{hyperref}
\hypersetup{%
bookmarks=false, % show bookmarks bar?
pdftitle={TeX and friends hackers manual}, % title
pdfauthor={Yiannis Lazarides}, % author
pdfsubject={TeX and LaTeX}, % subject of the document
pdfkeywords={TeX, LaTeX, graphics, images}, % list of keywords
colorlinks=true, % false: boxed links; true: colored links
linkcolor=blue, % color of internal links
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=purple, % color of external links
linktoc=page % only page is linked
}