aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2020-02-06 08:55:48 -0500
committerRalph Amissah <ralph@amissah.com>2020-02-26 09:59:18 -0500
commitfc25d90c46f454448a41438c62fdd7dad5105946 (patch)
tree38e6bc56211a2392d8a87b81fd031441a79faa65 /src/doc_reform/spine.d
parentimports related, mostly cosmetic (diff)
latex outputs (various paper sizes & orientation)
- a4, a5, b4, letter, legal - portrait, landscape
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index 53161c7..3f422b4 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -127,6 +127,7 @@ string program_name = "spine";
"html-seg" : false,
"html-scroll" : false,
"latex" : false,
+ "latex-color-links" : false,
"light" : false,
"manifest" : false,
"hide-ocn" : false,
@@ -136,6 +137,7 @@ string program_name = "spine";
"parallel" : false,
"parallel-subprocesses" : false,
"pdf" : false,
+ "pdf-color-links" : false,
"quiet" : false,
"pod" : false,
"serial" : false,
@@ -191,6 +193,7 @@ string program_name = "spine";
"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"],
+ "latex-color-links", "--latex-color-links mono or color links for pdfs", &opts["latex-color-links"],
"light", "--light default light theme", &opts["light"],
"manifest", "--manifest process manifest output", &opts["manifest"],
"hide-ocn", "--hide-ocn object cite numbers", &opts["hide-ocn"],
@@ -201,6 +204,7 @@ string program_name = "spine";
"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"],
+ "pdf-color-links", "--pdf-color-links mono or color links for pdfs", &opts["pdf-color-links"],
"pod", "--pod spine (doc reform) pod source content bundled", &opts["pod"],
"serial", "--serial serial processing", &opts["serial"],
"show-summary", "--show-summary", &opts["show-summary"],
@@ -298,6 +302,9 @@ string program_name = "spine";
@trusted bool latex() {
return (opts["latex"] || opts["pdf"]) ? true : false;
}
+ @trusted bool latex_color_links() {
+ return (opts["latex-color-links"] || opts["pdf-color-links"]) ? true : false;
+ }
@trusted bool odt() {
return (opts["odf"] || opts["odt"]) ? true : false;
}