Re: [NTG-context] mkIV framedcontent not working
Am 09.09.2009 um 22:38 schrieb Hans Hagen: start with making a small example that shows the problem easy to fix, change (why \ifcsname here?) \def\startframedcontent[#1]% {\bgroup \doifelse{#1}\v!off {\let\stopframedcontent\egroup} {\ifcsname\??fc#1\c!frame\endcsname \dostartframedcontent{#1}% \fi}} to \def\startframedcontent[#1]% {\bgroup \doifelse{#1}\v!off {\let\stopframedcontent\egroup} {\dostartframedcontent{#1}}} there is another problem with the code in \stoplocalframedcontent \doifvalue{\??fc#1\c!width}\v!fit {\letvalue{\??fc#1\c!width}\v!fixed}% no shapebox width has no default value for framedcontent and after this test it has the value \relax which causes a problem in \framed, there are two solutions a) set a default value with \defineframedcontent or change the \doifvalue definition \def\dodefineframedcontent[#1][#2]% {\presetlocalframed[\??fc#1]% \getparameters[\??fc#1] [\c!leftoffset=\zeropoint, \c!rightoffset=\getvalue{\??fc#1\c!leftoffset}, \c!topoffset=\zeropoint, \c!bottomoffset=\getvalue{\??fc#1\c!topoffset}, \c!width=\v!fit, % default value for \framed \c!strut=\v!no, \c!offset=\v!overlay, \c!linecorrection=\v!no, \c!left=, \c!right=, #2]} or \long\def\doifvalue#1#2% {\begingroup \edef\!!stringa{\csname#1\endcsname}\edef\!!stringb{#2}% \ifx\!!stringa\!!stringb \aftergroup\firstofoneargument % \expandafter\endgroup \expandafter\firstofoneargument \else \aftergroup\gobbleoneargument % \expandafter\endgroup\expandafter \gobbleoneargument \fi\endgroup} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkIV framedcontent not working
Wolfgang Schuster wrote: Am 09.09.2009 um 22:38 schrieb Hans Hagen: start with making a small example that shows the problem easy to fix, change (why \ifcsname here?) ok, i fixed it (although a bit different) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkIV framedcontent not working
Thomas Floeren wrote: Hi, \stopframedcontent gives an undefined control sequence in mkIV. mkII is ok. Any ideas? start with making a small example that shows the problem - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mkIV framedcontent not working
Hi, \stopframedcontent gives an undefined control sequence in mkIV. mkII is ok. Any ideas? Thomas LuaTeX, Version beta-0.43.0-2009082718 ConTeXt ver: 2009.08.30 12:25 MKIV fmt: 2009.8.31 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkIV framedcontent not working
On Mon, Aug 31, 2009 at 11:36 AM, Thomas Floerenthomas.floe...@boschung.com wrote: Hi, \stopframedcontent gives an undefined control sequence in mkIV. mkII is ok. Any ideas? Can you give a short example ? -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkIV framedcontent not working
luigi scarso mailto:luigi.sca...@gmail.com wrote on Monday, August 31, 2009 11:24 PM: On Mon, Aug 31, 2009 at 11:36 AM, Thomas Floerenthomas.floe...@boschung.com wrote: Hi, \stopframedcontent gives an undefined control sequence in mkIV. mkII is ok. Any ideas? Can you give a short example ? \defineframedcontent[FrCT] [offset=.5em] \starttext \startframedcontent[FrCT] Am I framed? \stopframedcontent \stoptext I know that \framed*text* would work in this minimal example, but it does not return the same results as \framedcontent in mkII; and it does not work well with more complicated group content (at least in mkII). Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___