# Path: publications/templatetags/publication_extras.py
# def tex_parse(string):
# 	"""
# 	Renders some basic TeX math to HTML.
# 	"""
# 
# 	string = string.replace('{', '').replace('}', '')
# 	def tex_replace(match):
# 		return \
# 			sub(r'\^(\w)', r'<sup>\1</sup>',
# 			sub(r'\^\{(.*?)\}', r'<sup>\1</sup>',
# 			sub(r'\_(\w)', r'<sub>\1</sub>',
# 			sub(r'\_\{(.*?)\}', r'<sub>\1</sub>',
# 			sub(r'\\(' + GREEK_LETTERS + ')', r'&\1;', match.group(1))))))
# 	return mark_safe(sub(r'\$([^\$]*)\$', tex_replace, escape(string)))


from django.test import TestCase
from django.contrib.auth.models import User
from django.urls import reverse
from django.db import transaction
from django.template import Template, RequestContext
from django.http import HttpRequest
from publications.models import Publication, Type, CustomLink, List
from publications.templatetags.publication_extras import tex_parse
}

@misc{test:2009,
    title = "Test",
    author = {Last-Name, First and Peter van der Markt III and Test and Gauss II CF},
    year = 2009
}

@article{DBLP:journals/corr/KummererWB14,
 author    = {Matthias K{\"{u}}mmerer and
              Thomas Wallis and
              Matthias Bethge},
 title     = {How close are we to understanding image-based saliency?},
 journal   = {CoRR},
 year      = {2014},
 volume    = {abs/1409.7686},
 url       = {http://arxiv.org/abs/1409.7686},
 timestamp = {Mon, 27 Oct 2014 13:50:21 +0100},
 biburl    = {http://dblp.uni-trier.de/rec/bib/journals/corr/KummererWB14},
 bibsource = {dblp computer science bibliography, http://dblp.org}
}
@incollection{dougan2014objective,
  title={Objective Functions},
  author={Do{\u{g}}an, Haluk and Otu, Hasan H},
  booktitle={Multiple Sequence Alignment Methods},
  pages={45--58},
  year={2014},
  publisher={Springer}
}


# Path: publications/templatetags/publication_extras.py
# def tex_parse(string):
# 	"""
# 	Renders some basic TeX math to HTML.
# 	"""
# 
# 	string = string.replace('{', '').replace('}', '')
# 	def tex_replace(match):
# 		return \
# 			sub(r'\^(\w)', r'<sup>\1</sup>',
# 			sub(r'\^\{(.*?)\}', r'<sup>\1</sup>',
# 			sub(r'\_(\w)', r'<sub>\1</sub>',
# 			sub(r'\_\{(.*?)\}', r'<sub>\1</sub>',
# 			sub(r'\\(' + GREEK_LETTERS + ')', r'&\1;', match.group(1))))))
# 	return mark_safe(sub(r'\$([^\$]*)\$', tex_replace, escape(string)))


# Path: publications/tests/tests.py
from django.test import TestCase
from django.contrib.auth.models import User
from django.urls import reverse
from django.db import transaction
from django.template import Template, RequestContext
from django.http import HttpRequest
from publications.models import Publication, Type, CustomLink, List
from publications.templatetags.publication_extras import tex_parse

}

@misc{test:2009,
    title = "Test",
    author = {Last-Name, First and Peter van der Markt III and Test and Gauss II CF},
    year = 2009
}

@article{DBLP:journals/corr/KummererWB14,
 author    = {Matthias K{\"{u}}mmerer and
              Thomas Wallis and
              Matthias Bethge},
 title     = {How close are we to understanding image-based saliency?},
 journal   = {CoRR},
 year      = {2014},
 volume    = {abs/1409.7686},
 url       = {http://arxiv.org/abs/1409.7686},
 timestamp = {Mon, 27 Oct 2014 13:50:21 +0100},
 biburl    = {http://dblp.uni-trier.de/rec/bib/journals/corr/KummererWB14},
 bibsource = {dblp computer science bibliography, http://dblp.org}
}
@incollection{dougan2014objective,
  title={Objective Functions},
  author={Do{\u{g}}an, Haluk and Otu, Hasan H},
  booktitle={Multiple Sequence Alignment Methods},
  pages={45--58},
  year={2014},
  publisher={Springer}
}


@inproceedings{DBLP:conf/patmos/ShahWSB14,