diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-20 10:20:38 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-17 19:07:20 -0400 |
commit | d21e5b572433f39111282805435e6337f0e1b4c0 (patch) | |
tree | 7a604e949edeef496ef79870f98aa4b722136d34 /src/doc_reform/doc_reform.d | |
parent | 0.7.1 odt (initial stub) (diff) |
0.7.2 latex (for pdf) (initial stub)doc-reform_v0.7.2
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-x | src/doc_reform/doc_reform.d | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d index 25ab2cc..06866c2 100755 --- a/src/doc_reform/doc_reform.d +++ b/src/doc_reform/doc_reform.d @@ -122,6 +122,7 @@ void main(string[] args) { "html" : false, "html-seg" : false, "html-scroll" : false, + "latex" : false, "light" : false, "manifest" : false, "ocn" : true, @@ -129,6 +130,7 @@ void main(string[] args) { "odt" : false, "parallel" : false, "parallel-subprocesses" : false, + "pdf" : false, "quiet" : false, "pod" : false, "serial" : false, @@ -175,6 +177,7 @@ void main(string[] args) { "html", "--html process html output", &opts["html"], "html-seg", "--html-seg process html output", &opts["html-seg"], "html-scroll", "--html-seg process html output", &opts["html-scroll"], + "latex", "--latex output for pdfs", &opts["latex"], "light", "--light default light theme", &opts["light"], "manifest", "--manifest process manifest output", &opts["manifest"], "ocn", "--ocn object cite numbers (default)", &opts["ocn"], @@ -183,6 +186,7 @@ void main(string[] args) { "parallel", "--parallel parallelisation", &opts["parallel"], "parallel-subprocesses", "--parallel-subprocesses nested parallelisation", &opts["parallel-subprocesses"], "quiet|q", "--quiet output to terminal", &opts["quiet"], + "pdf", "--pdf latex output for pdfs", &opts["pdf"], "pod", "--pod doc reform pod source content bundled", &opts["pod"], "serial", "--serial serial processing", &opts["serial"], "source", "--source markup source text content", &opts["source"], @@ -218,7 +222,7 @@ void main(string[] args) { if (helpInfo.helpWanted) { defaultGetoptPrinter("Some information about the program.", helpInfo.options); } - enum outTask { pod, source, sqlite, sqlite_multi, odt, epub, html_scroll, html_seg, html_stuff } + enum outTask { pod, source, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } struct OptActions { bool assertions() { return opts["assertions"]; @@ -270,6 +274,12 @@ void main(string[] args) { { _is = true; } else { _is = false; } return _is; } + bool latex() { + bool _is; + if ( opts["latex"] || opts["pdf"]) + { _is = true; } else { _is = false; } + return _is; + } bool odt() { bool _is; if ( opts["odf"] || opts["odt"]) @@ -392,6 +402,7 @@ void main(string[] args) { || html || epub || odt + || latex || manifest || pod || source @@ -430,6 +441,9 @@ void main(string[] args) { if (odt) { schedule ~= outTask.odt; } + if (latex) { + schedule ~= outTask.latex; + } return schedule.sort().uniq; } bool abstraction() { @@ -441,6 +455,7 @@ void main(string[] args) { || html || epub || odt + || latex || manifest || sqlite_discrete || sqlite_delete @@ -454,6 +469,7 @@ void main(string[] args) { || html || epub || odt + || latex || sqlite_discrete || sqlite_update ) { _is = true; } else { _is = false; } |