我有以下代码
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{amsmath}
\usepackage{caption}
\usepackage{refstyle}
\usepackage{ragged2e}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\setcounter{tocdepth}{0}
\usepackage{titling}
\setlength\droptitle{-5cm}
\renewcommand\maketitlehooka{\raisebox{-0.35\height}
{\includegraphics[width=4cm]{TUC}}\quad\sffamily \begin{tabular}{l} {\selectlanguage{english}{TECHNICAL UNIVERSITY OF CRETE}}\\[3ex]{\selectlanguage{english} SCHOOL OF PRODUCTION ENGINEERING AND MANAGEMENT}\end{tabular}\vskip 24ex}
\renewcommand\maketitlehookb{\vskip 8ex}
\renewcommand\maketitlehookc{\vfill}
\selectlanguage{english}
\title{Vehicle path and traffic flow optimization via automated lane changing on motorways}
\author{Georgantas Antonios}
\date{Chania 2016}
\fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}
\begin{document}
\maketitle
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\afterpage{\blankpage}
\clearpage
\chapter*{}
Η διπλωματική εργασία του Γεωργαντά Αντώνη εγκρίνεται απο την εξεταστική επιτροπή:
\clearpage
\chapter*{Ευχαριστίες}
\clearpage
\chapter*{Περιεχόμενα}
Περίληψη ....................................................................................... 4
Κεφάλαιο 1 Εισαγωγή ........................................................................ 6
\clearpage
\end{document}
我有这个代码,但我无法正确从希腊语转换为英语。我的主要问题是这一部分
\selectlanguage{english}
\title{Vehicle path and traffic flow optimization via automated lane changing on motorways}
\author{Georgantas Antonios}
这是用希腊文写的。有人能告诉我这怎么用英文写吗?谢谢
答案1
\selectlanguage{english}
\author{Foo}
\title{Foobar}
来得太早——在 时\maketitle
,语言设置是默认设置greek
(因为这是 babel 设置中指定的最后一种语言)。
你必须附上
\selectlanguage{english}
\maketitle
\selectlanguage{greek}
例如。
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel}
\usepackage[demo]{graphicx}
\graphicspath{{images/}}
\usepackage{amsmath}
\usepackage{caption}
\usepackage{refstyle}
\usepackage{ragged2e}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\setcounter{tocdepth}{0}
\usepackage{titling}
\setlength\droptitle{-5cm}
\renewcommand\maketitlehooka{\raisebox{-0.35\height}
{\includegraphics[width=4cm]{TUC}}\quad\sffamily \begin{tabular}{l} {\selectlanguage{english}{TECHNICAL UNIVERSITY OF CRETE}}\\[3ex]{\selectlanguage{english} SCHOOL OF PRODUCTION ENGINEERING AND MANAGEMENT}\end{tabular}\vskip 24ex}
\renewcommand\maketitlehookb{\vskip 8ex}
\renewcommand\maketitlehookc{\vfill}
\selectlanguage{english}
\title{Vehicle path and traffic flow optimization via automated lane changing on motorways}
\author{Georgantas Antonios}
\date{Chania 2016}
\fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}
\begin{document}
\selectlanguage{english}
\maketitle
\selectlanguage{greek}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\afterpage{\blankpage}
\clearpage
\chapter*{}
Η διπλωματική εργασία του Γεωργαντά Αντώνη εγκρίνεται απο την εξεταστική επιτροπή:
\clearpage
\chapter*{Ευχαριστίες}
\clearpage
\chapter*{Περιεχόμενα}
Περίληψη ....................................................................................... 4
Κεφάλαιο 1 Εισαγωγή ........................................................................ 6
\clearpage
\end{document}
或者,使用
\begin{otherlanguage}{english}
\maketitle
\end{otherlanguage}