
나는 작업하려고 하는 다소 간단한 레이아웃을 가지고 있습니다 latexmk
. 내가 도대체 뭘 잘못하고있는 겁니까?
편집: 최신 진행 결과로 예제가 변경되었습니다. 하위 디렉토리
all.bib
에 심볼릭 링크되어야 했으며 에서 필요했습니다 .chapters
-f
latexmk
비록 이것이 원하는 결과를 거의 생성하지만, 일이 잘못되고 있다고 말할 수 있습니다. 왜냐하면
-f
가 필요하고 참고문헌의 번호 매기기가 (장별로 특정하기보다는) 전체적으로 일관되기 때문입니다.나는
\bibliographystyle
그 장을 생략하고 ...로 바꾸려고 노력했지만\bibliography{../all}
소용이 없었습니다.
다음을 사용하여 복제:
$ latexmk -gg -pdf -quiet -f
Latexmk: Run number 1 of rule 'pdflatex'
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Latexmk: Non-existent bbl file 'chapters/ch0.bbl'
No file chapters/ch0.bbl.
Latexmk: Non-existent bbl file 'all.bbl'
No file all.bbl.
Latexmk: Run number 1 of rule 'bibtex chapters/ch0'
For rule 'bibtex chapters/ch0', running '&run_bibtex( )' ...
-- IEEEtranN.bst version 1.14 (2015/08/26) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Natbib version - not for normal IEEE work.
Done.
Latexmk: Run number 1 of rule 'bibtex all'
For rule 'bibtex all', running '&run_bibtex( )' ...
Illegal, another \bibstyle command---line 3 of file chapters/ch0.aux
: \bibstyle
: {IEEEtranN}
I'm skipping whatever remains of this command
Illegal, another \bibdata command---line 7 of file all.aux
: \bibdata
: {all}
I'm skipping whatever remains of this command
-- IEEEtranN.bst version 1.14 (2015/08/26) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Natbib version - not for normal IEEE work.
Done.
(There were 2 error messages)
Latexmk: Run number 2 of rule 'pdflatex'
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Latexmk: Run number 2 of rule 'bibtex chapters/ch0'
For rule 'bibtex chapters/ch0', running '&run_bibtex( )' ...
-- IEEEtranN.bst version 1.14 (2015/08/26) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Natbib version - not for normal IEEE work.
Done.
Latexmk: Run number 2 of rule 'bibtex all'
For rule 'bibtex all', running '&run_bibtex( )' ...
Illegal, another \bibstyle command---line 3 of file chapters/ch0.aux
: \bibstyle
: {IEEEtranN}
I'm skipping whatever remains of this command
Illegal, another \bibdata command---line 7 of file all.aux
: \bibdata
: {all}
I'm skipping whatever remains of this command
-- IEEEtranN.bst version 1.14 (2015/08/26) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Natbib version - not for normal IEEE work.
Done.
(There were 2 error messages)
Latexmk: Run number 3 of rule 'pdflatex'
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Collected error summary (may duplicate other messages):
bibtex all: Bibtex errors: See file 'all.blg'
올텍스
\documentclass{book}
\usepackage[sectionbib,square,sort,comma,numbers]{natbib}
\usepackage{chapterbib}
%\begin{filecontents*}{all.bib}\end{filecontents*}
\begin{document}
\bibliographystyle{IEEEtranN}
\include{chapters/ch0}
Hello random\cite{hawMaximizationExtractableRandomness2015} world
\bibliography{all}
\end{document}
장/ch0.tex
\chapter{ch0}
so much div\cite{govindarajuGeneticsFraminghamHeart2008}
\bibliographystyle{IEEEtranN}
\bibliography{all}
모두.턱받이
@article{hawMaximizationExtractableRandomness2015,
title = {Maximization of {{Extractable Randomness}} in a {{Quantum Random}}-{{Number Generator}}},
author = {Haw, J. Y. and Assad, S. M. and Lance, A. M. and Ng, N. H. Y. and Sharma, V. and Lam, P. K. and Symul, T.},
year = {2015},
month = may,
volume = {3},
pages = {054004},
issn = {2331-7019},
doi = {10.1103/PhysRevApplied.3.054004},
journal = {Physical Review Applied},
language = {en},
number = {5}
}
@article{govindarajuGeneticsFraminghamHeart2008,
title = {Genetics of the {{Framingham Heart Study Population}}},
author = {Govindaraju, Diddahally R. and Cupples, L. Adrienne and Kannel, William B. and O'Donnell, Christopher J. and Atwood, Larry D. and D'Agostino, Ralph B. and Fox, Caroline S. and Larson, Marty and Levy, Daniel and Morabito, Joanne and Vasan, Ramachandran S. and Splansky, Greta Lee and Wolf, Philip A. and Benjamin, Emelia J.},
year = {2008},
volume = {62},
pages = {33--65},
issn = {0065-2660},
doi = {10.1016/S0065-2660(08)00602-0},
abstract = {This article provides an introduction to the Framingham Heart Study (FHS) and the genetic research related to cardiovascular diseases conducted in this unique population. It briefly describes the origins of the study, the risk factors that contribute to heart disease and the approaches taken to discover the genetic basis of some of these risk factors. The genetic architecture of several biological risk factors has been explained using family studies, segregation analysis, heritability, phenotypic and genetic correlations. Many quantitative trait loci underlying cardiovascular diseases have been discovered using different molecular markers. Additionally, results from genome-wide association studies using 100,000 markers, and the prospects of using 550,000 markers for association studies are presented. Finally, the use of this unique sample in genotype and environment interaction is described.},
journal = {Advances in genetics},
language = {eng},
pmid = {19010253}
}
답변1
\bibliographystyle
Chapterbib에는 포함된 각 장/참고문헌에 대한 명령이 있어야 합니다 . 별도의 전체 문서 턱받이를 생성하는 경우 문서 시작 부분에도 하나가 있어야 합니다. 전체 문서 턱받이를 생성할 때 bibtex는 여러 \bibdata
[from \bibliography
] 및 \bibstyle
[aka \bibliographystyle
] 명령에 대해 불평하지만 작업을 올바르게 완료합니다.
latexmk는 Chapterbib에 대해 알고 있으며 포함된 각 파일에 대해 개별적으로 그리고 전체 문서에 대해 bibtex를 실행하는 것으로 나타났습니다. 문제는 bibtex의 오류 메시지를 보고 치명적이라고 생각하고 중단한다는 것입니다. latexmk는 이미 Chapterbib을 인식하므로 문제를 비교적 쉽게 해결할 수 있습니다. 그동안 "-f" 옵션을 사용하여 latexmk를 실행하세요. latexmk 문서에 따르면
-에프 힘라텍스오류가 있어도 문서 처리를 계속합니다.
잠시 멈추지 않기 때문에 조금 무겁습니다.어느오류. 원래(또는 편집된) 질문에 "-f"가 사용되었음을 암시하는 경우 오류 메시지에도 불구하고 최종 결과는 정확해야 합니다! 실제로 (질문 편집에 따르면) latexmk 실행 실패 후 계속하는 경우 "-gg" 옵션이 유용합니다.
축소된 형태에서는 명확하지 않은 문서에 여전히 문제가 있습니다. 모든 참고문헌은 순서대로 번호가 매겨진 형식을 사용하므로, 표시된 것처럼 가장 간단한 경우를 제외하고 최종 전체 참고문헌은 장 참고문헌과 다른 번호가 필요합니다. Chapterbib 문서(다시 항목 7 "전체 참고문헌")에서는 다음과 같이 말합니다.
이는 다양한 이름의 참고문헌 스타일에만 적합한 독립적인 전체 참고문헌을 생성합니다. 번호가 매겨진 스타일이나 다른 유형의 자동 열거 스타일은 각 참고문헌에 서로 다른 태그를 부여하여 혼란을 야기합니다.
잠재적인 해결책은 다음과 같습니다.
전체 참고문헌의 루트 문서에 명명된 참고문헌 스타일을 사용합니다. (natbib에게 가끔씩만 "숫자"를 사용하도록 지시하는 방법이 있는지는 아직 모르겠습니다.)
열거 스타일과 함께 Chapterbib 옵션을 사용하면
[duplicate]
최종 참고문헌은 장 참고문헌의 모음이 됩니다(그러나 포함된 장 외부의 인용은 허용되지 않습니다).
답변2
@john-collins와 이메일을 주고받았습니다. 이제 이 문제를 해결한 새 버전이 출시되었습니다.
버전 4.70a를 참조하세요.http://www.personal.psu.edu/~jcc8/latexmk/versions.html