diff options
Diffstat (limited to 'org/out_latex.org')
-rw-r--r-- | org/out_latex.org | 30 |
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) |