summaryrefslogtreecommitdiffstats
path: root/sed/latex.sed
blob: 1c46d3e273f4d17919ae23c19e2c249bf78bb87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sed
#
# Prepare for ODT
#
# This should be used after the markdown filter
/^\[\[!meta/,/^\]\]/ {
    s/^\[\[!meta/---/
    s/^\]\]/.../
    s/ *\(.*\)="\(.*\)"/\1: \2/
}

/^\[\[!tag/ d
/^\[\[!toc/ d
/^\*\*Innehåll\*\*$/ d

s/DNS/\\textsc{dns}/
s/ISBN/\\textsc{isbn}/