我正在尝试让jneurosci
样式与 配合使用bibtex
。此样式与 样式密切相关,named
但这两种样式都失败了。它们生成的.bbl
文件会产生undefined control sequence
错误。我看不出我做错了什么。我的.bib
文件与其他样式(例如apalike
或 )配合得很好plain
。你知道我可能做错了什么吗?
我整理如下:
latex myFile
bibtex myFile
latex myFile
latex myFile
使用此named
样式我收到此错误:
! Undefined control sequence.
<argument> \protect \citeauthoryear
{Akalal \bgroup \em et al.\egroup }{2010}
l.4 }{2010}]{Akalal2010}
失败的情况.bbl
如下:
\bibitem[\protect\citeauthoryear{Akalal \bgroup \em et al.\egroup
}{2010}]{Akalal2010}
David-Benjamin~G Akalal, Dinghui Yu, and Ronald~L Davis.
\newblock {A late-phase, long-term memory trace forms in the $\gamma$ neurons
of Drosophila mushroom bodies after olfactory classical conditioning.}
\newblock {\em The Journal of neuroscience : the official journal of the
Society for Neuroscience}, 30(49):16699--708, December 2010.
当我使用该plain
样式(可以很好地编译)时,我得到.bbl
如下所示的结果:
\bibitem{Akalal2010}
David-Benjamin~G Akalal, Dinghui Yu, and Ronald~L Davis.
\newblock {A late-phase, long-term memory trace forms in the $\gamma$ neurons
of Drosophila mushroom bodies after olfactory classical conditioning.}
\newblock {\em The Journal of neuroscience : the official journal of the
Society for Neuroscience}, 30(49):16699--708, December 2010.
我的.bib
文件如下所示:
@article{Agarwal2011,
abstract = {Insect pheromonal glomeruli are thought to track the fine spatiotemporal features of one or a few odorants to aid conspecific localization. However, it is not clear whether they function differently from generalist glomeruli, which respond to many odorants. In this study, we test how DA1, a model pheromonal glomerulus in the fruit fly, represents the spatial and temporal properties of its input, compared with other glomeruli. We combine calcium imaging and electrical stimulation in an isolated brain preparation for a simultaneous, unbiased comparison of the functional organization of many glomeruli. In contrast to what is found in other glomeruli, we find that ipsilateral and contralateral stimuli elicit distinct spatial patterns of activity within DA1. DA1's output shows a greater preference for ipsilateral stimuli in males than in females. DA1 experiences greater and more rapid inhibition than other glomeruli, allowing it to report slight interantennal delays in stimulus onset in a "winner-take-all" manner. DA1's ability to encode spatiotemporal input features distinguishes it from other glomeruli in the fruit fly antennal lobe but relates it to pheromonal glomeruli in other insect species. We propose that DA1 is specialized to help the fly localize and orient with respect to pheromone sources.},
author = {Agarwal, Gautam and Isacoff, Ehud},
doi = {10.1152/jn.00591.2010},
issn = {1522-1598},
journal = {Journal of neurophysiology},
keywords = {Animals,Behavior, Animal,Behavior, Animal: physiology,Calcium,Calcium: metabolism,Drosophila,Drosophila: physiology,Electric Stimulation,Female,Male,Odors,Olfactory Pathways,Olfactory Pathways: physiology,Sex Attractants,Sex Attractants: physiology},
month = apr,
number = {4},
pages = {1711--21},
pmid = {21289134},
title = {{Specializations of a pheromonal glomerulus in the Drosophila olfactory system.}},
url = {http://jn.physiology.org/cgi/content/abstract/105/4/1711},
volume = {105},
year = {2011}
}
答案1
书目jneurosci
样式使用了一些命令 - 例如\citeauthoryear
- 在同名包中定义。为了使该特定样式起作用,我们需要添加以下包包含
\usepackage{jneurosci}
在我们文件的序言中:
\begin{filecontents*}{\jobname.bib}
@article{Agarwal2011,
author = {Agarwal, Gautam and Isacoff, Ehud},
doi = {10.1152/jn.00591.2010},
issn = {1522-1598},
journal = {Journal of neurophysiology},
month = apr,
number = {4},
pages = {1711--21},
pmid = {21289134},
title = {Specializations of a pheromonal glomerulus in the Drosophila olfactory system.},
url = {http://jn.physiology.org/cgi/content/abstract/105/4/1711},
volume = {105},
year = {2011}
}
\end{filecontents*}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{jneurosci}
\begin{document}
Hello~\cite{Agarwal2011}.
\bibliographystyle{jneurosci}
\bibliography{\jobname}
\end{document}
我们得到了正确的输出:
希望能帮助到你。:)