MT <[email protected]> writes:

> I just made a quick patch that adds an option to allow using =#+latex_header= 
> value from current buffer in Org Babel LaTeX evaluation.  This should free 
> people from repeating them in =:header= arguments for LaTeX source blocks.
>
> Please check the attached patch.
> ...
> +(defcustom org-babel-latex-buffer-latex-header nil
> +  "If non-nil, use the latex headers in current Org buffer for evaluation.
> +
> +All the #+LATEX_HEADER in the buffer will be inserted to the preamble
> +of the Org Babel LaTeX evaluation."
> +  :group 'org-babel
> +  :package-version '(Org . "9.8")
> +  :type 'boolean)

Looks reasonable, but I am wondering if you can do the same using a new
header argument for latex blocks. That way, you can control insertion of
#+latex_header per block rather than only providing a global switch.

Also, if you add a new feature, please document it in the manual and in
etc/ORG-NEWS.

-- 
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