-
Notifications
You must be signed in to change notification settings - Fork 29
/
pandocomatic.yaml
874 lines (873 loc) · 31.5 KB
/
pandocomatic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
# --------------------- Pandocomatic templates -------------------
# Remember: YAML requires SPACES NOT TABS, and indentation is
# important!!! Paths are relative to the Pandoc data dir; you can also
# use ./ to make them relative to the working directory.
settings:
recursive: true
follow-symlinks: false
skip: ['.*', 'pandocomatic.yaml']
match-files: 'first'
#-----------------------------------------------------------------
templates:
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: GENERAL ::::::::::::::::::::::::::::
#-----------------------------------------------------------------
#-----------------------------------------------------------------CROSSREF
crossref: # note crossref should come before citeproc!
preprocessors: [preprocessors/fixCrossref.rb] # allows to put crossref labels in styled captions
pandoc:
verbose: true # verbose by default
filter: pandoc-crossref # process crossrefs
metadata:
linkReferences: true
#-----------------------------------------------------------------INDEXING
indexing: # use indexing filter
pandoc:
lua-filter: convertIndex.lua
metadata:
doindex: true
#-----------------------------------------------------------------CITEPROC
refs:
pandoc:
verbose: true # verbose by default
citeproc: true
bibliography: Core.json #JSON faster than BIB, symlinked within Pandoc data dir
csl: csl/apa-ian.csl
citation-abbreviations: cite-abbr.json # some journal abbreviations
reference-links: true
metadata:
notes-after-punctuation: false
link-citations: true
link-bibliography: true
csl-hanging-indent: true
#-----------------------------------------------------------------BIBLATEX
biblatex:
pandoc:
biblatex: true # Enable biblatex
to: latex # Has to be LaTeX output
standalone: true # Generate full document
bibliography: Core.bib # The name of the bib-file.
metadata:
biblatexoptions: []
biblio-title: Bibliography # see variables for latex
biblio-style: []
#-----------------------------------------------------------------NATBIB
natbib:
pandoc:
natbib: true # Enable natbib
to: latex # Has to be LaTeX output
standalone: true # Generate full document
bibliography: Core.bib # The name of the bib-file.
metadata:
biblio-title: Bibliography # see variables for latex
biblio-style: numeric
#-----------------------------------------------------------------JATS
jats:
extends: [refs]
pandoc:
from: markdown
to: jats
standalone: true
lua-filter:
- filters/pagebreak.lua
- filters/abstract-section.lua
- filters/pretty-urls.lua
#-----------------------------------------------------------------PLAIN TXT
plain:
pandoc:
from: markdown
to: plain
template: templates/custom.plain
standalone: true
wrap: auto
columns: 80
tab-stop: 4
eol: lf
preserve-tabs: true
filter:
- filters/prependAbstract.rb #prepends abstract: metadata into the text
- filters/prependAll.rb #prepends institute:, comments: and keywords: metadata into the text
- filters/prependAuthor.rb #prepends authors
lua-filter:
- filters/modifyHeadings.lua #makes headings stand out a bit more
#-----------------------------------------------------------------PLAIN REFS
plain-refs:
extends: [plain,refs]
#-----------------------------------------------------------------PLAIN CROSSREF
plain-refs-crossref:
extends: [plain,crossref,refs]
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: ICML :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
icml:
pandoc:
from: markdown
to: icml
standalone: true
template: templates/custom.icml
#-----------------------------------------------------------------
#::::::::::::::::::::::::::: TYPST :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
#-----------------------------------------------------------------Standard
typst:
preprocessors: [preprocessors/removeImageDimensions.rb]
pandoc:
verbose: true
from: markdown
to: typst
standalone: true
template: custom.typst
table-of-contents: true
metadata-file: typst-plain.yaml
wrap: none
filter:
- filters/assimilateMetadata.rb
lua-filter:
- filters/pagebreak.lua # use \newpage{} also for HTML, DOCX, ODT & EPUB
- filters/typstFix.lua
#- filters/convertIndex.lua
- filters/list-table.lua
- filters/abstract-section.lua
- filters/pretty-urls.lua
metadata:
doindex: false
linestretch: '1.75'
#-----------------------------------------------------------------
typst-refs:
extends: [typst,refs]
pandoc:
to: typst-citations
#-----------------------------------------------------------------
typstpdf:
extends: typst-refs
cleanup: [postprocessors/typst2pdf]
#-----------------------------------------------------------------
typst-titlepage:
extends: [typst-refs]
metadata:
titlepage: true
titlepage-background: background.svg # WARNING: must be relative to compile folder
#-----------------------------------------------------------------
typst-titlepage-pdf:
extends: [typstpdf]
metadata:
titlepage: true
titlepage-background: background.svg # WARNING: must be relative to compile folder
#-----------------------------------------------------------------
typst-full:
extends: [crossref,typst-refs]
metadata:
doindex: true
#-----------------------------------------------------------------
typst-nativerefs:
extends: typst
pandoc:
to: typst
bibliography: Core.bib
csl: csl/apa-ian.csl
#-----------------------------------------------------------------
lapreprint:
extends: typst
pandoc:
to: typst
template: lapreprint.typst
toc: false
metadata:
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: DOCX :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
#-----------------------------------------------------------------DOCX
docx:
pandoc:
from: markdown
to: docx
standalone: true
filter:
#- filters/removeHR #remove horizontal rules
- filters/prependAll.rb # prepends institute:, comments: and keywords: metadata into the text
- filters/simplifyMetadata.rb #collapse down metadata "author: [name: affiliation:]" to author:
lua-filter:
- filters/convertIndex.lua # enable indexing
- filters/pagebreak.lua # use \newpage{} also for HTML, DOCX, ODT & EPUB
- filters/abstract-section.lua # move an abstract heading to metadata
- filters/pretty-urls.lua # clean up URLs a bit
reference-doc: templates/custom.docx
#-----------------------------------------------------------------DOCX REFS
docx-refs:
extends: [docx,refs]
#-----------------------------------------------------------------DOCX standard fonts
docx-refs-calibri:
extends: [docx-refs]
pandoc:
reference-doc: templates/custom-calibri.docx
#-----------------------------------------------------------------DOCX REFS
docx-letter:
extends: [docx-refs]
pandoc:
reference-doc: '/Users/ian/Library/CloudStorage/Dropbox/Work/CAS-Letterhead-2.docx'
#-----------------------------------------------------------------DOCX CROSSREF
docx-crossref:
extends: [docx-refs,crossref]
#-----------------------------------------------------------------DOCX NUMBERING
docx-native-numbering:
extends: [docx,refs]
pandoc:
to: docx+native_numbering
#-----------------------------------------------------------------DOCX REFS NOLINK
docx-refs-not-linked:
extends: [docx,refs]
metadata:
link-citations: false
#-----------------------------------------------------------------DOCX ENDNOTE
docx-endnote:
extends: [docx,refs]
preprocessors:
add: preprocessors/convertEndnoteRefs.rb #turns endnote citations to pandoc citations
#-----------------------------------------------------------------DOCX CHANGES
docx-changes:
extends: [docx,refs]
preprocessors:
add: preprocessors/criticmarkup.rb #process criticmarkup to HTML that pandoc can use
#-----------------------------------------------------------------ODT
odt-refs:
extends: [docx,refs]
pandoc:
to: odt
reference-doc: templates/custom.odt
#-----------------------------------------------------------------ODT standard fonts
odt-refs-calibri:
extends: [docx,refs]
pandoc:
to: odt
reference-doc: templates/custom-calibri.odt
#-----------------------------------------------------------------
#:::::::::::::::::::::::: PRESENTATIONS ::::::::::::::::::::::::::
#-----------------------------------------------------------------
# Note for reveal.js standalone download the files and put them
# in a reveal.js/ folder relative to the markdown file.
# wget https://github.com/hakimel/reveal.js/archive/master.tar.gz
# tar -xzvf master.tar.gz
# mv reveal.js-master reveal.js
revealjs:
extends: [refs]
pandoc:
from: markdown
to: revealjs
toc: true
lua-filter:
- filters/pretty-urls.lua # clean up URLs a bit
metadata:
revealjs-url: http://lab.hakim.se/reveal-js
slideNumber: true
transition: fade # none/fade/slide/convex/concave/zoom
transitionSpeed: default # default/fast/slow
revealjs-local:
extends: [revealjs]
metadata:
revealjs-url: ./reveal.js
revealjs-selfcontained:
extends: [revealjs-local]
pandoc:
self-contained: true
powerpoint:
extends: [refs]
pandoc:
from: markdown
to: pptx
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: LATEX ::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
latex-tufte:
extends: [biblatex]
pandoc:
from: markdown
to: latex-smart # turn off smart to leave — … “” etc. as unicode, needs xetex or luatex
standalone: true
lua-filter:
- filters/pretty-urls.lua # clean up URLs a bit
template: templates/tufte-book.latex
metadata:
documentclass: 'tufte-book' # also: tufte-handout
lang: 'en-GB'
papersize: a4
#linestretch: 1.4
#biblio-style: verbose #verbose for biblatex, plainnat for natbib
biblatexoptions:
- autocite=footnote
classoption:
#- debug
#- nobib # !!! needed with V3.5.2 & biblatex
#- notoc # disbles Tufte TOC style
#- nofonts #do not auto-specify fonts
#- symmetric # note this is buggy...
- sfsidenotes # sans-serif side notes
- british
- justified
publisher: Octopoda Publishing • Shanghai • China
epigraph:
- author: Anaïs Nin
text: "“We don’t see things as they are, we see them as we are.”"
- author: Michael Shermer
text: "“Humans are pattern-seeking story-telling animals, and we are quite adept at telling stories about patterns, whether they exist or not.”"
dedication: |
This book is was written to honour all the myriad cephalopods in the deep blue sea…
copyright-link: https://creativecommons.org/licenses/by-nc-sa/4.0/
copyright-image: /Users/ian/Code/dotpandoc/by-nc-sa.png
copyright: |
© Creative Commons CC BY-NC-SA 4.0 — This license enables reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creator. If you remix, adapt, or build upon the material, you must license the modified material under identical terms. CC BY-NC-SA includes the following elements: BY: credit must be given to the creator. NC: Only noncommercial uses of the work are permitted. SA: Adaptations must be shared under the same terms.
mainfont: 'Alegreya'
mainfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
sansfont: 'Alegreya Sans'
sansfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
monofont: 'Fantasque Sans Mono'
mathfont: 'STIX Two Math'
mathfontoptions: 'math-style=ISO,bold-style=ISO'
colorlinks: true
linkcolor: Mahogany
citecolor: Sepia
urlcolor: BrickRed
listings: false
#-----------------------------------------------------------------
latex:
preprocessors:
#- preprocessors/removeImageDimensions.rb # remove image dimensions
pandoc:
from: markdown
to: latex-smart # turn off smart to leave — … “” etc. as unicode, needs xetex or luatex
standalone: true
filter:
- filters/assimilateMetadata.rb # handle academic metadata
lua-filter:
- filters/convertIndex.lua
- filters/pagebreak.lua # use \newpage{} also for HTML, DOCX, ODT & EPUB
- filters/abstract-section.lua # move an abstract heading to metadata
- filters/pretty-urls.lua # clean up URLs a bit
template: templates/custom.latex
metadata:
documentclass: 'article'
classoption: twoside
pagestyle: plain # control \pagestyle{}: the default article class supports plain (default), empty (no running heads or page numbers), and headings (section titles in running heads)
fontsize: '12pt'
linestretch: '1.5'
geometry: ['inner=2.2cm','outer=1.8cm','bottom=2.5cm','twoside']
mainfont: 'Greta Text Pro'
mainfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
sansfont: 'Greta Sans Pro'
sansfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
monofont: 'Rec Mono Duotone'
mathfont: 'STIX Two Math'
mathfontoptions: 'math-style=ISO,bold-style=ISO'
#CJKmainfont: 'Heiti SC' # need to install xecjk in tinytex
#CJKsansfont: 'Heiti SC' # need to install xecjk in tinytex
colorlinks: true
linkcolor: Mahogany
citecolor: Sepia
urlcolor: BrickRed
lang: 'en-GB'
nonumberfigures: true # I use Scrivener autonumbering, so disable for LaTeX
doindex: false # don't add index by default
postprocessors:
- postprocessors/fixLaTeX.rb
#-----------------------------------------------------------------
latex-crossref:
extends: [latex, refs, crossref]
pandoc:
include-in-header: blank.txt
metadata:
nonumberfigures: false
titleDelim: ' — '
figPrefix: ['Fig.','Figs.']
#-----------------------------------------------------------------
latex-refs:
extends: [latex, refs]
#-----------------------------------------------------------------
latex-index:
extends: [latex-crossref]
metadata:
doindex: true
#-----------------------------------------------------------------
pdf-refs:
extends: latex-refs
pandoc:
to: pdf
pdf-engine: 'xelatex'
#-----------------------------------------------------------------
pdf-crossref:
extends: latex-crossref
pandoc:
to: pdf
pdf-engine: 'xelatex'
#-----------------------------------------------------------------
latex-biblatex:
extends: 'latex'
pandoc:
biblatex: true
bibliography: Core.bib
metadata:
biblio-style: authoryear-comp
biblatexoptions: [sort=nyt,backend=biber,maxcitenames=2]
#-----------------------------------------------------------------
elsevier:
extends: 'natbib'
pandoc:
from: markdown
filter:
- filters/assimilateMetadata.rb # Handle academic metadata.
template: elsarticle.latex # Latex template supporing elsarticle.cls
include-in-header: './addpackages.sty' # To easily include packages; refer to elsarticle.latex
metadata:
documentclass: 'elsarticle' # Specifying Elsevier's documentclass.
classoption: ['authoryear','preprint'] # Elsevier options
biblio-style: elsarticle-harv # see elsarticle documentation
natbiboptions: [longnamesfirst,semicolon] # Add extra options of natbib.sty
colorlinks: true
linestretch: '1.5'
lang: 'en-GB'
#-----------------------------------------------------------------
elsevier-1col:
extends: 'elsevier'
pandoc:
output: elsarticle_1col.tex
metadata:
classoption: ['3p'] # Single column style.
#-----------------------------------------------------------------
elsevier-2col:
extends: 'elsevier'
pandoc:
output: elsarticle_2col.tex
metadata:
classoption: ['3p','twocolumn'] # Double column style.
#-----------------------------------------------------------------
latex-endnote:
extends: 'latex-refs'
preprocessors:
- preprocessors/convertEndnoteRefs.rb
#-----------------------------------------------------------------
pdf-endnote:
extends: 'latex-endnote'
pandoc:
to: pdf
pdf-engine: 'xelatex'
#-----------------------------------------------------------------
latex-chemfig: # example of using header-includes with yaml block scalar data http://yaml-multiline.info/
extends: [latex-refs]
metadata:
header-includes:
- |
```{=latex}
\usepackage[]{chemfig}
```
#-----------------------------------------------------------------
latex-with-toc:
extends: [latex-refs]
pandoc:
toc: true
toc-depth: 3
#-----------------------------------------------------------------
latex-with-lof:
extends: [latex-refs]
pandoc:
toc: true
toc-depth: 3
metadata:
lof: true
#-----------------------------------------------------------------
# see https://gitlab.com/daamien/pandoc-leaflet-template/
leaflet:
pandoc:
from: markdown
to: latex-smart # turn off smart leaves — … “” as unicode
pdf-engine: 'xelatex'
standalone: true
template: templates/leaflet.latex
metadata:
mainfont: 'Greta Text Pro'
mainfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
sansfont: 'Greta Sans Pro'
sansfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
monofont: 'Rec Mono Duotone'
leaflet-logo:
leaflet-no-cutlines: true
leaflet-no-tumble: true
leaflet-page1-background-image:
leaflet-page6-background-color: "DDCCAA"
#-----------------------------------------------------------------
# see https://github.com/aaronwolen/pandoc-letter
# address : Name and address of the recipient; takes a list for a multi-line address.
# author : Writer of the letter; can take a list for a multi-line signature.
# blockquote : Changes style of block quotations to match bootstrap (requires the mdframed package).
# cc : Recipients to be carbon-copied; can take a list for multiple recipients.
# closing : Text for the complementary close.
# closing-indentation : Amount for closing signature block to be intended from left margin.
# date : Custom date (current date will be automatically inserted if not specified).
# encl : List of enclosures.
# letterhead : Image file to be used as letterhead (requires the wallpaper package), applied only to the first page.
# opening : Text for the salutation.
# ps : Text to be added at the end of the letter as a postscript.
# return-address : Address of the sender: takes a list to allow a multi-line address.
# signature : Image file for a signature.
# signature-before, signature-after : Allows adjustment of vertical space surrounding signature.
latex-letter:
extends: refs
pandoc:
from: markdown
to: latex-smart # turn off smart leaves — … “” as unicode
pdf-engine: xelatex
standalone: true
template: templates/letter.latex
lua-filter:
- filters/pretty-urls.lua # clean up URLs a bit
metadata:
papersize: a4
return-address: |
Cognitive-Behavioural Research Platform
Institute of Neuroscience, CAS
Room 307, Systems Building
320 Yueyang Rd, Shanghai
200031, CHINA
✆ +86 021 54921747
author: |
Ian Max Andolina Ph.D.
Director, Cognitive \& Behavioural Research Platform
opening: To whom it may concern,
closing: Sincerely yours,
mainfont: 'Alegreya'
mainfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
monofont: 'Rec Mono Duotone'
mathfont: 'STIX Two Math'
mathfontoptions: 'math-style=ISO,bold-style=ISO'
fontsize: '12pt'
linestretch: '1.2'
letterhead: "/Users/ian/Library/CloudStorage/Dropbox/Work/CEBSIT-Letterhead.pdf"
signature: "/Users/ian/Library/CloudStorage/Dropbox/Work/Ian-Signature-Small.png"
signature-width: 50mm
signature-before: -10.5ex
signature-after: -1.5ex
closing-indentation: 12pt
links-as-notes: false
colorlinks: true
linkcolor: Mahogany
citecolor: Sepia
urlcolor: BrickRed
lang: 'en-GB'
geometry: ['margin=1.2cm','top=2cm']
biblio-style: numeric
postprocessors:
- postprocessors/fixLaTeX.rb
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel:
extends: 'refs'
preprocessors:
#- preprocessors/removeImageDimensions # remove image dimensions
pandoc:
from: markdown
to: latex-smart # turn off smart leaves — … “” as unicode
standalone: true
filter:
- filters/assimilateMetadata.rb # handle academic matadata
lua-filter:
- filters/pagebreak.lua # use \newpage{} also for HTML, DOCX, ODT & EPUB
- filters/abstract-section.lua # move an abstract heading to metadata
- filters/pretty-urls.lua # clean up URLs a bit
- filters/list-table.lua
template: templates/eisvogel.latex
toc: true
shift-heading-level-by: 0
metadata:
book: false
titlepage: true
titlepage-color: BB4433
titlepage-text-color: FFFFFF
titlepage-rule-color: FFFFFF
titlepage-rule-height: 10
caption-justification: justified
toc-own-page: true
listings-disable-line-numbers: false
float-placement-figure: H
#logo: "/Users/ian/Dropbox/Images/Logos/Platform-ION-Banner-White.png"
#logo-width: 350
mainfont: 'Greta Sans Pro'
mainfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
sansfont: 'Graublau Slab'
sansfontoptions: 'Numbers=OldStyle,Numbers=Proportional'
monofont: 'Rec Mono Duotone'
mathfont: 'STIX Two Math'
mathfontoptions: 'math-style=ISO,bold-style=ISO'
#CJKmainfont: 'Heiti SC' # need to install xecjk in tinytex
#CJKsansfont: 'Heiti SC' # need to install xecjk in tinytex
fontsize: '12pt'
linestretch: '1.5'
colorlinks: true
linkcolor: Mahogany
citecolor: Sepia
urlcolor: BrickRed
nonumberfigures: true
lang: 'en-GB'
disable-header-and-footer: false
header-right:
header-left:
header-center:
footer-right:
footer-left: " "
footer-center:
footnotes_pretty: true
footnotes-disable-backlinks: false
postprocessors:
- postprocessors/fixLaTeX.rb
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel-logo:
extends: [eisvogel]
metadata:
titlepage-background: /Users/ian/Dropbox/Images/Logos/backgroundlogo.pdf
page-background:
page-background-opacity:
titlepage-text-color: 555555
titlepage-rule-color: 555555
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel-crossref:
extends: [eisvogel,crossref]
pandoc:
include-in-header: blank.txt
metadata:
nonumberfigures: false
titleDelim: ' — '
figPrefix: ['Fig.','Figs.']
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel-pdf:
extends: [eisvogel]
pandoc:
to: pdf
pdf-engine: 'xelatex'
cleanup: []
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel-original:
extends: [eisvogel]
pandoc:
template: templates/eisvogel.latex
#-----------------------------------------------------------------
# https://github.com/Wandmalfarbe/pandoc-latex-template
eisvogel-endnote:
extends: [eisvogel]
preprocessors:
- preprocessors/convertEndnoteRefs.rb
#-----------------------------------------------------------------
latex-ieee:
extends: [latex-refs]
pandoc:
template: templates/ieee.latex
metadata:
fontsize: '10pt'
#-----------------------------------------------------------------
# https://github.com/pandoc-scholar/pandoc-scholar
latex-scholar:
extends: [latex-refs]
pandoc:
template: templates/pandoc-scholar.latex
metadata:
fontsize: '10pt'
#-----------------------------------------------------------------
memoir-with-refs:
extends: [latex-refs]
pandoc:
template: templates/custom-memoir.latex
toc: true
toc-depth: 3
base-header-level: 1
metadata:
documentclass: 'memoir'
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: HTML :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
html:
pandoc:
from: markdown
to: html5
embed-resources: true
number-sections: false
section-divs: true
mathjax: true
lua-filter:
- filters/pagebreak.lua # use \newpage{} also for HTML and docx
- filters/abstract-section.lua # move an abstract heading to metadata
- filters/pretty-urls.lua # clean up URLs a bit
filter:
- filters/assimilateMetadata.rb #regularise metadata
template: 'templates/custom.html'
css: 'templates/custom.css'
toc: true
toc-depth: 4
metadata:
document-css: true #use the html partial
lang: 'en-GB'
mainfont: Alegreya Sans, Greta Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif"
monofont: Rec Mono Duotone, Fira code, Jetbrains Mono, menlo, consolas, monospace
linestretch: 1.3
fontsize: 20
fontcolor: "#1A1A1A"
backgroundcolor: "#FFFFFF"
margin-left: 50px
margin-right: 50px
margin-top: 50px
margin-bottom: 50px
csl-entry-spacing: 0.5em
linkcolor: "#772222"
csl-css: true
postprocessors:
- postprocessors/fixHTML.rb
#-----------------------------------------------------------------
html-selfcontained:
extends: [html]
pandoc:
self-contained: true
#-----------------------------------------------------------------
html-changes:
extends: ['html']
preprocessors:
- preprocessors/criticmarkup.rb
#-----------------------------------------------------------------
html-refs:
extends: [refs, html]
#-----------------------------------------------------------------
html-refs-crossref:
extends: [refs, html, crossref]
#-----------------------------------------------------------------
html-endnote:
extends: [refs, html]
preprocessors:
- preprocessors/convertEndnoteRefs.rb
#-----------------------------------------------------------------
html-scholar:
extends: [refs, crossref, html]
pandoc:
template: 'templates/pandoc-scholar.html'
css: 'templates/pandoc-scholar.css'
#-----------------------------------------------------------------
html-scholar-pdf:
extends: [html-scholar]
pandoc:
to: pdf
pdf-engine: prince
pdf-engine-opt: ['--page-size=A4','--page-margin=10mm']
#-----------------------------------------------------------------
html-pdf:
extends: [html]
pandoc:
to: pdf
pdf-engine: prince
pdf-engine-opt: ['--page-size=A4']
metadata:
backgroundcolor: "#FFFFFF"
#-----------------------------------------------------------------
html-pagedjs:
pandoc:
pdf-engine: pagedjs-cli
output: pagedjs.pdf
from: markdown
to: html5
standalone: true
section-divs: true
mathjax: true
lua-filter:
- filters/pagebreak.lua # use \newpage{} also for HTML and docx
filter:
- filters/assimilateMetadata.rb #regularise metadata
metadata:
document-css: true #don't use the html partial
lang: 'en-GB'
template: 'templates/pagedjs.html'
#css: ['templates/interface.css','templates/recto-verso.css','templates/layout.css','templates/baseline.css']
#-----------------------------------------------------------------
html-refs-pdf:
extends: [refs, crossref, html-pdf]
#-----------------------------------------------------------------
html-endnote-pdf:
extends: [html-refs-pdf]
preprocessors:
- preprocessors/convertEndnoteRefs.rb
#-----------------------------------------------------------------
# https://github.com/jez/tufte-pandoc-css
tufte:
pandoc:
from: markdown+compact_definition_lists
to: html5
section-divs: true
standalone: true
mathjax: true
lua-filter:
- filters/pagebreak.lua # use \newpage{} also for HTML and docx
filter:
- filters/assimilateMetadata.rb # regularise metadata
- pandoc-sidenote # brew install jez/formulae/pandoc-sidenote
template: 'templates/tufte.html5'
css:
- 'templates/tufte.css'
- 'templates/tuftepandoc.css'
metadata:
lang: 'en-GB'
#-----------------------------------------------------------------
tufte-refs:
extends: [refs,tufte,crossref]
#-----------------------------------------------------------------
tufte-refs-pdf:
extends: [tufte-refs]
pandoc:
to: pdf
pdf-engine: prince
pdf-engine-opt: ['--page-size=A4']
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: EPUB :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
epub-test:
pandoc:
from: markdown
to: epub
standalone: true
self-contained: true
metadata:
stylesheet: epub.css
cover-image: templates/VPMLogoBlack.png
#-----------------------------------------------------------------
#:::::::::::::::::::::::::::: TEST :::::::::::::::::::::::::::::::
#-----------------------------------------------------------------
# VARIOUS TEST TEMPLATES
#-----------------------------------------------------------------
test:
pandoc:
from: markdown
to: html5
standalone: true
css: templates/custom.css
self-contained: true
mathjax: true
filter:
- filters/noop.rb
metadata:
lang: 'EN-GB'
#-----------------------------------------------------------------
test-debug:
pandoc:
from: markdown
to: html5
standalone: true
self-contained: true
filter:
- filters/testFilter.rb
metadata:
lang: 'EN-GB'
#-----------------------------------------------------------------
test-markdown:
pandoc:
from: markdown
to: markdown
output: out.md
standalone: true
filter:
- filters/testFilter.rb
metadata:
#author: Joanna Doe