오류 텍스 용량을 초과했습니다. 로그 파일이 추가되었습니다.

오류 텍스 용량을 초과했습니다. 로그 파일이 추가되었습니다.

내 코드/워크플로에 문제가 있는 위치를 파악하는 데 어려움을 겪고 있습니다. 제가 예전에 이런 질문을 올렸었는데여기, 하지만 같은 문제가 곧바로 발생했습니다. tex에서 실행하면 입력 제한을 초과했다는 오류가 발생합니다. 정확한 로그는 아래에 붙여넣었습니다.

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6210 64-bit) (preloaded format=pdflatex 2017.1.26)  26 JAN 2017 20:45
entering extended mode
**./master.tex
(master.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size11.clo"
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\apacite\apacite.sty"
Package: apacite 2013/07/21 v6.03 APA citation
\c@BibCnt=\count87
\bibleftmargin=\skip43
\bibindent=\skip44
\bibparsep=\skip45
\bibitemsep=\skip46
\biblabelsep=\skip47
)
No file master.aux.
\openout1 = `master.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
\c@maskedRefs=\count88
("C:\Program Files\MiKTeX 2.9\tex\latex\apacite\english.apc"
File: english.apc 2013/07/21 v6.03 apacite language file
LaTeX Info: Redefining \BPBI on input line 129.
LaTeX Info: Redefining \BHBI on input line 130.
)
! TeX capacity exceeded, sorry [input stack size=5000].
\AtBeginDocument #1->#1

l.5 \begin{document}

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.


Here is how much of TeX's memory you used:
 641 strings out of 493333
 7639 string characters out of 3139188
 74825 words of memory out of 3000000
 4254 multiletter control sequences out of 15000+200000
 3940 words of font info for 15 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 5000i,0n,4998p,136b,36s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

예전에 이 질문을 올렸는데 해결한 줄 알았는데 또 같은 문제가 발생하네요.

실행하려는 라텍스 코드는 다음과 같습니다.

\documentclass[11pt,twoside]{article}
\usepackage{apacite}
\nocite{*}

\begin{document}


% title page. Edit as needed for future publications. 
\title{Research Proposal}
\author{Teererai Marange \\
Department of Computer Science \\
University of Auckland\\
\texttt{[email protected]}}
\date{January 26, 2017}
\maketitle
% end title page. 


% abstract goes here
\newpage
\begin{abstract}
Abstract goes here 
\end{abstract}
\newpage


% table of contents 
\tableofcontents
\newpage


%begin introduction 
\section {Introduction}
Lorem Ipsum Doremifaso 

%\cite{Nedakeyword} use to cite 



%references our biliography. This must go whereever we use our bibtex references

\bibliography{references}
\bibliographystyle{apacite}


\end{document}

참고문헌을 작성하는 데 사용하는 bib 파일은 다음과 같습니다.

@misc{wikipedia1,
  title = "Scripting language",
  author = "Wikipedia",
  url = {http://en.wikipedia.org/wiki/Scripting_language},
  year = 2014,
}

답변1

그냥 오류가 발생합니다.

\documentclass[11pt,twoside]{article}
\usepackage{apacite}

\nocite{*}
\begin{document}



\end{document}

아무 인용도 하지 않고 이동하면 이를 피할 수 있습니다.

\documentclass[11pt,twoside]{article}
\usepackage{apacite}


\begin{document}
\nocite{*}




\end{document}

답변2

표준 설정을 사용하면 \nocite{*}before에 \begin{document}오류가 발생합니다. 스타일 은 서문에서도 사용할 수 있도록 apacite수정되지만 (이는 무리하지 않습니다) 잘못된 테스트를 사용합니다.\nocite

\nocite실제로 테스트 용 코드는 \document와 동등해졌는지 여부를 테스트 \@onlypreamble합니다. 이는 문서가 시작되었음을 의미하며 이 경우에는 정상적인 작업을 수행합니다. 그렇지 않으면 문제가 발생합니다 \AtBeginDocument{\nocite{...}}(인수는 의 인수와 동일합니다 \nocite. 그러나 에 대한 토큰이 \AtBeginDocument실행될 때 \document아직 와 동일해지지 않았습니다 \@preamble. 이는 을 \nocite{*}수행한다는 의미입니다 \AtBeginDocument{\nocite{*}}. 이는... 무한 루프입니다. 그 순간에는 \AtBeginDocument단순히 다음을 정의하기 때문입니다. 그 주장을 전달합니다.

코드에 대한 수정 사항은 와 동등하지 않은 \AtBeginDocument경우에만 실행하는 것입니다 .\AtBeginDocument\@firstofone

\begin{filecontents*}{\jobname.bib}
@misc{wikipedia1,
  title = "Scripting language",
  author = "Wikipedia",
  url = {http://en.wikipedia.org/wiki/Scripting_language},
  year = 2014,
}
\end{filecontents*}

\documentclass[11pt,twoside]{article}
\usepackage{apacite}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\nocite}
  {\AtBeginDocument{\nocite{#1}}}
  {\ifx\AtBeginDocument\@firstofone\else\AtBeginDocument{\nocite{#1}}\fi}
  {}{}
\makeatother

\nocite{*}

\begin{document}

% title page. Edit as needed for future publications. 
\title{Research Proposal}
\author{Teererai Marange \\
Department of Computer Science \\
University of Auckland\\
\texttt{[email protected]}}
\date{January 26, 2017}
\maketitle
% end title page. 

% abstract goes here
\newpage
\begin{abstract}
Abstract goes here 
\end{abstract}
\newpage


% table of contents 
\tableofcontents
\newpage


%begin introduction 
\section {Introduction}
Lorem Ipsum Doremifaso 

%\cite{Nedakeyword} use to cite 



%references our biliography. This must go whereever we use our bibtex references

\bibliography{\jobname}
\bibliographystyle{apacite}


\end{document}

물론 \nocite{*}이후에 이동하는 것이 더 간단합니다 \begin{document}. 그러나 이 문제는 의 코드에서 수정될 수 있습니다 apacite.

multibbl이 패치가 로드 되면 작동하지 않습니다 . 재정의는 \nocite시작 문서에서 이루어지기 때문에 훨씬 더 복잡할 것입니다.

의 관리자에게 버그 보고서를 제출했습니다 apacite.sty.

관련 정보