bibtex.py: add id tag to category headings
authorPhilipp Falk <philipp.falk@math.uni-freiburg.de>
Wed, 7 Sep 2016 09:15:36 +0000 (11:15 +0200)
committerPhilipp Falk <philipp.falk@math.uni-freiburg.de>
Wed, 7 Sep 2016 09:15:36 +0000 (11:15 +0200)
bibtex.py

index 606989f..1e81b13 100755 (executable)
--- a/bibtex.py
+++ b/bibtex.py
@@ -52,7 +52,7 @@ if __name__ == '__main__':
             (html, bib) = get_publications(tmpdir, cat, basename)
             if html is None:
                 continue
-            outhtml.append('<h2>{}</h2>'.format(name))
+            outhtml.append('<h2 id="{}">{}</h2>'.format(cat, name))
             outhtml.append(html)
             outbibl.append(bib)
         os.chdir(cwd)