def color_code(word, match, color):
	"""Returns the LaTeX command used to color a word
	
	Keyword arguments:
	word -- Word that must be colored
	match -- Pattern that will be replaced with a LaTeX command
	color -- Color to be used 
	"""
	
	code = r'\BDT' + color + '{'+word+'}'
	match = match.replace(word, code)
	return match