ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* separating layout from content: section blocks?
@ 2006-05-01 16:30 Andrew D. Crouse
  2006-05-03 16:14 ` Willi Egger
  2006-05-03 17:34 ` Mojca Miklavec
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew D. Crouse @ 2006-05-01 16:30 UTC (permalink / raw)


To whom it may concern,

I have a large document with several distinct pieces.  Each piece has  
different layout requirements.  I can setup the layout before each  
piece, but I would prefer to separate the layout from content.   
Currently what is the best way to do this?

I have tried defining section blocks and then specifying the layout  
for the section blocks between \startsectionblockenvironment 
[mySectionBlock] and \stopsectionblockenvironment commands.  I have  
also tried the project, product, component, environment structure  
from the manuals.  I have not had success with either method.

I would be very interested to know the approach taken by more  
experienced users.

Thank you for your help.

Sincerely,

Andrew Crouse

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

* Re: separating layout from content: section blocks?
  2006-05-01 16:30 separating layout from content: section blocks? Andrew D. Crouse
@ 2006-05-03 16:14 ` Willi Egger
  2006-05-03 17:34 ` Mojca Miklavec
  1 sibling, 0 replies; 3+ messages in thread
From: Willi Egger @ 2006-05-03 16:14 UTC (permalink / raw)


Hi Andrew,

Humble, what I do is using the project structure and load layout files 
at the moment I need the new layout-features. - Indeed I separate the 
layout, the setups from the content.
Loading such files can best be done with \environment respectivefile.

Kind regards
Willi

Andrew D. Crouse wrote:

>To whom it may concern,
>
>I have a large document with several distinct pieces.  Each piece has  
>different layout requirements.  I can setup the layout before each  
>piece, but I would prefer to separate the layout from content.   
>Currently what is the best way to do this?
>
>I have tried defining section blocks and then specifying the layout  
>for the section blocks between \startsectionblockenvironment 
>[mySectionBlock] and \stopsectionblockenvironment commands.  I have  
>also tried the project, product, component, environment structure  
>from the manuals.  I have not had success with either method.
>
>I would be very interested to know the approach taken by more  
>experienced users.
>
>Thank you for your help.
>
>Sincerely,
>
>Andrew Crouse
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>  
>

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

* Re: separating layout from content: section blocks?
  2006-05-01 16:30 separating layout from content: section blocks? Andrew D. Crouse
  2006-05-03 16:14 ` Willi Egger
@ 2006-05-03 17:34 ` Mojca Miklavec
  1 sibling, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2006-05-03 17:34 UTC (permalink / raw)


On 5/1/06, Andrew D. Crouse wrote:
> To whom it may concern,
>
> I have a large document with several distinct pieces.  Each piece has
> different layout requirements.  I can setup the layout before each
> piece, but I would prefer to separate the layout from content.
> Currently what is the best way to do this?

I guess that you can use

    \startsetups[somename]
     ... whatever setups you need ...
    \stopsetups

and then recall them by

    \setups[somename]

I first saw the example of usage here, but didn't try them out by myself yet:

http://source.contextgarden.net/tex/context/base/s-mag-01.tex
http://www.pragma-ade.com/general/magazines/mag-0000.pdf


Mojca

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01 16:30 separating layout from content: section blocks? Andrew D. Crouse
2006-05-03 16:14 ` Willi Egger
2006-05-03 17:34 ` Mojca Miklavec

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