Re: [NTG-context] issue with layers and layouts
Am 22.10.2013 um 19:13 schrieb Pablo Rodriguez : > On 10/22/2013 12:29 PM, Wolfgang Schuster wrote: >> Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez : >>> [...] >>> Layer has text inside in the sample above. I’d like to have it as a float. >> >> You can use positioned layers (mentioned in the metafun manual but currently >> broken in MkIV) >> but you have to place the layer with a float to reserve the necessary space. >> >> % engine=pdftex >> >> \definelayer[avoidasfloat][position=yes] >> >> \setupbackgrounds[page][background=avoidasfloat] >> >> \starttext >> >> \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw >> unitsquare scaled 4cm ; \stopMPcode}} >> \input knuth >> >> \stoptext > > Many thanks for your reply, Wolfgang. > > Is there no way to place that layer exactly 8mm from left page border > and 110mm from top page border? > > I really need the layer in that position (otherwise it doesn’t make sense). Remove “position=yes” when you want the layer on a certain position on the page but don’t expect the text to flow around the layer. 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] open quotation not working
Am 22.10.2013 um 16:38 schrieb Mojca Miklavec : > On Sun, Oct 13, 2013 at 11:30 AM, Wolfgang Schuster wrote: >> Am 13.10.2013 um 06:09 schrieb Ciro A. Soto: >> >>> sorry, I just saw an old chain of messages about this question... I fixed >>> it with the translation module. >>> \usemodule[translate] >>> \translateinput[``][“] >>> \enableinputtranslation >> >> Better use real quotation marks “ and ” or \quotation{…}. > > Or \quotedblleft, \quotedblright, \quotedblbase, . > For the flowing text these are a bit too long to use and remember for > my taste though. > > LaTeX sometimes uses \grqq & \glqq which are a whole lot shorter, but > also not the easiest one to remember (or at least I don't understand > the pattern). > > There could be something like \quotationleft/\quotationright & > \quoteleft/\quoteright for a single language-dependent single & double > quotation marks. And maybe another language-independent version which > would always generate the desired character (if looking for > hard-to-remember shortcuts, l/u - lower/upper; g/b/p - > 9-like/6-like/reversed 9-like shape, q/qq - single/double quotation > mark; so 201C “ - \qqub [or \ubqq], 201D ” - \qqug; 201E „ - \qqlg; > 201F ‟ - \qqup). Personally I never use them unpaired other than in > obscure situations (like listing all characters), so I like \quotation > and \quote a lot more than the TeX approach which taught almost > everyone here to use the wrong quotation marks. And consequently I > also don't miss any of these commands. \starttext \symbol[leftquotation]Left \symbol[leftquote]middle\symbol[rightquote] right\symbol[rightquotation] \language[de] \symbol[leftquotation]Left \symbol[leftquote]middle\symbol[rightquote] right\symbol[rightquotation] \setuplanguage [de] [leftquote=›, rightquote=‹, leftquotation=», rightquotation=«] \symbol[leftquotation]Left \symbol[leftquote]middle\symbol[rightquote] right\symbol[rightquotation] \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 ___
[NTG-context] \setuptyping[lines=yes] bug in beta?
Dear list, the following sample: \showframe \setuppapersize[S6] \setuptyping[option=TEX,lines=yes] \starttext \starttyping \startvariante[MRU]{{\em om} X}En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco y galgo corredor.\stopvariante[MRU] \stoptyping \stoptext gets lines broken wrong in beta from 15.10 (I have just updated the ConTeXt Suite, but I get no newer beta), but lines are broken right with MkIV in http://live.contextgarden.net. I think this may be a bug. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] \mframed not aligned in mkiv
On Tue, 22 Oct 2013, Otared Kavian wrote: Hi Aditya, I wikified your remarks, http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation Rather than \def\graymath{\mframed[frame=off, background=color, backgroundcolor=gray, backgroundoffset=3pt]} you can just use: \definemathframed[graymath] [ frame=off, location=mathematics, background=color, ..., ] This way, you can even override the options when using \graymath: \graymath[backgroundcolor=red]{...} but unfortunately the snippet of code does not compile on ConTeXt Garden: is there a way to typeset mkiv code there? Using compiles the coding using MkIV, but contextgarden uses a rather old version of mkiv, so it is unlikely that a feature introduced a few months ago will run on the garden. 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] issue with layers and layouts
On 10/22/2013 12:29 PM, Wolfgang Schuster wrote: > Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez : >> [...] >> Layer has text inside in the sample above. I’d like to have it as a float. > > You can use positioned layers (mentioned in the metafun manual but currently > broken in MkIV) > but you have to place the layer with a float to reserve the necessary space. > > % engine=pdftex > > \definelayer[avoidasfloat][position=yes] > > \setupbackgrounds[page][background=avoidasfloat] > > \starttext > > \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw > unitsquare scaled 4cm ; \stopMPcode}} > \input knuth > > \stoptext Many thanks for your reply, Wolfgang. Is there no way to place that layer exactly 8mm from left page border and 110mm from top page border? I really need the layer in that position (otherwise it doesn’t make sense). Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] open quotation not working
On Sun, Oct 13, 2013 at 11:30 AM, Wolfgang Schuster wrote: > Am 13.10.2013 um 06:09 schrieb Ciro A. Soto: > >> sorry, I just saw an old chain of messages about this question... I fixed it >> with the translation module. >> \usemodule[translate] >> \translateinput[``][“] >> \enableinputtranslation > > Better use real quotation marks “ and ” or \quotation{…}. Or \quotedblleft, \quotedblright, \quotedblbase, . For the flowing text these are a bit too long to use and remember for my taste though. LaTeX sometimes uses \grqq & \glqq which are a whole lot shorter, but also not the easiest one to remember (or at least I don't understand the pattern). There could be something like \quotationleft/\quotationright & \quoteleft/\quoteright for a single language-dependent single & double quotation marks. And maybe another language-independent version which would always generate the desired character (if looking for hard-to-remember shortcuts, l/u - lower/upper; g/b/p - 9-like/6-like/reversed 9-like shape, q/qq - single/double quotation mark; so 201C “ - \qqub [or \ubqq], 201D ” - \qqug; 201E „ - \qqlg; 201F ‟ - \qqup). Personally I never use them unpaired other than in obscure situations (like listing all characters), so I like \quotation and \quote a lot more than the TeX approach which taught almost everyone here to use the wrong quotation marks. And consequently I also don't miss any of these commands. MS Word at least does the proper auto-replacement if the right language is used, but in TeX most people here just cloned Knuth's approach without giving a single thought to the local grammar & its rules. @John: you can always create your own feature file to do the replacement and load it. 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] \mframed not aligned in mkiv
Hi Aditya, I wikified your remarks, http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation but unfortunately the snippet of code does not compile on ConTeXt Garden: is there a way to typeset mkiv code there? Best regards: OK On 21 oct. 2013, at 22:18, Aditya Mahajan wrote: > On Mon, 21 Oct 2013, Otared Kavian wrote: > >> Dear Hans, >> >> I noticed a difference between mkii and mkiv in the behavior of \mframed: it >> seems that in mkiv the frame is not vertically aligned with the the + sign >> in the following example (or rather it is not vertically centered, please >> see the attached PDF produced with ConTeXt ver: 2013.10.15 13:52 MKIV). >> Does one have to use now a new key to require this sort of alignment? >> >> Best regard: OK >> >> begin mframed-example.tex >> \setupcolors[state=start] >> >> \def\graymath{\mframed[frame=off, >> background=color, >> backgroundcolor=lightgray, >> backgroundoffset=2pt >> ]} >> >> \starttext >> >> Since for $|x| < 1$ we have >> \startformula >> \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots >> \stopformula >> we may write $\log(1+x) = x + O(x^2)$. >> >> \stoptext >> end mframed-example.tex > > Search for "Alignment in inmframed" in the mailing list archives. > > % The next statement is part of the core. Included it here for % illustration. > > \definemathframed[mcframed] [location=mathematics] > > \starttext > > \startformula >\ln (1+x) = > \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x > - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + > \frac{x^3}{3}-\cdots. > \stopformula > > \startformula >\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + > \frac{x^3}{3}-\cdots. > \stopformula > > \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 > ___ ___ 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] Need help defining command.
Hi Wolfgang, Am 22.10.2013 um 11:31 schrieb Wolfgang Schuster : > > Am 22.10.2013 um 10:34 schrieb Keith J. Schultz : > >> HI All, >> >> I remember seeing some seeing what I want to do but I can not find it. >> >> I would like to define a command that takes an optional key-valued list and >> 1 or 2 manditory ones. >> >> Something like >> >> \unexanded\def\MyCommand[#1]#2% >> {% >> \NassiGroupFrame[#1]{#2}% >> }% > > \unexanded\def\MyCommand > {\dosingleempty\doMyCommand} > > \def\doMyCommand[#1]#2% > {\NassiGroupFrame[#1]{#2}} > >> or >> >> \unexanded\def\MyCommand[#1]#2% >> {% >> % extract keyvalue >> \NassiGroupFrame[\width=\extractedvalueone]{hbox to \extractvaletwo{#2}}% >> }% > > \unexanded\def\MyCommand > {\dosingleempty\doMyCommand} > > \def\doMyCommand[#1]#2% > {\begingroup > \getdummyparameters[valueone=6cm,valuetwo=5cm,#1] > \NassiGroupFrame[width=\dummyparameter{valueone}]{\hbox to > \dummyparameter{valuetwo}{#2}}% > \endgroup} > > \MyCommand[valuetwo=4cm]{...} > >> where \NassiGroupFrame is a Frame. >> >> To give you an idea why I need this see the MWE below. >> This is a relatively simple example, there will be more complicated frames >> and >> they will be nested. >> >> Maybe I am chasing windmills and there is a better way and I should use cld >> or lua for >> outputing the Frames so that I can have spacing between the command and >> avoid having >> to use "%" after the first opening "{". >> Or does someone know how it can be done. Is there a way to use ConTeXt to >> write the command > > There are ways to ignore the spaces at the begin (\ignorespaces) and end > (\removeunwantedspaces) > of a group but you should rethink first your interface for your commands (why > no start/stop commands). I thought about that, but I do not know I could use start/-commands in this context! regards Keith ___ 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] Need help defining command.
Hi Wolfgang, to be honest one of my design considerations was to this work using MetaPost. But, my knowledge of MetaPost is minimal and it would be involved calculating the positions of the Frames/boxes and I need to know the sizes of the formatted text, etc Another approach would be to use layer, but I can not find much documentation about how/if they can be used inside of a frame. regards Keith Am 22.10.2013 um 11:31 schrieb Wolfgang Schuster : [snip, snip] > There are ways to ignore the spaces at the begin (\ignorespaces) and end > (\removeunwantedspaces) > of a group but you should rethink first your interface for your commands (why > no start/stop commands). > > It can be also useful to draw the whole diagram with Metapost and use the TeX > commands only > to pass the content to Metapost. ___ 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] issue with layers and layouts
Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez : > I want the text flow to avoid the layer "avoidasfloat" as it avoids the > figures. > > \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, > voffset=101mm,location={right,bottom}, state=start] > \setlayer[avoidasfloat]{\startMPcode > draw (0mm,0mm)--(55mm,0mm) ; > draw (0mm,0mm)--(0mm,-86mm) ; > draw (0mm,-86mm)--(55mm,-86mm) ; > draw (55mm,-86mm)--(55mm,0mm) ; > \stopMPcode > } > \setupbackgrounds[page][background={avoidasfloat}] > \starttext > \dorecurse{40}{\input knuth\placefigure[right]{}{}\par} > \stoptext > > Layer has text inside in the sample above. I’d like to have it as a float. > > Many thanks for your help, You can use positioned layers (mentioned in the metafun manual but currently broken in MkIV) but you have to place the layer with a float to reserve the necessary space. % engine=pdftex \definelayer[avoidasfloat][position=yes] \setupbackgrounds[page][background=avoidasfloat] \starttext \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsquare scaled 4cm ; \stopMPcode}} \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] Standalone Installation Question
Hi, Just to make it clear: 1.) There used to be support for the native cygwin binaries in the ConTeXt distribution, but I only remember a single person asking for it and when it had to be built and debugged, he didn't have sufficient time to help debug the problem. Because of many problems (which could be solved, but there would have to be people interesting in testing and solving the problems, provide feedback, ...) the native cygwin binaries have been removed. 2.) first-setup.sh may recognise cygwin, but it won't download anything because the binaries aren't present. Maybe I should change the script to make this explicit and return an error when running on cygwin (there is not error checking - if fetching the files fails, it's not really evident). On Sun, Oct 20, 2013 at 6:06 PM, wrote: > > To: ConTeXt package maintainer for TeXlive distribution: > > TeXlive as of 2011 or so is compatible under unix type with cygwin. > > I do not want to use the Microsoft version. There is no reason from me to > change > code and scripts to work with Microsoft's methods. There is no need to. If you fetch ConTeXt with binaries compiled with MSVC, you should be perfectly capable of running those binaries in cygwin environment without having to be aware that they are not for cygwin. (I might be wrong, but that's my understanding.) Unless you are a purist and want to avoid anything that has been compiled with MSVC due to potential security risks, there is no reason why the standard binaries couldn't be used. > Also I will not give up the unix developement environment that cygwin > delivers to work with ConteXt. You really don't need to. Even if you keep using the windows version. > I'd like to know the the Context package that was submitted to TeXlive. ConTeXt was taken from http://www.pragma-ade.com/download-1.htm. Some scripts were used to assemble everything together. You need to check TeX Live sources (http://tug.org/svn/texlive/trunk/Build/) if you are curious about how it was done. > I presume this was in source format. Yes. But except for mtxrun.exe (which is just a windows wrapper for a lua script), the luatex binary (which is not part of ConTeXt) and the formats (that are generated on the fly), ConTeXt doesn't need any compilation. TeX Live contains "sources" for ConTeXt only + some binary wrappers for lua files (not relevant for cygwin). Everything else is either not part of ConTeXt or is using a scripting language. > How can I get that for the beta/current MKIV > and build it myself? Do you want the latest version inside TeX Live or the standalone distribution? If you want a working standalone distribution, a bit of work is needed first to set up everything. Most notably you or someone else would need to volunteer to provide binaries for at least LuaTeX and MetaPost. If you need the latest ConTeXt in TeX Live, it might be sufficient to create a separate texmf tree, put ConTeXt there and set up TEXMF paths properly, plus make sure that the latest mtxrun comes first in PATH. Or create a tlpkg with the latest ConTeXt and install it with tlmgr then. 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] Need help defining command.
Am 22.10.2013 um 10:34 schrieb Keith J. Schultz : > HI All, > > I remember seeing some seeing what I want to do but I can not find it. > > I would like to define a command that takes an optional key-valued list and > 1 or 2 manditory ones. > > Something like > > \unexanded\def\MyCommand[#1]#2% > {% > \NassiGroupFrame[#1]{#2}% > }% \unexanded\def\MyCommand {\dosingleempty\doMyCommand} \def\doMyCommand[#1]#2% {\NassiGroupFrame[#1]{#2}} > or > > \unexanded\def\MyCommand[#1]#2% > {% > % extract keyvalue > \NassiGroupFrame[\width=\extractedvalueone]{hbox to \extractvaletwo{#2}}% > }% \unexanded\def\MyCommand {\dosingleempty\doMyCommand} \def\doMyCommand[#1]#2% {\begingroup \getdummyparameters[valueone=6cm,valuetwo=5cm,#1] \NassiGroupFrame[width=\dummyparameter{valueone}]{\hbox to \dummyparameter{valuetwo}{#2}}% \endgroup} \MyCommand[valuetwo=4cm]{...} > where \NassiGroupFrame is a Frame. > > To give you an idea why I need this see the MWE below. > This is a relatively simple example, there will be more complicated frames and > they will be nested. > > Maybe I am chasing windmills and there is a better way and I should use cld > or lua for > outputing the Frames so that I can have spacing between the command and avoid > having > to use "%" after the first opening "{". > Or does someone know how it can be done. Is there a way to use ConTeXt to > write the command There are ways to ignore the spaces at the begin (\ignorespaces) and end (\removeunwantedspaces) of a group but you should rethink first your interface for your commands (why no start/stop commands). It can be also useful to draw the whole diagram with Metapost and use the TeX commands only to pass the content to Metapost. 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] Need help defining command.
HI All, I remember seeing some seeing what I want to do but I can not find it. I would like to define a command that takes an optional key-valued list and 1 or 2 manditory ones. Something like \unexanded\def\MyCommand[#1]#2% {% \NassiGroupFrame[#1]{#2}% }% or \unexanded\def\MyCommand[#1]#2% {% % extract keyvalue \NassiGroupFrame[\width=\extractedvalueone]{hbox to \extractvaletwo{#2}}% }% where \NassiGroupFrame is a Frame. To give you an idea why I need this see the MWE below. This is a relatively simple example, there will be more complicated frames and they will be nested. Maybe I am chasing windmills and there is a better way and I should use cld or lua for outputing the Frames so that I can have spacing between the command and avoid having to use "%" after the first opening "{". Or does someone know how it can be done. Is there a way to use ConTeXt to write the command Pointers, help welcome. MWE: % %% NassiSimpleFrameBox %% %% Draw a box around a frame using exact height %% and width. to use it use overlay NassiSimpleFrameBox %% \startuniqueMPgraphic{NassiSimpleFrameBox} pickup pencircle scaled \overlaylinewidth ; draw (0,0) -- (0, OverlayHeight) -- (OverlayWidth, OverlayHeight) -- (OverlayWidth, 0) -- cycle withcolor OverlayLineColor; \stopuniqueMPgraphic %% Define Overlay for NassiSimpleFrameBox %% \defineoverlay[NassiSimpleFrameBox][\uniqueMPgraphic{NassiSimpleFrameBox}] %% % % %% NassiGroupFrameBox %% %% Draw a box around a frame which contains several %% structures. Since the frame size containing the structures %% has a \rulethickness frame around then we have to adjust %% so that we can draw on top of its bounding box %% \startuniqueMPgraphic{NassiGroupFrameBox} numeric DoubleLineWidth, TrueWidth, TrueHeight; DoubleLineWidth := 2 * OverlayLineWidth; TrueHeight := OverlayHeight - DoubleLineWidth; TrueWidth := OverlayWidth - DoubleLineWidth; pickup pencircle scaled OverlayLineWidth; draw (0,0) -- (0, TrueHeight) -- (TrueWidth, TrueHeight) -- (TrueWidth, 0) -- cycle withcolor OverlayLineColor; \stopuniqueMPgraphic \defineoverlay[NassiGroupFrameBox][\uniqueMPgraphic{NassiGroupFrameBox}] %% % % %% NassiSimpleFrame %% %% Frame for putting a frame around it. %% Location is set so that they can be stack %% on top of each other. \defineframed[NassiSimpleFrame] \setupframed[NassiSimpleFrame] [width=5cm, frame=off, background=NassiSimpleFrameBox, rulethickness=1pt, framecolor=blue, offset=0pt, frameoffset=0pt, location=lohi] %% % % %% NassiGroupFrame %% %% Frame for putting a frame around a block of %% structures. Since it surrounds a group we use %% fit for Height and Width. %% So that the The frame gets draw on top that the %% the background has to be setup accordingly. \defineframed[NassiGroupFrame] \setupframed[NassiGroupFrame] [width=fit, height=fit, frame=off, rulethickness=3pt, framecolor=green, offset=0pt, background={foreground, NassiGroupFrameBox}, frameoffset=0pt, align=middle, strut=no] %% % %% Frame a Statement %% The text inside the frame is adjust to %% leave room for the frame \unexpanded\def\Statement#1% {% \NassiSimpleFrame[width=5cm,framecolor=red]{\vbox{\hsize \dimexpr\framedparameter{width} * 9/10\relax \strut #1}}% }% \unexpanded\def\MyGroup#1% {% \NassiGroupFrame{\hbox to 10cm% {#1}} }% \unexpanded\def\MyBlock#1% {% \vtop{{\hsize 5cm#1}}% }% \starttext \NassiGroupFrame{% \vbox{\hsize 5cm% \Statement{This is a test This is a test This is a test This is a test This is a test This is a test} \Statement{This $is^a$ test } \Statement{This $is^a$ test This is a test This is a test This is a test This is a test This is a test} }} \MyGroup{% How do I avoid comment here \MyBlock{ \Statement{This is a test This is a test This is a test This is a test This is a test This is a test} \Statement{This $is^a$ test } }% How do I avoid comment here \MyBlock{\Statement{This is a test This is a test This is a test This is a test This is a test This is a test} } } \stoptext regards Keith. ___ 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 ___