Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta
On 22-12-2011 02:26, Peter Park Nelson wrote: Hello, I just installed the 20 Dec beta and noticed the following (compared to 29 Nov beta): 1. Headers and footers on ODD PAGES ONLY do not respect text styles set via \setupheader[style=\ss] and \setupfooter[style=\cg]. Text in both cases is in serif type. Headers and footers on EVEN pages have correct fonts. However, setting the font variant and size directly in \setupfootertexts[\cg\bf Footer Text] works for odd pages. This seems to work ok here: \setuppagenumbering[alternative=doublesided] \setupheadertexts[Bla Bla] \setupheader[style=bold] \starttext \dorecurse{100}{test \page} \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] Footnote Problem
On 22-12-2011 02:16, Kip Warner wrote: On Wed, 2011-12-21 at 09:39 +0100, Hans Hagen wrote: you can play with \setconstant\kindofpagetextareas\plusone (some day there will be a proper setting) Thanks Hans, but I get the following error: ! Undefined control sequence. l.19 \setconstant \kindofpagetextareas\plusone use just \kindofpagetextareas\plusone as the constant is already defined. - 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] Footnote Problem
Am 22.12.2011 um 02:16 schrieb Kip Warner: On Wed, 2011-12-21 at 09:39 +0100, Hans Hagen wrote: you can play with \setconstant\kindofpagetextareas\plusone (some day there will be a proper setting) Thanks Hans, but I get the following error: ! Undefined control sequence. l.19 \setconstant \kindofpagetextareas\plusone ? It’s only \kindofpagetextareas\plusone without \setconstant. 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] Constraint in line numbers
On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 21.12.2011 um 18:19 schrieb Fulvio: Hi, this is my first message in this ml ;) Well, I've a stupid constraint in a work: I must limit the number of lines in a page. I have to have 32-35 lines on each page. Now, the task isn't too complex in principle, I can work on interline sizes and glues, but this way is a little bit tricky. I wonder if there is a better (and elegant) way to manage the problem. You can the number of lines on a page with the \setuplayout command. \setuplayout[lines=20] \starttext \dorecurse{100}{Line \recurselevel\par} \stoptext Wolfang Of course there is a static idea of line that depends on the current font and a dynamic idea of row that depends on the current document: here is an exaggerated example \setuplayout[lines=20] \newdimen\T \T=1.5mm \starttext \dorecurse{40}{\ruledvbox{Line \recurselevel}\par} \dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height \recurselevel\T depth \recurselevel\T}\par} \stoptext -- 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] Footnote Problem
On 22-12-2011 09:29, Wolfgang Schuster wrote: Am 22.12.2011 um 02:16 schrieb Kip Warner: On Wed, 2011-12-21 at 09:39 +0100, Hans Hagen wrote: you can play with \setconstant\kindofpagetextareas\plusone (some day there will be a proper setting) Thanks Hans, but I get the following error: ! Undefined control sequence. l.19 \setconstant \kindofpagetextareas\plusone ? It’s only \kindofpagetextareas\plusone without \setconstant. I've added \setconstant as dummy (no checkign for being defined but it looks nicer in code). 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] Fontsize problems in table
On 22-12-2011 00:56, Wolfgang Schuster wrote: Hi Hans, the following example complains about a missing font identifier. \starttext \starttable[|l|] \stoptable \stoptext hm, a rather strange default for the bodyfont parameter (can be empty by default) .. a leftover from probably ten years ago 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] Problem with \insertpages
Hello! After I got my layers (i.e. covers) organize, I ran into some postprocessing problems. This used to work, I've last used it just a month ago. \setuppapersize[A5][A4] %individual page A5 size, print size A4 \setuparranging[2UP,rotated] %makes a single booklet when folded (duplex printing!) \setupoutput[pdf] \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \setuppagenumbering[alternative=doublesided] \starttext \insertpages [pr-33-gp.pdf][width=0pt] \stoptext [see also http://wiki.contextgarden.net/Including_pages_from_PDF_document] It no longer works, I just get a pdf with blank pages, even though the input pdf is fine. If I remember to tell my SciTe to Process and Arrange, it definitely tries to arrange the pages, but something just goes wrong (the whole log is attached). First it goes pr-33-gp.pdf pagesflushing realpage 51, userpage 51 pr-33-gp.pdf pagesflushing realpage 52, userpage 52 pr-33-gp.pdf pagesflushing realpage 53, userpage 53 pr-33-gp.pdf pagesflushing realpage 54, userpage 54 ) Then it does system 48.48 arranged at 48 system 49.49 arranged at 49 system 50.50 arranged at 50 system 51.51 arranged at 51 system 52.52 arranged at 52 system 53.53 arranged at 53 system 54.54 arranged at 54 system 55.55 arranged at 55 system 56.56 arranged at 56 And then: just blank pdf, 28 A4 portrait pages of nothing. It's quite possible it's my code that sucks and it shouldn't have worked in the first place, but I'd love to find out how to fix it. :-) It is not critical per se as I can do some stuff in Acrobat, but in the long run I'd better get this to work. Thanks, Mari pr-33-gp_booklet.log 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] Header bottomframe on first page of document
Am 2011-12-22 um 07:07 schrieb Peter Park Nelson: Hello, If I have a bottom frame under my page headers, is it possible to have NO bottom frame under the header on ONLY the first page of a document? I am using: \setupbackgrounds[header][text][bottomframe=on] to put a border line underneath all my page headers. I want to have a header on the first page of my document but no line under it (the first page header will be unique). I want to keep the vertical space for the header, so \setupheader[text][state=high] is not what I need. So why don’t you simply set the rulecolor to something invisible on the first occurrence? Maybe you want to use the frontmatter section for your title page setup. Season’s Greetlings! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] new beta
Hi, I uploaded a new beta. The most prominent changes are that the frames macro, mp graphics, and scaling code has been cleaned up, sped up and namespaced. of course some bug can have crept in. Don't expect wonders with respect to speedup although it can make some difference when multiple backgrounds, of large natural/extreme tables are used. Of course raw output of pages (as with \dorecurse{1000}{test\page}) is not really a good measure but at last the overhead gets more and more minimized which is also good for tracing. This version might also solve some of the reported problems with page imposition (as the page-* modules are being cleaned up buglets cna be introduced .. nothing really changes there apart from speedup and namespacing). 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] ntg-context Digest, Vol 90, Issue 67
Thank you, Luigi. I see that Context runs from the command line. The problem is that it does not run from emacs context-mode. How can I fix this? On Wed, Dec 14, 2011 at 7:09 PM, Philip Brown bro...@tamug.edu wrote: I downloaded texlive on Windows from the the July 2011 Tex Collection dvd. Latex works fine, but I get the following error message when I try to run Context: ConTeXt: problems after [0] pages Is there some sort of postcompilation I need to do to get Context running? Regards, Philip Brown Save this line \starttext\input knuth\stoptext into test.tex and then check mkiv with $ context test.tex and mkii with $ mtxrun texexec test.tex -- 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] context instal
On Wed, Dec 21, 2011 at 08:36:20PM +0100, Marek Jirkovský wrote: Cool, Very much thanks to luigi scarso - this is the way to help. I didt know that goes to mailing list. It was maybe a bit insulting for Mr. Gundlach and i am sorry for that. By the way your manual is very geeky too. :] i guess yout geekness is very high. Respect for that. I meant it generally - this ist just tool for something. Why lose time / generrally with just configuring and installing. Thats what i mean. Why do you think i've tried this. I did`t look for word replacement. Word is not enough to do something bigger and to have it good looking. ConTeXt loks very good for this purposes, easier then LaTex or some other Tex stuff. I just wonder to have some easy installing package, cause these things - i never liked them. it's evil. I'm sorry to say that, but if you find installing ConTeXt hard, I suggest you look for something else because installing it is no way near the complexity of actually using it, you are just wasting your, and many other people's, time. Regards, Khaled ___ 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] ntg-context Digest, Vol 90, Issue 67
On Thu, Dec 22, 2011 at 3:09 PM, luigi scarso luigi.sca...@gmail.com wrote: On Thu, Dec 22, 2011 at 2:57 PM, Philip Brown bro...@tamug.edu wrote: Thank you, Luigi. I see that Context runs from the command line. The problem is that it does not run from emacs context-mode. How can I fix this? Uh, is there a context-mode for emacs ? Ah ok, auctex. You are under windows, right ? Maybe open a cmd.exe, set the env. vars. with setuptex.bat and then run emacs, always fro the same shell. Anyway, I think that context support in auctex is a bit outdated. -- 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] new beta
Am 2011-12-22 um 14:55 schrieb Hans Hagen: This version might also solve some of the reported problems with page imposition (as the page-* modules are being cleaned up buglets cna be introduced .. nothing really changes there apart from speedup and namespacing). typing (\starttyping) seems undefined now. \starttext \starttyping \CONTEXT \stoptyping \stoptext Season’s Greetlings! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Header bottomframe on first page of document
Hraban, So why don’t you simply set the rulecolor to something invisible on the first occurrence? That sounds good, but I don't know how to do it. I'm new to ConTeXt and figuring this stuff out as I go. Maybe you want to use the frontmatter section for your title page setup. The title is not on a separate title page; the body of the document follows after the title. On Thu, Dec 22, 2011 at 3:59 AM, Henning Hraban Ramm hra...@fiee.net wrote: Am 2011-12-22 um 07:07 schrieb Peter Park Nelson: Hello, If I have a bottom frame under my page headers, is it possible to have NO bottom frame under the header on ONLY the first page of a document? I am using: \setupbackgrounds[header][text][bottomframe=on] to put a border line underneath all my page headers. I want to have a header on the first page of my document but no line under it (the first page header will be unique). I want to keep the vertical space for the header, so \setupheader[text][state=high] is not what I need. So why don’t you simply set the rulecolor to something invisible on the first occurrence? Maybe you want to use the frontmatter section for your title page setup. Season’s Greetlings! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 ___
[NTG-context] ePub from project?
I thought I could try ePub with a current book project. export.xml from my product looks good and contains everything from the components, but the xhtml file contains only a ToC - and thus, ePub is empty. Further, it seems like arguments of \settaggedmetadata like name, title, author are just ignored in ePub. ePubReader in Firefox says (translated) XML processing error: Junk after document element Address: file:.../epub/4/OPS/example.xhtml Line Nr. 173, Column 1:section detail=chapter location='aut:2' Adobe Digital Editions shows no error, just an empty book. With the following small example, I get at least an unstyled body text: \setupbackend[export=example.xml,xhtml=example.xhtml] \settaggedmetadata[name=Hraban,title=Example,author=Hraban,version=0.1] \setupinteraction[state=start,color=,contrastcolor=, title=Test,subtitle={}, author={Henning Hraban Ramm}] \setupexport[bodyfont=12pt,hyphen=yes] \starttext \startchapter[title=Test] \input tufte \stopchapter \stoptext Hm, the xhtml file doesn’t look like HTML at all, and even styling the existing tags in CSS doesn’t affect the output. If I change sectiontitle to xhtml:h2, it’s reckognized. In short: - xhtml is just an xml without html tags - xhtml doesn’t contain content of components Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Struggling with cld document...
Hello all, While preparing a cld-document I need to setup the headertexts on each new page. I tried to do this with the following code: \setuplayout [topspace=2.5cm, backspace=1.5cm, header=40pt, footer=20ptpt, height=middle, width=middle] \setuppagenumbering[location=footer] %\showframe \startluacode function myheadertext(s) context.setupheadertexts{context(s)} --context.labeltext(s) end \stopluacode \starttext \ctxluamyheadertext{Headertext}} \input knuth \stoptext Hm, what I get is a right-square-bracket in front of the text and no header. - What do I miss? Kind regards Willi ___ 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] Struggling with cld document...
Am 22.12.2011 um 22:31 schrieb Willi Egger: Hello all, While preparing a cld-document I need to setup the headertexts on each new page. I tried to do this with the following code: \setuplayout [topspace=2.5cm, backspace=1.5cm, header=40pt, footer=20ptpt, height=middle, width=middle] \setuppagenumbering[location=footer] %\showframe \startluacode function myheadertext(s) context.setupheadertexts{context(s)} --context.labeltext(s) end \stopluacode \startluacode function documentdata.myheadertext(s) context.setupheadertexts{s} end \stopluacode \starttext \ctxluamyheadertext{Headertext}} String are passed with braces. \ctxlua{documentdata.myheadertext(Headertext)} 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] Minimals on an arm-processor
Hello, On Thu, Dec 22, 2011 at 21:48, Gerhard Kugler wrote: Hi, on my new netbook (Hercules eCafe) I have an ubuntu. It would be possible to install the official packages of texlive and/or context. But I would prefer a new minimal installation for a single user. If I call first-setup.sh I get: Error: your system Linux armv71 is not supported yet. Please report to the ConTeXt mailing-list (ntg-context@ntg.nl) Thank you very much for this report. Just out of curiosity: how common are these processors? You are the first one who asked and TeX Live doesn't ship the binaries for this platform (http://tug.org/svn/texlive/trunk/Master/bin/). If we want to support the architecture, we need somebody to build the binaries on regular basis. And since you seem to be the first and possibly the only one using thing platform, that would probably mean you. So the main question is: are you willing to keep compiling binaries on regular basis? (I'm not sure if it is possible, but in case it is, another option is to have a virtual machine somewhere to compile the binaries.) 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] Minimals on an arm-processor
On Thu, Dec 22, 2011 at 11:01:24PM +0100, Mojca Miklavec wrote: If we want to support the architecture, we need somebody to build the binaries on regular basis. And since you seem to be the first and possibly the only one using thing platform, that would probably mean you. So the main question is: are you willing to keep compiling binaries on regular basis? If I can accomplish this task, I would be glad to contribute to it. For a long time I took advantage from other people in the open source community. But what are the requirements? Gerhard (I'm not sure if it is possible, but in case it is, another option is to have a virtual machine somewhere to compile the binaries.) 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 ___ -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ 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] Karnaugh Maps
On Thu, Dec 22, 2011 at 9:13 PM, James 'Twey' Kay t...@twey.co.uk wrote: What would the list recommend for drawing (annotated) Karnaugh maps in ConTeXt? I see there is a LaTeX package, but I think I would rather draw them myself. mkiv or mkii ? Anyway, metapost --- have you seen metafun ? -- 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] Struggling with cld document...
Hi Wolfgang, thank you very much for your reply. This works but I am still not there. I need to use this construct with context.labeltext() So do you know how to achieve the context.setupheadertext with the context.labeltext() as its argument? Thank you Willi On 22 Dec 2011, at 22:38, Wolfgang Schuster wrote: Am 22.12.2011 um 22:31 schrieb Willi Egger: Hello all, While preparing a cld-document I need to setup the headertexts on each new page. I tried to do this with the following code: \setuplayout [topspace=2.5cm, backspace=1.5cm, header=40pt, footer=20ptpt, height=middle, width=middle] \setuppagenumbering[location=footer] %\showframe \startluacode function myheadertext(s) context.setupheadertexts{context(s)} --context.labeltext(s) end \stopluacode \startluacode function documentdata.myheadertext(s) context.setupheadertexts{s} end \stopluacode \starttext \ctxluamyheadertext{Headertext}} String are passed with braces. \ctxlua{documentdata.myheadertext(Headertext)} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Struggling with cld document...
Am 22.12.2011 um 23:23 schrieb Willi Egger: Hi Wolfgang, thank you very much for your reply. This works but I am still not there. I need to use this construct with context.labeltext() So do you know how to achieve the context.setupheadertext with the context.labeltext() as its argument? You need “function() … end” around the inner content, it’s explained in the cld manual. \setuppagenumbering[location=footer] \setuplabeltext[en][willi=Willi Egger] \startluacode function documentdata.myheadertext(s) context.setupheadertexts{ function() context.labeltext(willi) -- context.space() context(: ) context(s) end } end \stopluacode \ctxlua{documentdata.myheadertext(Headertext)} \starttext \input knuth \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote Problem
On Thu, 2011-12-22 at 09:24 +0100, Hans Hagen wrote: use just \kindofpagetextareas\plusone as the constant is already defined. Thanks Hans. It works. Because I don't like to just copy and paste code without understanding it, could you try to run an explanation by me? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Karnaugh Maps
2011/12/22 luigi scarso luigi.sca...@gmail.com mkiv or mkii ? Anyway, metapost --- have you seen metafun ? metafun or tikz is the answer. your request is pretty special, so you’ll have to do the majority of the work yourself (in contrast to using something like the circuit library for tikz) i tikz, you’d do sth like: \usetikzlibrary[matrix,fit] \starttikzpicture \matrix[ matrix of nodes, ampersand replacement=\ ] (m) { 0 \ 0 \ 1\ \1 \\ 0 \ 0 \ 1\ \1 \\ 0 \ 0 \ 0\ \1 \\ 0 \ 1 \ 1\ \1 \\ } \node[red, fit = (m-1-3) (m-2-4)] {}; \node[green, fit = (m-1-4) (m-4-4)] {}; \node[green, fit = (m-4-2) (m-4-3)] {}; \stoptikzpicture (untested) ___ 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] Constraint in line numbers
Il giorno Thu, 22 Dec 2011 09:32:01 +0100 luigi scarso luigi.sca...@gmail.com ha scritto: On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 21.12.2011 um 18:19 schrieb Fulvio: Hi, this is my first message in this ml ;) Well, I've a stupid constraint in a work: I must limit the number of lines in a page. I have to have 32-35 lines on each page. Now, the task isn't too complex in principle, I can work on interline sizes and glues, but this way is a little bit tricky. I wonder if there is a better (and elegant) way to manage the problem. You can the number of lines on a page with the \setuplayout command. \setuplayout[lines=20] \starttext \dorecurse{100}{Line \recurselevel\par} \stoptext Wolfang Of course there is a static idea of line that depends on the current font and a dynamic idea of row that depends on the current document: here is an exaggerated example \setuplayout[lines=20] \newdimen\T \T=1.5mm \starttext \dorecurse{40}{\ruledvbox{Line \recurselevel}\par} \dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height \recurselevel\T depth \recurselevel\T}\par} \stoptext Very good hints, thank you! I'll investigate on them in the next few days! :) Fulvio signature.asc 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 ___
[NTG-context] Broken Nightly
Hey folks, Since I upgraded from the Nov 29th nightly to today's Dec 22nd, my ConTeXt source does not compile. I do not understand the error message either. I would post the source, but there are over a 180 pages worth. $ context Source/Handbook.tex --purgeresult resolvers | resolving | loading configuration file 'selfautodir:/share/texmf/web2c/contextcnf.lua' resolvers | resolving | loading configuration file '/usr/share/texmf/web2c/contextcnf.lua' mtx-context | run 1: luatex --fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en --lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui --backend=pdf Source/Handbook.tex \stoptext This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) \write18 enabled. resolversresolving loading configuration file '/usr/share/texmf/web2c/contextcnf.lua' (Source/Handbook.tex ConTeXt ver: 2011.12.22 16:52 MKIV fmt: 2011.12.22 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system Handbook.top loaded (Handbook.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' fontsvirtual math loading font LMMath7-Regular subfont 9 with name stmary10.afm at 458752 is skipped, not found fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' fontsvirtual math loading font LMMath9-Regular subfont 9 with name stmary10.afm at 589824 is skipped, not found fontsdefining forced type afm of stmary10 not found fontsdefining font with asked name 'stmary10' is not found using lookup 'file' fontsvirtual math loading font LMMath12-Regular subfont 9 with name stmary10.afm at 786432 is skipped, not found fontsfallback modern rm 12pt is loaded (Source/Environment.tex resolversmodules loaded: 'units' (/usr/share/texmf/tex/context/base/m-units.mkiv + /usr/share/texmf/tex/context/base/x-mathml.lua) resolversmodules loaded: 'simplefonts' (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex loading ConTeXt User Module / Simplefonts + /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua) fontsbeware: fontclass ignored (if needed use: [fontclass][size][settings]) ) backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 Source/Makeup/Images/m_k_i_v_Bazaar_Logo.pdf Source/Makeup/Images/m_k_i_v_ConTeXt_Logo.pdf pagesflushing realpage 2, userpage 1, subpage 2 structuresectioning title @ level 2 : 0.0 - \headtext {content} (Source/Preface/Preface.tex pagesflushing realpage 3, userpage 1, subpage 1 structuresectioning chapter @ level 2 : 0.1 - Preface backend references invalid page reference: 0 references unknown reference [Preface][Revision Control Management] backend references invalid page reference: 0 ) pagesflushing realpage 4, userpage 2, subpage 1 (Source/Core_Leitmotifs/Core_Leitmotifs.tex structuresectioning chapter @ level 2 : 0.1 - Core Leitmotifs references unknown reference [Core Leitmotifs][Communication] backend references invalid page reference: 0 references unknown reference [Core Leitmotifs][Resources For Everyone] backend references invalid page reference: 0 backend references invalid page reference: 0 references unknown reference [Core Leitmotifs][Genuine Progress Indicator] backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 backend references invalid page reference: 0 Overfull \hbox (2.51901pt too wide) detected at line 37 [] backend references invalid page reference: 0 backend references invalid page reference: 0 pagesflushing realpage 5,