-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPandocConverter.sublime-settings
110 lines (100 loc) · 2.81 KB
/
PandocConverter.sublime-settings
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
{
// path to the pandoc binary. Default locations per platform:
"pandoc-path": {
"osx": "/usr/local/bin/pandoc",
"windows": "C:/Users/[username]/AppData/Local/Pandoc/pandoc.exe",
"linux": ""
},
// outputs
"outputs": {
// output label, to appear in sublime quick panel.
"Markdown (Pandoc)": {
// Scopes in which output is avaliable
"scope": {
"text.html": "html"
},
// sublime syntax file of output format
"syntax_file": "Packages/Markdown/Markdown.tmLanguage",
// output extension
"output-format": "md",
// additional arguments passed to pandoc
"pandoc-arguments": [
"--to=markdown",
"--no-wrap",
"--atx-headers"
]
},
"HTML 5": {
"scope": {
"text.html.markdown": "markdown"
},
"syntax_file": "Packages/HTML/HTML.tmLanguage",
"output-format": "html",
"pandoc-arguments": [
"-s",
"--to=html5",
"--no-highlight",
"--mathml", "--toc",
"--self-contained"
]
},
"PDF": {
"scope": {
"text.html": "html",
"text.html.markdown": "markdown"
},
"output-format": "pdf",
"pandoc-arguments": [
"-S", "-s", "--toc"
// use --latex-engine=engine where engine is
// pdflatex|lualatex|xelatex. This may need to be specified with a
// full path, e.g. on a mac
// "--latex-engine=/Library/TeX/texbin/pdflatex",
]
},
"Microsoft Word": {
"scope": {
"text.html": "html",
"text.html.markdown": "markdown"
},
"output-format": "docx",
"pandoc-arguments": [
"-s", "-t", "docx", "--toc"
]
},
"Libre office": {
"scope": {
"text.html": "html",
"text.html.markdown": "markdown"
},
"output-format": "odt",
"pandoc-arguments": [
"-s", "-t", "odt", "--toc"
]
},
"EPUB": {
"scope": {
"text.html": "html",
"text.html.markdown": "markdown"
},
"output-format": "epub",
"pandoc-arguments": [
"-s", "--mathml", "--toc", "-t", "epub"
]
},
"LATEX": {
"scope": {
"text.html.markdown": "markdown"
},
"syntax_file": "Packages/LaTeX/LaTeX.tmLanguage",
"output-format": "tex",
"pandoc-arguments": [
"-s", "-t", "latex", "--toc"
]
}
},
// these should not need to be customized
// output formats that are written to file, using -o parameter. These we do
// not output to a sublime text buffer.
"pandoc-format-file": ["docx", "epub", "pdf", "odt"]
}