First Name First After First Author in apalike
Uso apalike
modificato per mostrare i nomi nei riferimenti . Questa versione funziona bene, ma desidero individuare prima i nomi di tutti gli autori dopo il primo. Ad esempio, voglio avere Doe, John and Jane Doe
piuttosto che Doe, John and Doe, Jane
riferimenti. Posso cambiare apalike
l'ordine di denominazione di secondo e terzo autore? Ecco il MWE.
\documentclass{article}
\begin{document}
\bibliographystyle{apalike}
\cite{asdf}
\bibliography{asdf}
\end{document}
E asdf.bib
contiene le seguenti informazioni.
@article{asdf,
title={asdf},
author={Doe, John and Doe, Jane},
journal={asdf},
volume={1},
number={1},
pages={1--2},
year={1111}
}
Risposte
La funzione rilevante da modificare nel .bst
file modificato è la funzione
FUNCTION {format.names}
che si trova sulla riga 209 del .bst
file originale . Nella tua versione modificata di potresti avere il seguente schema di formattazione che dice di inserire il nome completo per ultimo.
s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := % last name first
Cambia questo in:
s nameptr
duplicate$ #1 >
{ "{ff~}{vv~}{ll}{, jj}" }
{ "{vv~}{ll}{, jj}{, ff}" }
if$ format.name$ 't := % last name first
che metterà il nome completo per primo su tutti i nomi non iniziali.
Come con qualsiasi modifica a un .bst
file, assicurati di rinominarlo e di lavorare su una copia dell'originale (che presumo dalla tua domanda tu stia già facendo).
Ecco un documento di esempio con il .bst
file modificato .
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@article{BerwickPietroskiYankama2011,
Author = {Robert Berwick and Paul Pietroski and Beracah Yankama and Noam Chomsky},
Journal = {Cognitive Science},
Pages = {1207-1242},
Title = {Poverty of the stimulus revisited},
Volume = {35},
Year = {2011}}
@article{Chomsky1977,
Author = {Noam Chomsky and Howard Lasnik},
Journal = {Linguistic Inquiry},
Pages = {425-504},
Title = {Filters and Control},
Volume = {8},
Year = {1977}}
@article{HauserChomskyFitch2002,
Author = {Hauser, Marc and Chomsky, Noam and Fitch, W. Tecumseh},
Journal = {Science},
Number = {5598},
Pages = {1569--1579},
Title = {The Faculty of Language: What Is It, Who Has It, and How Did It Evolve?},
Volume = {298},
Year = {2002}}
\end{filecontents}
\usepackage{natbib}
\bibliographystyle{apalike-lastname}
\begin{document}
\cite{BerwickPietroskiYankama2011,Chomsky1977,HauserChomskyFitch2002}
\bibliography{\jobname}
\end{document}
