mirror of
https://github.com/YunoHost/project-organization.git
synced 2024-09-03 19:56:35 +02:00
Add PDF/latex template
This commit is contained in:
parent
bc3e7ca958
commit
c98794be26
3 changed files with 49 additions and 0 deletions
BIN
support-self-hosting/logo_ssh.png
Normal file
BIN
support-self-hosting/logo_ssh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
10
support-self-hosting/make_pdf.sh
Normal file
10
support-self-hosting/make_pdf.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p .work
|
||||||
|
cp *.png .work/
|
||||||
|
CONTENT=$(pandoc --from=markdown --to=latex statuts-fr.md | sed 's@\\@\\\\@g' | sed ':a;N;$!ba;s@\n@\\n@g')
|
||||||
|
sed "s@{{CONTENT}}@${CONTENT}@g" template_latex.tex > .work/statuts-fr.tex
|
||||||
|
cd .work/
|
||||||
|
pdflatex statuts-fr.tex
|
||||||
|
cp statuts-fr.pdf ../
|
||||||
|
|
39
support-self-hosting/template_latex.tex
Normal file
39
support-self-hosting/template_latex.tex
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
\documentclass[9pt]{article}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage[francais]{babel}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{lmodern, alltt, color, geometry, multicol, eurosym, graphicx, fancyhdr}
|
||||||
|
\usepackage[hyperindex=true, colorlinks=true, urlcolor=black, linkcolor=black, breaklinks=true]{hyperref}
|
||||||
|
\renewcommand{\thesection}{Article \arabic{section}}
|
||||||
|
\pagestyle{empty}
|
||||||
|
\geometry{hmargin=.6cm, vmargin=1.1cm}
|
||||||
|
\headsep 10pt
|
||||||
|
\addtolength{\parskip}{6pt}
|
||||||
|
\renewcommand{\ttdefault}{pcr}
|
||||||
|
\setlength{\parindent}{0cm}
|
||||||
|
\renewcommand*{\familydefault}{\sfdefault}
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\renewcommand{\headrulewidth}{0pt}
|
||||||
|
\fancyhead{}
|
||||||
|
\makeatletter
|
||||||
|
\renewcommand\section{\@startsection {section}{1}{\z@}{-2ex \@plus -1ex \@minus -.2ex}{.4ex \@plus.2ex}{\normalfont\bfseries\scshape}}
|
||||||
|
\makeatother
|
||||||
|
\author{Support Self-Hosting}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\begin{tabular}{ l r }
|
||||||
|
\begin{minipage}{5.3cm}
|
||||||
|
\includegraphics[width=130pt]{logo_ssh.png}
|
||||||
|
\end{minipage} &
|
||||||
|
\begin{minipage}{14cm}
|
||||||
|
\begin{center}
|
||||||
|
{\huge \textbf{Statuts} de l'association \emph{Support Self-Hosting}}
|
||||||
|
\end{center}
|
||||||
|
\end{minipage}
|
||||||
|
\end{tabular}
|
||||||
|
\vspace{0.1cm}
|
||||||
|
\begin{multicols}{2}
|
||||||
|
|
||||||
|
{{CONTENT}}
|
||||||
|
|
||||||
|
\end{document}
|
Loading…
Reference in a new issue