aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/paths_output.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-03-30 11:02:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-04-03 18:13:53 -0400
commit15d1dc27d81909b129a448ab343447180db8df38 (patch)
tree03ae7fc7ca0ff5864e6836615b8f5b0860145a3f /src/doc_reform/io_out/paths_output.d
parentlatex head adjustments (diff)
latex doc headers moved to .sty files in ./sty dir
- some changes made, font selection included
Diffstat (limited to 'src/doc_reform/io_out/paths_output.d')
-rw-r--r--src/doc_reform/io_out/paths_output.d44
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();