Antero Mejr <[email protected]> writes:
> Pedro Andres Aranda Gutierrez <[email protected]> writes:
>
>> Could you please try with a more recent org (git master or from elpa)
>> and check whether that fixes your issue?
>
> After updating to latest git, ox-latex and ox-beamer still always
> exports \title{...}. Maybe there needs to be a check for the
> export-with-title value on line 2073 of ox-latex.el?
Why is it a problem?
When org-export-with-title is nil, ox-latex will not write
\maketitle. So, it won't matter whether you have \title{...} or not inside.
> Another problem is that if you need to set a custom title like this:
> #+latex_header: \title[XYZ]{something}
>
> then the exported \title{...} will override it.
> export-with-date is more complicated because LaTeX defaults to today's
> date if \date{} is not present. Maybe there should be an Latex exporter
> option like org-latex-suppress-date? Otherwise
> \date{} cannot be overriden using #+latex_header: either.
You indeed cannot override date/title commands now. This is not a
bug. Maybe missing feature.
> Maybe if #+latex_header: commands were exported further down (after
> \title{}, \date{}, etc.), that could also fix it.
Maybe. But such a change seems risky. I am not sure about possible
consequences of changing the order. It might break some exports for
users.
--
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>