allofphysicsgraph / ui_v8_website_flask_neo4j

version 8 of the Physics Derivation Graph UI: a flask-based website with Neo4j property graph backend
https://allofphysics.com
0 stars 0 forks source link

identify symbols in Latex expressions #1

Open bhpayne opened 3 months ago

bhpayne commented 3 months ago

Separate a Latex-as-string into tokens.

See tests/valid_latex_expressions for examples of valid Latex expressions.

examples:

The purpose of this issue is to help the user identify which symbols should be associated with the expression.

msgoff commented 2 weeks ago

Here is a sample taken from the git@github.com:allofphysicsgraph/latex2sympyparser repo The test expression for tokenization is in the file test.tex

to run docker run -it --rm latex:latest /bin/bash

rm tf_idf 
rm offsets 
./scanner.out .
python read_offsets.py 

for the equation \begin{equation}
u=\frac{-y}{x^2+y^2} , v=\frac{x}{x^2+y^2} , \text{and} w=0 \end{equation}

Screenshot_2024-09-07_23-09-43