Re: [NTG-context] EPUB workflow from ConTeXt source?

2011-02-19 Thread Gerben Wierda
On 18 Feb 2011, at 03:43, Mica Semrick wrote:

 Have you considered authoring in something besides context? Say TEI XML or 
 Docbook, or even markdown (if possible)? If markdown is suitable, then you 
 can end up with both epub and context at the end. Or if using TEI or docbook, 
 you can write a map file (something I have been trying to do) and typeset the 
 xml file directly with context. I'm always happier knowing that I can get as 
 many different output types from a single source as possible. 

I use ConTeXt, because for my main project I want detailed influence on layout 
and I want to use a lot of the powerful stuff like indexes, endnotes, 
footnotes, content, etc.. For a second, much simpler, project I was thinking 
about producing EPUB. I rather use only one environment (TeX, in this case 
ConTeXt and the Jove editor and make) and rather not work in multiple 
environments. So, for me, the start is ConTeXt.

G


 
 BR,
 Mica
 
 
 Message: 8
 Date: Thu, 17 Feb 2011 01:10:42 -0700
 From: Daniel Lyons fus...@storytotell.org
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] EPUB workflow from ConTeXt source?
 Message-ID: d7225cf0-f6cf-485f-be01-c8a254efc...@storytotell.org
 Content-Type: text/plain; charset=windows-1252
 
 
 On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote:
 
  On 17-2-2011 8:14, Gerben Wierda wrote:
  On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote:
 
 
  Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl:
 
  I'd like to keep working in one format so I was wondering if there is a
  ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)?
 
  With MkIV you can get a xml version of document with 
  \setupbackend[export=yes].
 
  But that XML is not ePUB's XML, I assume.
 
  no, but one can of course convert one kind of xml into another
 
  for epub one has to provice css etc anyway (and epub is not much more than 
  packaged html + css)
 
 This would also be useful to me. In my experience, the unpleasant part of 
 generating ePub is making correctly formatted manifests and putting them in 
 the right places inside the right kinds of zip files. If ConTeXt could do 
 this for me, it would certainly make life easier. On the other hand, it may 
 not be appropriate to bother because there are other tools that will convert 
 HTML to ePub for you and make the manifests (Calibre, for example).
 
 I consider CSS intractable so that's not something I would worry about 
 ConTeXt generating for me, if it were on the table.
 
  going the other way around, processing an epub file also demands some 
  handywork as the source code is not by definition well structured
 
 
 ePub is definitely structured. I would say too structured, since it makes you 
 provide both a ToC manifest and a navigation manifest that necessarily must 
 include almost identical information ;) Of course, depending on a simplified 
 browser for your document viewing and having lots of secret failover modes to 
 handle poorly formatted documents makes the structure less meaningful than it 
 ought to be.
 
 You are free to break your document into as many HTML chunks as you wish, but 
 you are limited to fairly prosaic HTML and CSS. I'm of the impression the 
 HTML documents generally map onto chapters so as not to distress the 
 hardware's memory constraints too much.
 
 Overall, ePub and Kindle's format strike me as too much and too little 
 respectively. I should be able to change the font and the formatting, but I 
 definitely consider HTML + CSS is too much complexity.
 
 ?
 Daniel Lyons
 
 
 
 --
 
 
 ___
 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] MnSymbol in ConText

2011-02-19 Thread Mojca Miklavec
On Sat, Feb 19, 2011 at 01:26, C. meta...@gmx.de wrote:

 Is there any way to use MnSymbol in context?

It is, but somebody needs to write support for it. Both for MKII and MKIV.

 And why does it work in Latex?

Simply because the author created fonts and LaTeX support files at the
same time, but he doesn't know ConTeXt well enough.

 Please tell me it’s possible

It should be, but not yet out of the box. Somebody needs to take a
look and write a few support files.

Mojca
___
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] EPUB workflow from ConTeXt source?

2011-02-19 Thread Hans Hagen

On 19-2-2011 9:32, Gerben Wierda wrote:

On 18 Feb 2011, at 03:43, Mica Semrick wrote:


Have you considered authoring in something besides context? Say TEI XML or 
Docbook, or even markdown (if possible)? If markdown is suitable, then you can 
end up with both epub and context at the end. Or if using TEI or docbook, you 
can write a map file (something I have been trying to do) and typeset the xml 
file directly with context. I'm always happier knowing that I can get as many 
different output types from a single source as possible.


