emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is there a way to set options *programatically* ?
@ 2024-04-20 12:12 Emmanuel Charpentier
  2024-04-23 13:03 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Charpentier @ 2024-04-20 12:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 592 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is there a way to set options *programatically* ?
  2024-04-20 12:12 Is there a way to set options *programatically* ? Emmanuel Charpentier
@ 2024-04-23 13:03 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-04-23 13:03 UTC (permalink / raw)
  To: Emmanuel Charpentier; +Cc: emacs-orgmode

Emmanuel Charpentier <emm.charpentier@free.fr> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-23 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-20 12:12 Is there a way to set options *programatically* ? Emmanuel Charpentier
2024-04-23 13:03 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).