diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-05-25 16:31:55 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-05-27 15:33:38 -0400 |
commit | 2eff2b6306cc5db64fa444ae070849ec547f038a (patch) | |
tree | d055e971cfdc6e36a296a6d20b3d1fea5747501f /org/default_paths.org | |
parent | sub dependency update, updates D-YAML (diff) |
pdf output links, should user choose to have it
Diffstat (limited to 'org/default_paths.org')
-rw-r--r-- | org/default_paths.org | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/org/default_paths.org b/org/default_paths.org index 7748ab8..0579408 100644 --- a/org/default_paths.org +++ b/org/default_paths.org @@ -989,6 +989,7 @@ import doc_reform.meta.rgx; <<template_paths_html_2>> <<template_paths_epub>> <<template_paths_odf>> +<<template_paths_pdf>> <<template_paths_latex>> <<template_paths_latex_sty>> <<template_paths_sqlite_0>> @@ -1609,7 +1610,37 @@ template spinePathsLaTeXsty() { } #+END_SRC -** _sqlite_ :sqlite: +** _pdf_ :pdf: + +#+NAME: template_paths_pdf +#+BEGIN_SRC d +template spinePathsPDF() { + mixin spineRgxIn; + static auto rgx = RgxI(); + auto spinePathsPDF(M)( + M doc_matters, + ) { + struct _PathsStruct { + string base_filename(string fn_src) { + return fn_src.baseName.stripExtension; + } + auto out_pth() { + string output_dir = doc_matters.output_path ~ "/pdf"; + return spineOutPaths!()(output_dir); + } + string base() { + return (((out_pth.output_root).chainPath("pdf")).asNormalizedPath).array; + } + string pdf_path_stuff() { + return ((base.chainPath(base_filename(doc_matters.src.filename))).asNormalizedPath).array; + } + } + return _PathsStruct(); + } +} +#+END_SRC + +** _sqlite_ :sqlite: *** discrete #+NAME: template_paths_sqlite_0 |