I use ConTeXt, because for my main project I want detailed influence on layout 
and I want to use a lot of the powerful stuff like indexes, endnotes, 
footnotes, content, etc.. For a second, much simpler, project I was thinking 
about producing EPUB. I rather use only one environment (TeX, in this case 
ConTeXt and the Jove editor and make) and rather not work in multiple 
environments. So, for me, the start is ConTeXt.


in that case use a lot of structure (like \startchapter instead of 
\chapter and \startitem instead of \item) and use the xml export as it 
can be converted to html easily


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] some equivalent of latex beamer \itemuncover@1?

2011-02-19 Thread Hans Hagen

On 18-2-2011 9:35, Pau wrote:

Hello,

I am trying to implement a similar effect to latex beamer's

\begin{itemize}
\itemuncover@1
\itemuncover@2
\itemuncover@3-
\end{itemize}


quite a horrible syntax


What'd be the equivalent/similar/better of that in ConTeXt?


see s-pre-6* and s-pre-7* styles (often examples at the end)

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
___


[NTG-context] [t-vim] Line numbers

2011-02-19 Thread Marco
Hi everybodyoy
Hi Aditya

I like your t-vim module. I think it's a nice concept not te reinvent the
wheel and to take advantage of the hundreds of syntax files of the vim
contributors.

1) You have »Add line numbers« on your TODO list. What's the progress?
2) To set the font size I do the following, is there a better solution like
   bodyfont=xyz for definetyping or is it just fine like this?

\definevimtyping [PHP] [
  syntax=php,
  before={\switchtobodyfont[small]},
]


Marco


___
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] Latest beta: Can't compile a document with lists (with no math fonts)

2011-02-19 Thread Marco Pessotto

I think the same happened some time ago when the not-loading (horrible
word, my english is rotting) of Latin Modern was still an experimental
feature.

Anyway, minimal example:

 start 
\usetypescript[libertine]
\setupbodyfont[libertine,10pt]

\starttext

\startitemize[1]

\item fail

\stopitemize

\stoptext
%%% stop %%% 

It compiles just fine commenting the first 2 lines or with ConTeXt version
2011.01.26 09:01

While with the latest 2011.02.18 

! Math error: parameter \Umathquad\displaystyle is not set.

system   tex  error on line 8 in file fail.tex: Math error: parameter 
\Umathquad\displaystyle is not set ...

 1 \usetypescript[libertine]
 2 \setupbodyfont[libertine,10pt]
 3 
 4 \starttext
 5 
 6 \startitemize[1]
 7 
 8   \item fail
 9 
10 \stopitemize
11 
12 \stoptext


\mathematics ...rmalstartimath #1\normalstopimath 
  \fi 
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname 
  \relax }\relax 
\donormalsymbol ...bol \redosymbol \currentsymbol 
  \fi \fi 
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname 
  \relax }\relax 
\donormalsymbol ...bol \redosymbol \currentsymbol 
  \fi \fi 
to be read again 
   }
...
l.8 \item f
   ail
? 

Sorry, but I can't typeset math unless various parameters have
been set. This is normally done by loading special math fonts
into the math family slots. Your font set is lacking at least
the parameter mentioned earlier.


Best wishes

-- 
Marco

___
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] defined symbols - question/feature suggestion

2011-02-19 Thread Johannes Kuester
On 02/18/2011 02:50 PM, C. wrote:
 ...and I was just about to ask how to use MnSymbol with context. What a shame.
 Any suggestions for a decent looking math font that pairs well with Minion?

Minion Math.

See http://www.typoma.com/en/fonts.html

-- 
Johannes Kuester
typoma

mailto:j...@typoma.com
http://www.typoma.com
___
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] some equivalent of latex beamer \itemuncover@1?

2011-02-19 Thread Hans Hagen

On 19-2-2011 9:57, Pau wrote:

Hello Hans,

thanks for your reply.

This is

Installed Packages
Name: texlive-context


the minimals have some more

-
  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] defined symbols - question/feature suggestion

