emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Documentation for org html head scripts
@ 2020-07-20 17:31 Paramjit Singh
  2020-09-05  9:45 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Paramjit Singh @ 2020-07-20 17:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi,
I was trying to have a clean html-head while exporting using `ox-html`, and even
while setting

(setq org-html-head-include-default-style nil)
(setq org-html-mathjax-template "")

I would get some code in the header, as shown in the following reddit post:
https://old.reddit.com/r/emacs/comments/humgny/getting_rid_of_excess_header_in_org_html_export/

I tried following the org manual, but a solution was not mentioned in
it. The person who
solved the issue for me in the reddit post recommended letting the devs know
to add it in the documentation. Namely, something like:
"Customizing the variable org-html-head-include-scripts to nil,
disables any scripts
being added to the html-head" (the variable is indeed mentioned,
however, a small
paragraph regarding how to get a clean html-head could be added).

Thanks for the attention. I hope you all are doing well!

Sincerely,
Paramjit


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

* Re: Documentation for org html head scripts
  2020-07-20 17:31 Documentation for org html head scripts Paramjit Singh
@ 2020-09-05  9:45 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2020-09-05  9:45 UTC (permalink / raw)
  To: Paramjit Singh; +Cc: emacs-orgmode

Hi Paramjit,

Paramjit Singh <paramjitrohits@gmail.com> writes:

> I was trying to have a clean html-head while exporting using `ox-html`, and even
> while setting
>
> (setq org-html-head-include-default-style nil)
> (setq org-html-mathjax-template "")
>
> I would get some code in the header, as shown in the following reddit post:
> https://old.reddit.com/r/emacs/comments/humgny/getting_rid_of_excess_header_in_org_html_export/
>
> I tried following the org manual, but a solution was not mentioned in
> it. The person who
> solved the issue for me in the reddit post recommended letting the devs know
> to add it in the documentation. Namely, something like:
> "Customizing the variable org-html-head-include-scripts to nil,
> disables any scripts
> being added to the html-head" (the variable is indeed mentioned,
> however, a small
> paragraph regarding how to get a clean html-head could be added).

Thanks for the suggestion, I added a small section explaining how to
export to bare HTML (see ed8369aff in master).

Best,

-- 
 Bastien


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

end of thread, other threads:[~2020-09-05  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 17:31 Documentation for org html head scripts Paramjit Singh
2020-09-05  9:45 ` Bastien

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