add function to select and display latex directory