aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/doc_reform.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-05-20 10:20:38 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commitd21e5b572433f39111282805435e6337f0e1b4c0 (patch)
tree7a604e949edeef496ef79870f98aa4b722136d34 /org/doc_reform.org
parent0.7.1 odt (initial stub) (diff)
0.7.2 latex (for pdf) (initial stub)doc-reform_v0.7.2
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r--org/doc_reform.org20
1 files changed, 18 insertions, 2 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org
index ac0aa4d..12eb46a 100644
--- a/org/doc_reform.org
+++ b/org/doc_reform.org
@@ -27,7 +27,7 @@ struct Version {
int minor;
int patch;
}
-enum _ver = Version(0, 7, 1);
+enum _ver = Version(0, 7, 2);
#+END_SRC
** compilation restrictions (supported compilers)
@@ -314,6 +314,7 @@ bool[string] opts = [
"html" : false,
"html-seg" : false,
"html-scroll" : false,
+ "latex" : false,
"light" : false,
"manifest" : false,
"ocn" : true,
@@ -321,6 +322,7 @@ bool[string] opts = [
"odt" : false,
"parallel" : false,
"parallel-subprocesses" : false,
+ "pdf" : false,
"quiet" : false,
"pod" : false,
"serial" : false,
@@ -367,6 +369,7 @@ auto helpInfo = getopt(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"],
@@ -375,6 +378,7 @@ auto helpInfo = getopt(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"],
@@ -417,7 +421,7 @@ if (helpInfo.helpWanted) {
#+NAME: doc_reform_args
#+BEGIN_SRC d
-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"];
@@ -469,6 +473,12 @@ struct OptActions {
{ _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"])
@@ -591,6 +601,7 @@ struct OptActions {
|| html
|| epub
|| odt
+ || latex
|| manifest
|| pod
|| source
@@ -629,6 +640,9 @@ struct OptActions {
if (odt) {
schedule ~= outTask.odt;
}
+ if (latex) {
+ schedule ~= outTask.latex;
+ }
return schedule.sort().uniq;
}
bool abstraction() {
@@ -640,6 +654,7 @@ struct OptActions {
|| html
|| epub
|| odt
+ || latex
|| manifest
|| sqlite_discrete
|| sqlite_delete
@@ -653,6 +668,7 @@ struct OptActions {
|| html
|| epub
|| odt
+ || latex
|| sqlite_discrete
|| sqlite_update
) { _is = true; } else { _is = false; }