![如何使用 {abntex2} 和一个 .bib 在同一文档中创建多个参考书目?](https://linux22.com/image/470807/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20%7Babntex2%7D%20%E5%92%8C%E4%B8%80%E4%B8%AA%20.bib%20%E5%9C%A8%E5%90%8C%E4%B8%80%E6%96%87%E6%A1%A3%E4%B8%AD%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%EF%BC%9F.png)
我已经试了这,我不知道原因,但这里都不起作用。
配置文件
\LoadClass[12pt,openright,oneside,a4paper,chapter=TITLE]{abntex2}
\RequirePackage{times} % Usa Times Roman para texto
\RequirePackage[T1]{fontenc} % Seleção de códigos de fonte.
\RequirePackage[utf8]{inputenc} % Codificação e conversão automática
\RequirePackage{subcaption} % Pacote para definição dos subcaptions (ambientes de subfigures)
\RequirePackage{makeidx} % Cria o índice
\RequirePackage{hyperref} % Controla a formação do índice
\RequirePackage{indentfirst} % Indenta o primeiro parágrafo do capítulo
\RequirePackage{graphicx} % Inclusão de gráficos
\RequirePackage{lastpage} % Usado pela ficha catalográfica
\RequirePackage{textcomp}
\RequirePackage{multirow}
\RequirePackage{verbatim}
\RequirePackage{xstring} % Manipulação de strings
通用.tex
\usepackage[bibjustif, abnt-full-initials=yes, abnt-repeated-title-omit=yes, alf]{abntex2cite}
\begin{document}
\chapter{INTRODUCTION}
\input{paper1.tex}
\input{paper2.tex}
\chapter{CONCLUSION}
% I want to see ALL citations from all papers
\bibliographystyle{abntex2-alf}
\bibliography{referencias.bib}
\end{document}
paper1.tex 和 paper2.tex:
\chapter{TITLE}
...
\chapter{CONCLUSION}
% I want to see the citation of each paper
\bibliographystyle{abntex2-alf}
\bibliography{referencias.bib}
我想看到这样的内容:
SUMÁRIO
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1 TITLE 1 . . . . . . . . . . . . . . . . . . . .................... . . . . . . . 12
1.1 sections . ............................................................... . . 15
1.2 References ....................................................................19
2 TITLE 2 . . . ................................................................. 20
2.1 sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.2 References ....................................................................28
3 CONCLUSION . . . . . . . . . . . . . . . . . . . . . . . . ...... . ............ 29
REFERENCES . . . . . . . . . . . . . . . . . . . . . . . . . . . ........... . . . 30