西班牙文的 apacite 和 newapa (apacite + newapa en español)?

西班牙文的 apacite 和 newapa (apacite + newapa en español)?

我用的是apacite西班牙語,但我遇到了一個問題,因為「et al」過去常常出現「y cols」之類的東西。這是錯誤的。

看了另一個答案後,我發現如果我使用:

%
\usepackage[bibnewpage]{apacite}
\begin{document}

Text and citations

\bibliography{biblio} 
\bibliographystyle{newapa}
\end{document}
%%

我得到了「等人」。就像必須使用它一樣。現在的問題是,LaTeX 給我的不是“Martínez y Pérez (2010)”,而是“Martínez & Pérez (2010)”。

我嘗試過

\renewcommand{\BBAA}{y}% Letra que va entre los autores en las referencias
\renewcommand{\BBAB}{y}% Entre autores en el texto

但它不起作用,或者也許我不知道在哪裡寫這些命令...

請幫幫我,這是我的碩士論文!

答案1

你應該絕不由於某些原因,刪除或修改 LaTeX 軟體包的系統版本。

  • TeX 發行版有一種方法可以覆蓋系統軟體包,而不必幹擾系統文件,因此從來沒有必要這樣做。
  • 如果您更新系統,您對樣式檔案的系統版本所做的任何變更都將被刪除。
  • 如果您不知道自己在做什麼,系統檔案的變更可能會破壞系統。

有關如何使用 MikTeX 設定本地資料夾的更多信息,請參閱以下問題:

話雖這麼說,您遇到的問題.apc根本不需要更改文件,而只需確保apacite知道您正在使用西班牙語,並更新文字命令et al.,並使用正確的參考書目樣式apacite(即apacite不是 newapa.)

由於這是一篇論文(並且特定期刊不需要 apacite 包),您也可以考慮使用biblatexbiblatex-apa包,它是 APA 第六版的最新實現。網站上有很多使用它的例子。

這是一個範例文檔,展示瞭如何正確解決您的問題:

\documentclass{article}
\usepackage[spanish]{babel}
\usepackage{apacite}
\bibliographystyle{apacite} % This is the style you should use with `apacite`.

% The following code generates a demonstration bib file
% This part is not needed in your actual document
\begin{filecontents}{\jobname.bib} 

@article{suner1988,
    Author = {Margarita {Su\~ner} and Mar\`ia {Y\'epez} and Bill Smith and Fred Jones and Joe Doe and Henry Ford},
    Journal = {A Fake Journal},
    Pages = {511-519},
    Title = {The Title of the Paper},
    Volume = {19},
    Year = {1988}}
\end{filecontents} 
% This is the end of the demonstration .bib file
\begin{document}
\renewcommand{\BOthers}[1]{et al.\hbox{}}
\cite{suner1988}
\bibliography{\jobname}
\end{document}

程式碼的輸出

答案2

使用時:

\usepackage{apacite}
\usepackage[spanish]{babel} 

我遇到了同樣的問題。僅使用:

\renewcommand{\BOthers}[1]{et al.\hbox{}}

正如之前發布的,沒有解決問題。但是,以下程式碼對我來說效果很好:

\addto\captionsspanish{
   \renewcommand{\BOthers}[1]{et al.\hbox{}}
}

我還必須重新定義許多部分名稱以符合我們的論文格式,例如:

\addto\captionsspanish{
 \renewcommand{\contentsname}{INDICE GENERAL}%
}
\addto\captionsspanish{
 \renewcommand{\listfigurename}{INDICE DE FIGURAS}%
}
\addto\captionsspanish{
 \renewcommand{\listtablename}{INDICE DE TABLAS}%
}
\addto\captionsspanish{
 \renewcommand{\chaptername}{CAPITULO}%
}
\addto\captionsspanish{
\renewcommand{\figurename}{Figura}%
}
\addto\captionsspanish{
\renewcommand{\tablename}{Tabla}%
}
\addto\captionsspanish{
\renewcommand{\refname}{BIBLIOGRAFIA}%
}
\addto\captionsspanish{
 \renewcommand{\bibname}{}
}
\addto\captionsspanish{
 \renewcommand{\BOthers}[1]{et al.\hbox{}}
}

相關內容