Re: [NTG-context] MetaFUN's \setupMPpage broken? [SOLVED]
On 12/27/2011 12:24 PM, Wolfgang Schuster wrote: Am 27.12.2011 um 11:35 schrieb Verhaag, G.C.H.M.: Hi ConTeXt user's, A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed the 11-12-23 version (MkIV). The \setupMPpage command in the basic example below: \setupMPpage[offset=1pt] \startuseMPgraphic{test} fill fullsquare rotated 45 ; \stopuseMPgraphic \starttext \startMPpage \includeMPgraphic{test} \stopMPpage \stoptext yields the following error in both versions mentioned above: ! Undefined control sequence. system tex error on line 1 in file test.tex: Undefined control sequence ... All this worked just fine in the version of last August! Use \setupfittingpage[MPpage][…=…]. Wolfgang .. Hi Wolfgang and John, Both ways work well, thanks a lot! Does this mean that the setupMPpage command will become obsolete in near future? Are both suggestions documented somewhere or is this mailing list the only way to find out? Regards, Gerard Verhaag ___ 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] MetaFUN's \setupMPpage broken?
On Tue, Dec 27, 2011 at 6:00 AM, ntg-context-requ...@ntg.nl wrote: Hi ConTeXt user's, A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed the 11-12-23 version (MkIV). The \setupMPpage command in the basic example below: \setupMPpage[offset=1pt] \startuseMPgraphic{test} fill fullsquare rotated 45 ; \stopuseMPgraphic \starttext \startMPpage \includeMPgraphic{test} \stopMPpage \stoptext yields the following error in both versions mentioned above: ! Undefined control sequence. system tex error on line 1 in file test.tex: Undefined control sequence ... All this worked just fine in the version of last August! Regards, Gerard Verhaag Hello Gerard. Moving the [offset=*] down to \startMPpage and eliminating the \setup MPpage worked here. (I also scaled it up so I could see it on my viewer.) \startuseMPgraphic{test} fill fullsquare rotated 45 scaled 20; \stopuseMPgraphic \starttext \startMPpage[offset=5pt] \includeMPgraphic{test} \stopMPpage \stoptext This may be a feature. --JohnK ___ 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] FLOWchart module broken
Am 26.12.2011 um 14:00 schrieb Willi Egger: Hi,test-flowchart.tex The FLOW-chart module is broken at least since the version 22-12-2011 and still is in the version of 23-12-2011. m-chart.mkvi \startsetups flowcell:text:place:indeed \begingroup \directsetup{flowcell:text:user} \doifelsenothing {\getvariable{flowcell:text}{figure}} { % \doframed % [flowcell:\getvariable{flowcell:text}{align}] \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty {\getvariable{flowcell:text}{text}} } { % \doframed % [flowcell:\getvariable{flowcell:text}{align}] \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty [background=flowcell:figure] {\getvariable{flowcell:text}{text}} } \endgroup \stopsetups 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] MetaFUN's \setupMPpage broken?
Hi ConTeXt user's, A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed the 11-12-23 version (MkIV). The \setupMPpage command in the basic example below: \setupMPpage[offset=1pt] \startuseMPgraphic{test} fill fullsquare rotated 45 ; \stopuseMPgraphic \starttext \startMPpage \includeMPgraphic{test} \stopMPpage \stoptext yields the following error in both versions mentioned above: ! Undefined control sequence. system tex error on line 1 in file test.tex: Undefined control sequence ... All this worked just fine in the version of last August! Regards, Gerard Verhaag ___ 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] MetaFUN's \setupMPpage broken?
Am 27.12.2011 um 11:35 schrieb Verhaag, G.C.H.M.: Hi ConTeXt user's, A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed the 11-12-23 version (MkIV). The \setupMPpage command in the basic example below: \setupMPpage[offset=1pt] \startuseMPgraphic{test} fill fullsquare rotated 45 ; \stopuseMPgraphic \starttext \startMPpage \includeMPgraphic{test} \stopMPpage \stoptext yields the following error in both versions mentioned above: ! Undefined control sequence. system tex error on line 1 in file test.tex: Undefined control sequence ... All this worked just fine in the version of last August! Use \setupfittingpage[MPpage][…=…]. 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] MetaFUN's \setupMPpage broken? [SOLVED]
Am 27.12.2011 um 14:26 schrieb Verhaag, G.C.H.M.: Hi Wolfgang and John, Both ways work well, thanks a lot! Does this mean that the setupMPpage command will become obsolete in near future? Are both suggestions documented somewhere or is this mailing list the only way to find out? It’s already obsolete as you noticed by the “undefined control sequence” warning. The reason for this is that \startMPpage and \startTEXpage are now defined in a different way than they had been in MkII. In MkII both commands are defined with \def\startMPpage{…} and \def\startTEXpage{…} but in MkIV both are a instance of fittingpage and the definition for them is \definefittingpage[MPpage] and \definefittingpage[TEXpage]. As a consequence the old \setupMPpage command is also gone and you have to set global settings with \setupfittingpage[environment][settings]. Such a changes do happen with many commands in MkIV and the setup-commands for them are moved to the underlying mechanism (e.g. fittingpage). 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] FLOWchart module broken
Hi Wolfgang, thank you for the patch. - It works again without error. Still there is a small point to be made and corrected. When in the attached example the grid is set to 3 x 3 (the actual size of the chart) the right most comment is clipped to the first letter, Only if the grid is set to 3x4 then the comment is completely visible. Furthermore there is a clipping problem with the topmost comment. This text is clipped along the arrow-line and this can not be corrected by setting the grid to 4x4. Kind regards Willi test-flowchart.pdf Description: Adobe PDF document test-flowchart.tex Description: Binary data On 27 Dec 2011, at 12:20, Wolfgang Schuster wrote: Am 26.12.2011 um 14:00 schrieb Willi Egger: Hi,test-flowchart.tex The FLOW-chart module is broken at least since the version 22-12-2011 and still is in the version of 23-12-2011. m-chart.mkvi \startsetups flowcell:text:place:indeed \begingroup \directsetup{flowcell:text:user} \doifelsenothing {\getvariable{flowcell:text}{figure}} { % \doframed % [flowcell:\getvariable{flowcell:text}{align}] \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty {\getvariable{flowcell:text}{text}} } { % \doframed % [flowcell:\getvariable{flowcell:text}{align}] \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty [background=flowcell:figure] {\getvariable{flowcell:text}{text}} } \endgroup \stopsetups Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Offsetting the Item Symbol
Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. Thanks, Emmanuel ___ 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] Offsetting the Item Symbol
Am 27.12.2011 um 21:33 schrieb Emmanuel Asante: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. \starttext \startitemize \item One \item Two \stopitemize \startitemize[margin=4cm] \item One \item Two \stopitemize \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] Offsetting the Item Symbol
Hi Emmanuel, Is this what you want? Probably you can adapt the key « distance » to obtain what you want: \showframe \starttext %\startitemize[n][width=3cm,itemalign=flushright,distance=1em] \startitemize[n][itemalign=flushright,distance=1em,stopper={)},style={bold}] \dorecurse{12}{\item test} \stopitemize \stoptext Best regards: OK On 27 déc. 2011, at 21:33, Emmanuel Asante wrote: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. Thanks, Emmanuel ___ 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] Offsetting the Item Symbol
Thanks, Wolfgang. Your solution is exactly what I wanted. On Tue, Dec 27, 2011 at 1:58 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 27.12.2011 um 21:33 schrieb Emmanuel Asante: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. \starttext \startitemize \item One \item Two \stopitemize \startitemize[margin=4cm] \item One \item Two \stopitemize \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Offsetting the Item Symbol
Hi Otared, Thanks for your suggestion. Wolgang gave me a solution that did what I was looking for. On Tue, Dec 27, 2011 at 2:02 PM, Otared Kavian ota...@gmail.com wrote: Hi Emmanuel, Is this what you want? Probably you can adapt the key « distance » to obtain what you want: \showframe \starttext %\startitemize[n][width=3cm,itemalign=flushright,distance=1em] \startitemize[n][itemalign=flushright,distance=1em,stopper={)},style={bold}] \dorecurse{12}{\item test} \stopitemize \stoptext Best regards: OK On 27 déc. 2011, at 21:33, Emmanuel Asante wrote: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. Thanks, Emmanuel ___ 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 ___ ___ 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] \definelayout
The example is not working correctly for me with the 23 Dec. beta. If I set a larger footer size for the first page, that larger size is carried over to all the rest of the document. Here's my code: \setuplayout[% width=middle, backspace=15mm, topspace=10mm, height=254mm, header=5mm, headerdistance=5mm, footer=5mm, % Normal footer size footerdistance=5mm, grid=tolerant] \definelayout[first][% Larger footer on first page footer=15mm, footerdistance=5mm] On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder ahar...@uni-koblenz.de wrote: On 13.12.2011, at 16:44, Wolfgang Schuster wrote: Am 13.12.2011 um 16:26 schrieb Andreas Harder: Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm] \definelayout[unknown][default]%[reset] % \definelayout[2] [default]%[reset] \definelayout[last] [default][footer=2cm] \starttext \showframe % \checkcurrentlayout %% Variant A: fails with \default[unknown] first\page unknown=(2)\page \page unknown=(3)\page last %% Variant B: fails with \definelayout[2] % first\page unknown=(2)=last \stoptext By the way the output differs with the latest beta in comparison with the latest experimental. Hans changed part of the \setuplayout code in the last betas (there are more than you can see in the ctx suite). When context checks the layout (happens with \starttext and when it starts a new page) it test for the following defined layouts: • “pagenumber” • “-pagenumber” • “last” (is only used for the last page of the document) • “first” (is only used for the first page of the document) • “unknown” • “current” • “odd” and “even” (used for left and right pages) All entries in this list are reserved names but you can also define your own layout but in this case you have to enable it with \setuplayout[name]. One of the new features in MkIV is that layout parameters can be inherited, e.g. when you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and another one with the name two (\definelayout[two][one][..,..=..,..]) this will take the values from one of there are nothing set for a value from one and when there is also nothing set for one the global values are used (\setuplayout[..,..=..,..]). Hi Wolfgang, I modified the example (hopefully in a meaningful manner). I get the desired output with the old beta, but it still fails with todays beta. \setuplayout [width=middle,height=middle,header=0pt,footer=0pt] \definelayout[first] [header=2cm] \definelayout[last] [footer=2cm] \definelayout[current] \starttext \showframe % \checkcurrentlayout % \dorecurse{2}{test\page} % last is wrong \dorecurse{5}{test\page} % page 2 and „last“ are wrong \stoptext Andreas ___ 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 ___
Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta
Hans, I'm including a minimal example below. Behavior is the same using the 23 dec 2011 beta: odd page headers are not sans, and odd page footers are not bold. Even though I set state=empty for headers and footers, they appear on the first page. Another odd thing -- if I use \setupheader[options...] instead of \setupheader[text][options...], I get an extra horizontal rule (\hairline?) on the left side of the page... %%-snip-%% \setuppapersize[letter][letter] \setupindenting[yes, medium] COLUMNS AND SPANS: \definecolumnset[body][n=2,balancing=yes] \definecolumnsethsize{body}{1}{1}\One \definecolumnsethsize{body}{1}{2}\Two %% HEADERS AND FOOTERS: %% \setuppagenumbering [alternative=doublesided, location=] \setupheader[text] [state=empty, style=\ss, after=\hairline] %\setupheader % Try this to see the extra horizontal hairline % [state=empty, % style=\ss, % after=\hairline] \setupheadertexts [{\it Effects of transit scheduling management mitigation}] [pagenumber] [pagenumber] [Doe et al.] \setupfooter[text] [state=empty,style=bold] \setupfootertexts [footer] [footer] [footer] [footer] % TEXT STARTS HERE: % \starttext \title{Title} \startcolumnset[body] \setupindenting[yes] \dorecurse{30}{\input tufte\par} \stopcolumnset \stoptext %%snip-%% On Thu, Dec 22, 2011 at 2:21 AM, Hans Hagen pra...@wxs.nl wrote: 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 - -- 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 ___