Смена названия университета, тезиса т. Е. для резюме на другом языке - PullRequest
0 голосов
/ 21 мая 2019

Мне нужно написать две разные рефераты в моей диссертации на немецком и английском языках.Немецкий работает нормально, и с помощью команды \ begin {otherlanguage} само абстрактное имя меняется на английский.Но, кроме того, мне нужно использовать английский тильте, название университета, название факультета и название компании для второго реферата.Я попытался использовать \ renewcommand, но он не меняет заголовок в выходном файле, который по-прежнему является немецким.

Я нашел пакеты для нескольких заголовков (\ titling), но это не работает для названия университета и таквкл.

Заранее спасибо


\documentclass[11pt, english, ngerman,]{MastersDoctoralThesis}
\thesistitle{Title in German}
\university{University Title in German}


\begin{document}

\begin{abstract}
\addchaptertocentry{\abstractname}
German German German
\end{abstract}


\begin{otherlanguage}{english}

\renewcommand{\thesistitle}{Title in English}
\renewcommand{\university}{University Title in English}

\begin{abstract}
English English English
\end{abstract}

\end{otherlanguage}

Ответы [ 2 ]

1 голос
/ 08 июня 2019

mustermensch

% This template was downloaded from:
% http://www.LaTeXTemplates.com
% Template license:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)

\documentclass[11pt, english, ngerman,openany]{MastersDoctoralThesis}

\usepackage{blindtext}
\thesistitle{Wombat} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle
\supervisor{Gerald Giraffe} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname
\examiner{} % Your examiner's name, this is not currently used anywhere in the template, print it elsewhere with \examname
\degree{Doctor of Philosophy} % Your degree name, this is used in the title page and abstract, print it elsewhere with \degreename
\author{John \textsc{Smith}} % Your name, this is used in the title page and abstract, print it elsewhere with \authorname
\addresses{} % Your address, this is not currently used anywhere in the template, print it elsewhere with \addressname

\subject{Biological Sciences} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
\keywords{} % Keywords for your thesis, this is not currently used anywhere in the template, print it elsewhere with \keywordnames
\university{Uni der Zootiere} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
\department{Institut der Angewandten Tierpflegeranalyse} % Your department's name and URL, this is used in the title page and abstract, print it elsewhere with \deptname
\group{\href{http://researchgroup.university.com}{Research Group Name}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname
\faculty{\href{http://faculty.university.com}{Faculty Name}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname

\begin{document}



\begin{abstract}
\addchaptertocentry{\abstractname}
\blindtext
\end{abstract}


\begin{otherlanguage}{english}
\makeatletter
\renewcommand{\@title}{Capybara}
\makeatother
\renewcommand{\univname}{Univerity of Zoo Animals}
\renewcommand{\deptname}{Institute for applied Something}
\begin{abstract}
\blindtext
\end{abstract}
\end{otherlanguage}
\end{document}
0 голосов
/ 21 мая 2019

У меня нет, также не знаю пакета MastersDoctoralThesis. Если он включает пакет babel, вы можете использовать iflang для проверки активного языка.

\documentclass[11pt]{article}
\usepackage{iflang}
\usepackage[german]{babel}
%\usepackage[english]{babel}

\begin{document}
\IfLanguageName{german}{
German German German
}{
English English English
}
\end{document}

Если ваш класс документов не включает в себя язык babel, вы можете сделать нечто подобное, определив макрос и проверив его значение с помощью пакета ifthen.

\documentclass[11pt]{article}
\usepackage{ifthen}
\def\mylanguage{german}

\begin{document}
\ifthenelse{\equal{\mylanguage}{german}}{
German German German
}{
English English English
}
\end{document}
...