我正在写一个项目关系,并且已经基本实现了我想要的。有些东西让我很烦,我一直在尝试修复它,但没有成功。第一页有大学的详细信息、项目名称和其他数据;不幸的是,它没有水平对齐到中间,而是稍微向左对齐,见下图。我正在使用标题包。
代码:
% !Tex spellcheck = it_IT
\documentclass[12pt,a4paper]{scrbook}%{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,english,italian]{babel}
\usepackage{lmodern}
\usepackage{url}
\usepackage{color}
\usepackage{titling}
\usepackage{graphicx}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{BOONDOX-cal}
\usepackage{eucal}
\usepackage{float}
\usepackage[11pt]{moresize}
\usepackage{quoting, caption}
\usepackage[backend=biber]{biblatex}
\usepackage[autostyle,italian=guillemets]{csquotes}
\addbibresource{bibliography.bib}
\usepackage[
n,
operators,
advantage,
sets,
adversary,
landau,
probability,
notions,
logic,
ff,
mm,
primitives,
events,
complexity,
asymptotics,
keys]{cryptocode}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linktoc=all,
linkcolor=black
}
\quotingsetup{font=Large}
\theoremstyle{plain}
\newtheorem{teorema}{Teorema}
\theoremstyle{definition}
\newtheorem{defn}{Definizione}
\newtheorem{corollario}{Corollario}
\newtheorem{lemma}{Lemma}
\setcounter{section}{1}
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\newcommand{\greco}[1]{
\begin{otherlanguage*}{greek}#1\end{otherlanguage*}}
\nocite{*}
\begin{document}
\pretitle{
\begin{center}
\vspace*{-8\baselineskip}
\Huge{Università degli studi di Brescia} \\
\huge{Facoltà di Ingegneria} \\
\LARGE{Dipartimento di Ingegneria dell'Informazione} \\
%\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\vspace*{2\baselineskip}
\LARGE
\includegraphics[height=200px]{unibs.png} \\ [\bigskipamount]
\vspace*{\baselineskip}
}
\posttitle{
\end{center}
}
\preauthor{
\vspace*{5\baselineskip}
\begin{flushright}
\large
Docente:\\
Luca Giuzzi
\end{flushright}
\vspace*{-5\baselineskip}
\begin{flushleft}
\large
}
\postauthor{
\end{flushleft}
}
\title {CRYPTO RANSOMWARE \\ Analisi dei sistemi crypto ransomware}
\author{Sukhdev Mohan \\ matr. 86141}
\date{}
\begin{titlingpage}
\maketitle
\end{titlingpage}
\newpage %\thispagestyle{empty}\mbox{} %void page for separation purpose
\vspace*{\fill}
\thispagestyle{empty}
\begin{quoting}
\em{``Mathematical reasoning may be regarded rather schematically as the exercise of a combination of two facilities, which we may call intuition and ingenuity.''}
\medskip
\raggedleft
{\rightline{---Alan Turing}}
\end{quoting}
\vspace*{\fill}
\newpage
\tableofcontents
\newpage
\chapter{Introduzione}
\input{intro}
\chapter{La matematica per cifrare Informazioni}
\input{cryptomath}
\section{Basi di Crittografia}
\input{basi-crypto}
\subsection{RSA}
\input{rsa}
\subsection{AES}
\input{aes}
\chapter{Prospettiva dell'attaccante}
\section{Impiego della Crittografia nella costruzione di applicazioni Malevole}
\input{applicazioni-malevole}
\section{Approfondimento: Crypto Ransomware}
\input{crypto-ransomware}
\section{Caso di Studio: Locky Crypto Ransoware}
\subsection{Dissezione}
\subsection{Diffusione}
\subsection{Infezione}
\subsection{Recupero}
\subsection{Pagamento: Bitcoin}
\subsection{Prevenzione}
\chapter{Conclusione}
\cleardoublepage
\phantomsection
\printbibliography
\newpage
\end{document}
结果是:
答案1
您可以\newgeometry
在环境一开始就使用以下命令titlingpage
:
\documentclass[12pt,a4paper]{scrbook}%{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,english,italian]{babel}
\usepackage{lmodern}
\usepackage{url}
\usepackage{color}
\usepackage{titling}
\usepackage{graphicx}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{BOONDOX-cal}
\usepackage{eucal}
\usepackage{float}
\usepackage[11pt]{moresize}
\usepackage{quoting, caption}
\usepackage[backend=biber]{biblatex}
\usepackage[autostyle,italian=guillemets]{csquotes}
\addbibresource{bibliography.bib}
%\usepackage[
%n,
%operators,
%advantage,
%sets,
%adversary,
%landau,
%probability,
%notions,
%logic,
%ff,
%mm,
%primitives,
%events,
%complexity,
%asymptotics,
%keys]{cryptocode}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linktoc=all,
linkcolor=black
}
\quotingsetup{font=Large}
\theoremstyle{plain}
\newtheorem{teorema}{Teorema}
\theoremstyle{definition}
\newtheorem{defn}{Definizione}
\newtheorem{corollario}{Corollario}
\newtheorem{lemma}{Lemma}
\setcounter{section}{1}
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\newcommand{\greco}[1]{
\begin{otherlanguage*}{greek}#1\end{otherlanguage*}}
\usepackage{geometry}
\nocite{*}
\begin{document}
\pretitle{
\begin{center}
\vspace*{-8\baselineskip}
\Huge{Università degli studi di Brescia} \\
\huge{Facoltà di Ingegneria} \\
\LARGE{Dipartimento di Ingegneria dell'Informazione} \\
%\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\vspace*{2\baselineskip}
\LARGE
\includegraphics[height=200px]{unibs.png} \\ [\bigskipamount]
\vspace*{\baselineskip}
}
\posttitle{
\end{center}
}
\preauthor{
\vspace*{5\baselineskip}
\begin{flushright}
\large
Docente:\\
Luca Giuzzi
\end{flushright}
\vspace*{-5\baselineskip}
\begin{flushleft}
\large
}
\postauthor{
\end{flushleft}
}
\title {CRYPTO RANSOMWARE \\ Analisi dei sistemi crypto ransomware}
\author{Sukhdev Mohan \\ matr. 86141}
\date{}
\begin{titlingpage}
\newgeometry{hmargin = 3cm}
\maketitle
\end{titlingpage}
\newpage %\thispagestyle{empty}\mbox{} %void page for separation purpose
\vspace*{\fill}
\thispagestyle{empty}
\begin{quoting}
\em{``Mathematical reasoning may be regarded rather schematically as the exercise of a combination of two facilities, which we may call intuition and ingenuity.''}
\medskip
\raggedleft
{\rightline{---Alan Turing}}
\end{quoting}
\vspace*{\fill}
\newpage
\tableofcontents
\newpage
\chapter{Introduzione}
\input{intro}
\chapter{La matematica per cifrare Informazioni}
\input{cryptomath}
\section{Basi di Crittografia}
\input{basi-crypto}
\subsection{RSA}
\input{rsa}
\subsection{AES}
\input{aes}
\chapter{Prospettiva dell'attaccante}
\section{Impiego della Crittografia nella costruzione di applicazioni Malevole}
\input{applicazioni-malevole}
\section{Approfondimento: Crypto Ransomware}
\input{crypto-ransomware}
\section{Caso di Studio: Locky Crypto Ransoware}
\subsection{Dissezione}
\subsection{Diffusione}
\subsection{Infezione}
\subsection{Recupero}
\subsection{Pagamento: Bitcoin}
\subsection{Prevenzione}
\chapter{Conclusione}
\cleardoublepage
\phantomsection
\printbibliography
\newpage
\end{document}