\documentclass [11pt, a4paper]{article} \usepackage[main= italian, english]{babel} \usepackage{enumitem} \usepackage{forest} \usepackage{graphicx} \usepackage[hidelinks]{hyperref} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{pxfonts} \usepackage{textcomp} \usepackage[normalem]{ulem} \usepackage{geometry} \AfterEndEnvironment{figure}{\noindent} \geometry{ a4paper, top=30mm, } \forestset{qtree/.style={for tree={parent anchor=south, child anchor=north,align=center,inner sep=0pt}}} \lstset{ upquote=true, inputencoding=utf8, extendedchars=true, literate={à}{{\`a}}1, % Accept à in `lstlisting` environments showstringspaces=false } \lstdefinestyle{SQLu}{ language=SQL, basicstyle=\small\ttfamily, keywordstyle=\bfseries, moredelim=[is][\underbar]{_}{_}, keepspaces=true, morekeywords={AFTER,BEFORE,RAISE,ABORT} } \selectlanguage{italian} \setcounter{section}{-1} %\newcommand{\folder}{primo_compitino} \newcommand{\folder}{secondo_compitino} % First page information \title{\textbf{Basi di dati prof. Ghelli}\linebreak\textit{``Una cervecita fresca"}} \author{Davide Testa 613565} \date{2020-05-30} \begin{document} \maketitle % Insert the title, author and date \section{Descrizione di massima del dominio (testo)}\label{sec:testo} \input{\folder/testo.tex} \clearpage \section{Descrizione del dominio}\label{sec:dominio} \input{\folder/dominio.tex} % \clearpage \section{Schema concettuale}\label{sec:schema-concettuale} La figura~\ref{fig:schema-concettuale} mostra lo schema concettuale in formato grafico. \begin{figure}[hb] \centering \includegraphics[width=\linewidth]{\folder/schema_concettuale.pdf} \caption{Schema concettuale in formato grafico} \label{fig:schema-concettuale} \end{figure} \input{\folder/schema_concettuale.tex} \clearpage \section{Schema logico relazionale}\label{sec:schema-logico} La figura~\ref{fig:schema-logico} mostra lo schema logico relazionale in formato grafico.\\ \begin{figure}[htb] \centering \includegraphics[width=\linewidth]{\folder/schema_logico.pdf} \caption{Schema logico relazionale in formato grafico} \label{fig:schema-logico} \end{figure} \input{\folder/schema_logico.tex} \clearpage \section{Interrogazioni}\label{sec:queries} \input{\folder/queries.tex} \vskip2pc \section{Piani di accesso}\label{sec:piani} \input{\folder/piani_di_accesso.tex} \vfill \input{\folder/source_code.tex} \end{document}