-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First release of the class 🎉
- Loading branch information
Showing
12 changed files
with
899 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,81 @@ | ||
# secreport - A class for reports for the Computer Security course of the University of Namur | ||
# secreport - Reports for the Computer Security course of the University of Namur | ||
`secreport` is a $\LaTeX$ class that facilitates the writing of reports for the practical classes of the Computer Security course of the [University of Namur](https://unamur.be). | ||
|
||
## Install | ||
## Installation | ||
To use this class, you can either compile `secreport.ins` with your favourite $\LaTeX$ compiler, or download the latest release to get `secreport.cls`. Then, **download a copy of the University's logo** [here](https://pds.unamur.be/presse/logos/unamur.png). | ||
|
||
## Documentation | ||
Once you have them, place them both in the root folder of your project and import the class in your main `.tex` file as you would import a normal document class, with `\documentclass[<options>]{secreport}`. | ||
|
||
Similarly, to get a copy of the documentation, you can either compile `secreport.dtx` or get it from the latest release. | ||
|
||
## Usage | ||
A blank project with a pre-made structure is available in the `examples` folder as well as on [Overleaf](https://www.overleaf.com/read/gnnvbfvnkchs), where you can duplicate it for your own use. | ||
|
||
Check the documentation for examples and more detailed instructions. | ||
|
||
### File Structure | ||
Simply create a folder in which you'll put your challenges as separate `.tex` files. | ||
You can name it whatever you want, just be sure to tell the class with `\challengespath{<folder name>}`. | ||
|
||
As you would probably have done it anyway, you have to name your challenges with a prefix. Again, whatever you want, but you probably want something simple. Use `\challengesprefix{<prefix>}` to setup your chosen prefix. | ||
|
||
Once this is all set, use `\includechallenges{<num>}` in your document environment to import your challenges within your main file, `<num>` being the number of challenges you want to import. | ||
|
||
#### **Example** | ||
``` | ||
. | ||
├── Challenges | ||
│ ├── C1.tex | ||
│ ├── C2.tex | ||
│ ├── C3.tex | ||
│ └── C4.tex | ||
├── main.tex | ||
├── unamur.png | ||
└── secreport.cls | ||
``` | ||
<details> | ||
<summary>LaTeX header code</summary> | ||
|
||
```LaTeX | ||
\documentclass[12pt,a4paper,french]{secreport} | ||
\usepackage[utf8]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
\challengespath{Challenges} | ||
\challengesprefix{C} | ||
\begin{document} | ||
\includechallenges{4} | ||
\end{document} | ||
``` | ||
</details> | ||
|
||
### Title page | ||
The title page is typeset automatically by the class. The only thing you have to change is your report/group number, with `\reportnum{<num>}` and `\groupnum{<num>}` respectively. | ||
|
||
Once both are set, use `\maketitle` in your document environment, as per usual. | ||
|
||
### Text formatting | ||
To quickly typeset simple code-like text (e.g. a filename with extension), you can use `\code{<text>}`. | ||
|
||
To typeset paragraphs without a space between them, and without having to play | ||
with the ``\parskip`` length, use the ```noparskip``` environment. | ||
|
||
#### Highlighting source code | ||
To highlight source code, this class imports the [minted](https://ctan.org/pkg/minted) package. It is advised to read the [original documentation](http://mirrors.ctan.org/macros/latex/contrib/minted/minted.pdf) to master it properly, as it is way more extensive than what is described here. | ||
|
||
Use the `minted` environment to highlight multiple lines. | ||
```LaTeX | ||
\begin{minted}{<language>} | ||
<code> | ||
\end{minted} | ||
``` | ||
|
||
Use `\mintinline{<language>}{<code>}` to highlight a single line of code. | ||
This box will not break, so be careful about overfull boxes. | ||
|
||
To import a whole file, use ```\inputminted{<language>}{<filename>}```. | ||
|
||
## License | ||
This work may be distributed and/or modified under the conditions of the [LaTeX Project Public License (LPPL)](http://www.latex-project.org/lppl.txt), version 1.3c or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
\section{Problème 1} | ||
|
||
\subsection{Explication du problème} | ||
|
||
\subsection{Ressources utilisées} | ||
\begin{itemize} | ||
\item | ||
\item \href{}{Notre script} | ||
\end{itemize} | ||
|
||
\subsection{Analyse des données} | ||
|
||
\subsection{Marche suivie} | ||
|
||
\subsection{Réponse} | ||
|
||
\subsection{Recommandations pour éviter ce problème de sécurité} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\section{Problème 2} | ||
|
||
\subsection{Explication du problème} | ||
|
||
\subsection{Ressources utilisées} | ||
|
||
\begin{itemize} | ||
\item | ||
\item \href{}{Notre script} | ||
\end{itemize} | ||
|
||
\subsection{Analyse des données} | ||
|
||
\subsection{Marche suivie} | ||
|
||
\subsection{Réponse} | ||
|
||
\subsection{Recommandations pour éviter ce problème de sécurité} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\section{Problème 3} | ||
|
||
\subsection{Explication du problème} | ||
|
||
\subsection{Ressources utilisées} | ||
|
||
\begin{itemize} | ||
\item | ||
\item \href{}{Notre script} | ||
\end{itemize} | ||
|
||
\subsection{Analyse des données} | ||
|
||
\subsection{Marche suivie} | ||
|
||
\subsection{Réponse} | ||
|
||
\subsection{Recommandations pour éviter ce problème de sécurité} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\section{Problème 4} | ||
|
||
\subsection{Explication du problème} | ||
|
||
\subsection{Ressources utilisées} | ||
|
||
\begin{itemize} | ||
\item | ||
\item \href{}{Notre script} | ||
\end{itemize} | ||
|
||
\subsection{Analyse des données} | ||
|
||
\subsection{Marche suivie} | ||
|
||
\subsection{Réponse} | ||
|
||
\subsection{Recommandations pour éviter ce problème de sécurité} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
% Encodage | ||
\usepackage[utf8]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
|
||
% Alignement | ||
\usepackage{ragged2e} | ||
|
||
% Math | ||
\usepackage{amsmath} | ||
\usepackage{amsfonts} | ||
\usepackage{amssymb} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% Chemin des images | ||
\graphicspath{ {./Images/} } | ||
|
||
% Chemin des challenges | ||
\challengespath{Challenges} % => Les challenges se trouvent dans le dossier "Challenges" | ||
\challengesprefix{P} % => Chaque fichier commence par "P" suivi du numéro du challenge | ||
|
||
% URLs & attributs PDF | ||
\hypersetup{ | ||
pdfinfo={ | ||
Author={John Lorem, Paul Ipsum, Wiliam Dolor} | ||
} | ||
} | ||
|
||
% Points à la place des tirets pour les listes | ||
% \renewcommand{\labelitemi}{\textbullet} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\documentclass[12pt,a4paper,french]{secreport} | ||
\input{Utils/packages} | ||
\input{Utils/setup} | ||
|
||
\author{John Lorem \and | ||
Paul Ipsum \and | ||
Wiliam Dolor} | ||
\reportnum{4} | ||
\groupnum{7} | ||
|
||
\begin{document} | ||
\maketitle | ||
\tableofcontents | ||
|
||
\includechallenges{4} | ||
\end{document} |
Oops, something went wrong.