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 }

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 }

Use only the directory as template name rather then the full path
Use only the directory as template name rather then the full path
