Re: [NTG-context] Font (roboto) and math font - error

2014-08-27 Thread Zenlima
Thanks Hans, it works :)


Am Wed, 27 Aug 2014 22:41:37 +0200
schrieb Hans Hagen :

> On 8/27/2014 9:50 PM, Zenlima wrote:
> > Hi,
> >
> > I am switching all my docs to the roboto font as I just like the
> > look of that font. During this I ran into a problem with \item:
> >
> > ! Math error: parameter \Umathquad\displaystyle is not set.
> > ..
> > l.26  \item h
> > ere we list the points,
> >
> > In my example: as soon I enable any of the two \definetypeface
> > lines I am running into that error.. even if I only enable the math
> > font.
> >
> > Every hint is welcome :)
> >
> > Here is my example to reproduce the error:
> >
> > ---8<--
> >
> > \enableregime[utf]

\definefontfeature[fakesc][default][size=.8]


> > \starttypescript [sans] [roboto]
  
> > \definefontsynonym[Sans][name:robotolight][fallbacks=Sans]
> >\definefontsynonym[SansBold][name:robotoregular]
> >\definefontsynonym[SansItalic][name:robotolightitalic]
> >\definefontsynonym[SansSlanted][name:robotolightitalic]
> >\definefontsynonym[SansBoldItalic][name:robotoregularitalic]
> >\definefontsynonym[SansBoldSlanted][name:robotoregularitalic]
> >\definefontsynonym[SansCaps] [name:robotolight][features=fakesc]
> > \stoptypescript
> > \starttypescript [math] [latinmodern]
> >\definefontsynonym[Math][name:latinmodernmathregular]
> >   \stoptypescript

\definetypeface[fliesstext][ss][sans][roboto]
> > \definetypeface[fliesstext][mm][math][latinmodern][default]


> > \setupbodyfont[fliesstext,ss,11pt]

\starttext
 \startitemize
 \item here 
> > we list the points,
 \item one after the other.
 \stopitemize
\stoptext
> 
> 
> \definefontfeature[fakesc][default][size=.8]
> 
> \starttypescript [sans] [roboto]
>  \definefontsynonym[Sans][name:robotolight][fallbacks=Sans]
>  \definefontsynonym[SansBold][name:robotoregular]
>  \definefontsynonym[SansItalic][name:robotolightitalic]
>  \definefontsynonym[SansSlanted][name:robotolightitalic]
>  \definefontsynonym[SansBoldItalic][name:robotoregularitalic]
>  \definefontsynonym[SansBoldSlanted][name:robotoregularitalic]
>  \definefontsynonym[SansCaps] [name:robotolight][features=fakesc]
> \stoptypescript
> 
> % \starttypescript [math] [latinmodern] [name]
> % \loadfontgoodies[lm]
> % \definefontsynonym [MathRoman]
> [file:latinmodern-math-regular.otf]
> [features={math\mathsizesuffix,lm-math},goodies=lm] % \stoptypescript
> 
> \definetypeface[fliesstext][ss][sans][roboto]
> \definetypeface[fliesstext][rm][sans][roboto]
> \definetypeface[fliesstext][tt][sans][roboto]
> % \definetypeface[fliesstext][mm][math][latinmodern][default]
> \definetypeface[fliesstext][mm][math][modern][default]
> 
> \setupbodyfont[fliesstext,ss,11pt]
> 
> \starttext
> \startitemize
>  \item here we list the points,
>  \item one after the other.
> \stopitemize
> \stoptext
> 
> 
> -
>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
> ___
___
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
___

Re: [NTG-context] changing pre-fuzzy stlye

2014-08-27 Thread Hans Hagen

On 8/27/2014 9:42 AM, Pau wrote:

Dear all,

I am preparing a presentation using pre-fuzzy and I would like to make a
modification without altering the style if possible.

It turns out that the meeting I am attending is not using a projector but a
kind of huge monitor with very low frequency and, as a result, a bright
background is unpleasent on the eyes because of that frequency.

I would like to change the background to black and the text to white.

I am unsure where to do this without modifying the main file for the style
pre-fuzzy.

Any hint will be appreciated.


\usemodule[pre-fuzzy]

\definecolor [BackgroundColor] [black]

\setupcolors[textcolor=white]

.

-
  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
___


