ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font switches, tables, and grouping
@ 2006-10-04 16:21 Idris Samawi Hamid
  2006-10-05  0:02 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Idris Samawi Hamid @ 2006-10-04 16:21 UTC (permalink / raw)


Dear consortium,

font switches do not obey grouping when \start-stoptable is invoked:

===============================
Some text

\start\it
\starttable[|l|l|]
\NC 2001 \NC Fall \NC\SR
\stoptable
\stop

Some text
===============================

The second `Some text' comes out italicized. What is happening here and  
how do I fix it?

Also, how do I control the blank space between \stoptable and the  
beginning of the next par?

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font switches, tables, and grouping
  2006-10-04 16:21 font switches, tables, and grouping Idris Samawi Hamid
@ 2006-10-05  0:02 ` Aditya Mahajan
  2006-10-05  2:04   ` Idris Samawi Hamid
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2006-10-05  0:02 UTC (permalink / raw)


On Wed, 4 Oct 2006, Idris Samawi Hamid wrote:

> Dear consortium,
>
> font switches do not obey grouping when \start-stoptable is invoked:
>
> ===============================
> Some text
>
> \start\it
> \starttable[|l|l|]
> \NC 2001 \NC Fall \NC\SR
> \stoptable
> \stop
>
> Some text
> ===============================
>
> The second `Some text' comes out italicized. What is happening here and
> how do I fix it?

This works fine here using
ConTeXt  ver: 2006.10.02 09:56 MK II  fmt: 2006.10.2

\start .. \stop are defined as

\let\simplestart\bgroup
\let\simplestop \egroup

So the only way \it will move across the \stop is if \stoptable is 
missing a \egroup. But then tex should complain about missing end 
group, something like

(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 4 ({)
### bottom level

Does your log file say this?

Aditya

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font switches, tables, and grouping
  2006-10-05  0:02 ` Aditya Mahajan
@ 2006-10-05  2:04   ` Idris Samawi Hamid
  2006-10-05 17:01     ` Idris Samawi Hamid
  0 siblings, 1 reply; 4+ messages in thread
From: Idris Samawi Hamid @ 2006-10-05  2:04 UTC (permalink / raw)


Hi Aditya,

On Wed, 04 Oct 2006 18:02:42 -0600, Aditya Mahajan <adityam@umich.edu>  
wrote:

> On Wed, 4 Oct 2006, Idris Samawi Hamid wrote:
>
>> Dear consortium,
>>
>> font switches do not obey grouping when \start-stoptable is invoked:
>>
>> ===============================
>> Some text
>>
>> \start\it
>> \starttable[|l|l|]
>> \NC 2001 \NC Fall \NC\SR
>> \stoptable
>> \stop
>>
>> Some text
>> ===============================
>>
>> The second `Some text' comes out italicized. What is happening here and
>> how do I fix it?
>
> This works fine here using
> ConTeXt  ver: 2006.10.02 09:56 MK II  fmt: 2006.10.2
>
> \start .. \stop are defined as
>
> \let\simplestart\bgroup
> \let\simplestop \egroup
>
> So the only way \it will move across the \stop is if \stoptable is
> missing a \egroup. But then tex should complain about missing end
> group, something like
>
> (\end occurred inside a group at level 1)
>
> ### simple group (level 1) entered at line 4 ({)
> ### bottom level
>
> Does your log file say this?

Yes, and I think I found the culprit:

====================================
\setuptables[split=yes]

\starttext

Some text

\start\it
\starttable[|l|l|] \NC 2001 \NC Fall \NC\SR \stoptable
\stop

Some text

\stoptext
====================================

If you comment out \setuptables[split=yes] it works fine. So there is/was
(ConTeXt  ver: 2006.08.16)
most likely a bug in the splitting mechanism.

I'll try the latest beta later and report back.

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font switches, tables, and grouping
  2006-10-05  2:04   ` Idris Samawi Hamid
@ 2006-10-05 17:01     ` Idris Samawi Hamid
  0 siblings, 0 replies; 4+ messages in thread
From: Idris Samawi Hamid @ 2006-10-05 17:01 UTC (permalink / raw)


On Wed, 04 Oct 2006 20:04:44 -0600, Idris Samawi Hamid  
<ishamid@colostate.edu> wrote:

>> ### simple group (level 1) entered at line 4 ({)
>> ### bottom level
>>
>> Does your log file say this?
>
> Yes, and I think I found the culprit:
>
> ====================================
> \setuptables[split=yes]
>
> \starttext
>
> Some text
>
> \start\it
> \starttable[|l|l|] \NC 2001 \NC Fall \NC\SR \stoptable
> \stop
>
> Some text
>
> \stoptext
> ====================================
>
> If you comment out \setuptables[split=yes] it works fine. So there is/was
> (ConTeXt  ver: 2006.08.16)
> most likely a bug in the splitting mechanism.
>
> I'll try the latest beta later and report back.

With the latest beta this works now. Thanks!

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-05 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-04 16:21 font switches, tables, and grouping Idris Samawi Hamid
2006-10-05  0:02 ` Aditya Mahajan
2006-10-05  2:04   ` Idris Samawi Hamid
2006-10-05 17:01     ` Idris Samawi Hamid

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).