roff-templates

Un dépôt contenant des templates catium pour roff - retour accueil

git clone git://bebou.netlib.re/roff-templates

Log | Files | Refs | README |

commit c4a8c5f107783e598f08ff3152875b67ebffb942
parent 338f4b911eb296f28b7ee958985d26df0e9c425e
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Wed, 25 Jun 2025 11:55:38 +0200

Template de rapport court et vraiment simpliste

Diffstat:
Alayouts/rapport | 18++++++++++++++++++
Arapport | 27+++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/layouts/rapport b/layouts/rapport @@ -0,0 +1,18 @@ +layout() { +<<@@ cat +.nr PS 12 +.nr PD 0.9v +.nr PO 0.8i +.nr LL 6.65i +.nr HM 0.6i +.nr FM 0.75i +.ds CH + +.TL +$title +.AU +$author +$date +$(show main) +@@ +} diff --git a/rapport b/rapport @@ -0,0 +1,27 @@ +#! /usr/bin/env dash + +tmpdir=$(mktemp -d) +trap "rm -rf $tmpdir" EXIT + +save() cat >> "$tmpdir/$1" +show() { + lowdown -tms "$tmpdir/$1" | sed -E 's/.PP/.LP/g' +} + +alias section:='<<\endsection save' + +alias title:="title" +title() title="$*" + +alias author:="author" +author() author="$*" + +alias date:="date" +date() date="$*" + + +. layouts/rapport + +. "$1" + +layout