Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 296 Bytes
files = `find . -name '*_latex.md'`
files = files.split("\n")
files.each do |file|
split = file.split '/'
dir = split[0..split.count - 2].join('/')
name = split.last.split('_latex.md')[0]
Dir.chdir(dir) do
`pandoc #{name}_latex.md -o #{name}.pdf --latex-engine=xelatex`
end
end