From: Axel Kielhorn <tex@axelkielhorn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Context to epub: itemize
Date: Mon, 16 Feb 2015 17:17:34 +0100 [thread overview]
Message-ID: <26301630-C723-4870-A56D-345219EB4E99@axelkielhorn.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
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
[-- Attachment #2: epub_mwe.tex --]
[-- Type: application/octet-stream, Size: 1758 bytes --]
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = ConTeXt (LuaTeX beta)
\setupbackend[export=yes,xhtml=yes]
\setupexport
[title={Beispieldokument},
author={Axel Kielhorn},
]
\settaggedmetadata[
% here you can set as many metadata entries as you like
title={Beispieldokument},
author={Axel Kielhorn},
subtitle={},
]
\mainlanguage[de]
\setuppapersize [A4][A4]
\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
height=middle, topspace=0.75in, bottomspace=0.75in]
\starttext
\startsection[
reference=auflistungen,
title={Auflistungen}
]
\startparagraph
Hier folgt eine einfach Liste, die als Auflistung dient. Die Liste wird
auch noch dreifach verschachtelt.
\stopparagraph
\startitemize
\startitem Listenpunkt 1 \stopitem
\startitem Listenpunkt 2 \stopitem
\startitemize
\startitem Listenpunkt 2.1 \stopitem
\startitem Listenpunkt 2.2 \stopitem
\stopitemize
\startitem Listenpunkt 3 \stopitem
\startitem Listenpunkt 4 \stopitem
\startitemize
\startitem Listenpunkt 4.1 \stopitem
\startitem Listenpunkt 4.2 \stopitem
\startitemize
\startitem Listenpunkt 4.2.1 \stopitem
\startitem Listenpunkt 4.2.2 \stopitem
\stopitemize
\stopitemize
\stopitemize
\startparagraph
Es folgt noch eine Liste, bei der der Listenpunkt mit
überschrieben wurde. Dazu definiert man ein neues Symbol mit \type{\definesymbol} und verwendet es durch den \type{setupitemgroup} Befehl.
\stopparagraph
{
\definesymbol[itemneu][{$\diamond$}]
\setupitemgroup[symbol=itemneu]
\startitemize
\startitem Listenpunkt 1 \stopitem
\startitem Listenpunkt 2 \stopitem
\stopitemize
}
\stopsection
\stoptext
[-- Attachment #3: Type: text/plain, Size: 3 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2015-02-16 16:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 16:17 Axel Kielhorn [this message]
2015-02-16 18:55 ` Hans Hagen
2015-02-17 6:11 ` Axel Kielhorn
2015-02-17 7:24 ` Epub format Was: " Keith J. Schultz
2015-02-17 20:16 ` Hans Hagen
2015-02-17 21:01 ` Keith Schultz
2015-02-18 16:54 ` Hans Hagen
2015-02-19 9:27 ` Keith Schultz
2015-02-17 22:37 ` Aditya Mahajan
2015-02-18 8:14 ` Henning Hraban Ramm
2015-02-18 14:10 ` Keith J. Schultz
2015-02-18 14:21 ` Henning Hraban Ramm
2015-02-18 16:44 ` Hans Hagen
2015-02-18 16:55 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26301630-C723-4870-A56D-345219EB4E99@axelkielhorn.de \
--to=tex@axelkielhorn.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).