Re: [NTG-context] Font (roboto) and math font - error

2014-08-27 Thread Hans Hagen

On 8/27/2014 9:50 PM, Zenlima wrote:

Hi,

I am switching all my docs to the roboto font as I just like the
look of that font. During this I ran into a problem with \item:

! Math error: parameter \Umathquad\displaystyle is not set.
..
l.26  \item h
ere we list the points,

In my example: as soon I enable any of the two \definetypeface lines I
am running into that error.. even if I only enable the math font.

Every hint is welcome :)

Here is my example to reproduce the error:

---8<--

\enableregime[utf]

\definefontfeature[fakesc][default][size=.8]


\starttypescript [sans] [roboto]
  
\definefontsynonym[Sans][name:robotolight][fallbacks=Sans]
   \definefontsynonym[SansBold][name:robotoregular]
   \definefontsynonym[SansItalic][name:robotolightitalic]
   \definefontsynonym[SansSlanted][name:robotolightitalic]
   \definefontsynonym[SansBoldItalic][name:robotoregularitalic]
   \definefontsynonym[SansBoldSlanted][name:robotoregularitalic]
   \definefontsynonym[SansCaps] [name:robotolight][features=fakesc]
\stoptypescript
\starttypescript [math] [latinmodern]
   \definefontsynonym[Math][name:latinmodernmathregular]
  \stoptypescript

\definetypeface[fliesstext][ss][sans][roboto]
\definetypeface[fliesstext][mm][math][latinmodern][default]


\setupbodyfont[fliesstext,ss,11pt]

\starttext
 \startitemize
 \item here we 
list the points,
 \item one after the other.
 \stopitemize
\stoptext



\definefontfeature[fakesc][default][size=.8]

\starttypescript [sans] [roboto]
\definefontsynonym[Sans][name:robotolight][fallbacks=Sans]
\definefontsynonym[SansBold][name:robotoregular]
\definefontsynonym[SansItalic][name:robotolightitalic]
\definefontsynonym[SansSlanted][name:robotolightitalic]
\definefontsynonym[SansBoldItalic][name:robotoregularitalic]
\definefontsynonym[SansBoldSlanted][name:robotoregularitalic]
\definefontsynonym[SansCaps] [name:robotolight][features=fakesc]
\stoptypescript

% \starttypescript [math] [latinmodern] [name]
% \loadfontgoodies[lm]
% \definefontsynonym [MathRoman] [file:latinmodern-math-regular.otf] 
[features={math\mathsizesuffix,lm-math},goodies=lm]

% \stoptypescript

\definetypeface[fliesstext][ss][sans][roboto]
\definetypeface[fliesstext][rm][sans][roboto]
\definetypeface[fliesstext][tt][sans][roboto]
% \definetypeface[fliesstext][mm][math][latinmodern][default]
\definetypeface[fliesstext][mm][math][modern][default]

\setupbodyfont[fliesstext,ss,11pt]

\starttext
\startitemize
\item here we list the points,
\item one after the other.
\stopitemize
\stoptext


-
  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
___

[NTG-context] Font (roboto) and math font - error

2014-08-27 Thread Zenlima
Hi,

I am switching all my docs to the roboto font as I just like the
look of that font. During this I ran into a problem with \item:

! Math error: parameter \Umathquad\displaystyle is not set.
..
l.26  \item h
   ere we list the points,

In my example: as soon I enable any of the two \definetypeface lines I
am running into that error.. even if I only enable the math font. 

Every hint is welcome :)

Here is my example to reproduce the error:

---8<--

\enableregime[utf]

\definefontfeature[fakesc][default][size=.8]


\starttypescript [sans] [roboto]
  
\definefontsynonym[Sans][name:robotolight][fallbacks=Sans]
  \definefontsynonym[SansBold][name:robotoregular]
  \definefontsynonym[SansItalic][name:robotolightitalic] 
  \definefontsynonym[SansSlanted][name:robotolightitalic] 
  \definefontsynonym[SansBoldItalic][name:robotoregularitalic]
  \definefontsynonym[SansBoldSlanted][name:robotoregularitalic]
  \definefontsynonym[SansCaps] [name:robotolight][features=fakesc]
\stoptypescript 
\starttypescript [math] [latinmodern]
  \definefontsynonym[Math][name:latinmodernmathregular]
 \stoptypescript

