Sign in to follow this  
imodel

can a macro do math?

Recommended Posts

Hello Chiefs,

 

Can a macro do simple math?

 

For example:  A%page%-1

Share this post


Link to post
Share on other sites

Absolutely yes and positively no.  It depends...can you be a little more specific about what you're trying to do.  

Share this post


Link to post
Share on other sites

If I understand correctly what you're after then don't use the %page% macro.  Chief has a built in method for dealing with this...

 

  • Use the %layout.label% macro instead of or in conjunction with the %page% macro
  • Click on Edit Page Information and in the Label field add your desired prefix followed by the # sign
  • The # sign will automatically create a new series of page numbers based on the prefix

 

For example, you could enter the following in the respective label fields:

Page 1:  CS

Page 2:  A#

Page 3:  A#

Page 4:  A#

Page 5:  S#

Page 6:  S#

Page 7:  P#

 

The actual displayed label output from the %layout.label% macro would be as follows:

Page 1:  CS

Page 2:  A1

Page 3:  A2

Page 4:  A3

Page 5:  S1

Page 6:  S2

Page 7:  P1

 

Let me know if that doesn't do what you're after.  There are a few other tricks we can use as well.  

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Member Statistics

    27849
    Total Members
    6254
    Most Online
    goshgolly
    Newest Member
    goshgolly
    Joined