Syntactic memory for print advertising