Re: [NTG-context] Hairline in header
how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this: \setupheader[text][after=\hrule] Hi Florian, Maybe this can help you. \setuplayout[header=1cm,headerdistance=1cm] \setupheader[text][after=\vskip-0.8em\thinrule] \starttext \dorecurse{12}{\input knuth\par} \stoptext Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work. Florian ___ 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] \setupinterlinespace questions
Am 10.01.2011 um 22:57 schrieb Florian Wobbe: b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)? You can write \setupinterlinespace[3]. Thanks! Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the preamble? They only take effect inside \start... \stop... \setupinterlinespace is reset with \starttext, when you don’t like setup-commands after \starttext use \startproduct. Hmm, does not seem to work here. I have following setup: \environment env_draft % -- setting \setupinterlinespace[big] here \startproduct %\setupinterlinespace[big] % works except for references when uncommented \startproduct filenename \environment env_draft \setupinterlinespace % can be moved to the environment file \input chapters \usepublications[publications] \placepublications \stopproduct \placepublications seems to reset linespacing as well. Can you make a example. BTW: \startproduct takes the filename as argument, please add it. 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] Hairline in header
2011/1/11 Florian Wobbe florian.wo...@awi.de: how can I move the thinrule further up in this example? I'd like to use \thinrule but still want the position like this: \setupheader[text][after=\hrule] Hi Florian, Maybe this can help you. \setuplayout[header=1cm,headerdistance=1cm] \setupheader[text][after=\vskip-0.8em\thinrule] \starttext \dorecurse{12}{\input knuth\par} \stoptext Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work. Hm, if you use: \setupthinrules[n=1, before=\vskip-0.8em] \setupheader[text][after=\thinrules] it can work. However ConTeXt advises to use \blank instead of \vskip, for example: \setupthinrules[n=1, before={\blank[-0.8em]}] \setupheader[text][after=\thinrules] -- Best regards, Li Yanrui (李延瑞) ___ 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] Hairline in header
Thanks, that works. I wonder if you can configure this with \setupthinrules. \setupthinrules[before=\vskip-0.8em] does no work. Hm, if you use: \setupthinrules[n=1, before=\vskip-0.8em] \setupheader[text][after=\thinrules] it can work. However ConTeXt advises to use \blank instead of \vskip, for example: \setupthinrules[n=1, before={\blank[-0.8em]}] \setupheader[text][after=\thinrules] This works, thank you! Florian ___ 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] ConTeXt does not execute MetaPost (in debian experimental)
On Tue, Jan 11, 2011 at 06:00, Norbert Preining wrote: Hi Aditya, hi all, On Mo, 10 Jan 2011, Aditya Mahajan wrote: Assuming that Norbert packaged ConTeXt package in debian testing, I am CCing this message to him. So it seems that current Context has changed something, anyone can help me here? Up to now I did: export TEXMFCNF=/usr/share/texmf/web2c luatools --generate --verbose after which everything was working. Now I get: [~] luatools --generate --verbose MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/bin' MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr' MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '.' MTXrun | resolvers: variable 'TEXMFCNF' set to '/usr/share/texmf/web2c' MTXrun | resolvers: variable 'TEXMF' set to '' MTXrun | resolvers: variable 'TEXOS' set to '/usr' Hans, TEXOS cannot be /usr for various reasons. MTXrun | resolvers MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua' BTW, why does this mtxrun not *SAY* what file it is searching for??? texmfcnf.lua, but I cannot answer the why part. Just warning: no lua configuration files found is as useful as ... welll ... I stop here. In /usr/share/texmf/web2c/ there is a contextcnf.lua which looks like: return { type = configuration, version = 1.0.2, date = 2010-06-07, time = 14:49:00, comment = ConTeXt MkIV configuration file, Is there something missing? It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The settings should somehow match the contents in texmf.cnf. (What version of ConTeXt is this?) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)
2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The settings should somehow match the contents in texmf.cnf. (What version of ConTeXt is this?) 2010.07.30, according to http://packages.debian.org/search?keywords=context Regards, Vedran Miletić ___ 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] ConTeXt does not execute MetaPost (in debian experimental)
2011/1/11 Vedran Miletić riva...@gmail.com: 2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The settings should somehow match the contents in texmf.cnf. (What version of ConTeXt is this?) 2010.07.30, according to http://packages.debian.org/search?keywords=context In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in debian. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Replacing a piece of a paper
Hello, I'm trying to handle a special problem. I guess ConTeXt would be useful for this purpose, although its primary function is to typeset. But - I have many drawings - they are black-and-white one-sided PDFs of A1 or A2 size (typical technical drawings). The bottom right area of size 210 x 330 mm should be deleted - or over-painted by a white rectangle (or picture or MP code). And next a new PDF of A4 size should be placed on the right bottom area, just on the white (deleting) area. I wouldn't have problem with batch processing the number of files. But I would need an example how to take the original A2 PDF, place a whitening area on it and then to place a new PDF over it; I'm not experienced enough in layering with ConTeXt and I guess this may be the way. Would it be possible to provide a small example of such processing an arbitrary file? I can send a sample A2 or A1 PDF, and also a replacing A4, if necessary. Thank you in advance. Kind regards, 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 ___ 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] ConTeXt does not execute MetaPost (in debian experimental)
On Tue, 11 Jan 2011, Mojca Miklavec wrote: 2011/1/11 Vedran Miletić riva...@gmail.com: 2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The settings should somehow match the contents in texmf.cnf. (What version of ConTeXt is this?) 2010.07.30, according to http://packages.debian.org/search?keywords=context In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in debian. Wouldn't just copying the texmfcnf.lua from texlive work? 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] Replacing a piece of a paper
2011/1/11 Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'm trying to handle a special problem. I guess ConTeXt would be useful for this purpose, although its primary function is to typeset. But - I have many drawings - they are black-and-white one-sided PDFs of A1 or A2 size (typical technical drawings). The bottom right area of size 210 x 330 mm should be deleted - or over-painted by a white rectangle (or picture or MP code). An important question: overpainted for your personal needs or in order to remove some information from PDF that others are not supposed to see? Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)
On Tue, Jan 11, 2011 at 17:45, Aditya Mahajan wrote: On Tue, 11 Jan 2011, Mojca Miklavec wrote: And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in debian. Wouldn't just copying the texmfcnf.lua from texlive work? Mine (/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua) says TEXMFCACHE = $SELFAUTOPARENT/texmf-cache, TEXMFOS = $SELFAUTODIR, TEXMFSYSTEM = $SELFAUTOPARENT/texmf, TEXMFMAIN = $SELFAUTOPARENT/texmf-dist, TEXMFCONTEXT= $SELFAUTOPARENT/texmf-context, TEXMFLOCAL = $SELFAUTOPARENT/texmf-local, TEXMFFONTS = $SELFAUTOPARENT/texmf-fonts, TEXMFPROJECT= $SELFAUTOPARENT/texmf-project, I'm not saying that it won't work at all, but I'm not sure if all the files in Debian are at the same place relative to binaries. I wasn't aware that texmf-context and other trees were also preconfigured to exist in TL. Note that SELFAUTOPARENT is set to root based on Norbert's output. The tree 'texmf-dist' is probably not located under /texmf-dist ... Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Replacing a piece of a paper
2011/1/11 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I'm trying to handle a special problem. I guess ConTeXt would be useful for this purpose, although its primary function is to typeset. But - I have many drawings - they are black-and-white one-sided PDFs of A1 or A2 size (typical technical drawings). The bottom right area of size 210 x 330 mm should be deleted - or over-painted by a white rectangle (or picture or MP code). And next a new PDF of A4 size should be placed on the right bottom area, just on the white (deleting) area. I wouldn't have problem with batch processing the number of files. But I would need an example how to take the original A2 PDF, place a whitening area on it and then to place a new PDF over it; I'm not experienced enough in layering with ConTeXt and I guess this may be the way. Would it be possible to provide a small example of such processing an arbitrary file? I always use this as starting point http://wiki.contextgarden.net/Layers -- 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] Replacing a piece of a paper
Hello, On Tue, 11 Jan 2011 17:45:53 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: An important question: overpainted for your personal needs or in order to remove some information from PDF that others are not supposed to see? Mojca I need to upgrade some drawings, or more precisely, to upgrade their title block as some its fields need to be changed (e.g. date 9/2010 to 1/2011, the level of the documentation and so on). Finally, the PDFs are to be printed to a physical printer (= physical pieces of paper) and also to be provided to the third party like digital documents. The result should not have layers switchable to on/off, but I believe this can be handled by printing the final (even layered) PDF to another PDF by a virtual printer (e.g. pdfCreator). Layering was only an idea, which - as I believed - should lead to the goal; although that would probably mean to print the (layered) PDFs manually to the virtual PDF printer. Or is there another (non-layering or layer-merging) way? Regards, 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 ___ 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] Replacing a piece of a paper
On Tue, 11 Jan 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Or is there another (non-layering or layer-merging) way? You can also crop the pdf (\clip[mp=shape that you want to clip]{\externalfigure[...]}) and place that on paper using layers. That way, even if layers are toggled on a pdfviewer, the reader will see blank text (as opposed to old text). But, I believe that clipping still inserts the whole pdf, so if someone really wanted, they can still extract out the original pdf. So this is not a failsafe way of hiding information; but is better than just adding a layer over the title. 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] Replacing a piece of a paper
On 11-1-2011 6:59, Aditya Mahajan wrote: On Tue, 11 Jan 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Or is there another (non-layering or layer-merging) way? You can also crop the pdf (\clip[mp=shape that you want to clip]{\externalfigure[...]}) and place that on paper using layers. That way, even if layers are toggled on a pdfviewer, the reader will see blank text (as opposed to old text). or just overlay framed with a white background - 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] undesired offset with \position (was: Re: Replacing a piece of a paper)
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz writes: Would it be possible to provide a small example of such processing an arbitrary file? Yes. I can send a sample A2 or A1 PDF, and also a replacing A4, if necessary. Not necessary, context can produce such files for you. Example, using positioning macros, that shows also a problem with vertical offset: --8---cut here---start-8--- % Produce A2-example: \startbuffer[a2] \setuppapersize[A2] \setuplayout[page] \setupbackgrounds[page][background=color, backgroundcolor=blue] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a2][a2-page.tex] \executesystemcommand{context a2-page} % Produce A4-example: \startbuffer[a4] \setuppapersize[A4] \setuplayout[page] \starttext \input tufte \stoptext \stopbuffer \savebuffer[a4][a4-page.tex] \executesystemcommand{context a4-page} % Do the job: \setuppapersize[A2] \setuplayout[page] \setuppositioning[state=overlay, yoffset=-12pt%%% Why is this offset needed??? ] \starttext \startpositioning \position(0,0){\externalfigure[a2-page]} \position(0,0){\framed[frame=off, offset=overlay, background=color, backgroundcolor=white]{\externalfigure[a4-page]}} \stoppositioning \stoptext --8---cut here---end---8--- -- Peter Münster Contact information: http://pmrb.free.fr/contact/ ___ 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 \placetable ... \starttable
On Thu, 6 Jan 2011, Khaled Hosny wrote: Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext This is still present in the latest beta. 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] ConTeXt does not execute MetaPost (in debian experimental)
Hi Mojca, On Di, 11 Jan 2011, Mojca Miklavec wrote: 2010.07.30, according to http://packages.debian.org/search?keywords=context In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). Ahhh ... I guess that needs some divine inspiration to know ... And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in debian. Of course, looking into it I graasped that now. Why on earth can mtxrun not simply load the main texmf.cnf like any other program in the TeX world and initialize the values from there I ask myself. I am slowly giving up on ConTeXt. It is changing in arbitrary directions far too often, and still things like multi-user support are not here since ages. I know, it is primary Hans' system and it has to work primarily on his computer, but that means that distributing it within any distribution system is plain pain :-( All that of course relates only to MkIV. I guess I will just add one sentence to the README.Debian: MkIV is not suppored on Debian. If you know how to set it up you can do it yourself and educate the maintainer, otherwise simply use MkII or the ConTeXt minimals. Sad but true. All the best Norbert Norbert Preiningprein...@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 CORRIEARKLET (n.) The moment at which two people approaching from opposite ends of a long passageway, recognise each other and immediately pretend they haven't. This is to avoid the ghastly embarrassment of having to continue recognising each other the whole length of the corridor. --- Douglas Adams, The Meaning of Liff ___ 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 ___