diff options
Diffstat (limited to 'src/doc_reform/io_out/paths_output.d')
| -rw-r--r-- | src/doc_reform/io_out/paths_output.d | 44 | 
1 files changed, 41 insertions, 3 deletions
| diff --git a/src/doc_reform/io_out/paths_output.d b/src/doc_reform/io_out/paths_output.d index 9398240..a6a1a9b 100644 --- a/src/doc_reform/io_out/paths_output.d +++ b/src/doc_reform/io_out/paths_output.d @@ -550,10 +550,14 @@ template spinePathsLaTeX() {        string base_filename(string fn_src) {          return fn_src.baseName.stripExtension;        } +      auto out_pth() { +        return spineOutPaths!()(doc_matters.output_path, doc_matters.src.language); +      }        string base() { -        auto out_pth = spineOutPaths!()(doc_matters.output_path, doc_matters.src.language); -        string base_dir = "latex"; -        return (((out_pth.output_root).chainPath(base_dir)).asNormalizedPath).array; +        return (((out_pth.output_root).chainPath("latex")).asNormalizedPath).array; +      } +      string base_sty() { +        return (((out_pth.output_root).chainPath("latex").chainPath("sty")).asNormalizedPath).array;        }        string latex_path_stuff() {          return ((base.chainPath(base_filename(doc_matters.src.filename))).asNormalizedPath).array; @@ -565,6 +569,15 @@ template spinePathsLaTeX() {               ~ ".tex")            ).asNormalizedPath).array;        } +      string latex_sty_with_path(string paper_size_orientation) { // spineA4portrait.sty +        return ((base_sty.chainPath("spine" +             ~ paper_size_orientation +             ~ ".sty") +          ).asNormalizedPath).array; +      } +      string latex_sty_with_path_static() { // spineShared.sty +        return ((base_sty.chainPath("spineShared.sty")).asNormalizedPath).array; +      }        string images() {          string image_dir = "image";          return (((base).chainPath(image_dir)).asNormalizedPath).array; @@ -573,6 +586,31 @@ template spinePathsLaTeX() {      return _PathsStruct();    }  } +template spinePathsLaTeXsty() { +  auto spinePathsLaTeXsty(string output_dir) { +    struct _PathsStruct { +      auto out_pth() { +        return spineOutPaths!()(output_dir); +      } +      string base_sty() { +        return (((out_pth.output_root).chainPath("latex").chainPath("sty")).asNormalizedPath).array; +      } +      string latex_sty_with_path(string paper_size_orientation) { // spineA4portrait.sty +        return ((base_sty.chainPath("spine" +             ~ paper_size_orientation +             ~ ".sty") +          ).asNormalizedPath).array; +      } +      string latex_sty_with_path_static() { // spineShared.sty +        return ((base_sty.chainPath("spineShared.sty")).asNormalizedPath).array; +      } +      string latex_document_header_sty(string filename) { // spineShared.sty +        return ((base_sty.chainPath(filename)).asNormalizedPath).array; +      } +    } +    return _PathsStruct(); +  } +}  template spinePathsSQLiteDiscrete() {    mixin spineRgxIn;    static auto rgx = RgxI(); | 
