Queer European MD passionate about IT

main.tex 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. \documentclass [11pt, a4paper]{article}
  2. \usepackage[main= italian, english]{babel}
  3. \usepackage{enumitem}
  4. \usepackage{forest}
  5. \usepackage{graphicx}
  6. \usepackage[hidelinks]{hyperref}
  7. \usepackage[utf8]{inputenc}
  8. \usepackage{listings}
  9. \usepackage{pxfonts}
  10. \usepackage{textcomp}
  11. \usepackage[normalem]{ulem}
  12. \usepackage{geometry}
  13. \AfterEndEnvironment{figure}{\noindent}
  14. \geometry{
  15. a4paper,
  16. top=30mm,
  17. }
  18. \forestset{qtree/.style={for tree={parent anchor=south,
  19. child anchor=north,align=center,inner sep=0pt}}}
  20. \lstset{
  21. upquote=true,
  22. inputencoding=utf8,
  23. extendedchars=true,
  24. literate={à}{{\`a}}1, % Accept à in `lstlisting` environments
  25. showstringspaces=false
  26. }
  27. \lstdefinestyle{SQLu}{
  28. language=SQL,
  29. basicstyle=\small\ttfamily,
  30. keywordstyle=\bfseries,
  31. moredelim=[is][\underbar]{_}{_},
  32. keepspaces=true,
  33. morekeywords={AFTER,BEFORE,RAISE,ABORT}
  34. }
  35. \selectlanguage{italian}
  36. \setcounter{section}{-1}
  37. %\newcommand{\folder}{primo_compitino}
  38. \newcommand{\folder}{secondo_compitino}
  39. % First page information
  40. \title{\textbf{Basi di dati prof. Ghelli}\linebreak\textit{``Una cervecita fresca"}}
  41. \author{Davide Testa 613565}
  42. \date{2020-05-30}
  43. \begin{document}
  44. \maketitle % Insert the title, author and date
  45. \section{Descrizione di massima del dominio (testo)}\label{sec:testo}
  46. \input{\folder/testo.tex}
  47. \clearpage
  48. \section{Descrizione del dominio}\label{sec:dominio}
  49. \input{\folder/dominio.tex}
  50. % \clearpage
  51. \section{Schema concettuale}\label{sec:schema-concettuale}
  52. La figura~\ref{fig:schema-concettuale} mostra lo schema concettuale in formato
  53. grafico.
  54. \begin{figure}[hb]
  55. \centering
  56. \includegraphics[width=\linewidth]{\folder/schema_concettuale.pdf}
  57. \caption{Schema concettuale in formato grafico}
  58. \label{fig:schema-concettuale}
  59. \end{figure}
  60. \input{\folder/schema_concettuale.tex}
  61. \clearpage
  62. \section{Schema logico relazionale}\label{sec:schema-logico}
  63. La figura~\ref{fig:schema-logico} mostra lo schema logico relazionale in
  64. formato grafico.\\
  65. \begin{figure}[htb]
  66. \centering
  67. \includegraphics[width=\linewidth]{\folder/schema_logico.pdf}
  68. \caption{Schema logico relazionale in formato grafico}
  69. \label{fig:schema-logico}
  70. \end{figure}
  71. \input{\folder/schema_logico.tex}
  72. \clearpage
  73. \section{Interrogazioni}\label{sec:queries}
  74. \input{\folder/queries.tex}
  75. \vskip2pc
  76. \section{Piani di accesso}\label{sec:piani}
  77. \input{\folder/piani_di_accesso.tex}
  78. \vfill
  79. \input{\folder/source_code.tex}
  80. \end{document}