Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:

>>                    ;; section... we need the brackets
>>                    (let*
>>                      ;; Replace square brackets with parenthesis
>>                      ;; since square brackets are not supported in
>>                      ;; optional arguments.
>>                        ((un-bracketed-alt (replace-regexp-in-string
>>                                            "\\[" "(" 
>> (replace-regexp-in-string "\\]" ")" opt-title)))
>>                         (replacement-re (concat "\\1[" un-bracketed-alt 
>> "]")))
>>                      (setq new-format (replace-match replacement-re nil nil 
>> section-fmt 1))))
>> 
>> I am wondering if we can sompletely drop the part with using 
>> \sectionkwd[...]{...}
>> and instead always use \addcontentsline. This way, we won't need to
>> replace square brackets in the title. WDYT?
>
> No please… It would make no sense from a LaTeX point-of-view and someone with
> LaTeX background make well think there is a bug… Let’s keep LaTeX output 
> LaTeX ;-)

What about using \adcontentsline just for titles with square brackets inside?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to