Re: [NTG-context] E-books and XML.
On 8/28/2014 10:10 AM, Henning Hraban Ramm wrote: Am 2014-08-27 um 16:06 schrieb Hans Hagen pra...@wxs.nl: \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. Unfortunately, in that new HTML file, you put all attributes into the class name, so it makes more sense to translate the XML as before. e.g. div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke context-2014.08.27 11:51 file-prd_hraban language-de xmlns:xhtml-http://www.w3.org/1999/xhtml; that one is already fixed div class=division detail-frontpart div class=metadata div class=metavariable name-authorHenning Hraban Ramm, fiëé visuëlle/div those are is okay as a class can have multiple names and the attribute-name prefix can be used for further css detailing ... so we export both xthml old style (using tags, something that browsers understand) and xhtml new style (something that epub devices might be able to handle) 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.
On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote: Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl: div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke context-2014.08.27 11:51 file-prd_hraban language-de xmlns:xhtml-http://www.w3.org/1999/xhtml; that one is already fixed good div class=division detail-frontpart div class=metadata div class=metavariable name-authorHenning Hraban Ramm, fiëé visuëlle/div those are is okay as a class can have multiple names and the attribute-name prefix can be used for further css detailing ... so we export both xthml old style (using tags, something that browsers understand) and xhtml new style (something that epub devices might be able to handle) Ok, I don’t care, will continue to use the XML. Next issue: I just recognized there’s a problem with references, esp. register: section detail=Titel location=aut:2 sectiontitleErinnerung /sectiontitle registerentryErinnerung/registerentry registerpages break/ registerpagelink destination=internal(3) location=aut:34/link/registerpage/registerpages registerentryVor meinem inn’ren Auge schweben Namen/registerentry registerpages break/ registerpagelink destination=internal(4) location=aut:44/link/registerpage/registerpages (These are title and start of lyrics of a song.) Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC. Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name? the internals are the unique ones - 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.
On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote: Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl: div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke context-2014.08.27 11:51 file-prd_hraban language-de xmlns:xhtml-http://www.w3.org/1999/xhtml; that one is already fixed good div class=division detail-frontpart div class=metadata div class=metavariable name-authorHenning Hraban Ramm, fiëé visuëlle/div those are is okay as a class can have multiple names and the attribute-name prefix can be used for further css detailing ... so we export both xthml old style (using tags, something that browsers understand) and xhtml new style (something that epub devices might be able to handle) Ok, I don’t care, will continue to use the XML. Next issue: I just recognized there’s a problem with references, esp. register: section detail=Titel location=aut:2 sectiontitleErinnerung /sectiontitle registerentryErinnerung/registerentry registerpages break/ registerpagelink destination=internal(3) location=aut:34/link/registerpage/registerpages registerentryVor meinem inn’ren Auge schweben Namen/registerentry registerpages break/ registerpagelink destination=internal(4) location=aut:44/link/registerpage/registerpages (These are title and start of lyrics of a song.) Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC. no test file ... no solution ... Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name? 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 ___ -- - 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] Chapter precis
Some old fashioned novels have a chapter précis in the table of contents. In Latex exists the command \chapterprecis to put the text at the beginning of the chapter and in the able of contents. I thought, I can realize this in ConTeXt with \writebetweenlist[chapter]{XYZ} or with \weitetolist[chapter]{XYZ} But both produce only a fatal error. What’s wrong here? Thanks für help! WH ___ 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] Chapter precis
Am 28.08.2014 um 16:17 schrieb Werner Hintze w.hin...@posteo.eu: Some old fashioned novels have a chapter précis in the table of contents. In Latex exists the command \chapterprecis to put the text at the beginning of the chapter and in the able of contents. I thought, I can realize this in ConTeXt with \writebetweenlist[chapter]{XYZ} or with \weitetolist[chapter]{XYZ} But both produce only a fatal error. What’s wrong here? Hard to tell without a example which demonstrates the error because the following works for me. \starttext \completecontent \chapter{This is a chapter} \writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.} \writebetweenlist[chapter][location=here]{This is a summary of the chapter with \tex{writebetweenlist}.} \chapter{This is another chapter} \stoptext 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 ___
Re: [NTG-context] Chapter precis
The example works for me too. But the command doesn’t work in my file. I can’t find out why. On 28 Aug 2014, at 16:46, Wolfgang Schuster wrote: Am 28.08.2014 um 16:17 schrieb Werner Hintze w.hin...@posteo.eu: Some old fashioned novels have a chapter précis in the table of contents. In Latex exists the command \chapterprecis to put the text at the beginning of the chapter and in the able of contents. I thought, I can realize this in ConTeXt with \writebetweenlist[chapter]{XYZ} or with \weitetolist[chapter]{XYZ} But both produce only a fatal error. What’s wrong here? Hard to tell without a example which demonstrates the error because the following works for me. \starttext \completecontent \chapter{This is a chapter} \writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.} \writebetweenlist[chapter][location=here]{This is a summary of the chapter with \tex{writebetweenlist}.} \chapter{This is another chapter} \stoptext 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 ___ ___ 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] Chapter precis
Am 28.08.2014 um 17:11 schrieb Werner Hintze w.hin...@posteo.eu: The example works for me too. But the command doesn’t work in my file. I can’t find out why. Which error message do you get? 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 ___
Re: [NTG-context] Chapter precis
Hmm... That’s really strange, What I did: 1. I deleted the line with \writebetweenlist and compiled the file. It worked. 2. I put back the line and triode to compile - fatal error 3. I commented out all the lines which had something to do with the table of contend - fatal error 4. I changed all back - fatal error (as expected) 5. I commented out all the lines in my project files (all the lines with \input and compiled and got an empty file witour errors. 6. I deleted the comment signs one after the other and compiled every time - no error 7. All was how it was, so I entered the \writebetweenlist (absolutely the same: copy and paste) and ... Tatarata! It works... An enigma. I effectively changed nothing, all is now as it was before. Very, very strange... Anyway: It works. Thanks for the help! WH On 28 Aug 2014, at 16:46, Wolfgang Schuster wrote: Am 28.08.2014 um 16:17 schrieb Werner Hintze w.hin...@posteo.eu: Some old fashioned novels have a chapter précis in the table of contents. In Latex exists the command \chapterprecis to put the text at the beginning of the chapter and in the able of contents. I thought, I can realize this in ConTeXt with \writebetweenlist[chapter]{XYZ} or with \weitetolist[chapter]{XYZ} But both produce only a fatal error. What’s wrong here? Hard to tell without a example which demonstrates the error because the following works for me. \starttext \completecontent \chapter{This is a chapter} \writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.} \writebetweenlist[chapter][location=here]{This is a summary of the chapter with \tex{writebetweenlist}.} \chapter{This is another chapter} \stoptext 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 ___ ___ 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] Chapter precis
Am 28.08.2014 um 17:17 schrieb Werner Hintze w.hin...@posteo.eu: Hmm... That’s really strange, What I did: I deleted the line with \writebetweenlist and compiled the file. It worked. I put back the line and triode to compile - fatal error I commented out all the lines which had something to do with the table of contend - fatal error I changed all back - fatal error (as expected) I commented out all the lines in my project files (all the lines with \input and compiled and got an empty file witour errors. I deleted the comment signs one after the other and compiled every time - no error All was how it was, so I entered the \writebetweenlist (absolutely the same: copy and paste) and ... Tatarata! It works... An enigma. I effectively changed nothing, all is now as it was before. Very, very strange… Do you set all three arguments for \writebetweenlist, i.e. \writebetweenlist[…]{…}{…} 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 ___
Re: [NTG-context] Chapter precis
Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because the text now runs on the whole line, this means also in the region, where the page numbers are. It should terminate before, where the line of dots terminates or so. I see no parameter for this width seems ti be not the right one (it seems, width has no visible effect at all). On 28 Aug 2014, at 17:22, Wolfgang Schuster wrote: Am 28.08.2014 um 17:17 schrieb Werner Hintze w.hin...@posteo.eu: Hmm... That’s really strange, What I did: I deleted the line with \writebetweenlist and compiled the file. It worked. I put back the line and triode to compile - fatal error I commented out all the lines which had something to do with the table of contend - fatal error I changed all back - fatal error (as expected) I commented out all the lines in my project files (all the lines with \input and compiled and got an empty file witour errors. I deleted the comment signs one after the other and compiled every time - no error All was how it was, so I entered the \writebetweenlist (absolutely the same: copy and paste) and ... Tatarata! It works... An enigma. I effectively changed nothing, all is now as it was before. Very, very strange… Do you set all three arguments for \writebetweenlist, i.e. \writebetweenlist[…]{…}{…} 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 ___ ___ 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] Chapter precis
Am 28.08.2014 um 17:46 schrieb Werner Hintze w.hin...@posteo.eu: Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because the text now runs on the whole line, this means also in the region, where the page numbers are. It should terminate before, where the line of dots terminates or so. I see no parameter for this width seems ti be not the right one (it seems, width has no visible effect at all). You can use the maxwidth key to set a limit for the width of the list entry. \definelist[chaptertext] %\setuplist [chaptertext][maxwidth=8cm] \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext 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 ___
Re: [NTG-context] Chapter precis
Sorry. I don’t understand. If I use maxwidth (line 2 without the %), I get just one truncated line of the text. But I’d like to have all the text, somewhat indented on both sides, but not truncated. But why is the text without maxwidth indented on the right? Werner On 28 Aug 2014, at 17:57, Wolfgang Schuster wrote: Am 28.08.2014 um 17:46 schrieb Werner Hintze w.hin...@posteo.eu: Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because the text now runs on the whole line, this means also in the region, where the page numbers are. It should terminate before, where the line of dots terminates or so. I see no parameter for this width seems ti be not the right one (it seems, width has no visible effect at all). You can use the maxwidth key to set a limit for the width of the list entry. \definelist[chaptertext] %\setuplist [chaptertext][maxwidth=8cm] \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext 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 ___ ___ 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, XHTML, and HTML export issue with in URL
With the following example, the output xml writer fails to properly transform to the html entity amp; in some urls; \hyphenatedurl works fine. The generated xhtml and html files have this problem as well as more issues with the transformation, including what appears to be mistaken transformation of and to html entities and unbalanced link tags. When a URL without is used, the problems do not appear. I used the default export-example.css file, and I assume that the lack of interaction in the result reflects the lack of coding for links in that file. This was tested with the 2014-08-27 standalone. \setupbackend[export=xmltest.xml,xhtml=xmltest.xhtml,css=export-example.css] \setupinteraction[state=start] \useURL[avecAmpersand] [http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub] [][klik hier] \starttext \startsubject[title=Fails in xml] \startparagraph \tex{from}: \from[avecAmpersand] \stopparagraph \startparagraph \tex{goto[url]}: \goto{klik hier}[url(http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub)] \stopparagraph \stopsubject \startsubject[title=Okay in xml] \startparagraph \tex{url}: \url[avecAmpersand] \stopparagraph \startparagraph \tex{hyphenatedurl}: \hyphenatedurl{http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub} \stopparagraph \stopsubject \stoptext -- Rik Kabel ___ 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] Chapter precis
Am 28.08.2014 um 18:17 schrieb Werner Hintze w.hin...@posteo.eu: Sorry. I don’t understand. If I use maxwidth (line 2 without the %), I get just one truncated line of the text. But I’d like to have all the text, somewhat indented on both sides, but not truncated. But why is the text without maxwidth indented on the right? When you enable the pagenumber context puts some space between the number and the text. \definelist[chaptertext] \setuplist [chaptertext][margin=2em,pagecommand=\gobbleoneargument] %\setuplist [chaptertext][margin=2em,pagenumber=no] \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext 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 ___
Re: [NTG-context] XML as source (was: E-books and XML)
The best commercial XML editor is oxygenxml IMHO. If you need free, look at xmlmind. -m On August 27, 2014 7:03:06 AM PDT, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: 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 thomas.schm...@uni-bonn.de wrote: On 26 Aug 2014, at 20:04, Hans Hagen pra...@wxs.nl 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 ___ ___ 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] Chapter precis
Aha. I see. So it may work. But I just recalled how to achieve the same result with Latex and Memoir... And I decided to sleep one night and if then my feeling ist the same as now, I'll turn back to Latex. I’m too stupid for such a complicated tool as ConTeXt. I know that it is much better als Latex, but I don’t understand it. It’s now a year that I use it frequently and I have the impression that I made not a single step forward. Let’s see what the morning brings and says ;) Thank you all for all your help! Werner On 28 Aug 2014, at 18:53, Wolfgang Schuster wrote: Am 28.08.2014 um 18:17 schrieb Werner Hintze w.hin...@posteo.eu: Sorry. I don’t understand. If I use maxwidth (line 2 without the %), I get just one truncated line of the text. But I’d like to have all the text, somewhat indented on both sides, but not truncated. But why is the text without maxwidth indented on the right? When you enable the pagenumber context puts some space between the number and the text. \definelist[chaptertext] \setuplist [chaptertext][margin=2em,pagecommand=\gobbleoneargument] %\setuplist [chaptertext][margin=2em,pagenumber=no] \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext 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 ___ ___ 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.
On 8/28/2014 12:54 PM, Henning Hraban Ramm wrote: Am 2014-08-28 um 14:22 schrieb Hans Hagen pra...@wxs.nl: div class=document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke context-2014.08.27 11:51 file-prd_hraban language-de xmlns:xhtml-http://www.w3.org/1999/xhtml; that one is already fixed good div class=division detail-frontpart div class=metadata div class=metavariable name-authorHenning Hraban Ramm, fiëé visuëlle/div those are is okay as a class can have multiple names and the attribute-name prefix can be used for further css detailing ... so we export both xthml old style (using tags, something that browsers understand) and xhtml new style (something that epub devices might be able to handle) Ok, I don’t care, will continue to use the XML. Next issue: I just recognized there’s a problem with references, esp. register: section detail=Titel location=aut:2 sectiontitleErinnerung /sectiontitle registerentryErinnerung/registerentry registerpages break/ registerpagelink destination=internal(3) location=aut:34/link/registerpage/registerpages registerentryVor meinem inn’ren Auge schweben Namen/registerentry registerpages break/ registerpagelink destination=internal(4) location=aut:44/link/registerpage/registerpages (These are title and start of lyrics of a song.) Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC. new beta \setupbackend [export=yes, xhtml=yes, css=export-example.css] \starttext \index{foo}foo \page \index{bar}bar \page \index{foo}foo \page \index{bar}bar \page \index{foo+test}foo \page \index{bar+test}bar \page \placeregister[index] \stoptext gives: register detail=index registersection registertagb/registertag registerentries registerentry registercontentbar/registercontent registerpagesregisterpage2/registerpageregisterseparator,/registerseparatorregisterpage4/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage6/registerpage/registerpages /registerentry /registerentries /registerentries /registersection registersection registertagf/registertag registerentries registerentry registercontentfoo/registercontent registerpagesregisterpage1/registerpageregisterseparator,/registerseparatorregisterpage3/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage5/registerpage/registerpages /registerentry /registerentries /registerentries /registersection /register Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name? 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 ___ -- - 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] XML, XHTML, and HTML export issue with in URL
On 8/28/2014 6:20 PM, Rik Kabel wrote: With the following example, the output xml writer fails to properly transform to the html entity amp; in some urls; \hyphenatedurl works fine. The generated xhtml and html files have this problem as well as more issues with the transformation, including what appears to be mistaken transformation of and to html entities and unbalanced link tags. When a URL without is used, the problems do not appear. I used the default export-example.css file, and I assume that the lack of interaction in the result reflects the lack of coding for links in that file. This was tested with the 2014-08-27 standalone. \setupbackend[export=xmltest.xml,xhtml=xmltest.xhtml,css=export-example.css] \setupinteraction[state=start] \useURL[avecAmpersand] [http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub] [][klik hier] \starttext \startsubject[title=Fails in xml] \startparagraph \tex{from}: \from[avecAmpersand] \stopparagraph \startparagraph \tex{goto[url]}: \goto{klik hier}[url(http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub)] \stopparagraph \stopsubject \startsubject[title=Okay in xml] \startparagraph \tex{url}: \url[avecAmpersand] \stopparagraph \startparagraph \tex{hyphenatedurl}: \hyphenatedurl{http://www.mail-archive.com/search?l=ntg-context@ntg.nlq=Epub} \stopparagraph \stopsubject \stoptext fixed in next beta - 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] Startparagraph oddities
There appears to be an inconsistency in the implementation of \startparagraph. When it is used with one argument (or two by my reading of the source) it defines \stopparagraph with a terminal \endgraf, yet with no arguments this is not done. Strangely (to me) it also appears to insert a line-break before \startparagraph[]. The example below demonstrates these issues. I would expect to have \endgraf inserted with each \stopparagraph regardless of the argument count. There is also a wiki issue with overloading of the command name \startparagraph. The existing command entry points to the paragraphs mechanism for setting up parallel paragraphs in columns. There is also a \startParagraph command described for the t-pararef module. There is no mention of \startparagraph in the \startsection page, which might be an appropriate place. Perhaps some Wikipedia-style disambiguation mechanism is needed. \starttext \startparagraph One \stopparagraph \startparagraph Twee \stopparagraph \startparagraph Drie \stopparagraph \startparagraph[] One \stopparagraph \startparagraph Twee \stopparagraph \startparagraph Drie \stopparagraph \stoptext -- Rik Kabel ___ 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 ___