add publication
shrink lines if specified lines is too large.