diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-03-30 11:02:09 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-04-03 18:13:53 -0400 |
commit | 15d1dc27d81909b129a448ab343447180db8df38 (patch) | |
tree | 03ae7fc7ca0ff5864e6836615b8f5b0860145a3f /org/spine.org | |
parent | latex head adjustments (diff) |
latex doc headers moved to .sty files in ./sty dir
- some changes made, font selection included
Diffstat (limited to 'org/spine.org')
-rw-r--r-- | org/spine.org | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/org/spine.org b/org/spine.org index 4423f97..94ab675 100644 --- a/org/spine.org +++ b/org/spine.org @@ -68,6 +68,7 @@ string program_name = "spine"; <<spine_args_process_args>> if (_manifests.length > 1 // _manifests[0] initialized dummy element && _opt_action.abstraction) { + <<spine_initialize_output>> if (_opt_action.parallelise) { // see else import std.parallelism; foreach(manifest; parallel(_manifests[1..$])) { @@ -359,6 +360,8 @@ bool[string] opts = [ "html-scroll" : false, "latex" : false, "latex-color-links" : false, + "latex-init" : false, + "latex-header-sty" : false, "light" : false, "manifest" : false, "hide-ocn" : false, @@ -369,6 +372,7 @@ bool[string] opts = [ "parallel-subprocesses" : false, "pdf" : false, "pdf-color-links" : false, + "pdf-init" : false, "pod" : false, "serial" : false, "show-config" : false, @@ -472,6 +476,8 @@ auto helpInfo = getopt(args, "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"], @@ -482,6 +488,7 @@ auto helpInfo = getopt(args, "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"], @@ -671,6 +678,9 @@ struct OptActions { @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; } @@ -1394,6 +1404,14 @@ if (doc_matters.opt.action.debug_do) { **** 2. _process outputs_ :outputs: - [[./output_hub.org][output_hub]] +#+NAME: spine_initialize_output +#+BEGIN_SRC d +/+ ↓ output hub +/ +if (!(_opt_action.skip_output)) { + outputHubInitialize!()(_opt_action); +} +#+END_SRC + #+NAME: spine_each_file_do_selected_output #+BEGIN_SRC d /+ ↓ output hub +/ |