aboutsummaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-22 12:19:46 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-22 12:20:23 +0200
commit2906807f4341eef0e23f91356675595c89715490 (patch)
tree8124124d9c0d5f33c42bcfa3d95e19f02f1955e5 /pdf
parent2c6a08c5c3b0f7346fbfa3e2ee86b248ef6d78f7 (diff)
downloaddna-backup-2906807f4341eef0e23f91356675595c89715490.tar.gz
dna-backup-2906807f4341eef0e23f91356675595c89715490.zip
first add of latex doc
Diffstat (limited to 'pdf')
-rw-r--r--pdf/.gitignore9
-rw-r--r--pdf/Makefile23
-rw-r--r--pdf/doc.tex62
3 files changed, 94 insertions, 0 deletions
diff --git a/pdf/.gitignore b/pdf/.gitignore
new file mode 100644
index 0000000..ea850a7
--- /dev/null
+++ b/pdf/.gitignore
@@ -0,0 +1,9 @@
+# Latex files
+*.aux
+*.fdb_latexmk
+*.fls
+*.out
+*.log
+*.pdf
+*.synctex.gz
+*.toc
diff --git a/pdf/Makefile b/pdf/Makefile
new file mode 100644
index 0000000..8df3d66
--- /dev/null
+++ b/pdf/Makefile
@@ -0,0 +1,23 @@
+FILES = doc
+TEX = $(FILES:%=%.tex)
+PDF = $(FILES:%=%.pdf)
+
+# Debug flags
+ifdef DEBUG
+LATEXMK_FLAGS += -verbose
+else
+LATEXMK_FLAGS += -quiet
+endif
+
+all pdf: $(PDF)
+
+%.pdf: %.tex
+ latexmk $(LATEXMK_FLAGS) -pdf -f $<
+
+mostlyclean:
+ latexmk $(LATEXMK_FLAGS) -c
+
+clean:
+ latexmk $(LATEXMK_FLAGS) -C
+
+.PHONY: all pdf mostlyclean clean
diff --git a/pdf/doc.tex b/pdf/doc.tex
new file mode 100644
index 0000000..33d691c
--- /dev/null
+++ b/pdf/doc.tex
@@ -0,0 +1,62 @@
+\documentclass[a4paper,twocolumn,french]{article}
+
+% Set page dimentions
+\usepackage[margin=22mm]{geometry}
+
+% Packages for french documents
+\usepackage[french]{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+
+% Define some colors
+\usepackage{color}
+\definecolor{string}{RGB}{100, 200, 0}
+\definecolor{comment}{RGB}{150, 150, 150}
+\definecolor{identifier}{RGB}{100, 100, 200}
+
+% Source code style
+\usepackage{listings}
+\lstset{
+ basicstyle=\footnotesize\ttfamily, % sets font style for the code
+ frame=single, % adds a frame around the code
+ showstringspaces=false, % underline spaces within strings
+ tabsize=4, % sets default tabsize to 2 spaces
+ breaklines=true, % sets automatic line breaking
+ breakatwhitespace=true, % sets if automatic breaks should only happen at whitespace
+ keywordstyle=\color{magenta}, % sets color for keywords
+ stringstyle=\color{string}, % sets color for strings
+ commentstyle=\color{comment}, % sets color for comments
+ emphstyle=\color{identifier}, % sets color for comments
+}
+
+% Hyperlinks
+\usepackage[hyphens]{url}
+\usepackage[hidelinks]{hyperref}
+
+% Graphics
+\usepackage{graphicx}
+\graphicspath{ {img} }
+
+\title{DNA-Backup}
+
+\date{Octobre 2021}
+
+\author{Nicolas Peugnet}
+
+\begin{document}
+
+\maketitle
+
+\tableofcontents
+
+
+% \begin{figure}[h]
+% \centering
+% \includegraphics[width=0.4\linewidth]{wtf.png} % changer ici l'image
+% \caption{WTF ??\protect\footnotemark}
+% \label{fig:wtf}
+% \end{figure}
+% \footnotetext{Cette image n'a été ajouté que pour avoir un modèle et pouvoir tester l'inclusion d'images}
+
+
+\end{document}