10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-24 13:23:40 +01:00

Update excitationType detection with standard LaTeX

This commit is contained in:
Mickaël Véril 2019-12-13 10:32:25 +01:00
parent 4900ad296a
commit 2aa6088405

View File

@ -96,13 +96,13 @@ class excitationBase {
this.type = this.type | excitationType.Doublet
}
const finalts = finalt.split(",").map(x => x.trim())
if (initialts.includes("n") && finalts.includes(String.raw`\pis`)) {
if (initialts.includes("n") && finalts.includes(String.raw`\pi^\star`)) {
this.type = this.type | excitationType.PiPis
} else if (initialts.includes(String.raw`\pi`) in initialts && finals.includes(String.raw`\pis`)) {
} else if (initialts.includes(String.raw`\pi`) in initialts && finals.includes(String.raw`\pi^\star`)) {
this.type = this.type | excitationType.PiPis
} else if (ty.includes(String.raw`\Ryd`)) {
} else if (ty.includes(String.raw`\pi^\star`)) {
this.type = this.type | excitationType.RYDBERG
} else if (ty.includes(String.raw`\Val`)) {
} else if (ty.includes(String.raw`\mathrm{V}`)) {
this.type = this.type | excitationType.VALENCE
}
}