def vectorLaTeX(entries, overRightArrow=True):
    """entries needs to be a string separted by a comma.
        if overRightArrow, will use \\overrightarrow instead of \\vec"""
    return ('\\overrightarrow{%s}' % entries if overRightArrow else 
        '\\vec{%s}' % entries)
