Skip to content

Commit

Permalink
Aggiornato Template
Browse files Browse the repository at this point in the history
Aggiunte configurazioni per hyperlinks, codice e output.
Aggiunta breve dimostrazione di come utilizzare le varie macro.
Aggiunto pdf per vedere immediatamente il risultato.
  • Loading branch information
ncvescera committed Dec 14, 2021
1 parent 56d340d commit f64f9c3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 8 deletions.
Binary file added template.pdf
Binary file not shown.
17 changes: 16 additions & 1 deletion template/content.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
\section{Nome del capitolo}
\label{sec:capitolo}
Aggiungi qui il contenuto della relazione !!\\
\ \\
Prova codice cmd
\begin{lstlisting}[style=cmd]
this is a code in cmd style ...
\end{lstlisting}
\ \\
Prova codice output

Aggiungi qui il contenuto della relazione !!
\begin{lstlisting}[style=output]
this is a code in output style ...
\end{lstlisting}
\ \\
Prova codice inline: \lstinline[style=cmd]|this is an inline code ...|\\
\ \\
Prova autoref: guarda \autoref{sec:capitolo}
4 changes: 0 additions & 4 deletions template/macros.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
\newcommand{\union}[2]{\underset{#1}\bigcup #2}
\newcommand{\inter}[2]{\underset{#1}\bigcap #2}

%% Compila questi campi !!

\newcommand{\esame}{Aggiungi il nome dell'esame}
\newcommand{\titolo}{Aggiungi il titolo della relazione}
\newcommand{\prof}{Nome Cognome}
Expand Down
5 changes: 3 additions & 2 deletions template/main.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\input{macros}
\input{settings/prelude}
\title{Titolo della relazione} %% inserire qui il titolo della relazione

\begin{document}
\input{macros}

\input{settings/frontmatter}
\newpage

Expand Down
16 changes: 15 additions & 1 deletion template/settings/prelude.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
\usepackage{graphicx}
\usepackage[utf8]{inputenc}

%% links
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
pdftitle={\titolo},
pdfpagemode=FullScreen,
}

\graphicspath{ {./img/} }


%% configurazione per i listing di codice
\usepackage{xcolor}
\usepackage{listings}
Expand All @@ -27,4 +41,4 @@
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false,
}
}

0 comments on commit f64f9c3

Please sign in to comment.