* Cannot export org mode to collapsible HTML
@ 2019-11-03 23:41 Kris Brown
0 siblings, 0 replies; 3+ messages in thread
From: Kris Brown @ 2019-11-03 23:41 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Hi, I am trying to have basic folding functionality for my org file that
has been exported to HTML. I am using Emacs 26.2 (9.0) and Org 9.1.9 on a
Mac.
This seems to be a built-in feature: JavaScript supported display of web
pages
<https://orgmode.org/manual/JavaScript-support.html#JavaScript-support>. I
downloaded my own copy of org-info.js
<http://web.stanford.edu/~ksb/js/org-info.js>. However, I cannot see any
difference when I use the #+INFOJS_OPT commands or not (org with
<https://web.stanford.edu/~ksb/docs/minimal.org>, org without
<https://web.stanford.edu/~ksb/docs/minimal2.org>, html with
<https://web.stanford.edu/~ksb/docs/minimal_org.html>, html without
<https://web.stanford.edu/~ksb/docs/minimal2_org.html>). I would expect to
see collapsible headers and no TOC displayed when I use those commands.
There *is* a difference in the generated HTML files (an extra CDATA region
with a bunch of statements like: *org_html_manager.set("VIEW", "info");*)
but nothing different visually.
Is this happening because org-info.js is no longer being maintained
<https://www.reddit.com/r/emacs/comments/8xnt5s/what_happened_to_orginfojs/>?
Another solution I saw was Daniel Clemente's tool
<https://lists.gnu.org/archive/html/emacs-orgmode/2010-03/msg00472.html>,
though I am at a total loss for what to specify in the org file to
incorporate his esquemadorg.js script. I appreciate any help that could let
me export large org files to HTML while having the headers be collapsible.
[-- Attachment #2: Type: text/html, Size: 1879 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Cannot export org mode to collapsible HTML
@ 2019-11-05 21:53 Kris Brown
2020-04-23 13:09 ` Daniel Clemente
0 siblings, 1 reply; 3+ messages in thread
From: Kris Brown @ 2019-11-05 21:53 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Hi, I am trying to have basic folding functionality for my org file that
has been exported to HTML. I am using Emacs 26.2 (9.0) and Org 9.1.9 on a
Mac.
This seems to be a built-in feature: JavaScript supported display of web
pages
<https://orgmode.org/manual/JavaScript-support.html#JavaScript-support>. I
downloaded my own copy of org-info.js
<http://web.stanford.edu/~ksb/js/org-info.js>. However, I cannot see any
difference when I use the #+INFOJS_OPT commands or not (org with
<https://web.stanford.edu/~ksb/docs/minimal.org>, org without
<https://web.stanford.edu/~ksb/docs/minimal2.org>, html with
<https://web.stanford.edu/~ksb/docs/minimal_org.html>, html without
<https://web.stanford.edu/~ksb/docs/minimal2_org.html>). I would expect to
see collapsible headers and no TOC displayed when I use those commands.
There *is* a difference in the generated HTML files (an extra CDATA region
with a bunch of statements like: *org_html_manager.set("VIEW", "info");*)
but nothing different visually.
Is this happening because org-info.js is no longer being maintained
<https://www.reddit.com/r/emacs/comments/8xnt5s/what_happened_to_orginfojs/>?
Another solution I saw was Daniel Clemente's tool
<https://lists.gnu.org/archive/html/emacs-orgmode/2010-03/msg00472.html>,
though I am at a total loss for what to specify in the org file to
incorporate his esquemadorg.js script. I appreciate any help that could let
me export large org files to HTML while having the headers be collapsible.
[-- Attachment #2: Type: text/html, Size: 2475 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot export org mode to collapsible HTML
2019-11-05 21:53 Cannot export org mode to collapsible HTML Kris Brown
@ 2020-04-23 13:09 ` Daniel Clemente
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Clemente @ 2020-04-23 13:09 UTC (permalink / raw)
To: Kris Brown; +Cc: Org-mode Org-Mode
[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]
> Is this happening because org-info.js is no longer being maintained?
Another solution I saw was Daniel Clemente's tool, though I am at a total
loss for what to specify in the org file to incorporate his esquemadorg.js
script. I appreciate any help that could let me export large org files to
HTML while having the headers be collapsible.
Sorry for the very late answer. I just added some instructions
<https://www.danielclemente.com/pagina/esquemadorg.js> about what to add to
the .org file.
But it looks like the best way is to adapt any existing tool to your needs.
Collapsing/expanding headers isn't very hard — the harder parts are things
like how to make links keep working (e.g. links to sections which are now
collapsed should auto-open it).
On Wed, Nov 6, 2019 at 12:04 AM Kris Brown <sirkris.brown@gmail.com> wrote:
> Hi, I am trying to have basic folding functionality for my org file that
> has been exported to HTML. I am using Emacs 26.2 (9.0) and Org 9.1.9 on a
> Mac.
>
> This seems to be a built-in feature: JavaScript supported display of web
> pages
> <https://orgmode.org/manual/JavaScript-support.html#JavaScript-support>.
> I downloaded my own copy of org-info.js
> <http://web.stanford.edu/~ksb/js/org-info.js>. However, I cannot see any
> difference when I use the #+INFOJS_OPT commands or not (org with
> <https://web.stanford.edu/~ksb/docs/minimal.org>, org without
> <https://web.stanford.edu/~ksb/docs/minimal2.org>, html with
> <https://web.stanford.edu/~ksb/docs/minimal_org.html>, html without
> <https://web.stanford.edu/~ksb/docs/minimal2_org.html>). I would expect
> to see collapsible headers and no TOC displayed when I use those commands.
>
> There *is* a difference in the generated HTML files (an extra CDATA
> region with a bunch of statements like: *org_html_manager.set("VIEW",
> "info");*) but nothing different visually.
>
> Is this happening because org-info.js is no longer being maintained
> <https://www.reddit.com/r/emacs/comments/8xnt5s/what_happened_to_orginfojs/>?
> Another solution I saw was Daniel Clemente's tool
> <https://lists.gnu.org/archive/html/emacs-orgmode/2010-03/msg00472.html>,
> though I am at a total loss for what to specify in the org file to
> incorporate his esquemadorg.js script. I appreciate any help that could let
> me export large org files to HTML while having the headers be collapsible.
>
[-- Attachment #2: Type: text/html, Size: 3718 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-23 13:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-05 21:53 Cannot export org mode to collapsible HTML Kris Brown
2020-04-23 13:09 ` Daniel Clemente
-- strict thread matches above, loose matches on Subject: below --
2019-11-03 23:41 Kris Brown
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.