[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-latex question
From: |
Nicolas Goaziou |
Subject: |
Re: [O] org-latex question |
Date: |
Sun, 12 Apr 2015 20:15:23 +0200 |
Hello,
Marcin Borkowski <address@hidden> 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
- [O] org-latex question, Vikas Rawal, 2015/04/11
- Re: [O] org-latex question, Nicolas Goaziou, 2015/04/12
- Re: [O] org-latex question, Vikas Rawal, 2015/04/12
- Re: [O] org-latex question, Marcin Borkowski, 2015/04/12
- Re: [O] org-latex question,
Nicolas Goaziou <=
- Re: [O] org-latex question, Vikas Rawal, 2015/04/27
- Re: [O] org-latex question, Marcin Borkowski, 2015/04/27
- Re: [O] org-latex question, Vikas Rawal, 2015/04/27
- Re: [O] org-latex question, Nicolas Goaziou, 2015/04/27
- Re: [O] org-latex question, Vikas Rawal, 2015/04/28
- Re: [O] org-latex question, Nicolas Goaziou, 2015/04/28
- Re: [O] org-latex question, Vikas Rawal, 2015/04/28
- Re: [O] org-latex question, Vikas Rawal, 2015/04/28
- Re: [O] org-latex question, Nick Dokos, 2015/04/27
- Re: [O] org-latex question, Vikas Rawal, 2015/04/28