def dir_doc_names(doc_type, last_name, date, short_name):
    """Return properly formatted directory and document names"""
    yrmonth = date.strftime("%Y%m")
    dir_name = (
        "_JAM_{doc_type}__{last_name}{yrmonth}__{short_name}".format(
            doc_type=doc_type,
            last_name=last_name,
            yrmonth=yrmonth,
            short_name=short_name))

    doc_name = "{last_name}{yrmonth}__{short_name}.tex".format(
        last_name=last_name,
        yrmonth=yrmonth,
        short_name=short_name)

    return dir_name, doc_name