我正在撰写论文,但遇到了附录的问题。
我的代码如下:
\documentclass[12pt]{book}
% package to activate greek language - the sequence languages appear below is IMPORTANT!!!
\usepackage[greek,english]{babel}
\usepackage{varioref}
%\usepackage{hyperref}
\usepackage{float}
\usepackage{multirow}
% package to handle graphics
\usepackage{graphicx}
\graphicspath{{images/}}
% package to handle multiple figures in a minipage
\usepackage{subfigure}
% package to extend math capabilities
\usepackage{amsmath,amssymb,isotope}
\usepackage[version=3]{mhchem}
%package to activate XeTeX font manager
\usepackage{fontspec}
\usepackage[titletoc]{appendix}
% DOCUMENT LAYOUT
\usepackage{geometry}
\geometry{a4paper, textwidth=5.5in, textheight=8.5in, headheight= 15pt, marginparsep=7pt, marginparwidth=.6in}
%\geometry{a4paper}
\setlength\parindent{8mm}
\setlength\parskip{5mm}
% FONTS
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{xcolor}
\defaultfontfeatures{Mapping=tex-text} % converts LaTeX specials (``quotes'' --- dashes etc.) to unicode
%\setromanfont [Ligatures={Common}, BoldFont={GFS Artemisia Bold}, ItalicFont={Gentium Italic}]{Gentium}
%\setmonofont[Scale=0.8]{Monaco}
\setmainfont{Times New Roman} % You can set your main font here.
% ---- CUSTOM AMPERSAND
\newcommand{\amper}{{\fontspec[Scale=.95]{Gentium Italic}\selectfont\itshape\&}}
% package to handle line spacing
\usepackage{setspace}
% HEADINGS
\usepackage{sectsty}
\usepackage[normalem]{ulem}
\sectionfont{\rmfamily\mdseries\upshape\Large}
\subsectionfont{\rmfamily\bfseries\upshape\normalsize}
\subsubsectionfont{\rmfamily\mdseries\upshape\normalsize}
% PDF SETUP
% ---- FILL IN HERE THE DOC TITLE AND AUTHOR
\usepackage[unicode, driverfallback=dvipdfmx, bookmarks, colorlinks, breaklinks, pdftitle={Theo J. Mertzimekis - A thesis template for UoA students},pdfauthor={tmertzi}]{hyperref}
\hypersetup{linkcolor=blue,citecolor=blue,filecolor=black,urlcolor=blue}
% package for fancy style headers and footers
\usepackage{fancybox}
% redefine bullet symbols and section style
\renewcommand\thesection{\arabic{section}.}
\renewcommand{\labelitemi}{$\blacktriangleright$}
\renewcommand{\labelitemii}{$\bullet$}
\newcommand{\itemcheck}{\item[\checkmark]}
\newcommand{\itembullet}{\item[$\bullet$]}
\newcommand{\itemdiamond}{\item[$\diamond$]}
\newcommand{\itemtriangleright}{\item[$\triangleright$]}
\newcommand{\itemcirc}{\item[$\circ$]}
\newcommand{\itemsquare}{\item[$\square$]}
% change captions especially for greek language - if the document is in ENGLISH, they should vanish
\addto\captionsenglish{%
\renewcommand\prefacename{Πρόλογος}%
\renewcommand\refname{Αναφορές}%
\renewcommand\abstractname{Περίληψη}%
\renewcommand\bibname{Βιβλιογραφία}%
\renewcommand\chaptername{Κεφάλαιο}%
\renewcommand\appendixname{Παράρτημα}%
\renewcommand\contentsname{Περιεχόμενα}%
\renewcommand\listfigurename{Κατάλογος Σχημάτων}%
\renewcommand\listtablename{Κατάλογος Πινάκων}%
\renewcommand\indexname{Ευρετήριο}%
\renewcommand\figurename{Σχήμα}%
\renewcommand\tablename{Πίνακας}%
\renewcommand\partname{Μέρος}%
\renewcommand\enclname{Συνημμένα}%
\renewcommand\ccname{Κοινοποίηση}%
\renewcommand\headtoname{Προς}%
\renewcommand\pagename{Σελίδα}%
\renewcommand\seename{βλέπε}%
\renewcommand\alsoname{βλέπε επίσης}%
\renewcommand\proofname{Απόδειξη}%
\renewcommand\glossaryname{Γλωσσάρι}%
}
\usepackage{xgreek}
\usepackage{csquotes}
\usepackage[backref=true,backend=biber,style=authoryear]{biblatex}
\addbibresource{bibliography.bib}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\leftmark}
\cfoot{\thepage}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
%\addtocounter{page}{-1}%
\newpage}
%%%%%%%%% END OF PREAMBLE %%%%%%%%%%%%
\begin{document}
\setlanguage{greek} %% this is to activate greek hyphenation
\chapter{Introduction}
\chapter{Related Work}
...
\begin{appendices}
\chapter{Μοντέλο}
\end{appendices}
\end{document}
结果是:
有人知道为什么这个框会出现在字母 A 旁边吗?我该如何将其删除?
答案1
我已删除以下命令:
\usepackage{xgreek}
,这导致了问题\setlanguage{greek}
现在该框已从附录中删除,但不影响英语和希腊语之间的切换。