Onmargin and Offmargin

Top  Previous  Next

Activates or deactivates margin marking as discussed in the Including Comments chapter.  The margins are set with $mincol and $maxcol.  The syntax is

 

$Offmargin

or

$Onmargin

 

The default is $Offmargin.

Example:

(Margin.gms)

$Ontext

         1         2         3         4         5         6

123456789012345678901234567890123456789012345678901234567890

$Offtext

$Onmargin

$mincol 20 maxcol 45

Now we have        set i plant /US, UK/      This defines I

turned on the      scalar x / 3.145 /        A scalar example.

margin marking.    parameter a, b;           Define some parameters

$Offmargin

 

Only the black section of the statements are active since they appear between columns 19 and 45, and anything before 19 or after column 45 is treated as a comment.

 

This results in the LST file segment

 

7 Now we have        . set i plant /US, UK/     .This defines I

8 turned on the      . scalar x / 3.145 /       .A scalar example.

9 margin marking.    . parameter a, b;          .Define some parameters.

 

where the red dots are the delimiters.