-
Notifications
You must be signed in to change notification settings - Fork 31
/
pandoc.ado
79 lines (51 loc) · 1.56 KB
/
pandoc.ado
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
// documentation is written for markdoc package (github.com/haghish/markdoc)
// . markdoc wpandoc.ado, mini export(sthlp) replace
/***
_v. 1.1_
pandoc
======
__pandoc__ executing [Pandoc](http://pandoc.org/) from Stata
Syntax
------
> __pandoc__ _anything_
Description
-----------
[Pandoc](http://pandoc.org/) is a document convertor freeware. The __markdoc__
package uses this application to produce dynamic documents, slides,
and package documentation. This program is a supplementary command that allows
using this application for other purposes, outside __markdoc__.
Examples
--------
executing Pandoc command
. pandoc _filename_ -o _filename_
adding more Pandoc arguments
. pandoc -s -S _filename_ -o _filename_
Author
------
[E. F. Haghish ](https://github.com/haghish)
Center for Medical Biometry and Medical Informatics
University of Freiburg, Germany
[http://www.haghish.com/stat](http://www.haghish.com/stat)
License
-------
MIT License
- - -
This help file was dynamically produced by
[MarkDoc Literate Programming package](http://www.haghish.com/markdoc/)
***/
program define pandoc
syntax anything //[, pandoc(str) install ]
capture weaversetup //it might not be yet created
*if !missing("`pandoc'") {
* confirm file "`pandoc'"
* global pandoc "`pandoc'"
*}
if missing("`pandoc'") & !missing("$pathPandoc") {
global pandoc "$pathPandoc"
}
markdoccheck //, `install' pandoc("`pandoc'")
confirm file "$pandoc"
di as txt "$pandoc `anything'"
! "$pandoc" `anything'
end