emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line breaks and brackets in LaTeX export


From: Max Nikulin
Subject: Re: Line breaks and brackets in LaTeX export
Date: Sat, 22 Oct 2022 22:55:48 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

On 22/10/2022 12:15, Ihor Radchenko wrote:
as long as the next line does not match
"^[ \t]*\\["

Verse package defines \\! and \\>.

The only precaution that search pattern should ignore \\\[0pt]\] that is a display equation "0pt]"

I propose the following:
1. Merge my patch with \\[0pt] safe page breaks
2. Modify org-latex-template to replace unnecessary occurrences of
    "\\[0pt]" in CONTENTS when org-latex-compact-latex (you may propose
    other defcustom names) is non-nil.

I believe, it is better to introduce a list of filter functions that may perform such optimizing.

The only problem that I see with such approach is that if defined as defcustom then users changed its value will not see default filters added in new Org version. If an alist mapping hook name to enabled/disabled state is used then I am unsure how to determine order of hooks during mixing of standard and user defined functions. I raised a similar question during discussion of org-file-apps.

I do not have a better proposal.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]