def caption(chapter, number):
    """
    Return string for 'element chapter-number. description'.
    number is either a TableNum or a FigureNum.
    """
    return '{} {}-{}'.format(number.args[0].element(), chapter, number.args[0])