Re: How to do Conditional Formatting?

[email protected] (Ludovic Courtès)
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
Hi,

"Michael Koehmstedt, RenPet" <[email protected]> skribis:

> if ( canFitOnTheCurrentPage( text ) )
>      print( text );
> else {
>      print( "See attached page" );
>      newLine( );
>      print( slightlyDifferentText );
> }

I don’t think this can be achieved in pure Lout.

There’s the @CNP symbol, which does a “conditional page break”:

    macro @CNP	{ // 3.2v @High //0io //{}		}

But it’s not as sophisticated as what you’re looking for.

Thanks,
Ludo’.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.