diff options
author | Benjamin Chausse <benjaminchausse@gmail.com> | 2019-05-28 15:35:17 -0400 |
---|---|---|
committer | Benjamin Chausse <benjaminchausse@gmail.com> | 2019-05-28 15:35:17 -0400 |
commit | 108819b8d4039c5a3daad74c4773e6f3466d29f2 (patch) | |
tree | acd0694b927ce31a1aa6df066b1704237db6d6e9 | |
parent | 7d24844312e7359434ab91b858c04e606d82a316 (diff) |
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
-rwxr-xr-x | groffdown | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |