# This class is used to keep state while transforming the document using
# This class is used to keep state while transforming the document using
# transform.py. For the context to be available to the html and TeX generators,
# transform.py. For the context to be available to the html and TeX generators,
@ -68,7 +68,7 @@ class Context:
defset_metadata(self,key:str,value):
defset_metadata(self,key:str,value):
ifkey=="language":
ifkey=="language":
print("WARN: Setting language this way doesn't propagate to TeX. Either use the Front Matter or specify it additionally using the \\languagexx macro.")
warnings.warn("Setting language this way doesn't propagate to TeX. Either use the Front Matter or specify it additionally using the \\languagexx macro.",UserWarning)