initial commit
This commit is contained in:
commit
f084a82ead
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.pdf
|
15
Makefile
Normal file
15
Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
docker: header/header.tex header/titlepage.tex ex.md
|
||||||
|
docker run -v ${PWD}:/host pandoc
|
||||||
|
|
||||||
|
rendu: header/header.tex header/titlepage.tex ex.md
|
||||||
|
pandoc -S -t latex \
|
||||||
|
ex.md \
|
||||||
|
--include-in-header header/header.tex \
|
||||||
|
-B header/titlepage.tex \
|
||||||
|
-o ex.pdf
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ex.{aux,nav,log,out,tex,toc,snm}
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
14
README.md
Normal file
14
README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## pandoc-rendu
|
||||||
|
|
||||||
|
LaTeX/pandoc template that I use to generate my reports.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Put your name in `authors`, the title in `title`, and change the rhead in
|
||||||
|
`header/header.tex`, and you're ready
|
||||||
|
|
||||||
|
Build with `make`, clean with `make clean`. Depends on `pandoc` and `TeXLive`.
|
||||||
|
|
||||||
|
### Licence
|
||||||
|
|
||||||
|
Published under a MIT licence
|
3
ex.md
Normal file
3
ex.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
## Exercise 1: Example
|
||||||
|
\q{Example question : ???}
|
||||||
|
Yes !
|
33
header/header.tex
Normal file
33
header/header.tex
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
% Original work by Clément 'wxcafé' Hertling
|
||||||
|
|
||||||
|
%\documentclass[a4paper,12pt]{article}
|
||||||
|
\usepackage[french]{babel}
|
||||||
|
\usepackage[left=3cm, right=3cm, top=3cm, bottom=3cm]{geometry}
|
||||||
|
\usepackage{alltt,graphicx}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage{multicol}
|
||||||
|
\author{\input{authors}}
|
||||||
|
\date{\today}
|
||||||
|
|
||||||
|
\hypersetup{
|
||||||
|
colorlinks=true,
|
||||||
|
linkcolor=black,
|
||||||
|
citecolor=black,
|
||||||
|
filecolor=black,
|
||||||
|
urlcolor=black,
|
||||||
|
}
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\let\theauthor\@author
|
||||||
|
\let\thedate\@date
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\lhead{\textsc\theauthor}
|
||||||
|
\rhead{\textsc IUTCV | RT2A1}
|
||||||
|
\renewcommand{\headrulewidth}{.5pt}
|
||||||
|
\renewcommand{\footrulewidth}{.5pt}
|
||||||
|
\rfoot{\textbf{\thepage}}
|
||||||
|
\newcommand{\q}[1]{\textit{#1}\\}
|
18
header/titlepage.tex
Normal file
18
header/titlepage.tex
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
\newgeometry{margin=1cm}
|
||||||
|
\begin{titlepage}
|
||||||
|
\textsc{\theauthor} \\
|
||||||
|
\textsc{\thedate} \\
|
||||||
|
\vspace{6cm}
|
||||||
|
\begin{center}
|
||||||
|
\textsc{%
|
||||||
|
\Large{%
|
||||||
|
\input{title}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\end{center}
|
||||||
|
\vfill
|
||||||
|
Ce document a été mis en page grâce à \LaTeX~version 3.14159265 sur un Lenovo
|
||||||
|
Thinkpad X240. Le code source du modèle de ce document est disponible
|
||||||
|
gratuitement sous une licence open-source sur \url{git.wxcafe.net}.
|
||||||
|
\end{titlepage}
|
||||||
|
\restoregeometry
|
Loading…
x
Reference in New Issue
Block a user