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.org36
1 files changed, 36 insertions, 0 deletions
diff --git a/org/default_paths.org b/org/default_paths.org
index 5e4f958..859415c 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -926,6 +926,7 @@ import doc_reform.meta.rgx;
<<template_paths_html>>
<<template_paths_epub>>
<<template_paths_odf>>
+<<template_paths_latex>>
<<template_paths_sqlite>>
#+END_SRC
@@ -1297,6 +1298,41 @@ template DocReformPathsODT() {
}
#+END_SRC
+** _latex_ :latex:
+
+#+name: template_paths_latex
+#+BEGIN_SRC d
+template DocReformPathsLaTeX() {
+ mixin DocReformRgxInit;
+ static auto rgx = Rgx();
+ auto DocReformPathsLaTeX(M)(
+ M doc_matters,
+ ) {
+ struct _PathsStruct {
+ string base_filename(string fn_src) {
+ return fn_src.baseName.stripExtension;
+ }
+ string base() {
+ auto out_pth = DocReformOutPaths!()(doc_matters.output_path, doc_matters.src.language);
+ string base_dir = "latex";
+ return asNormalizedPath((out_pth.output_root).chainPath(base_dir)).array;
+ }
+ string latex_path_stuff() {
+ return asNormalizedPath(base.chainPath(base_filename(doc_matters.src.filename))).array;
+ }
+ string latex_file_with_path() {
+ return asNormalizedPath(base.chainPath(base_filename(doc_matters.src.filename) ~ "." ~ doc_matters.src.language ~ ".tex")).array;
+ }
+ string images() {
+ string image_dir = "image";
+ return asNormalizedPath((base).chainPath(image_dir)).array;
+ }
+ }
+ return _PathsStruct();
+ }
+}
+#+END_SRC
+
** _sqlite_ :sqlite:
*** discrete