1
0

initial commit

This commit is contained in:
Wxcafé (Clément Hertling) 2015-09-08 20:19:47 +02:00
commit f084a82ead
8 changed files with 91 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pdf

15
Makefile Normal file
View 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
View 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

2
authors Normal file
View File

@ -0,0 +1,2 @@
Clément Hertling
% vim:ft=tex

3
ex.md Normal file
View File

@ -0,0 +1,3 @@
## Exercise 1: Example
\q{Example question : ???}
Yes !

33
header/header.tex Normal file
View 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
View 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

5
title Normal file
View File

@ -0,0 +1,5 @@
Exercice XX : Mise en page avec \LaTeX
\par
(Module YY)
% vim: set ft=tex: