Re: Is there a way to set options *programatically* ?

2024-04-23 Thread Ihor Radchenko
Emmanuel Charpentier  writes:

> I'd like to create a function able to set some options, namely
>
> - `#+options: tex:`{t|dvipng|imagemagick}
>
> - `#+export-file-name:`
>
> I have been unable to find a *documented* way to do that from `elacs-lisp`.
>
> I *think* that an `org` source block could place those options in the buffer, 
> but I can't find a way to reliably trigger a "setup refreshment" of these 
> options from `emacs-lisp`.
>
> Any ideas ?

You can set `org-export-with-latex' variable value - it is a counterpart
of tex: option. See 13.2 Export Settings section of the manual.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Is there a way to set options *programatically* ?

2024-04-20 Thread Emmanuel Charpentier
Dear list,

I'd like to create a function able to set some options, namely

- `#+options: tex:`{t|dvipng|imagemagick}

- `#+export-file-name:`

I have been unable to find a *documented* way to do that from `elacs-lisp`.

I *think* that an `org` source block could place those options in the buffer, 
but I can't find a way to reliably trigger a "setup refreshment" of these 
options from `emacs-lisp`.

Any ideas ?

Sincerely yours,

--
Emmanuel Charpentier