我正在用 Latex 写我的硕士论文,所以我试着用阿拉伯语、法语和英语写一篇摘要,我正在使用pdfLatex引擎,这是 main.tex :
\documentclass[fontsize=12pt,parskip=half,appendixprefix,headsepline,numbers=noenddot, openany]{scrbook}
\input{Structure_memoire}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{frontmatter/page de garde}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand{\disableopenany}{%
% \@openrighttrue%
%} document
%\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\bibliographystyle{unsrt}
\captionsetup{labelfont=sc}
\begin{spacing}{1}
\pagestyle{empty}
\frontmatter
\maketitle
%%%%%%%%%%%%%%%\{Dédicaces}%%%%%%%%%%%%%%%%%%%%%%
%\let\cleardoublepage\clearpage
%\include{dedicaces}
%\include{remerciment}
\include{frontmatter/remerciement}
%\include{frontmatter/Abstract}
\newpage
\null
\newpage
%%%%%%%%%%%%%%%\{abstract}%%%%%%%%%%%%%%%%%%%%%%
%
\renewcommand{\contentsname}{Sommaire}
\tableofcontents
\include{frontmatter/listdesabbr}
%%%%%%%%%%%%%%\chapter*{Remerciements}%%%%%%%%%%%%%%%%
%\renewcommand{\contentsname}{Sommaire}
%\tableofcontents
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures
%{\listoffigures \let\cleardoublepage\clearpage \listoftables}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\pagestyle{headings}
\end{spacing}
%%%%%%%%%\Corps\%%%%%%%%%%%%%%%%%%%%%%%
%\enableopenany
\include{mainmatter/intro}
%\enableopenany
\include{mainmatter/chap1}
%\enableopenany
\include{mainmatter/chap2}
%\enableopenany
\include{mainmatter/chap3}
\include{mainmatter/chap4}
\include{mainmatter/conclusion}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\makeatother
%\include{Perspectives}
%\include{bibliography}
\begin{spacing}{1}
\addcontentsline{toc}{chapter}{Bibliographie}
\nocite{*}
\bibliographystyle{plain}
\bibliography{reference/myref}
\end{spacing}
\end{document}
这是我正在使用的所有包:
\usepackage{float} %用于指示“tables”属于“tableaux” \usepackage[tablename=Tableau]{caption} \usepackage{array} \usepackage{minitoc} \usepackage{shorttoc} \usepackage[dvipsnames,table,xcdraw]{xcolor} \usepackage{tikz} \usepackage{framed} \usepackage{lettrine} \usepackage[inline]{enumitem} \usepackage{arabtex} \usepackage[utf8]{inputenc} \usepackage[arabic]{babel}
\usepackage{subcaption} \usepackage{setspace} \usepackage[ruled,linesnumbered,lined,boxed,commentsnumbered]{algorithm2e} \usepackage[kerning=true,spacing=true,tracking=true]{microtype} \usepackage{enumitem} \usepackage{pdfpages} \usepackage{etoolbox}
有什么解决方案吗?
答案1
scrbook
没有abstract
环境。因此你可以定义自己的环境,例如
\newenvironment{abstract}[1] % title
{%
\renewcommand\raggedsection{\centering}%
\section*{#1}%
\begin{quote}%
}
{\end{quote}}
\begin{document}
\frontmatter
\begin{abstract}{Résumé}
French abstract
\end{abstract}
\begin{abstract}{Abstract}
English abstract
\end{abstract}
% Don't know Arabic
\mainmatter
\chapter{First chapter}