created new method in class to create latex command
all tests passing now - rather hacky - needs some refactoring
tests still passing and output_index looking pretty good ...