2
votes
3answers
80 views

Change value of a strings representing number

I have the following expression : a="2013" How can I change the value of a to "2012".
2
votes
4answers
307 views

Generate lists of page numbers for 2-up duplex printing: 2,3,… and 1,4,…

How can I generate the following increments? 2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,...,135 and ...