apalike에서 첫 번째 저자의 이름 이름

Aug 20 2020

나는 참조에 이름apalike 을 표시 하기 위해 수정을 사용 합니다. 이 버전은 잘 작동하지만 첫 번째 이후 모든 저자의 이름을 먼저 찾고 싶습니다. 예를 들어, 참조 보다는 갖고 싶습니다 . 두 번째 및 세 번째 저자의 이름 지정 순서를 변경할 수 있습니까 ? 여기 MWE가 있습니다.Doe, John and Jane DoeDoe, John and Doe, Janeapalike

\documentclass{article}
\begin{document}
\bibliographystyle{apalike}
\cite{asdf}
\bibliography{asdf}
\end{document}

그리고 asdf.bib다음 정보를 포함합니다.

@article{asdf,
    title={asdf},
    author={Doe, John and Doe, Jane},
    journal={asdf},
    volume={1},
    number={1},
    pages={1--2},
    year={1111}
}

답변

1 AlanMunn Aug 21 2020 at 03:42

수정 된 .bst파일 에서 변경해야 할 관련 기능 은

FUNCTION {format.names}

원본 .bst파일의 209 행에 있습니다. 의 수정 된 버전에는 전체 이름을 먼저 입력하는 다음과 같은 형식 지정 스키마가있을 수 있습니다.

s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=   % last name first

이것을 다음으로 변경하십시오.

s nameptr 
    duplicate$ #1 > 
        { "{ff~}{vv~}{ll}{, jj}" }
        { "{vv~}{ll}{, jj}{, ff}" }
    if$ format.name$ 't :=   % last name first

이니셜이 아닌 모든 이름에 전체 이름을 먼저 넣습니다.

.bst파일에 대한 수정과 마찬가지로 파일 이름을 바꾸고 원본의 사본을 작업해야합니다 (이미 수행중인 질문에서 가정합니다.).

다음은 변경된 .bst파일 이있는 샘플 문서입니다 .

\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}