[NTG-context] Context to epub: itemize

Axel Kielhorn tex at axelkielhorn.de
Mon Feb 16 17:17:34 CET 2015


Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but when I look into the xhtml, there is no itemize environment. (At least no with Safari, Firefox or Calibre.) When use vi I see something that looks like my items in a very complex form.

I was expecting something like

<ul>
  <li>   </li>
  <li>   </li>
</ul>

but i see

<div class="itemgroup itemize level-1 symbol-1">
  <div class="item">
    <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>•</m:mo></m:math></div>
    <div class="itemcontent">Listenpunkt 1</div>
  </div>
  <div class="item">
    <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>•</m:mo></m:math></div>
    <div class="itemcontent">Listenpunkt 2 
      <div class="itemgroup itemize level-2 symbol-2">
      <div class="item">
      <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>−</m:mo></m:math></div>
    <div class="itemcontent">Listenpunkt 2.1</div></div> 
    <div class="item">
    <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>−</m:mo></m:math></div>
    <div class="itemcontent">Listenpunkt 2.2</div></div></div></div>
    </div>

Shouldn't the itemtag definition come from the default.css instead of using MathML?

itemgroup[symbol="1"], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context     | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.

Axel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: epub_mwe.tex
Type: application/octet-stream
Size: 1684 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150216/ef5c4dd2/attachment.obj>
-------------- next part --------------





More information about the ntg-context mailing list