Advertisement
CristianCantoro

template.tex

Dec 2nd, 2018
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.19 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{amssymb,amsmath}
  3. \usepackage{ifxetex,ifluatex}
  4. \usepackage{graphicx,grffile}
  5. \usepackage{hyperref}
  6. \usepackage{fancyvrb}
  7. \usepackage{booktabs}
  8. \usepackage[left=2cm, right=2cm, bottom=3cm]{geometry}
  9.  
  10. \ifxetex
  11.  \usepackage{polyglossia}
  12. \else
  13.  \usepackage[utf8]{inputenc}
  14.  \usepackage[T1]{fontenc}
  15.  \usepackage[italian]{babel}
  16. \fi
  17.  
  18. \providecommand{\tightlist}{%
  19.   \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  20.  
  21. \renewcommand\thesection{}          % Niente numeri attorno alle section
  22. \renewcommand\thesubsection{}       % Niente numeri attorno alle subsection
  23. \setlength\parindent{0pt}
  24.  
  25. $if(header)$
  26. \input{$header$}
  27. $endif$
  28.  
  29.  
  30. \begin{document}
  31. \noindent {\Large Algoritmi e Strutture Dati}
  32. \vspace{0.5cm}
  33.  
  34. \noindent {\Huge $titolo$ (\texttt{$breve$}$if(tempo)$, $tempo$ s$endif$)}
  35.  
  36. $body$
  37.  
  38. \section{Esempi di input/output}
  39.  
  40. $for(samples)$
  41.    \noindent
  42.    \begin{tabular}{p{11cm}|p{5cm}}
  43.    \toprule
  44.    \textbf{File \texttt{input.txt}}
  45.    & \textbf{File \texttt{output.txt}}
  46.    \\
  47.    \midrule
  48.    \scriptsize
  49.   \VerbatimInput{$samples.input$}
  50.    &
  51.    \scriptsize
  52.   \VerbatimInput{$samples.output$}
  53.    \\
  54.    \bottomrule
  55.    \end{tabular}
  56.    \newline
  57. $endfor$
  58.  
  59. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement