mirror of https://github.com/patacrep/patacrep.git
Engine for LaTeX songbooks
http://www.patacrep.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
314 B
16 lines
314 B
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
FILENAME = "naheulbeuk.tex"
|
|
|
|
import plasTeX
|
|
from plasTeX.TeX import TeX
|
|
|
|
doc = TeX(file = FILENAME).parse()
|
|
|
|
language_list = set()
|
|
for node in doc.allChildNodes:
|
|
if node.nodeName == "selectlanguage":
|
|
language_list.add(node.argSource)
|
|
|
|
print language_list
|
|
|