我正在写一份报告,目前正在做标题页。好吧,我想让页眉包含三个徽标,并在徽标下添加文字。
这是我想要获取的标题图像:
这是我想要的页脚图像:
这是我正在使用的代码:
\documentclass[12pt,french]{report}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage{minitoc}
\geometry{verbose,tmargin=1.8cm,bmargin=1.8cm,lmargin=2cm,rmargin=2cm}
%\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=12pt,headsep=25pt,footskip=30pt}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{float}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{nomencl}
\usepackage{enumitem}%pou les puces
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\onehalfspacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%/usepackage{t1enc}% un second package
\usepackage[francais]{babel}
% un troisième package
\usepackage{layout}
\usepackage[Lenny]{fncychap}
\usepackage{fancyhdr}
\usepackage[section]{placeins}
\usepackage{lettrine}
\usepackage{xcolor}
\floatstyle{boxed}
%\title{\Huge \textbf{Rapport de Projet de Fin d’Etudes
%}}
%\author{Amina GHABRI}
\makeatletter
\begin{titlepage}
\centering
{ \includegraphics[width=0.1\textwidth]{pic/garde/ensit.png}
\includegraphics[width=0.1\textwidth]{pic/garde/etat.png}\\
\includegraphics[width=0.35\textwidth]{pic/garde/arab.png}\\
\large \textsc{Ecole Nationale Supérieure d’Ingénieurs de Tunis}}\\
\vspace{1cm}
\vspace{1cm}
{\large\textbf{ \@date\\
Rapport de Projet de Fin d’Etudes}}\\
\vfill
{\LARGE \textbf{\@title}} \\
\vspace{2cm}
{\large \@author} \\
\vfill
\end{titlepage}
\makeatother
这是我得到的结果:
答案1
这可以通过此 MWE 获得
\documentclass[12pt,french]{report}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage{minitoc}
\geometry{verbose,tmargin=1.8cm,bmargin=7cm,lmargin=2cm,rmargin=2cm}
%\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=12pt,headsep=25pt,footskip=30pt}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{float}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{nomencl}
\usepackage{enumitem}
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\onehalfspacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%/usepackage{t1enc}% un second package
\usepackage[francais]{babel}
% un troisième package
\usepackage{layout}
\usepackage[Lenny]{fncychap}
\usepackage{fancyhdr}
\usepackage[section]{placeins}
\usepackage{lettrine}
\usepackage{xcolor}
\usepackage{arabtex} % for writing arabic
\floatstyle{boxed}
\novocalize % command arabtex
\setlength{\headheight}{3.2cm}
\setlength{\footskip}{1.5cm}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
%\renewcommand{\footrulewidth}{1pt}
% page header ==================================================
\chead{\begin{minipage}{0.27\textwidth}
\begin{center}
\includegraphics[width=0.7\linewidth]{example-image}\\
Ecole Normale Supérieure \\
d'Ingenieur de Tunis
\end{center}
\end{minipage}
\hfill
\begin{minipage}{0.2\textwidth}
\includegraphics[width=\linewidth,height=3.5cm]{example-image}
\end{minipage}
\hfill
\begin{minipage}{0.3\textwidth}
\includegraphics[width=\linewidth,height=3.5cm]{example-image}
\end{minipage}\smallskip}
% page footer ========================================================
\cfoot{\textbf{Année universitaire 2014-2015}\\
\vspace{-3mm}
\hrulefill\\
\begin{minipage}{0.32\textwidth}
5,Avenue Taha Hessein-Tunisie\\
B.P 56, Bab Menara 1008
\end{minipage}
\hfill
\begin{minipage}{0.25\textwidth}
Tel: 71.496.066 :\RL{al-hAtf}\\
Fax: 71.391.166:\RL{fAks}
\end{minipage}
\hfill
\begin{minipage}{0.27\textwidth}
\begin{arabtex}
$5$ ^sAr` .th .hsyn, twns .s b $56$ bAb mnArT $1008$
\end{arabtex}
\end{minipage}}
%======================================================================
%\author{Amina GHABRI}
%\large \textsc{Ecole Nationale Supérieure d’Ingénieurs de Tunis}}\\
\begin{document}
\hfill Réf:PFE-2014-??
\begin{center}
\Large\textbf {Rapport de \\Projet
de Fin d’Etudes}
\end{center}
\end{document}
对于标题的长度,你可以用\setlength{\headerheight}{length}