* mkIV framedcontent not working
@ 2009-08-31 9:36 Thomas Floeren
2009-08-31 21:23 ` luigi scarso
2009-09-09 20:38 ` Hans Hagen
0 siblings, 2 replies; 6+ messages in thread
From: Thomas Floeren @ 2009-08-31 9:36 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mkIV framedcontent not working
2009-08-31 9:36 mkIV framedcontent not working Thomas Floeren
@ 2009-08-31 21:23 ` luigi scarso
2009-09-01 5:48 ` Thomas Floeren
2009-09-09 20:38 ` Hans Hagen
1 sibling, 1 reply; 6+ messages in thread
From: luigi scarso @ 2009-08-31 21:23 UTC (permalink / raw)
To: thomas.floeren, mailing list for ConTeXt users
On Mon, Aug 31, 2009 at 11:36 AM, Thomas
Floeren<thomas.floeren@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mkIV framedcontent not working
2009-08-31 21:23 ` luigi scarso
@ 2009-09-01 5:48 ` Thomas Floeren
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Floeren @ 2009-09-01 5:48 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
luigi scarso <mailto:luigi.scarso@gmail.com> wrote on Monday, August 31, 2009 11:24 PM:
> On Mon, Aug 31, 2009 at 11:36 AM, Thomas
> Floeren<thomas.floeren@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mkIV framedcontent not working
2009-08-31 9:36 mkIV framedcontent not working Thomas Floeren
2009-08-31 21:23 ` luigi scarso
@ 2009-09-09 20:38 ` Hans Hagen
2009-09-10 16:47 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2009-09-09 20:38 UTC (permalink / raw)
To: thomas.floeren, mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mkIV framedcontent not working
2009-09-09 20:38 ` Hans Hagen
@ 2009-09-10 16:47 ` Wolfgang Schuster
2009-09-10 21:29 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2009-09-10 16:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-10 21:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31 9:36 mkIV framedcontent not working Thomas Floeren
2009-08-31 21:23 ` luigi scarso
2009-09-01 5:48 ` Thomas Floeren
2009-09-09 20:38 ` Hans Hagen
2009-09-10 16:47 ` Wolfgang Schuster
2009-09-10 21:29 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).