Re: @Font trumps @B & @I (which is a pity)
Mark Summerfield <[email protected]>
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Organization | Qtrac Ltd. |
| Message-ID | <20101203132734.62f5bd58@dino> |
On Tue, 12 Oct 2010 21:33:12 +0200 [email protected] (Ludovic Courtès) wrote: > Hi Mark, > > Mark Summerfield <[email protected]> writes: > > > However, whenever I use @VSChar{} lout outputs a warning: > > > > no value for context variable `scopeState', using the empty string > > > > I solved this by enclosing the whole para in: > > > > {scopeState @Yield @Null}@SetContext{ > > ... # Used @ScopedBold & @ScopedItalic > > } > > > > But what I'd really like to do is set the scopeState globally for > > the whole document. > > I think this can be solved either by modifying ‘docf’ or perhaps by > doing the initial ‘@SetContext’ in the ‘@PageEnclose’ parameter of > ‘@DocumentSetup’. Hi Ludovic, I did this in my custom book file inside @DocumentSetup: @PageEnclose{{scopeState @Yield @Null}@SetContext{@Body}} And it worked fine---no more annoying error messages and the scoped bold & italic work great. Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Advanced Qt Programming" - ISBN 0321635906 http://www.qtrac.eu/aqpbook.html