```ruby
require "#{Rails.root}/lib/hedra-latex.rb"

latex_template_path = CONFIG[Rails.env.to_sym]["latex_template_path"] << "*"
LATEX_TEMPLATES = Dir.glob(latex_template_path).sort.select { |f| File.directory? f }
```

Use only the directory as template name rather then the full path
user
```ruby
require "#{Rails.root}/lib/hedra-latex.rb"

latex_template_path = CONFIG[Rails.env.to_sym]["latex_template_path"] << "*"
LATEX_TEMPLATES = Dir.glob(latex_template_path).sort.select { |f| File.directory? f }.map { |m| m.scan(/(?<=\/)\w+$/).first }
```
assistant