aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index de069c9..563de48 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -141,6 +141,8 @@ string program_name = "spine";
"html-scroll" : false,
"latex" : false,
"latex-color-links" : false,
+ "latex-init" : false,
+ "latex-header-sty" : false,
"light" : false,
"manifest" : false,
"hide-ocn" : false,
@@ -151,6 +153,7 @@ string program_name = "spine";
"parallel-subprocesses" : false,
"pdf" : false,
"pdf-color-links" : false,
+ "pdf-init" : false,
"pod" : false,
"serial" : false,
"show-config" : false,
@@ -240,6 +243,8 @@ string program_name = "spine";
"lang", "=[lang code e.g. =en or =en,es]", &settings["lang"],
"latex", "latex output (for pdfs)", &opts["latex"],
"latex-color-links", "mono or color links for pdfs", &opts["latex-color-links"],
+ "latex-init", "initialise latex shared files (see latex-header-sty)", &opts["latex-init"],
+ "latex-header-sty", "latex document header sty files", &opts["latex-header-sty"],
"light", "default light theme", &opts["light"],
"manifest", "process manifest output", &opts["manifest"],
"ocn-off", "object cite numbers", &opts["ocn-off"],
@@ -250,6 +255,7 @@ string program_name = "spine";
"parallel-subprocesses", "nested parallelisation", &opts["parallel-subprocesses"],
"pdf", "latex output for pdfs", &opts["pdf"],
"pdf-color-links", "mono or color links for pdfs", &opts["pdf-color-links"],
+ "pdf-init", "initialise latex shared files (see latex-header-sty)", &opts["pdf-init"],
"pod", "spine (doc reform) pod source content bundled", &opts["pod"],
"quiet|q", "output to terminal", &opts["vox_is0"],
"section-backmatter", "document backmatter (default)" , &opts["backmatter"],
@@ -432,6 +438,9 @@ string program_name = "spine";
@trusted bool latex_color_links() {
return (opts["latex-color-links"] || opts["pdf-color-links"]) ? true : false;
}
+ @trusted bool latex_document_header_sty() {
+ return (opts["latex-init"] || opts["latex-header-sty"] || opts["pdf-init"]) ? true : false;
+ }
@trusted bool odt() {
return (opts["odf"] || opts["odt"]) ? true : false;
}
@@ -967,6 +976,10 @@ string program_name = "spine";
}
if (_manifests.length > 1 // _manifests[0] initialized dummy element
&& _opt_action.abstraction) {
+ /+ ↓ output hub +/
+ if (!(_opt_action.skip_output)) {
+ outputHubInitialize!()(_opt_action);
+ }
if (_opt_action.parallelise) { // see else
import std.parallelism;
foreach(manifest; parallel(_manifests[1..$])) {