aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-12-19 13:31:16 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2020-02-11 13:07:30 -0500
commita87543d091135cfe60cdb95c1f65f53313857378 (patch)
tree27a816c206f8d2e2c526036b41c80bc3eb83fd29 /org
parentcosmetic primarily "format" (diff)
latex, footnotes only (endnotes section removed)
Diffstat (limited to 'org')
-rw-r--r--org/out_latex.org30
1 files changed, 17 insertions, 13 deletions
diff --git a/org/out_latex.org b/org/out_latex.org
index b88324e..8ae369b 100644
--- a/org/out_latex.org
+++ b/org/out_latex.org
@@ -631,17 +631,19 @@ string bullets_and_indentation(O)(
(doc_matters.conf_make_meta.meta.rights_license).sp_char_esc_txt,
);
} else if (obj.metainfo.heading_lev_markup < 4) {
- _tex_para = q"┃%s\part*{\begin{tiny}\hspace{0mm}\end{tiny}{\marginpar{\begin{tiny}\hspace{0mm}\hypertarget{%s}{%s}\end{tiny}}}%s}
+ if (!(_txt.footnotes.strip == "Endnotes")) {
+ _tex_para = q"┃%s\part*{\begin{tiny}\hspace{0mm}\end{tiny}{\marginpar{\begin{tiny}\hspace{0mm}\hypertarget{%s}{%s}\end{tiny}}}%s}
\addcontentsline{toc}{part}{%s}
\markboth{%s}┃";
- _txt = format(_tex_para,
- _pg_break,
- obj.metainfo.object_number,
- obj.metainfo.object_number,
- _txt.strip.footnotes,
- _txt.strip.remove_footnotes,
- (doc_matters.conf_make_meta.meta.title_main).sp_char_esc_txt,
- );
+ _txt = format(_tex_para,
+ _pg_break,
+ obj.metainfo.object_number,
+ obj.metainfo.object_number,
+ _txt.strip.footnotes,
+ _txt.strip.remove_footnotes,
+ (doc_matters.conf_make_meta.meta.title_main).sp_char_esc_txt,
+ );
+ }
} else if (obj.metainfo.heading_lev_markup > 3) {
if (obj.metainfo.heading_lev_markup == 4
&& _txt.match(regex(r"^Table of Contents$"))) {
@@ -1689,10 +1691,12 @@ string latex_body(D,M)(
_txt = _txt.heading(obj, doc_matters, part);
goto default;
case "endnote": assert(part == "endnotes");
- _txt = _txt.para(obj)
- .bullets_and_indentation(obj)
- .links_and_images(obj, doc_matters);
- goto default;
+ /* uncomment code to reinstate endnotes in endnote section */
+ // _txt = _txt.para(obj)
+ // .bullets_and_indentation(obj)
+ // .links_and_images(obj, doc_matters);
+ // goto default;
+ break;
case "glossary": assert(part == "glossary");
_txt = _txt.para(obj)
.bullets_and_indentation(obj)