我有以下主文档:
\documentclass[tesi,english]{editorialupv}
\input{preambulo}
\bibliography{referencias}
\graphicspath{
{../figuras/}
{../logos/}
{./figuras/}
{./logos/}
}
\author{
\parbox{\textwidth}{\centering Methodology
\begin{tabular}{l@{\hspace{.75em}}l}
Autor: & Jean-Michel Clairand\\[4ex]
Director: & D. Carlos Álvarez Bel\\[.5ex]
\end{tabular}
}
}
\begin{document}
\frontmatter
\maketitle
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\abstractname}
\input{cap_Resumen}
\ifEPUB
\else
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname}
\tableofcontents
\fi
\mainmatter
\listoffigures
\listoftables
\input{1Introduccion}
\input{2V2G}
\bibitemsep = 3ex
\bibhang = 2em
\printbibliography[heading=bibintoc,title=\bibname]
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\end{document}
我的序言是:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{eurosans}
\usepackage{color}
\usepackage[colorinlistoftodos]{todonotes}
\ifEPUB
backend=biber
\makeatletter
\def\blx@shorthands{}
\makeatother
\ifcastellano\usepackage[spanish,es-tabla,es-sloppy]{babel}\fi
\ifvalencia\usepackage[catalan]{babel}\fi
\ifenglish\usepackage[english]{babel}\fi
\newcommand{\sen}{\on{sen}}
\date{}
\else
\ifcastellano\usepackage[spanish,es-tabla]{babel}\fi
\ifvalencia\usepackage[catalan]{babel}\fi
\ifenglish\usepackage[english]{babel}\usepackage{csquotes}\fi
\newcommand{\sen}{\on{sen}}
\fi
\usepackage{xcolor}
\usepackage{array,booktabs}
\usepackage{tabularx,longtable,multicol}
\usepackage{amssymb}
\usepackage{nomencl}
\usepackage[
url = false,
style = authoryear,
hyperref = true,
backref = true,
backend = bibtex, % Otra opci�n es 'backend = bibtex'
%backend = bibtex,
% style=numeric,
]{biblatex}
\usepackage{makeidx}
\makeindex
\ifEBOOKPDF
\colorlet{colorEnlace}{red!75!black}
\else
\colorlet{colorEnlace}{black}
\fi
\usepackage[
{colorlinks},
{linkcolor=blue!75!black},
{citecolor=green!75!black},
{urlcolor=colorEnlace},
{bookmarksnumbered},
{breaklinks},
]{hyperref}
\makeatletter
\renewcommand\thenomenclature{%
\section*{\nomname}%
\if@intoc\addcontentsline{toc}{section}{\nomname}\fi
\nompreamble
\list{}{%
\labelwidth\nom@tempdim
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\itemsep\nomitemsep
\let\makelabel\nomlabel}}
\makeatother
\usepackage{eurosym}
\usepackage{siunitx}
\ifenglish
\sisetup{output-decimal-marker={.}}
\else
\sisetup{output-decimal-marker={,}}
\fi
\DeclareSIUnit[number-unit-product = {\;}] \EURO{\geneuro}
\ifEPUB
\renewcommand{\includegraphics}[2][]{\Picture[#2]{./figuras/#2.png width="500px"}}
\fi
\ifEPUB
\newcommand{\incluyeGrafico}[2][]{\Picture[#2]{./figuras/#2.png width="500px"}} % Por compatibilidad
\else
\newcommand{\incluyeGrafico}[2][]{\includegraphics[#1]{#2}} % Por compatibilidad
\fi
\newcommand{\ingles}[1]{\textit{#1}}
\usepackage{xspace}
\newcommand{\angles}[1]{\textit{#1}\/}
\newcommand{\miUrl}[1]{{\small%
%\texttt%
{\underline{#1}}}}
\newcommand{\matlabr}{{\sc Matlab}$^\circledR$\xspace}
\newcommand{\simulinkr}{\textit{Simulink}$^\circledR$\xspace}
\newcommand{\matlab}{{\textsc{Matlab}}\xspace}
\newcommand{\simulink}{\textit{Simulink}\xspace}
\newcommand{\scr}{\textit{script\/}\xspace}
\newcommand{\scrs}{\textit{scripts\/}\xspace}
\definecolor{griset}{rgb}{.925, .925, .925}
\ifEPUB
\newenvironment{parrafoDestacado}
{
\HCode{<div class="parrafoDestacado">}
}
{
\HCode{</div>}
}
\else
\newsavebox{\mybox}
\newenvironment{parrafoDestacado}
{%
\fboxsep = 2ex
\fboxrule = .4pt
\begin{lrbox}{\mybox}%
\begin{minipage}{.85\textwidth-2\fboxsep}\itshape\parskip=2ex
}
{%
\end{minipage}
\end{lrbox}%
\begin{flushright}
\colorbox{griset}{\usebox{\mybox}}%
%\fcolorbox{black}{griset}{\usebox{\mybox}}%
\end{flushright}
}
\fi
\ifEPUB
\newenvironment{Resumen}
{
\HCode{<div class="Resumen">}
}
{
\HCode{</div>}
}
\else
\newsavebox{\myboxb}
\newenvironment{Resumen}
{%
\vspace*{-2.0cm}
\fboxsep = 0pt
\fboxrule = 0pt
\begin{lrbox}{\myboxb}%
\begin{minipage}{.85\textwidth}\itshape\parskip=2ex\parindent=2em
}
{%
\end{minipage}
\end{lrbox}%
\begin{flushright}
\usebox{\myboxb}%
\end{flushright}
\vspace{0.5cm}
}
\fi
\newcommand{\on}{\operatorname}
\ifcastellano
\newtheorem{teorema}{\upshape\bfseries Teorema}[section]
\newtheorem{lema}{\mdseries\scshape Lema}[section]
\newtheorem{proposicion}{\upshape\bfseries Proposici�n}[section]
\newtheorem{ejemplo}{\bfseries\scshape Ejemplo}[section]
\fi
\ifvalencia % Es mantenen els mateixos noms per compatibilitat, per� l'autor els pot personalitzar
\newtheorem{teorema}{\upshape\bfseries Teorema}[section]
\newtheorem{lema}{\mdseries\scshape Lema}[section]
\newtheorem{proposicion}{\upshape\bfseries Proposici�}[section]
\newtheorem{ejemplo}{\bfseries\scshape Exemple}[section]
\fi
\ifenglish
\newtheorem{teorema}{\upshape\bfseries Theorem}[section]
\newtheorem{lema}{\mdseries\scshape Lemma}[section]
\newtheorem{proposicion}{\upshape\bfseries Proposition}[section]
\newtheorem{ejemplo}{\bfseries\scshape Example}[section]
\fi
\newcommand
{\parBlanca}
{\clearpage{\thispagestyle{empty}\cleardoublepage}}
当我编译时,出现以下错误:
未指定 \title。\cleardoublepage
包 inputenc 错误:在输入编码“utf8”中,使用的键盘字符未定义(inputenc)。 \cleardoublepage
初始模板未使用 utf8,但我在命令 \usepackage[utf8]{inputenc} 中对其进行了更改,因为我需要它。问题出在 \maketitle 命令中,因为当我删除它时,它会编译它,但没有封面页。我如何使用 \maketitle 命令而不出现这些错误?