\definetypeface[fliesstext][ss][sans][roboto]
\definetypeface[fliesstext][mm][math][latinmodern][default]


\setupbodyfont[fliesstext,ss,11pt]

\starttext
 \startitemize
 \item here we 
list the points,
 \item one after the other.
 \stopitemize
\stoptext
___
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
___

Re: [NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Jan Tosovsky
On 2014-08-27 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>
> Which editor(s) (including commercial one(s)) do you usually use to
> create XML source for Ctx? (Under Windows?)

This is IMO the best you can currently get:
http://www.oxygenxml.com/xml_author.html

> - XML input vs. .tex (.cld) source:
> 
> IMHO, when one needs to program parts of Ctx source, it's better to use
> TeX source/language combined with Lua or CLD.
> 
> Or - is it possible to program anyhow in XML source (Lua)?

Most natural way for XML processing is XSLT transformation (kind of functional 
programming language). 

It is advisable to choose one of standardized vocabulary (DocBook, DITA, TEI) 
what give you a set of out-of-the-box XSLT stylesheets for common output 
formats. And in some tools, e.g. Oxygen, you can get additional level of 
comfort (various schema related functionality boosting your productivity) over 
using your own XML structure.

In case of DocBook you can get even Context output using this XSLT set:
http://dblatex.sourceforge.net/ (there is a dbcontext part in the download 
section)

Actually, this is my way of using ConTeXt, but with various MKIV compatibility 
tweaks. From the same DocBook XML source I am producing epub and also WebHelp 
(set of HTML pages).
http://docbook.sourceforge.net/release/xsl/current/webhelp/docs/ch01.html

HTH, Jan

___
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
___

Re: [NTG-context] E-books and XML.

2014-08-27 Thread Schmitz Thomas A.

On 27 Aug 2014, at 16:38, john Culleton  wrote:

> Some questions:
> What tool do you recommend for entering text etc.
> in XML format? I have the Bluefish Editor but
> usually code html in a plain editor (Gvim).

“Recommend” is too strong, because everything depends on the type of document 
you’re working on. I mainly use emacs + nxml mode. It validates on the fly, if 
your document is well defined, you can make it validate against a relax-ng 
scheme. To me, this is sufficient. I know that many serious users of nxml swear 
by oxygen. And I wouldn’t be surprised if Hans used his beloved Scite. (As for 
Lukas’s question: sorry, I don’t do Windows, I have no clue)

> 
> I downloaded the manual "Dealing with XML in
> MKIV" but it presupposes that the user builds his
> own conversion system. And it is "still somewhat
> exerimental." Is there a conversion system already
> in place somewhere?

I have been using it for a number of years now and have found it as stable as 
the rest of ConTeXt. Every once in a while, a bug will come up, and it will be 
fixed by Hans.

Have you seen the wiki page about TEI xml and about processing xml with Lua? 
That should be a good start.

> 
> For the beginner (me) is the MKII method easier
> to implement?

No, I would say both are about equal in complexity, but the mkiv method is so 
much more powerful and consistent, I really wouldn’t bother with mkii anymore.

One reason for me to use xml: I generate presentations, manuscripts, handouts 
from the same source (all with context). When I’m not typesetting the book 
myself, editors usually want some sort of word or libreoffice document. When my 
input is xml, it is relatively trivial to transform it to valid html and load 
that into libreoffice. 

Again: much depends on the type of document you’re working on. If every 
document you write is its own piece of art with numerous font effects and 
special typesetting needs on every page, I would stay with context syntax. But 
if your documents have a pretty predictable structure and you don’t expect to 
be forced to tweak individual page breaks, I would have a very long look at 
xml. I have grown to like it. If you have ever looked at a tex source document 
and tried to figure out where the missing brace in your }} orgy came 
from, you will love the tags and their nice nesting.

Thomas
___
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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread john Culleton
On Tue, 26 Aug 2014 20:12:25 +0200
"Thomas A. Schmitz" 
wrote:

