git.iko.soy/typeable/pandoc
on master help sign in
default.ms: Add settings for document variables like width.
commitaf57de0b277b26cc839a1c3862a2381f3a35986d authorJohn MacFarlane <jgm@berkeley.edu> dateFri 24 Mar 2017, 21:36 (10 years ago) parent1e13e98
3 files changed+60−5
Makefile+1−1 data/templates/default.ms+29−2 test/writer.ms+30−2
Makefile+1−1
@@ -4,7 +4,7 @@ sourcefiles=$(shell find pandoc.hs src test -name '*.hs')
44BRANCH?=master
55
66quick:
7− stack install --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4 --hide-successes'
7+ stack install --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4 --hide-successes $(TESTARGS)'
88
99full:
1010 stack install --flag 'pandoc:embed_data_files' --test --test-arguments='-j4' --pedantic
data/templates/default.ms+29−2
@@ -1,5 +1,5 @@
1+.\" **** Custom macro definitions *********************************
12.mso www.tmac
2−.\" **** Custom macro definitions ****
33.\" * Super/subscript
44.\" (https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html)
55.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u]
@@ -12,7 +12,32 @@
1212.ce
1313\l'20'
1414..
15−.\" **********************************
15+.\" **** Settings *************************************************
16+.\" text width
17+.nr LL 5.5i
18+.\" left margin
19+.nr PO 1.25i
20+.\" top margin
21+.nr HM 1.25in
22+.\" bottom margin
23+.nr FM 1.25in
24+.\" header/footer width
25+.nr LT \n[LL]
26+.\" point size (pt x 1000)
27+.nr PS 10000
28+.\" line height (pt x 1000)
29+.nr VS 12000
30+.\" font family: A, BM, H, HN, N, P, T, ZCM
31+.fam T
32+.\" paragraph indent
33+.nr PI 0
34+.\" interparagraph space
35+.nr PD 0.33v
36+.\" footnote width
37+.nr FL \n[LL]
38+.\" footnote point size
39+.nr FPS (\n[PS] - 2000)
40+.\" ***************************************************************
1641$if(adjusting)$
1742.ad $adjusting$
1843$endif$
@@ -48,6 +73,8 @@ $endfor$
4873$for(include-before)$
4974$include-before$
5075$endfor$
76+.\" 1 column (use .2C for two column)
77+.1C
5178$body$
5279$if(toc)$
5380$toc$
test/writer.ms+30−2
@@ -1,4 +1,5 @@
1−.\" **** Custom macro definitions ****
1+.\" **** Custom macro definitions *********************************
2+.mso www.tmac
23.\" * Super/subscript
34.\" (https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html)
45.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u]
@@ -11,7 +12,32 @@
1112.ce
1213\l'20'
1314..
14−.\" **********************************
15+.\" **** Settings *************************************************
16+.\" text width
17+.nr LL 5.5i
18+.\" left margin
19+.nr PO 1.25i
20+.\" top margin
21+.nr HM 1.25in
22+.\" bottom margin
23+.nr FM 1.25in
24+.\" header/footer width
25+.nr LT \n[LL]
26+.\" point size (pt x 1000)
27+.nr PS 10000
28+.\" line height (pt x 1000)
29+.nr VS 12000
30+.\" font family: A, BM, H, HN, N, P, T, ZCM
31+.fam T
32+.\" paragraph indent
33+.nr PI 0
34+.\" interparagraph space
35+.nr PD 0.33v
36+.\" footnote width
37+.nr FL \n[LL]
38+.\" footnote point size
39+.nr FPS (\n[PS] - 2000)
40+.\" ***************************************************************
1541.hy
1642.EQ
1743delim ||
@@ -23,6 +49,8 @@ John MacFarlane
2349.AU
2450Anonymous
2551.ND "July 17, 2006"
52+.\" 1 column (use .2C for two column)
53+.1C
2654.LP
2755This is a set of tests for pandoc.
2856Most of them are adapted from