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 21fdfda02fe56c4d3a38d7faffe043dc10026d9a parent 42353f027a2121327d8503172d80709f972bfe42 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 16 Jul 2025 15:10:49 +0200 Nouveau type de fichier "fiche" Commen un rapport sans nom d'auteurice et date Diffstat:
A | fiche | | | 23 | +++++++++++++++++++++++ |
A | layouts/fiche | | | 16 | ++++++++++++++++ |
2 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/fiche b/fiche @@ -0,0 +1,23 @@ +#! /usr/bin/env dash + +tmpf=$(mktemp) +trap "rm -rf $tmpf" EXIT + +save() cat >> "$tmpf" +show() { + sed -E "s/([ '])\"/\1« /g;s/^\"/«/g; s/(.)\"([ .)])/\1 »\2/g" "$tmpf" | + lowdown -tms | + sed -E 's/^\.sp -[0-9].*$/.sp -0.5/' | + sed -E 's/.PP/.LP/g' +} + +alias section:='<<\endsection save' + +alias title:="title" +title() title="$*" + +. layouts/fiche + +. "$1" + +layout diff --git a/layouts/fiche b/layouts/fiche @@ -0,0 +1,16 @@ +layout() { +<<@@ cat +.nr PS 11 +.nr PD 0.9v +.nr PO 0.8i +.nr LL 6.65i +.nr HM 0.7i +.nr FM 0.75i +.ds CH + +.TL +$title +.AU +$(show) +@@ +}