> 
> On 26 Aug 2014, at 20:04, Hans Hagen
>  wrote:
> 
> >> 
> >> Context users have invested time, often
> >> years, in learning how to write Context
> >> code. Writing XML is a whole other skillset,
> >> comparable to writing xhtml.
> > 
> > It's not so different if you're accustomed to
> > structure.
> 
> To chime in: xml input facilitates the
> separation of content and display. There are
> many tools which will validate xml as you type.
> Your context skills will not be lost - if you
> have invested years in learning to code, you
> will still be able to do this in your
> environment files. John's argument does not
> make sense to me.  If someone new to context
> asked me, I think I would advise her or him to
> use xml input which is more versatile and
> easier to proofread for a beginner. And if one
> day in 20 years she decides she wants to use
> another tool for her files, it’s much easier to
> convert xml.
> 
> Thomas
> 
> ___
> 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
> ___
> 
> 
> ___
> Unlimited Disk, Data Transfer, PHP/MySQL Domain
> Hosting http://www.doteasy.com 

Some questions:
What tool do you recommend for entering text etc.
in XML format? I have the Bluefish Editor but
usually code html in a plain editor (Gvim).

I downloaded the manual "Dealing with XML in
MKIV" but it presupposes that the user builds his
own conversion system. And it is "still somewhat
exerimental." Is there a conversion system already
in place somewhere?

For the beginner (me) is the MKII method easier
to implement?

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html
___
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
___


[NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Thomas,

I'm just curious:

- Which editor(s) (including commercial one(s)) do you usually use to create 
XML source for Ctx? (Under Windows?)

- XML input vs. .tex (.cld) source:

IMHO, when one needs to program parts of Ctx source, it's better to use TeX 
source/language combined with Lua or CLD.

Or - is it possible to program anyhow in XML source (Lua)?

I have no practical experience with (manual) creation of XML input files for 
Ctx (yes, of course, there are some .xml sources generated by other programs).

So, I can imagine one prepares source for Ctx as XML when he creates something 
"belletristic"-like;
when one needs to process many products of other programs, plus to add 
comments, reports or so, something programmable is necessary;
so, IMHO, XML might be useful for the latter case providing a) programming 
capabilities and b) good XML editor.

Best regards,

Lukas


On Tue, 26 Aug 2014 20:12:25 +0200, Thomas A. Schmitz 
 wrote:



On 26 Aug 2014, at 20:04, Hans Hagen  wrote:

To chime in: xml input facilitates the separation of content and display. There 
are many tools which will validate xml as you type. Your context skills will 
not be lost - if you have invested years in learning to code, you will still be 
able to do this in your environment files. John's argument does not make sense 
to me.  If someone new to context asked me, I think I would advise her or him 
to use xml input which is more versatile and easier to proofread for a 
beginner. And if one day in 20 years she decides she wants to use another tool 
for her files, it’s much easier to convert xml.



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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
___

Re: [NTG-context] E-books and XML.

2014-08-27 Thread Hans Hagen

On 8/27/2014 11:46 AM, Henning Hraban Ramm wrote:

Am 2014-08-27 um 15:37 schrieb Hans Hagen :


On 8/27/2014 11:25 AM, Henning Hraban Ramm wrote:


Am 2014-08-27 um 15:05 schrieb Hans Hagen :

I.e. the root node  is missing.


hm, can you make a small example?


Here you are.


Ah, the document tags are hooked into starttext and at startproduct time export 
is not yet enabled,


Nice that you immediately found the error! I suppose it is fixed in next beta?


Indeed. Uploading now. You were lucky that I was looking at the export 
already ... now


\setupbackend
  [export=yes,
   xhtml=yes,
   css=export-example.css]

also exports an html file with all tags being 'div' and the default css 
has been adapted to support both. The default css still need some work 
because not all browsers handle these div expressions equally well. The 
idea is to have a decent looking default as template (one can always 
overload).


I have no ebook device (threw away the broken very old one) so no 
testing of that part done.


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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Henning Hraban Ramm
Am 2014-08-27 um 15:37 schrieb Hans Hagen :

> On 8/27/2014 11:25 AM, Henning Hraban Ramm wrote:
>> 
>> Am 2014-08-27 um 15:05 schrieb Hans Hagen :
 I.e. the root node  is missing.
>>> 
>>> hm, can you make a small example?
>> 
>> Here you are.
> 
> Ah, the document tags are hooked into starttext and at startproduct time 
> export is not yet enabled,

Nice that you immediately found the error! I suppose it is fixed in next beta?


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Hans Hagen

On 8/27/2014 11:25 AM, Henning Hraban Ramm wrote:


