diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-28 14:16:32 -0500 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-03-05 10:33:48 -0500 | 
| commit | e4cca3e2c934914f3d633b4dde4e6316e0fa2a5b (patch) | |
| tree | fb2b4b8b8ca8801780b83e4cb2b649454e1f7e5e | |
| parent | latex select papersize & orientation (diff) | |
latex font sizes
| -rw-r--r-- | org/out_latex.org | 30 | ||||
| -rw-r--r-- | src/doc_reform/io_out/latex.d | 30 | 
2 files changed, 30 insertions, 30 deletions
| diff --git a/org/out_latex.org b/org/out_latex.org index 44ba4ad..0a2cbac 100644 --- a/org/out_latex.org +++ b/org/out_latex.org @@ -214,7 +214,7 @@ auto paper() {              const uint   h            = 228;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "12pt"; +            string       fontsize     = "11pt";              string       name         = "a4paper";              uint         img_px       = 450;              bool         is_portrait  = true; @@ -227,7 +227,7 @@ auto paper() {              const uint   h            = 160;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "11pt"; +            string       fontsize     = "11pt";              string       name         = "a4paper";              uint         img_px       = 300;              bool         is_portrait  = false; @@ -245,7 +245,7 @@ auto paper() {              const uint   h           = 162;              string       width       = format(q"┃%dmm┃", w);              string       height      = format(q"┃%dmm┃", h); -            string       font_size   = "0pt"; +            string       fontsize    = "11pt";              string       name        = "a5paper";              uint         img_px      = 280;              bool         is_portrait = true; @@ -258,7 +258,7 @@ auto paper() {              const uint   h            = 100;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "a5paper";              uint         img_px       = 190;              bool         is_portrait  = false; @@ -276,7 +276,7 @@ auto paper() {              const uint   h            = 204;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "b4paper";              uint         img_px       = 356;              bool         is_portrait  = true; @@ -289,7 +289,7 @@ auto paper() {              const uint   h            = 130;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "b4paper";              uint         img_px       = 260;              bool         is_portrait  = false; @@ -307,7 +307,7 @@ auto paper() {              const uint   h            = 212;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "letterpaper";              uint         img_px       = 468;              bool         is_portrait  = true; @@ -320,7 +320,7 @@ auto paper() {              const uint   h            = 166;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "letterpaper";              uint         img_px       = 290;              bool         is_portrait  = false; @@ -338,7 +338,7 @@ auto paper() {              const uint   h            = 286;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "legalpaper";              uint         img_px       = 474;              bool         is_portrait  = true; @@ -351,7 +351,7 @@ auto paper() {              const uint   h            = 166;              string       width        = format(q"┃%dmm┃", w);              string       height       = format(q"┃%dmm┃", h); -            string       font_size    = "0pt"; +            string       fontsize     = "11pt";              string       name         = "legalpaper";              uint         img_px       = 420;              bool         is_portrait  = false; @@ -1310,7 +1310,7 @@ if (paper_set.is_portrait) {  #+NAME: output_latex_head_format_string_paper_set_format_portrait_variables  #+BEGIN_SRC d -  paper_set.font_size, +  paper_set.fontsize,    paper_set.name,    paper_set.height,    paper_set.width, @@ -1332,7 +1332,7 @@ if (paper_set.is_portrait) {  #+NAME: output_latex_head_format_string_paper_set_format_landscape_variables  #+BEGIN_SRC d -  paper_set.font_size, +  paper_set.fontsize,    paper_set.name,    paper_set.height,    paper_set.width, @@ -1384,7 +1384,7 @@ if (      "letter.landscape" ||      "legal.landscape")  ){ -  links_mono_or_color_set = links.color.strip; +  links_mono_or_color_set = links.mono.strip;  }  #+END_SRC @@ -1401,7 +1401,7 @@ string _latex_head = format(q"┃%%%% spine LaTeX output  #+BEGIN_SRC latex  %%%% Generated by: %s  %%%% D version: %s -%%%% LaTeX output last Generated on: %s +%s  %%%% %s %s  \usepackage{geometry} @@ -1701,7 +1701,7 @@ string _latex_head = format(q"┃%%%% spine LaTeX output  ┃",    doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.name_and_version.strip,    doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.compiler.strip, -  doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.stime.strip, +  doc_matters.opt.action.debug_do_latex ? "" : "", // "%%%% LaTeX output last Generated on: " ~  doc_matters.generator_program.stime.strip,    doc_matters.generator_program.project_name.strip,    doc_matters.generator_program.url_home.strip,    paper_size_orientation_latex.strip, diff --git a/src/doc_reform/io_out/latex.d b/src/doc_reform/io_out/latex.d index 3bea60d..6160a3e 100644 --- a/src/doc_reform/io_out/latex.d +++ b/src/doc_reform/io_out/latex.d @@ -72,7 +72,7 @@ template outputLaTeX() {                const uint   h            = 228;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "12pt"; +              string       fontsize     = "11pt";                string       name         = "a4paper";                uint         img_px       = 450;                bool         is_portrait  = true; @@ -85,7 +85,7 @@ template outputLaTeX() {                const uint   h            = 160;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "11pt"; +              string       fontsize     = "11pt";                string       name         = "a4paper";                uint         img_px       = 300;                bool         is_portrait  = false; @@ -103,7 +103,7 @@ template outputLaTeX() {                const uint   h           = 162;                string       width       = format(q"┃%dmm┃", w);                string       height      = format(q"┃%dmm┃", h); -              string       font_size   = "0pt"; +              string       fontsize    = "11pt";                string       name        = "a5paper";                uint         img_px      = 280;                bool         is_portrait = true; @@ -116,7 +116,7 @@ template outputLaTeX() {                const uint   h            = 100;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "a5paper";                uint         img_px       = 190;                bool         is_portrait  = false; @@ -134,7 +134,7 @@ template outputLaTeX() {                const uint   h            = 204;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "b4paper";                uint         img_px       = 356;                bool         is_portrait  = true; @@ -147,7 +147,7 @@ template outputLaTeX() {                const uint   h            = 130;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "b4paper";                uint         img_px       = 260;                bool         is_portrait  = false; @@ -165,7 +165,7 @@ template outputLaTeX() {                const uint   h            = 212;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "letterpaper";                uint         img_px       = 468;                bool         is_portrait  = true; @@ -178,7 +178,7 @@ template outputLaTeX() {                const uint   h            = 166;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "letterpaper";                uint         img_px       = 290;                bool         is_portrait  = false; @@ -196,7 +196,7 @@ template outputLaTeX() {                const uint   h            = 286;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "legalpaper";                uint         img_px       = 474;                bool         is_portrait  = true; @@ -209,7 +209,7 @@ template outputLaTeX() {                const uint   h            = 166;                string       width        = format(q"┃%dmm┃", w);                string       height       = format(q"┃%dmm┃", h); -              string       font_size    = "0pt"; +              string       fontsize     = "11pt";                string       name         = "legalpaper";                uint         img_px       = 420;                bool         is_portrait  = false; @@ -885,7 +885,7 @@ string table(O,M)(  \documentclass[%s,%s,titlepage]{scrartcl}  \setlength{\textheight}{%s} \setlength{\textwidth}{%s}  ┃", -        paper_set.font_size, +        paper_set.fontsize,          paper_set.name,          paper_set.height,          paper_set.width, @@ -895,7 +895,7 @@ string table(O,M)(  \documentclass[%s,%s,landscape,titlepage,twocolumn]{scrartcl}  \setlength{\textheight}{%s} \setlength{\textwidth}{%s}  ┃", -        paper_set.font_size, +        paper_set.fontsize,          paper_set.name,          paper_set.height,          paper_set.width, @@ -927,12 +927,12 @@ string table(O,M)(        "letter.landscape" ||        "legal.landscape")    ){ -    links_mono_or_color_set = links.color.strip; +    links_mono_or_color_set = links.mono.strip;    }    string _latex_head = format(q"┃%%%% spine LaTeX output  %%%% Generated by: %s  %%%% D version: %s -%%%% LaTeX output last Generated on: %s +%s  %%%% %s %s  \usepackage{geometry} @@ -1112,7 +1112,7 @@ string table(O,M)(    ┃",      doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.name_and_version.strip,      doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.compiler.strip, -    doc_matters.opt.action.debug_do_latex ? "" : doc_matters.generator_program.stime.strip, +    doc_matters.opt.action.debug_do_latex ? "" : "", // "%%%% LaTeX output last Generated on: " ~  doc_matters.generator_program.stime.strip,      doc_matters.generator_program.project_name.strip,      doc_matters.generator_program.url_home.strip,      paper_size_orientation_latex.strip, | 
