scrlttr2 字母中的 Babel 选项冲突

scrlttr2 字母中的 Babel 选项冲突

我想在 scrlttr2 字母中使用带有英语选项的 babel,以便更改\todayKOMA 变量的描述,例如fromphone从德语更改为英语(“Phone”而不是“Telefon”等)。但是,我遇到了 babel 选项冲突

! LaTeX Error: Option clash for package babel.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.20 \usepackage
                [utf8]{inputenc}

这是文档:

\documentclass[
    sender,
    paper=a4,
    version=last,
    fontsize=11pt,
    DIV=13,
    BCOR=0mm
    ]{scrlttr2}
\parskip3mm
\parindent0mm % if you want to have no lineskip

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{graphicx}

% Set Font: sans serif Latin Modern
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}

% Set Page layout:
\usepackage{changepage}
\changepage{+3cm}{}{}{}{}{}{}{}{-5cm}
\LoadLetterOption{DIN}
\LoadLetterOption{thesender}

\begin{document}
% subject, date, place:
\setkomavar{subject}{Application as Test}
\setkomavar{date}{\today}
\setkomavar{place}{City}

% Set recipient of letter
\begin{letter}{
    Company\\
    Street 233\\
    12345 City
}
\opening{Dear Sir or Madam,}

\selectlanguage{english}
\dots

Yours sincerely,

\vspace{1cm} \includegraphics[width=4cm]{signature}  \\
Name

\end{letter}
\end{document}

thesender.lco文件:

\ProvidesFile{thesender.lco}

\KOMAoptions{%
 fromurl=false,
locfield=wide,
fromalign=left,
foldmarks=off,
firsthead=false
}

\RequirePackage[utf8]{inputenc}
\RequirePackage[english]{babel}
\setkomavar{fromname}{My Name}
\setkomavar{fromaddress}{%
  Street 9\\
  14524 City%
}
\setkomavar{fromemail}{[email protected]}
\setkomavar{fromphone}{0653/52554325}

\setkomavar{location}{%
  \raggedright{%
  \usekomavar{fromname}\\
  \usekomavar{fromaddress}\\
  \usekomavar*{fromphone}\usekomavar{fromphone}\\
  \usekomavar*{fromemail}\usekomavar{fromemail}
  }%
}
% ============================

\setkomavar{frombank}{}
\renewcommand*{\raggedsignature}{\raggedright}
% ====================

我没有发现我使用了两次带有不同选项的 babel 或类似的东西。但显然(根据即时帮助),babel 已加载了 ngerman 选项。有人看到这个问题吗?

提前谢谢了!

相关内容