2011-02-19 Thread C.
I see.
So from your and all the other responses I take that matching math font for 
Minion is not available until
(I) Minion Math supports ConTeXt (= commercial?!)
(II) Somebody ports MnSymbol files to ConTeXt

Possible - yes, available right now - no.
Sadly, I do not have the necessary skill to do (II).
Oh well...

 -Ursprüngliche Nachricht-
 Von: Johannes Kuester [mailto:j...@typoma.com]
 Gesendet: Samstag, 19. Februar 2011 20:29
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] defined symbols - question/feature suggestion
 
 On 02/18/2011 02:50 PM, C. wrote:
  ...and I was just about to ask how to use MnSymbol with context. What a
 shame.
  Any suggestions for a decent looking math font that pairs well with Minion?
 
 Minion Math.
 
 See http://www.typoma.com/en/fonts.html
 
 --
 Johannes Kuester
 typoma
 
 mailto:j...@typoma.com
 http://www.typoma.com


___
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] Latest beta: Can't compile a document with lists (with no math fonts)

2011-02-19 Thread Hans Hagen

On 19-2-2011 5:48, Marco Pessotto wrote:

\usetypescript[libertine]
\setupbodyfont[libertine,10pt]

\starttext

\startitemize[1]

\item fail

\stopitemize

\stoptext


will be fixed

--

-
  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] defined symbols - question/feature suggestion

2011-02-19 Thread Hans Hagen

On 20-2-2011 12:24, C. wrote:

I see.
So from your and all the other responses I take that matching math font for 
Minion is not available until
(I) Minion Math supports ConTeXt (= commercial?!)
(II) Somebody ports MnSymbol files to ConTeXt


Isn't the minion math companion an opentype math font then? Open type 
math works out of the box. For type1's one needs to create a definition 
set (not that complex if tex default encoding is used).


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] some equivalent of latex beamer \itemuncover@1?

2011-02-19 Thread Pau
Hello,

since I somehow managed to end up in the rpm dependence hell with a
broken update of texlive, I went and did a manual *full* install of
texlive 2010... still, I do not find more examples.

Could you enlighten my ignorance with a concise example?

thanks


On 20 February 2011 00:07, Hans Hagen pra...@wxs.nl wrote:
 On 19-2-2011 9:57, Pau wrote:

 Hello Hans,

 thanks for your reply.

 This is

 Installed Packages
 Name        : texlive-context

 the minimals have some more

 -
                                          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] defined symbols - question/feature suggestion

2011-02-19 Thread Wolfgang Schuster

Am 20.02.2011 um 00:40 schrieb Hans Hagen:

 On 20-2-2011 12:24, C. wrote:
 I see.
 So from your and all the other responses I take that matching math font for 
 Minion is not available until
 (I) Minion Math supports ConTeXt (= commercial?!)
 (II) Somebody ports MnSymbol files to ConTeXt
 
 Isn't the minion math companion an opentype math font then? Open type math 
 works out of the box. For type1's one needs to create a definition set (not 
 that complex if tex default encoding is used).

MnSymbol provides only operators and braces, latin and greek letters are taken 
from the Minion text fonts.

Wolfgang

___
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] attachment attaches twice

2011-02-19 Thread Reviczky, Adam
Hi

I'm trying to use PDF attachments again, but run into some issues.
Here's my small example (att.tex):
%%% start %%%
\setupinteraction[state=start]

\starttext
\useattachment[myfile][title][name][att.tex]
\attachment[myfile]
\stoptext
%%% end %%%

1) Using context-current makes 1 attachment, whereas context beta makes 2 
attachments (page + attachments tab?).
I've attached the two generated PDFs. I guess the attachments tab attachment 
is not intended.

2) The third parameter should give a custom name for the attachment, and I 
recall this from old times (maybe mkii) to behave like that, though I can't 
reproduce this now. Is this broken (as it has no effect right now)?

3) I want to have some attachments (source code) from a url, can this be added 
to behave like \externalfigure?
I want to use it like this: 
\useattachment[myfile][title][name][http://git.example.com/master/att.tex];
Right now that just attaches an Unknown (maybe shortcut) but it cannot be 
viewed/opened or saved.

Thanks
Adam


att_20100730.pdf
Description: att_20100730.pdf


att_20110218.pdf
Description: att_20110218.pdf
___
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
___