Re: [NTG-context] EPUB workflow from ConTeXt source?
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 > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] EPUB workflow from ConTeXt source? > Message-ID: > 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
On Sat, Feb 19, 2011 at 01:26, C. 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?
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 \item?
On 18-2-2011 9:35, Pau wrote: Hello, I am trying to implement a similar effect to latex beamer's \begin{itemize} \item \item \item \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
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)
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 } ... 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
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 \item?
Hello Hans, thanks for your reply. This is Installed Packages Name: texlive-context Arch: i686 Version : 2007 Release : 56.fc14 Size: 103 k Repo: installed >From repo : fedora Summary : ConTeXt is a document preparation system based on TeX URL : http://tug.org/texlive/ License : GPLv2 and BSD and Public Domain and LGPLv2+ and GPLv2+ and LPPL Description : ConTeXt is a document preparation system based on TeX. on fedora 14 (latest release). It seems that texlive is not the latest what you have. I don't know whether that makes a difference. In any case, I only have these here: deukalion(pts/101)| locate s-pre-6 /usr/share/texmf/tex/context/base/s-pre-60.tex /usr/share/texmf/tex/context/base/s-pre-61.tex /usr/share/texmf/tex/context/base/s-pre-62.tex /usr/share/texmf/tex/context/base/s-pre-63.tex deukalion(pts/101)| locate s-pre-7 So, no s-pre-7* In one of the 60 I have seen what seems to be what I asked for: In s-pre-61.tex I see \StartSteps \startitemize \item Mark Hollis \FlushStep \item Roger Waters \FlushStep \item David Gilmore \FlushStep \item Peter Gabriel \FlushStep \item Randy Newman \FlushStep \stopitemize \StopSteps Obviously I have to define Steps and I am using for my presentation pre-fuzzy How could I add Step to pre-fuzzy? I have looked into s-pre-61.tex to see whether I could get an idea (I apologise for my ignorance). However, I do not see the function defined in it and, when I tried to run texexec on "exemple.tex", which uses it as \usemodule[s-pre-61] \usemodule[amsl] \useMPlibrary[txt] \starttext \Topic{And Some More} \StartSteps \startitemize \item Mark Hollis \FlushStep \item Roger Waters \FlushStep \item David Gilmore \FlushStep \item Peter Gabriel \FlushStep \item Randy Newman \FlushStep \stopitemize \StopSteps \stoptext -- If fails : - deukalion(pts/101)| texexec exemple.tex TeXExec | processing document 'exemple.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file exemple.top TeXExec | using randomseed 1381 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. (/usr/share/texmf/web2c/natural.tcx) entering extended mode (./exemple.tex ConTeXt ver: 2007.01.12 15:56 MKII fmt: 2010.11.3 int: english/english language: language en is active system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/home/pau/fitx_confg/texinputs/cont-sys.tex (/usr/share/texmf/tex/context/base/type-exa.tex) (/usr/share/texmf/tex/context/base/type-syn.tex) (/usr/share/texmf/tex/context/base/type-enc.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-map.tex) (/usr/share/texmf/tex/context/base/type-spe.tex) (/usr/share/texmf/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec- >13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials: tex,postscript,rokicki loaded system : exemple.top loaded (./exemple.top specials: loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex (/usr/share/texmf/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are disabled system : module s-pre-61 loaded (./s-pre-61.tex system : module pre-60 loaded (./s-pre-60.tex javascript : loading script set stp (/usr/share/texmf/tex/context/base/java-stp.tex) metapost: loading metapost library nav (/usr/share/texmf/tex/context/base/meta-nav.tex)) (/usr/share/texmf/tex/context/base/type-exa.tex) (/usr/share/texmf/tex/context/base/type-syn.tex) (/usr/share/texmf/tex/context/base/type-enc.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-map.tex) (/usr/share/texmf/tex/context/base/type-spe.tex) (
Re: [NTG-context] some equivalent of latex beamer \item?
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
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)
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
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 \item?
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 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
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
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 ___