Hello, Marcin Borkowski <mb...@wmi.amu.edu.pl> writes:
> True. This is because org-latex-headline is written this way: > > ,---- > | (if (and numberedp opt-title > | ;; ^^^ ^^^^^^^^^ why this? Maybe there's a good reason... > | (not (equal opt-title full-text)) > | (string-match "\\`\\\\\\(.*?[^*]\\){" section-fmt)) > | (...) > | ;; Impossible to add an alternative heading. Fallback to > | ;; regular sectioning format string. > | (format section-fmt full-text > | (concat headline-label pre-blanks contents))) > `---- > > However, it need not be this way: LaTeX itself (or more precisely: the > default classes) seem to support the alt-title even for starred > sectioning commands. I removed NUMBEREDP, since I cannot remember the reason for its presence. > Also, another way to circumvent this (/if/ there is some deep reason for > the above code which I don't see, which is quite probable) is to hack > into this part of the let form in org-latex-headline: > > ,---- > | (section-back-end > | (org-export-create-backend > | :parent 'latex > | :transcoders > | '((underline . (lambda (o c i) (format "\\underline{%s}" c)))))) > `---- > > and apply a (smart enough) filter in the (auxiliary) section-back-end, > something like removing a match for > > \\footnote{.*?} > > (this would be easy to break; in general, regexen are not a suitable > tool for this, because they can't "count" and match braces; however, > writing a suitable filter should not be extremely difficult). Or ignore completely footnotes-references in the anonymous back-end. However, is it needed since :ALT_TITLE: is now supported for all headlines? I'm not sure. Regards, -- Nicolas Goaziou