APA6 - 类 - 2 摘要

APA6 - 类 - 2 摘要

我正在使用 APA-6 文档类别。我需要写下两篇摘要,一篇用英文,一篇用德文(“摘要”)。因此,我需要一个摘要页和一个摘要样式的“摘要”页,外加关键字/“Schlüsselwörter”。

到目前为止,这还不起作用。当我添加另一个 \abstract 时,我收到一个错误(另外,我不知道如何强制 LaTeX 将其称为“Zusammenfassung”。我也不知道如何在德语“Zusammenfassung”中用“Schlüsselwörter”替换关键字)。

\documentclass[a4paper,man]{apa6}

\usepackage[utf8]{inputenc} %Umlaute und Sonderzeichen

\usepackage[ngerman]{babel} %nutzt Babel mit neuer Rechtschreibung
\usepackage[backend=biber,style=apa]{biblatex} %Definition der Parameter von Biblatex: biber + apa
\usepackage[german=quotes]{csquotes}%mod.
\usepackage[locale=US]{siunitx}
\DeclareLanguageMapping{ngerman}{ngerman-apa}

\title{Test title}
\shorttitle{Short one}

\author{Me}
\affiliation{here}
\leftheader{Me}

\abstract{Here goes some text.}
\keywords{Some interesting stuff 1, and 2}

\begin{document}
\maketitle

Text comes here.

\end{document}

答案1

这将有效仅有的带有man选项。对于jou选项,可以定义类似的补丁。但可以肯定的是,要求提交此类的期刊将拒绝该论文。

\documentclass[a4paper,man]{apa6}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,ngerman]{babel}

\usepackage[backend=biber,style=apa]{biblatex}
\usepackage[german=quotes]{csquotes}
\usepackage[locale=US]{siunitx}
\DeclareLanguageMapping{ngerman}{ngerman-apa}

\usepackage{etoolbox}

\makeatletter
\patchcmd{\maketitle}
  {\@ifundefined{@abstract}{}}
  {\jens@process@abstracts\@gobble}
  {}{}

\let\jens@process@abstracts\@empty

\renewcommand{\abstract}[2][english]{%
  \@namedef{jens@abstract@#1}{#2}%
  \g@addto@macro\jens@process@abstracts{\jens@do@abstract{#1}}%
  \let\@abstract\@empty
}
\renewcommand{\keywords}[2][english]{%
  \@namedef{jens@keywords@#1}{#2}%
}
\newcommand\jens@do@abstract[1]{%
  \begin{otherlanguage}{#1}
  \section{\normalfont\normalsize\abstractname}%
  \@nameuse{jens@abstract@#1}\par
  \@ifundefined{jens@keywords@#1}{}{%
    \setlength{\parindent}{0.4in}% BDB
    \indent\textit{\keywordname:} \@nameuse{jens@keywords@#1}%
  }%
  \end{otherlanguage}
  \newpage
}
\makeatother

\addto\captionsenglish{%
  \renewcommand{\keywordname}{Keywords}%
}
\addto\captionsngerman{%
  \renewcommand{\keywordname}{Schl\"usselw\"orte}%
}



\begin{document}
\title{Test title}
\shorttitle{Short one}

\author{Me}
\affiliation{here}
\leftheader{Me}

\abstract{Here goes some text.}
\keywords{Some interesting stuff 1, and 2}

\abstract[ngerman]{This should be in German}
\keywords[ngerman]{Also this}

\maketitle

Text comes here.

\end{document}

摘要按指定的顺序排版。

在此处输入图片描述

还有一个版本可供jou选择

请注意,这适用于manjou选项,因为更改的定义\jens@do@abstract会根据给定的选项而变化。

\documentclass[a4paper,jou]{apa6}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,ngerman]{babel}

\usepackage{etoolbox}

\usepackage[backend=biber,style=apa]{biblatex}
\usepackage[german=quotes]{csquotes}
\usepackage[locale=US]{siunitx}
\DeclareLanguageMapping{ngerman}{ngerman-apa}

\usepackage{lipsum}

\makeatletter
\patchcmd{\maketitle}
  {\@ifundefined{@abstract}}
  {\par\jens@process@abstracts\@gobbletwo}
  {}{}

\let\jens@process@abstracts\@empty

\renewcommand{\abstract}[2][english]{%
  \@namedef{jens@abstract@#1}{#2}%
  \g@addto@macro\jens@process@abstracts{\jens@do@abstract{#1}}%
  \let\@abstract\@empty
}
\renewcommand{\keywords}[2][english]{%
  \@namedef{jens@keywords@#1}{#2}%
}

\@ifundefined{def@jou}{% man option
  \newcommand\jens@do@abstract[1]{%
    \begin{otherlanguage}{#1}%
    \section{\normalfont\normalsize\abstractname}%
    \@nameuse{jens@abstract@#1}\par
    \@ifundefined{jens@keywords@#1}{}{%
      \setlength{\parindent}{0.4in}% BDB
      \indent\textit{\keywordname:} \@nameuse{jens@keywords@#1}%
    }%
    \end{otherlanguage}
    \newpage
  }
}{% jou option
  \newcommand\jens@do@abstract[1]{%
    \par\parbox{4.6875in}{%
      \begin{otherlanguage}{#1}%
      \small\noindent\@nameuse{jens@abstract@#1}%
      \@ifundefined{jens@keywords@#1}{}{%
        \par\vspace{0.12in}\raggedright\textit{\keywordname:} %
        \@nameuse{jens@keywords@#1}%
      }%
      \end{otherlanguage}%
    }%
    \vspace{0.24in}%
  }
}
\makeatother

\addto\captionsenglish{%
  \renewcommand{\keywordname}{Keywords}%
}
\addto\captionsngerman{%
  \renewcommand{\keywordname}{Schl\"usselw\"orte}%
}



\begin{document}
\title{Test title}
\shorttitle{Short one}

\author{Me}
\affiliation{here}
\leftheader{Me}

\abstract{\lipsum*[2]}
\keywords{Some interesting stuff 1, and 2}

\abstract[ngerman]{\lipsum*[3]}
\keywords[ngerman]{Also this}

\maketitle

Text comes here. \lipsum

\end{document}

相关内容