On 2/16/2015 5:17 PM, Axel Kielhorn wrote:
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.
the bullets come from math fonts (currently, awaiting additional symbols
in the text fonts)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________