def store_markdown_output_for_pubs(self, output_file_path):
    years = ''.join([('<a href="#%s"><span class="category-item">%s</span></a>' % (y, y)) for y in sorted(list(self.pubs_dict.keys()), reverse=True)])
    output_file = open(output_file_path, 'w')
    W = (lambda s: output_file.write((s + '\n')))
    W('---')
    W('layout: publications')
    W(('modified: %s' % datetime.today().strftime('%Y-%m-%d')))
    W('comments: false')
    W('---\n')
    W("<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>\n")
    W('<script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>\n')
    W(('<div class="category-box">\n%s\n</div>\n' % years))
    W('{:.notice}\n')
    W("This page shows publications that are most reflective of our interests. For a complete list, please see <a href='https://scholar.google.com/citations?user=GtLLuxoAAAAJ&view_op=list_works&sortby=pubdate' target='_blank'>Meren's Google Scholar page</a>.\n")
    for year in sorted(list(self.pubs_dict.keys()), reverse=True):
        W(('<a name="%s">&nbsp;</a>' % year))
        W(('<h1>%s</h1>\n' % year))
        for pub in self.pubs_dict[year]:
            W(self.get_markdown_text_for_pub(pub))
        W('')
def store_markdown_output_for_pubs(self, output_file_path):
    years = .join([('<a href="#%s"><span class="category-item">%s</span></a>' % (y, y)) for y in sorted(list(self.pubs_dict.keys()), reverse=True)])
    output_file = open(output_file_path, 'w')
    W = (lambda s: output_file.write((s + '\n')))
    W('---')
    W('layout: publications')
    W(('modified: %s' % datetime.today().strftime('%Y-%m-%d')))
    W('comments: false')
    W('---\n')
    W("<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>\n")
    W('<script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>\n')
    W(('<div class="category-box">\n%s\n</div>\n' % years))
    W('{:.notice}\n')
    W("This page shows publications that are most reflective of our interests. For a complete list, please see <a href='https://scholar.google.com/citations?user=GtLLuxoAAAAJ&view_op=list_works&sortby=pubdate' target='_blank'>Meren's Google Scholar page</a>.\n")
    for year in sorted(list(self.pubs_dict.keys()), reverse=True):
        W(('<a name="%s">&nbsp;</a>' % year))
        W(('<h1>%s</h1>\n' % year))
        for pub in self.pubs_dict[year]:
            W(self.get_markdown_text_for_pub(pub))
        W()