我想在我的工作中使用两个单独的参考书目。我使用了 multibib 包来创建我的参考书目。问题是我正在使用,natbib
因为我的参考书目样式需要它(francais.bst 可在此处获得:ctan.org/pkg/francais-bst)
当我编译我的文件时(第一次使用 pdfLaTeX),我收到此错误
这是我的代码:
\documentclass[11pt,a4paper]{article}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage[francais]{babel}
\usepackage{multibib}
\newcites{B1}{Reference Book1}
\usepackage{natbib}
\bibliographystyle{francais}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage[defaultlines=3,all]{nowidow}
\pagenumbering{roman}
\begin{document}
The apples are green. \citepB1{ABF-19-35} Here there are!\citep{DEFQ-243}
\bibliographyB1{Book1}
\renewcommand{\refname}{Reference Book2}
\bibliography{Book2}
\end{document}
我的.bib 文件:Book1:
@InBook{ABF-19-35,
chapter = {1:Qu'est-ce qui fait pousser la forêt},
pages = {19},
title = {Arbres et plantes forestières du Québec et des maritimes},
publisher = {Éditions Michel Quintin},
year = {2007},
author = {Michel Leboeuf},
editor = {Johanne Ménard},
note = {ISBN: 978-2-89435-331-8},
}
第二册:
@InBook{DEFQ-243,
chapter = {Glossaire: description écologique des forêts du Québec},
pages = {243},
title = {Description écologique des forêts du Québec},
publisher = {Centre collégial de développement de matériel didactique (CCDMD)},
year = {2007},
author = {Ph.D. Madeleine Couboue},
note = {ISBN: 978-2-89470-219-2},
}
答案1
一般来说,以字母开头的 TeX 命令不能包含数字。因此,对于你的情况,这不是“natbib , but
\citeB1 and so on. In my example the style
alpha simulates
natbib , as you can expect many problems with using it with
multibib . If you only need citations of the form
(key) , it might be a good simulation of
natbib”行为的问题。
\documentclass[11pt,a4paper]{article}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage[francais]{babel}
\usepackage{multibib}
%\newcites{B1}{Reference Book1}
\newcites{B}{Reference Book1}
%\usepackage{natbib}
\bibliographystyle{francais}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage[defaultlines=3,all]{nowidow}
\pagenumbering{roman}
\begin{document}
\makeatletter
%\def\@cite#1#2{[{#1\if@tempswa , #2\fi}]}
\def\@cite#1#2{({#1\if@tempswa , #2\fi})} %square to rounded - PS
\makeatother
The apples are green.
%\citepB1{ABF-19-35} Here there are!\citep{DEFQ-243}
\citeB{ABF-19-35} Here there are!\cite{DEFQ-243}
%\bibliographyB1{Book1}
\bibliographyB{Book1}
\bibliographystyleB{alpha}
\renewcommand{\refname}{Reference Book2}
\bibliography{Book2}
\end{document}