Re: [NTG-context] random bookmarks not linked (with example)
Am 15.02.2012 um 23:51 schrieb Hans Hagen: On 15-2-2012 20:59, Steffen Wolfrum wrote: Dear developers, friends please have a look at the bug described below! It is not an academic detail ... It's a real book that's already have finished, containing hundreds of sections. And unfortunately dozens of these cripples bookmarks. I don't know what else I can do for debugging. Is there some advanced logging magic? i'll have a look at it but not today ok, great btw, never use betas for critical (deadline) projects), esp not now I'm redoing some otr and structure code (thanks for the warning) Steffen ___ 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] random bookmarks not linked (with example)
On 15-2-2012 12:28, Steffen Wolfrum wrote: Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX ... no destination is set. (As I explained before, this does not mean that anything strange is going on at \subsection{SIX}. If the minimal file was longer, the missing link would have been somewhere else.) If I delete the used \index entries the bug is gone. And if I delete the used \mycite commands the bug is gone, too. I hope this test file might help ... like Luigi I get a pdf where 1.1.2 SIX is a proper link 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] random bookmarks not linked (with example)
Am 16.02.2012 um 09:20 schrieb Hans Hagen: On 15-2-2012 12:28, Steffen Wolfrum wrote: Hi Hans, finally I managed to figure out a minimal 3 page example that can reproduce this strange bug! It seems to be an interaction of \cite and \index with sectioning/bookmark generation: Please run chap_1.tex and click on the bookmark 1.1.2 SIX ... no destination is set. (As I explained before, this does not mean that anything strange is going on at \subsection{SIX}. If the minimal file was longer, the missing link would have been somewhere else.) If I delete the used \index entries the bug is gone. And if I delete the used \mycite commands the bug is gone, too. I hope this test file might help ... like Luigi I get a pdf where 1.1.2 SIX is a proper link my project is an already finished and printed book. it was set with context vers. 2011.05.14, in this version the link is missing now the publishers asked for the pdf (to provide it on-line too) and thus they noticed the defect. unfortunately running the same project with todays beta gives different line breaks and so different page breaks. which is not acceptable for the publishers. I retried it with vers. 2012.01.16, also here the link is missing: do you remember what changed you made between, say 2012.01.16 (not working) and today (working)? then maybe a patch can be found out that could also be adapted to my original vers. 2011.05.14? Steffen ___ 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] beta
Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact is speed. The adventurous might want to try out \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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] Getting changing/random graphics?
On 16-2-2012 07:43, Mari Voipio wrote: Hello all, I'm trying to do something that should be possible and I think variables is the answer, I just can't figure out how. I have a pile of photos (jpg) in a directory and the assumption is that they are all the same size and there's a spot for the photo on a layer at the top of the page. I already found out how I can get ConTeXt to draw the layer separately for each page (at http://wiki.contextgarden.net/layers#Use_dynamic_content), but I think I need a variables for dummies page... This time I'm not too picky, the images can be used randomly or in the order they are in the directory and then cycled, I'd just like to use more than one (and I'm so not doing every page by hand). So, if I have photo1.jpg photo2.jpg photo3.jpg photo4.jpg and \dorecurse{10}{insert random photo here}, how do I do it? More fancy ... \startluacode local files = { } function document.collectgraphics(pattern) files = table.merged(files,dir.glob(pattern)) files = table.unique(files) table.sort(files) logs.report(string.format(graphics: %s,table.concat(files, ))) end function document.choosegraphics() if #files 0 then context(table.remove(files, math.random(1,#files)) or dummy) else context(dummy) end end \stopluacode \def\CollectGraphics[#1]{\ctxlua{document.collectgraphics(#1)}} \def\ChooseGraphic {\ctxlua{document.choosegraphic()}} \CollectGraphics[*.png] \CollectGraphics[*.jpg] \starttext \dorecurse {10} { \expanded{\externalfigure[\ChooseGraphic][width=4cm]} } \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 ___
Re: [NTG-context] Getting changing/random graphics?
On 16-2-2012 07:43, Mari Voipio wrote: I'm trying to do something that should be possible and I think variables is the answer, I just can't figure out how. attached .. (will be in test suite) 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 - % For Mari Voipio \startluacode local files = { } function document.collectgraphics(pattern) files = table.merged(files,dir.glob(pattern)) files = table.unique(files) table.sort(files) logs.report(string.format(graphics: %s,table.concat(files, ))) end function document.choosegraphic() if #files 0 then context(table.remove(files, math.random(1,#files)) or dummy) else context(dummy) end end \stopluacode \def\CollectGraphics[#1]{\ctxlua{document.collectgraphics(#1)}} \def\ChooseGraphic {\ctxlua{document.choosegraphic()}} \CollectGraphics[*.png] \CollectGraphics[*.jpg] \starttext \dorecurse {10} { \expanded{\externalfigure[\ChooseGraphic][width=4cm]} } \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] Getting changing/random graphics?
On 2012-02-16 Mari Voipio mari.voi...@iki.fi wrote: So, if I have photo1.jpg photo2.jpg photo3.jpg photo4.jpg and \dorecurse{10}{insert random photo here}, how do I do it? \dorecurse{4}{\externalfigure[photo\recurselevel]} Beware, \recurselevel counts go like this 1 2 3 4 5 …. If your photos are not numbered according to this scheme, the 10th picture will bite you. 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] epub
I would like to prepare some student material in epub format and tried the export-example.tex as follows: - context export-example (by the way, gives an error with the latest beta, not with 2011.12.19 22:53, but produces the output; shouldn't matter here). - mtxrun --script epub --make export-example (tells me sh: 7z: command not found, but produces an epub file. Zipping manually doesn't make a difference). In Calibre, only the text appears -- no paragraphs or anything else. The same happens when I try a minimal example with just paragraphs, bold, italic and sections. Most likely I misunderstood something, or is epub support still too preliminary (see http://wiki.contextgarden.net/epub)? I'm using current version: 2012.02.16 09:55 on a Mac (Lion). Thanks, Jörg___ 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
On Thu, Feb 16, 2012 at 11:51 AM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: I would like to prepare some student material in epub format and tried the export-example.tex as follows: - context export-example (by the way, gives an error with the latest beta, not with 2011.12.19 22:53, but produces the output; shouldn't matter here). - mtxrun --script epub --make export-example (tells me sh: 7z: command not found, but produces an epub file. Zipping manually doesn't make a difference). In Calibre, only the text appears -- no paragraphs or anything else. The same happens when I try a minimal example with just paragraphs, bold, italic and sections. Most likely I misunderstood something, or is epub support still too preliminary (see http://wiki.contextgarden.net/epub)? I'm using current version: 2012.02.16 09:55 on a Mac (Lion). Thanks, Jörg Comment %\starttabulate[|l|r|p|] %\NC left \NC right \NC \input ward \NC \NR %\NC l\NC r \NC \input ward \NC \NR %\stoptabulate and be sure to have all the images in the same folder, to have 7z and inkscape --- otherwise comment %\placefigure % {} % {\externalfigure[cow.pdf]} I've just made the epub, if you want I can send you. -- luigi ___ 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] UTF conversion via Lua
Hello, one more question - - does regimes.translate allow to translate between arbitrary encodings or only from the specified to the current one? str = regimes.translate(str, cp1250) -- = Translate from cp1250 to the current encoding (UTF) (or always to UTF?) I'm looking for something like: src_enc = utf8 tgt_enc = cp1250 str = regimes.translate(str, src_enc, tgt_enc) Any idea? Best regards, Lukas On Fri, 10 Feb 2012 13:25:40 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: str = regimes.translate(str,cp1250) -- 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 244 062 238 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] UTF conversion via Lua
On 16-2-2012 12:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, one more question - - does regimes.translate allow to translate between arbitrary encodings or only from the specified to the current one? no, although it's no big deal to provide that (of course there is then the matter of utf being more complete than the target) str = regimes.translate(str, cp1250) -- = Translate from cp1250 to the current encoding (UTF) (or always to UTF?) I'm looking for something like: src_enc = utf8 tgt_enc = cp1250 str = regimes.translate(str, src_enc, tgt_enc) Any idea? is there a reason not to stick to utf? 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] error with m-database example
On 16-2-2012 12:03, Martin wrote: Admittedly I feel a bit lost when looking at the various processing modules... My goal is to create template based output. I have created a rough mail-merge example (with LibreOffice) and attached it as PDF for illustration. There is a CSV database with currently 8 fields, probably a few more will be added. These fields need to be placed into a form, in my example a list of courses. Other forms based on the same data should follow. These forms/lists will then be printed. Hope that makes sense. Maybe I'm pushing the database module a bit to far, but I was just trying to avoid mail-merges... \starttext \startluacode -- or: str = io.loaddata(somefile) local str = [[ 1,2,3,4,5,6,7,8 a,b,c,d,e,f,g,h ]] local list = string.splitlines(str) for i=1,#list do local fields = utilities.parsers.settings_to_array(list[i]) if fields[1] then context(field 1: %s,fields[1]) context.par() end end \stopluacode \stoptext so: - read in the cvs file - split them into lines - loop over each line - split that line - and mess around with the fields - 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] epub
Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x \*.DS_Store If 7z is the only way, I give up. I already spent about 30 minutes trying to find a mac version. Ciao, Jörg On Feb 16, 2012, at 12:13 PM, luigi scarso wrote: On Thu, Feb 16, 2012 at 11:51 AM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: I would like to prepare some student material in epub format and tried the export-example.tex as follows: - context export-example (by the way, gives an error with the latest beta, not with 2011.12.19 22:53, but produces the output; shouldn't matter here). - mtxrun --script epub --make export-example (tells me sh: 7z: command not found, but produces an epub file. Zipping manually doesn't make a difference). In Calibre, only the text appears -- no paragraphs or anything else. The same happens when I try a minimal example with just paragraphs, bold, italic and sections. Most likely I misunderstood something, or is epub support still too preliminary (see http://wiki.contextgarden.net/epub)? I'm using current version: 2012.02.16 09:55 on a Mac (Lion). Thanks, Jörg Comment %\starttabulate[|l|r|p|] %\NC left \NC right \NC \input ward \NC \NR %\NC l\NC r \NC \input ward \NC \NR %\stoptabulate and be sure to have all the images in the same folder, to have 7z and inkscape --- otherwise comment %\placefigure % {} % {\externalfigure[cow.pdf]} I've just made the epub, if you want I can send you. -- luigi ___ 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] UTF conversion via Lua (renaming attachments to .scr_)
On Thu, 16 Feb 2012 13:08:09 +0100, Hans Hagen pra...@wxs.nl wrote: no, although it's no big deal to provide that (of course there is then the matter of utf being more complete than the target) src_enc = utf8 tgt_enc = cp1250 str = regimes.translate(str, src_enc, tgt_enc) is there a reason not to stick to utf? Hans Well - I'm working with a .cld document (with UTF encoding). There are some functions which typeset texts. And there is also a part which creates a .scr file. .Scr files are sequences of AutoCAD commands - their contents are passed directly to AutoCAD command prompt. When AutoCAD is creating a text entity, it reads the input stream (in our case: the .scr file) BYTE-PER-BYTE. When bytes represent a text to be drawn, unknown bytes (= bytes that don't have any graphical representation in AutoCAD font file (shape file in AutoCAD's terminology)) are shown as ?. Of course, valid representation of language-specific-characters (like čřž... in Czech) requires an appropriate .shx (= shape compiled) file. Anyway, when AutoCAD is to write č, it requires just ONE BYTE to be passed to it; so 2-byte UTF representation gives bad result (= ??). So back to the origin, when I call the .cld's function that writes a command to the .scr file, I need to convert a UTF string back to CP 1250. Would it be possible to provide this? NB: There are two examples of .scr files; CP1250.scr works well in AutoCAD, the latter draws ST instead of ČÁST. Kind reagrds, Lukas -- 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 244 062 238 Fax: +420 244 461 038 UTF.scr_ Description: Binary data CP1250.scr_ Description: Binary data ___ 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
On Thu, Feb 16, 2012 at 2:07 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x \*.DS_Store This also works for me (under linux) zip -r export-example.epub META-INF/ OPS/ mimetype -- luigi ___ 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
I see. Could you send me your export-example.epub file? Thanks a lot, Jörg On Feb 16, 2012, at 2:17 PM, luigi scarso wrote: On Thu, Feb 16, 2012 at 2:07 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x \*.DS_Store This also works for me (under linux) zip -r export-example.epub META-INF/ OPS/ mimetype -- luigi ___ 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] beta
Hi Hans, Thanks for the new beta: as a matter of fact it seems to be much faster the previous ones, even with many backgrounds! I wanted to submit a small bug with the « \prime » in math mode: the following gives an error %% begin example.tex \starttext The function $\exp$ is the unique solution of \startformula u'(x) = u(x) \quad u(0) = 1. \stopformula \stoptext % end example.tex The error message is: \301c -\egroup to be read again ( l.6 u'( x) = u(x) \quad u(0) = 1. Best regards: OK On 16 févr. 2012, at 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact is speed. The adventurous might want to try out \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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 ___ ___ 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
Am 16. Februar 2012 14:07 schrieb Jörg Hagmann joerg.hagm...@unibas.ch: Thanks, Luigi. Is it not possible to run mtxrun --script epub --make export-example and then zip the files by zip -X Filename.epub mimetype zip -rg Filename.epub META-INF -x \*.DS_Store zip -rg Filename.epub OPS -x \*.DS_Store If 7z is the only way, I give up. I already spent about 30 minutes trying to find a mac version. MacPorts contains p7zip, but it used also to work with the Info-Zip (/usr/bin/zip) that comes with OSX, AFAIR. Greetlings, Hraban ___ 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
This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. 2. In Firefox: My version lacks the images; in fact, the figures showing up in the OPS directory after the mtxrun have zero KB. But it is ok for me to copy them there manually. Hraban: Thanks for the tip. Jörg --- yes here too. I've just installed calibre, I don't know it very well. Maybe is possible to check the book too, just to see if there are errors. -- luigi ___ 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] beta
Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Minimal example: %% \defineenumeration[Exo] [location=hanging, width=fit, text={Exercise }, stopper={.}] \starttext \startExo This is a test: this line should not be below « Exercise 1. »\dots \stopExo \stoptext % Best regards: OK On 16 févr. 2012, at 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact is speed. The adventurous might want to try out \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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 ___ ___ 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] beta
On 16-2-2012 14:53, Otared Kavian wrote: Hi Hans, Thanks for the new beta: as a matter of fact it seems to be much faster the previous ones, even with many backgrounds! I wanted to submit a small bug with the « \prime » in math mode: the following gives an error %% begin example.tex \starttext The function $\exp$ is the unique solution of \startformula u'(x) = u(x) \quad u(0) = 1. \stopformula \stoptext % end example.tex The error message is: \301c -\egroup fixed (hopefully) - 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] columnsets error in 2.08 beta
Columnset error is gone in 2.16 beta -- Thanks, Hans. But there still seems to be a problem in the output routine: if I place a font switch like \bf or \ss at the beginning of a paragraph that falls in the first column of my columnset, that column is suppressed and only the second column is typeset. If the switch is in the second column, both columns are output, but there is extra vertical space at the beginning of the first column. %%- START -%% \definecolumnset[body][n=2] \setupbodyfont[10pt] \starttext \showframe \startcolumnset[body] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus scelerisque sapien in tellus mattis sodales. Sed condimentum, arcu sit amet condimentum adipiscing, eros justo condimentum odio, et dapibus nisl dolor nec urna. Maecenas ut orci dolor. Fusce non nisl dolor. Pellentesque non nunc metus, in vehicula nibh. Sed quis tortor purus. Proin hendrerit posuere nunc, in gravida libero semper ac. Donec aliquam lorem {\bf non sapien pellentesque volutpat sed ut mauris. Nulla felis odio, consequat at interdum id, aliquet dictum lacus. Praesent cursus eros at eros dictum porta. In hendrerit diam sodales tellus porttitor sit amet fringilla orci posuere. Nunc et ante eget massa feugiat iaculis eu id nisi.} Ut ac risus sit amet diam tempor mattis eget sit amet felis. Vestibulum ligula nunc, elementum ut tincidunt sed, {\ss commodo at dui}. %\column % TEST: FORCE COLUMN BREAK %\dorecurse{4}{\input tufte\par} % TEST: PUSH NEXT PARAGRAPH TO SECOND COLUMN \ss \input tufte\par \stopcolumnset \stoptext %%---STOP%% On Wed, Feb 15, 2012 at 9:52 AM, Peter Park Nelson peter.park.nel...@gmail.com wrote: Hans, it still does not work. BTW, is it possible to revert the Context standalone installation to an earlier beta (without going all the way back to the last stable)? Error below: (K2.tex ConTeXt ver: 2012.02.08 21:58 MKIV fmt: 2012.2.15 int: english/english system cont-new.mkiv loaded (/home/peter/contextbeta/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system K2.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options K2.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=K2.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (K2.top) fonts latin modern fonts are not preloaded languages language en is active {/home/peter/contextbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts preloading latin modern fonts (second stage) fonts typescripts unknown: library 'loc' {/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts virtual math unable to resolve name mapsfromchar fonts fallback modern rm 12pt is loaded ! Undefined control sequence. system tex error on line 6 in file K2.tex: Undefined control sequence ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \154columnset:page_otr_command_routine ...outine \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing ... l.6 \input tufte\par ? ! Interruption. system tex error on line 6 in file K2.tex: Interruption ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext
Re: [NTG-context] [beta] anch-pos.lua
On 2012-02-16 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact is speed. The adventurous might want to try out Hi Hans, there seems to be a typo in anch-pos.lua, line 100: · -local r = collected[region] +local r = collected[tag] · (“region” references a boolean.) Here’s an example that triggers the bug and works after the patch is applied. I have no idea as to why this exact series of macros causes the issue. Please have a look at it anyways because the text background looks weird even after. · \definetextbackground[tb] \setuptyping[ after={\stoptextbackground}, before={\starttextbackground[tb]}, ] \starttext foo \starttyping bar \stoptyping baz \starttabulate[|r|l|] \NC foo \NC bar \AR \stoptabulate% \stoptext · Regards Philipp \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgp0hCipZI4VJ.pgp Description: PGP signature ___ 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] beta
Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and descriptions use now the “alternative” key for the position of the title. 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] epub
Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. 2. In Firefox: My version lacks the images; in fact, the figures showing up in the OPS directory after the mtxrun have zero KB. But it is ok for me to copy them there manually. Isn’t the problem with context pub’s the format of the xhtml file, when I compile this example: \setupbackend[export=yes,xhtml=yes] \starttext \startparagraph The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old|-|age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopparagraph \stoptext I get a xhtml file with the following content (I removed the comments): ?xml version='1.0' encoding='UTF-8' standalone='yes' ? document xmlns:m=http://www.w3.org/1998/Math/MathML; version=0.30 language=en date=Thu Feb 16 20:00:31 2012 file=test context=2012.02.16 17:54 xmlns:xhtml=http://www.w3.org/1999/xhtml; paragraphThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./paragraph /document but the produced epub file doesn’t work on my ereader. After I changed the tags of the file to this: ?xml version='1.0' encoding='UTF-8' standalone='yes' ? html xmlns=http://www.w3.org/1999/xhtml; body pThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./p /body /html I got now a epub file which renders on my ereader without problems. 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] epub
On Thu, 16 Feb 2012, Wolfgang Schuster wrote: Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. 2. In Firefox: My version lacks the images; in fact, the figures showing up in the OPS directory after the mtxrun have zero KB. But it is ok for me to copy them there manually. Isn’t the problem with context pub’s the format of the xhtml file, when I compile this example: \setupbackend[export=yes,xhtml=yes] \starttext \startparagraph The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old|-|age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopparagraph \stoptext I get a xhtml file with the following content (I removed the comments): ?xml version='1.0' encoding='UTF-8' standalone='yes' ? document xmlns:m=http://www.w3.org/1998/Math/MathML; version=0.30 language=en date=Thu Feb 16 20:00:31 2012 file=test context=2012.02.16 17:54 xmlns:xhtml=http://www.w3.org/1999/xhtml; paragraphThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./paragraph /document but the produced epub file doesn’t work on my ereader. After I changed the tags of the file to this: You also need to add the appropriate css file (there is an example css file in $TEXMF/tex/context/base IIRC). Any epub reader that understands xml+css will be able to read the file. ?xml version='1.0' encoding='UTF-8' standalone='yes' ? html xmlns=http://www.w3.org/1999/xhtml; body pThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./p /body /html I got now a epub file which renders on my ereader without problems. I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. Aditya___ 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
Am 16.02.2012 um 20:38 schrieb Aditya Mahajan: On Thu, 16 Feb 2012, Wolfgang Schuster wrote: Am 16.02.2012 um 16:19 schrieb Jörg Hagmann: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. 2. In Firefox: My version lacks the images; in fact, the figures showing up in the OPS directory after the mtxrun have zero KB. But it is ok for me to copy them there manually. Isn’t the problem with context pub’s the format of the xhtml file, when I compile this example: \setupbackend[export=yes,xhtml=yes] \starttext \startparagraph The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old|-|age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopparagraph \stoptext I get a xhtml file with the following content (I removed the comments): ?xml version='1.0' encoding='UTF-8' standalone='yes' ? document xmlns:m=http://www.w3.org/1998/Math/MathML; version=0.30 language=en date=Thu Feb 16 20:00:31 2012 file=test context=2012.02.16 17:54 xmlns:xhtml=http://www.w3.org/1999/xhtml; paragraphThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./paragraph /document but the produced epub file doesn’t work on my ereader. After I changed the tags of the file to this: You also need to add the appropriate css file (there is an example css file in $TEXMF/tex/context/base IIRC). Any epub reader that understands xml+css will be able to read the file. I know the example file but I forgot to add it. ?xml version='1.0' encoding='UTF-8' standalone='yes' ? html xmlns=http://www.w3.org/1999/xhtml; body pThe Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes./p /body /html I got now a epub file which renders on my ereader without problems. I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. You mean like labeltexts :) 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] beta
On 16 févr. 2012, at 19:30, Wolfgang Schuster wrote: Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and descriptions use now the “alternative” key for the position of the title. Wolfgang …Oh thanks Wolfgang… Somehow I missed the announcement of the change. The following gives the desired result: \defineenumeration[Exo] [alternative=hanging, width=fit, text={Exercise }, stopper={.}] Best regards: OK ___ 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] \definestructureconversionset
Am 16.02.2012 um 10:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I cannot find any valid info (reference) about use of the command \definestructureconversionset. I just have some examples. Could anyone explain how these commands should work? \definestructureconversionset[name-of-conversion-set][par1,par2,...][Par1,Par2,...] \definestructureconversionset[name-of-conversion-set][][Par1,Par2,...] % 1St par. set empty \definestructureconversionset[name-of-conversion-set][par1,par2,...][] % 2Nd par. set empty \definestructureconversionset[name-of-conversion-set][par1,par2,...] % 2Nd argument omitted \definestrcutureconversionset[..1..][..,..2..,..][..3..] 1. Name of the conversion set 2. List with explicit settings for certain headings 3. Default setting if no explicit conversion is set The first argument is just the name which is used as argument for sectionconverionset in \setuphead for prefixconverionset in \setupcaption, \setupenumeration etc. The name of the conversion can be prefixed with the name of a sectionblock, e.g. \definestructureconverionset[bodypart:myconversion][A,I,n,R][numbers] With the second argument you can set a conversion of the counter for the headings, the list starts always with the \part level and continues with \chapter etc. but it’s possible leave entries empty. With the third argument one can set a default value which is used when no value for a heading is set with the second argument. 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] \definedescription problems (beta)
Two problems using \definedescription the 2.16 beta: \definedescription[mydescription][location=serried,text={Description}] %% This gives an error (no blank lines around content): \startmydescription This is a description \stopmydescription %% But this works (with blank lines): \startmydescription This is a description \stopmydescription 2. location=serried worked correctly before, but now I get a hanging indent instead. -- Peter Park Nelson peter.park.nel...@gmail.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] \definedescription problems (beta)
Hi Peter, As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ». I guess it should be the same with the « serried ». Best regards: OK On 16 févr. 2012, at 21:41, Peter Park Nelson wrote: Two problems using \definedescription the 2.16 beta: \definedescription[mydescription][location=serried,text={Description}] %% This gives an error (no blank lines around content): \startmydescription This is a description \stopmydescription %% But this works (with blank lines): \startmydescription This is a description \stopmydescription 2. location=serried worked correctly before, but now I get a hanging indent instead. -- Peter Park Nelson peter.park.nel...@gmail.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 ___ ___ 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] \definedescription problems (beta)
Am 16.02.2012 um 21:41 schrieb Peter Park Nelson: Two problems using \definedescription the 2.16 beta: \definedescription[mydescription][location=serried,text={Description}] %% This gives an error (no blank lines around content): \startmydescription This is a description \stopmydescription %% But this works (with blank lines): \startmydescription This is a description \stopmydescription What error message do you get, make a *working* example. 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] \definedescription problems (beta)
Am 16.02.2012 um 21:50 schrieb Otared Kavian: Hi Peter, As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ». I guess it should be the same with the « serried ». Yes, descriptions and enumerations use the same base and all “location” values are no set with “alternative”. 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] Layout: odd, even and newLayout
I first want to use layouts for odd and even pages and then I want to use a newLayout but it does not work: \setuppapersize[A5][A4] \setuppagenumbering[alternative=doublesided, location=inleft] \setuplayout [marking=on, location=middle] \showframe \definelayout [odd][topspace=5cm,backspace=0cm] \definelayout [even][topspace=0cm,backspace=0cm] \definelayout [newLayout] [topspace=2cm,backspace=10cm] \starttext \dorecurse{10}{\input tufte} \page \setuplayout [newLayout] % Now backspace must be 10cm, but it is still 0cm \dorecurse{10}{\input tufte} \page \stoptext Regards Jannis ___ 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] \definedescription problems (beta)
I just saw Otared's message. alternative=serried gives an error. Two error examples: 1. spacing around description contents: %%--example-%% \definedescription[Abstract][text={Abstract}] \starttext \startAbstract % THIS ONLY WORKS WITH BLANK LINES: \input tufte\par \stopAbstract \stoptext %%--end--%% Error: ! I can't find file `}'. to be read again \endgroup \currentconstructiontext ...ionhandler \endcsname \endstrut \139construction ... \currentconstructionsample } }\assignwidth {\constructi... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again t l.7 \input t ufte\par Please type another input file name: ^C! I can't find file `}'. to be read again \endgroup \c urrentconstructiontext ...ionhandler \endcsname \endstrut \139construction ... \currentconstructionsample } }\assignwidth {\constructi... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again t l.7 \input t ufte\par Please type another input file name: ! Emergency stop. system tex error on line 7 ipeter@ThinkPad-T500:~/Desktop/contextstuff/jtlu-testing/J$ n file J7-description.tex: Emergency stop ... 1 \definedescription[Abstract][% 2 text={Abstract}] 3 4 \starttext 5 6 \startAbstract 7 \input tufte\par 8 \stopAbstract 9 10 \stoptext to be read again \endgroup \currentconstructiontext ...ionhandler \endcsname \endstrut \139construction ... \currentconstructionsample } }\assignwidth {\constructi... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again t l.7 \input t ufte\par ! == Fatal error occurred, no output PDF file produced!^C 2. alternative=serried causes error: %%example-%% \definedescription[Abstract][alternative=serried, text={Abstract}] \starttext \startAbstract \input tufte\par \stopAbstract \stoptext %%--end%% Error: ! Undefined control sequence. system tex error on line 9 in file J7-description.tex: Undefined control sequence ... 1 \definedescription[Abstract][% 2 alternative=serried, 3 text={Abstract}] 4 5 \starttext 6 7 \startAbstract 8 9 \input tufte\par 10 11 \stopAbstract 12 13 \stoptext \12:144:serried ...onstructionlocationparameter \c!width }\doifsetupselse ... \139construction ...parameter \c!renderingsetup } \relax \dostoptagged \dost... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again \input l.9 \input tufte\par ? ! Interruption. system tex error on line 9 in file J7-description.tex: Interruption ... 1 \definedescription[Abstract][% 2 alternative=serried, 3 text={Abstract}] 4 5 \starttext 6 7 \startAbstract 8 9 \input tufte\par 10 11 \stopAbstract 12 13 \stoptext \12:144:serried ...onlocationparameter \c!width }\doifsetupselse {\??const... \139construction ...parameter \c!renderingsetup } \relax \dostoptagged \dost... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again \input l.9 \input tufte\par ? ! Emergency stop. system tex error on line 9 in file J7-description.tex: Emergency stop ... 1 \definedescription[Abstract][% 2 alternative=serried, 3 text={Abstract}] 4 5 \starttext 6 7 \startAbstract 8 9 \input tufte\par 10 11 \stopAbstract 12 13 \stoptext \12:144:serried ...onlocationparameter \c!width }\doifsetupselse {\??const... \139construction ...parameter \c!renderingsetup } \relax \dostoptagged \dost... \dodogotopar ...andler \v!construction \endcsname \BeforePar \emptytoks to be read again \input l.9 \input
Re: [NTG-context] \definedescription problems (beta)
Am 16.02.2012 um 22:20 schrieb Peter Park Nelson: I just saw Otared's message. alternative=serried gives an error. Two error examples: 1. spacing around description contents: %%--example-%% \definedescription[Abstract][text={Abstract}] \starttext \startAbstract % THIS ONLY WORKS WITH BLANK LINES: \input tufte\par \stopAbstract \stoptext Add “title=no” to \definedescription, otherwise \startAbstract tries to read (in this example) \input which fails when \input looks for it’s argument. 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] [beta] anch-pos.lua
On 16-2-2012 19:01, Philipp Gesang wrote: On 2012-02-16 10:17, Hans Hagen wrote: Hi, I uploaded a beta. Apart from some fixes, the biggest change is in dealing with positional info and text backgrounds (first stage cleanup). As I have no clue to what extend users mess around with background graphics themselves, it's hard to predict side effects, but the biggest impact is speed. The adventurous might want to try out Hi Hans, there seems to be a typo in anch-pos.lua, line 100: · -local r = collected[region] +local r = collected[tag] · (“region” references a boolean.) not so much a typo but i'll add some more checks Here’s an example that triggers the bug and works after the patch is applied. I have no idea as to why this exact series of macros causes the issue. Please have a look at it anyways because the text background looks weird even after. · \definetextbackground[tb] \setuptyping[ after={\stoptextbackground}, before={\starttextbackground[tb]}, ] add [location=paragraph] \starttext foo \starttyping bar \stoptyping baz \starttabulate[|r|l|] \NC foo \NC bar \AR \stoptabulate% ^^ missing \NC \stoptext · Regards Philipp \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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 ___ ___ 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 :
Re: [NTG-context] epub
On 16-2-2012 20:38, Aditya Mahajan wrote: I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. It's no big deal to add a remapper although I'd do the renaming on the final xml tree. After all, with a proper css any xml file should render ok and I'd rather stick to generic tagging. local str = [[adityatestwolfgangmore/wolfgangdone/aditya]] local x = xml.convert(str) local remap = { aditya = 'wolfgang', wolfgang = 'aditya', } print(xml.tostring(x)) for e in xml.collected(x,*) do e.tg = remap[e.tg] or e.tg end print(xml.tostring(x)) 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] beta
On 16-2-2012 19:30, Wolfgang Schuster wrote: Am 16.02.2012 um 17:44 schrieb Otared Kavian: Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Enumerations and descriptions use now the “alternative” key for the position of the title. This is one of the things that I'm still considering ... alternative is more consistent with other mechanisms. Also, notes use location for where notes are placed. We can consider some compatibility hack: \setupenumerations [\c!alternative=\descriptionparameter\c!location, \c!location=\v!left] \setupenumerations [\c!alternative=\descriptionparameter\c!location, \c!location=\v!left] So, alternative wins but defaults to location. Anyhow, eventually descriptions will have an 'installable alternatives' mechanism like lists, although they differ too much to be shared. 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] UTF conversion via Lua (renaming attachments to .scr_)
On 16-2-2012 14:14, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Would it be possible to provide this? I'll provide: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. 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] Turning off special chapter headings
I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table of contents. Can anybody point me to the simplest way of achieving this? (I've tried various combinations of \setuphead, \definehead, but nothing so far has given me what I want.) Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] [beta] anch-pos.lua
On 2012-02-16 22:44, Hans Hagen wrote: On 16-2-2012 19:01, Philipp Gesang wrote: there seems to be a typo in anch-pos.lua, line 100: · -local r = collected[region] +local r = collected[tag] · (“region” references a boolean.) not so much a typo but i'll add some more checks The new code is solid. Here’s an example that triggers the bug and works after the patch is applied. I have no idea as to why this exact series of macros causes the issue. Please have a look at it anyways because the text background looks weird even after. · \definetextbackground[tb] \setuptyping[ after={\stoptextbackground}, before={\starttextbackground[tb]}, ] add [location=paragraph] Thanks, looks good now! Philipp \starttext foo \starttyping bar \stoptyping baz \starttabulate[|r|l|] \NC foo \NC bar \AR \stoptabulate% ^^ missing \NC \stoptext · Regards Philipp \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] or with some more visual tracing \setuptextbackground [mp=mpos:par:region:kind, method=mpos:par:region] A simple test with some 200 backgrounds brings down runtime with one second on my machine (not the fastest anyway). Apart from a performance gain, backgrounds are now also supported in regular multicolumns as well as in some specific mechanisms like tabulate and xtables. In xtables one needs to set region=yes in order to get the desired results. Actually, the region key is a new one in framed so anything that can be framed can also have fancy text backgrounds. Yet another improvement is that (although rather untested) you can do things like \starttextbackground[r] START \dorecurse{10}{ \dorecurse{1}{\input ward } \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[left]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after \placefigure[right]{}{} some text before BEGIN \dorecurse{2}{\input ward } END some after } STOP \stoptextbackground \dorecurse{1}{\input ward } and get more or less expected results. Keep in mind that it can never get perfect due to all kind of possible interference. Also, keep away from internals as they will quite certainly change. 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 ___ ___ 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] Turning off special chapter headings
Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext % end Best regards: OK Best regards: OK On 17 févr. 2012, at 01:48, Alasdair McAndrew wrote: I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table of contents. Can anybody point me to the simplest way of achieving this? (I've tried various combinations of \setuphead, \definehead, but nothing so far has given me what I want.) Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] Turning off special chapter headings
Thanks for your suggestion, but it didn't seem to work. I just discovered the answer myself and that was to create a new chapter command: \def\uchap#1#2{#2} and then follow as per the wiki: \definehead[ans][chapter] \setuphead[ans][command=\uchap,number=no] \definecombinedlist[content][ans,chapter,section] \setuplist[ans][headnumber=no] Then finally \ans{Answers to Exercises} cheers, Alasdair On Fri, Feb 17, 2012 at 4:05 PM, Otared Kavian ota...@gmail.com wrote: Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext % end Best regards: OK Best regards: OK On 17 févr. 2012, at 01:48, Alasdair McAndrew wrote: I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table of contents. Can anybody point me to the simplest way of achieving this? (I've tried various combinations of \setuphead, \definehead, but nothing so far has given me what I want.) Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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 ___ -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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 ___