ox-twbs icon indicating copy to clipboard operation
ox-twbs copied to clipboard

Broken Navigation for Export on Windows 10

Open noelmiller opened this issue 5 years ago • 3 comments

Greetings everyone!

I do most of my work in linux, but this is fairly annoying on the windows version of emacs and this package installed.

Everytime I do an export using "org-twbs-export-to-html", it does not label the section numbers for the divs properly, which breaks the TOC on the side of the page. This does work in the linux version I am using.

I have posted a code block below of the output HTML inside my browser. I tested this on multiple browsers and the same result occurs.

<div id="content" class="container">
  | <div class="row"><div class="col-md-9"><h1 class="title"></h1>
  | <div id="outline-container-sec-" class="outline-2">
  | <h2 id="sec-">Insert Date Here</h2>
  | <div class="outline-text-2" id="text-">
  | </div><div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">Todos</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">6:00 - 7:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">7:00 - 8:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">8:00 - 9:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">9:00 - 10:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">10:00 - 11:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">11:00 - 12:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">12:00 - 13:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">13:00 - 14:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">14:00 - 15:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">15:00 - 16:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">16:00 - 17:00</h3>
  | </div>
  | <div id="outline-container-sec-" class="outline-3">
  | <h3 id="sec-">17:00 - 18:00</h3>
  | </div>

Thanks,

Noel

noelmiller avatar Apr 01 '19 14:04 noelmiller

Thanks for the info!

I've never tested this package on Windows, so might be hard to fix. Which Emacs and what version are you running for Windows?

In the meantime, as a hack, you could disable the side navigation:

#+TITLE: Example
#+OPTIONS: html-postamble:t toc:nil

The toc:nil will remove it.

marsmining avatar Apr 07 '19 21:04 marsmining

@marsmining ,

Emacs: 26.1 (build 1, x86_64-w64-mingw32, 2018-05-30) Windows 10

I read the docs and saw removing the TOC as an option.

It's just really weird to me why it exports like it does, but maybe windows version of Emacs does something different? I'm not sure.

Thanks for responding!

Noel

noelmiller avatar Apr 08 '19 22:04 noelmiller

I just hit the issue as well, win10 recently updated spacemacs.

Is there a fix other than completely disabling the TOC?

EDIT - it turns out I was using both toc:nil and a custom #+TOC location, removing both fixed it. That's good enough!

lcodes avatar Jul 29 '22 19:07 lcodes