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 |

letter (380B)


      1 #! /usr/bin/env dash
      2 
      3 tmpdir=$(mktemp -d)
      4 trap "rm -rf $tmpdir" EXIT
      5 
      6 save() cat >> "$tmpdir/$1"
      7 show() {
      8 	lowdown -tms "$tmpdir/$1" | sed -E 's/.PP/.LP/g'
      9 }
     10 
     11 alias section:='<<\endsection save'
     12 
     13 alias title:="title"
     14 title() title="$*"
     15 
     16 alias author:="author"
     17 author() author="$*"
     18 
     19 alias description:="description"
     20 description() description="$*"
     21 
     22 . layouts/letter
     23 
     24 . "$1"
     25 
     26 layout