From 108819b8d4039c5a3daad74c4773e6f3466d29f2 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 28 May 2019 15:35:17 -0400 Subject: runs fully in stdout now (no .ms files created) Also, There is no .R1 .R2 now since you can just use the -c option while running refer --- groffdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groffdown b/groffdown index f13f96a..60e7721 100755 --- a/groffdown +++ b/groffdown @@ -5,7 +5,7 @@ dir=$(dirname "$file") base="${file%.*}" -output=$( sed -e '1s/---/\.R1\naccumulate\n\.R2\n\.EQ\ndelim\ $$\n\.EN\n/ +output=$( sed -e '1s/---/\.EQ\ndelim\ $$\n\.EN\n/ s/title:/\.TL\n/ s/author:/\.AU\n/ s/date:/\.ND\n/ @@ -51,5 +51,6 @@ output=$( sed -e '1s/---/\.R1\naccumulate\n\.R2\n\.EQ\ndelim\ $$\n\.EN\n/ # This script will compile the md document into a groff .ms file. # Good for reviewing compiled .ms text for debugging the ms output # as you code. -echo "$output" > "$base".ms +# echo "$output" > "$base".ms +echo "$output" # groff -ms $base.ms -T pdf > $base.pdf -- cgit v1.2.3