aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_paths.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/default_paths.org')
-rw-r--r--org/default_paths.org49
1 files changed, 46 insertions, 3 deletions
diff --git a/org/default_paths.org b/org/default_paths.org
index 4b996bc..413434c 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -989,6 +989,7 @@ import doc_reform.meta.rgx;
<<template_paths_epub>>
<<template_paths_odf>>
<<template_paths_latex>>
+<<template_paths_latex_sty>>
<<template_paths_sqlite_0>>
<<template_paths_sqlite_1>>
<<template_paths_sqlite_2>>
@@ -1540,10 +1541,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;
@@ -1555,6 +1560,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;
@@ -1565,6 +1579,35 @@ template spinePathsLaTeX() {
}
#+END_SRC
+#+NAME: template_paths_latex_sty
+#+BEGIN_SRC d
+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();
+ }
+}
+#+END_SRC
+
** _sqlite_ :sqlite:
*** discrete