Am 2014-08-27 um 15:05 schrieb Hans Hagen :

I.e. the root node  is missing.


hm, can you make a small example?


Here you are.


Ah, the document tags are hooked into starttext and at startproduct time 
export is not yet enabled,


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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Hans Hagen

On 8/27/2014 9:02 AM, Henning Hraban Ramm wrote:


Am 2014-08-26 um 23:29 schrieb Hans Hagen :


On 8/26/2014 7:08 PM, Henning Hraban Ramm wrote:


Creating ePub from ConTeXt is still tedious - you need to tag everything (even 
paragraphs) with \start/\stop, the resulting export.xml is still missing a root 
node if you use project structure (components), and you need to tinker a lot 
with the results, since even available information like title is not written to 
the relevant ePub files.


rootnode .. in what sense?


Sorry Hans, I complained about that several times already:

If I have a project structure, i.e. a product with components, export.xml 
starts like

“““








  
“““

And since there are several s or other top nodes, Saxon rejects the 
file because it’s missing a root node.
 is always put into the first node of the file (that should be the 
root node).

Only with a single TeX file, I get something like

“““







  http://www.w3.org/1998/Math/MathML";>
  
“““

I.e. the root node  is missing.


hm, can you make a small example?

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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Henning Hraban Ramm

Am 2014-08-26 um 23:08 schrieb Henning Hraban Ramm :
> I’m at the moment working at ePub versions of my somgbooklets (using 
> LilyPond) and have a bunch of XSL transformations plus shell script (Lua 
> would have more style, I know) to automate as much as possible.
> That stuff is in a state of „works for me“, will try to flesh out the wiki 
> page as soon as I’m content.

I made it an own page:
http://wiki.contextgarden.net/Epub_Sample

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___


[NTG-context] changing pre-fuzzy stlye

2014-08-27 Thread Pau
Dear all,

I am preparing a presentation using pre-fuzzy and I would like to make a
modification without altering the style if possible.

It turns out that the meeting I am attending is not using a projector but a
kind of huge monitor with very low frequency and, as a result, a bright
background is unpleasent on the eyes because of that frequency.

I would like to change the background to black and the text to white.

I am unsure where to do this without modifying the main file for the style
pre-fuzzy.

Any hint will be appreciated.

thanks
___
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
___


Re: [NTG-context] E-books and XML.

2014-08-27 Thread Henning Hraban Ramm

Am 2014-08-26 um 23:29 schrieb Hans Hagen :

> On 8/26/2014 7:08 PM, Henning Hraban Ramm wrote:
> 
>> Creating ePub from ConTeXt is still tedious - you need to tag everything 
>> (even paragraphs) with \start/\stop, the resulting export.xml is still 
>> missing a root node if you use project structure (components), and you need 
>> to tinker a lot with the results, since even available information like 
>> title is not written to the relevant ePub files.
> 
> rootnode .. in what sense?

Sorry Hans, I complained about that several times already:

If I have a project structure, i.e. a product with components, export.xml 
starts like

“““








 
“““

And since there are several s or other top nodes, Saxon rejects the 
file because it’s missing a root node.
 is always put into the first node of the file (that should be the 
root node).

Only with a single TeX file, I get something like

“““







 http://www.w3.org/1998/Math/MathML";>
 
“““

I.e. the root node  is missing.


If you were to enhance ePub facilities (how much must I pay you?), it would be 
nice to see the data that you put in „metavariables“ (title, author) also in 
the generated OPF, NCX and cover files, and the main language in OPF.
My script also creates a cover image from the first page of the content PDF as 
well as converts and copies all the included images, but your usual reasoning 
that everyone has other needs is of course true.

I resolved to generate content, cover, NCX and OPF from export.xml via XSLT, 
i.e. throw away most of what the epub script does.
But the structure of registers (that I abuse for a sorted ToC) is hard to 
parse, because there’s no structure that links register text and page number, 
e.g.:

   

 
  A Elbereth Gilthoniel
  
47
  Abitur
  
38
  Agradini
  
16
  Amselchen
  
66

My XSL for NCX looks like:


http://www.w3.org/1999/XSL/Transform";>





http://www.daisy.org/z3986/2005/ncx/"; version="2005-1">



























Start










  





content.xhtml#












Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___