# Convert from example result in IndexError: list index out of range #33

Closed
opened this issue Oct 11, 2018 · 4 comments

### DenisSalem commented Oct 11, 2018 • edited

 Hello there, I have a file (math.txt) with the following content (from examples).  \begin{bmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m,1} & a_{m,2} & \cdots & a_{m,n} \end{bmatrix}  The code below is trying to parse and convert the above but fail with IndexError: list index out ouf range #! /usr/bin/python3 import latex2mathml.converter latex_input = open("math.txt","r").read().strip() mathml_output = latex2mathml.converter.convert(latex_input) print(mathml_output) Is there something I'm doing the wrong way? I'm using version 2.5.2

Owner

### roniemartinez commented Oct 11, 2018

 Hi @DenisSalem I wasn't able to test this after I migrated the parser to TexSoup. Thanks for checking. I will begin fixing this.

Author

### DenisSalem commented Oct 11, 2018

added a commit that referenced this issue Oct 13, 2018
 Drop TexSoup (#33) 
- Support Python 2.7
 fbaad9d 
added a commit that referenced this issue Oct 13, 2018
 Fix Python 2.7-3.5 support (#33) 
 380d30c 
added a commit that referenced this issue Oct 13, 2018
 Fix Python 2.7-3.5 support (#33) 
 f59100c 
added a commit that referenced this issue Oct 13, 2018
 Merge branch 'develop' into 2.6.0 (#33) 
# Conflicts:
#	latex2mathml/aggregator.py
#	setup.py
#	tests/test_command.py
 b8e4aa2 
added a commit that referenced this issue Oct 13, 2018
 Refactor (#33) 
 ec65a68 
referenced this issue Oct 13, 2018
Merged
Owner

### roniemartinez commented Oct 13, 2018

 Version 2.6.0 have been released. Kindly check.

Author

### DenisSalem commented Nov 11, 2018

 Thank you :D